FHIR Chat · rendering-styleSensitive = check every value? · questionnaire

Stream: questionnaire

Topic: rendering-styleSensitive = check every value?


view this post on Zulip Paul Lynch (Sep 30 2019 at 22:44):

Suppose rendering-styleSenstitive is set on root, and also that Questionnaire.url has an unexpected (for SDC) rendering-style extension. Would an SDC client even be expected to notice the rendering-style extension sitting on Questionnaire.url?

view this post on Zulip Lloyd McKenzie (Sep 30 2019 at 23:08):

I think so. The extension isn't tied to any particular SDC profile, so the expectation would be to search for style extensions anywhere in the instance.

view this post on Zulip Brian Postlethwaite (Oct 07 2019 at 02:49):

While we're talking about style, I notice that the extension http://hl7.org/fhir/R4/extension-rendering-style.html permits putting the explicit style on for an item to be rendered with, is there an equivalent you can put at the root of the document which is a link to a css file?
(I have a custom extension like this already, and thought this might have been it, but noted that its explicitly inline, and item dependant)
And even more, was this a style property rather than HTML class to apply? (which could then leverage the CSS allocated to the entire form)
@Lloyd McKenzie , @Paul Lynch do you do either of these?

view this post on Zulip Lloyd McKenzie (Oct 07 2019 at 04:22):

No standard extension for a link to a CSS. In part because there can be privacy issues with external links and in part because it's added complexity. We didn't bother with classes because we have no support for a standard CSS.

view this post on Zulip Paul Lynch (Oct 07 2019 at 14:36):

@Brian Postlethwaite For LHC-Forms I've partially implemented rendering-style with support for inline styles on Questionnaire.title, item.text, and item.prefix. I am putting off styles on answer lists (ValueSets) for now. In theory (though SDC does not ask for this) you could put rendering-style on the Questionnaire node, and then any styles you apply there should carry through to the child elements. At least, that is my understanding how rendering-style is supposed to work, but at least in LHC-Forms support has to be explicitly added for each case.


Last updated: Apr 12 2022 at 19:14 UTC