Stream: questionnaire
Topic: questionnaire-displayCategory contextInvariant
Tadas Antanavicius (Nov 01 2019 at 18:19):
Hi - I'm looking at https://www.hl7.org/fhir/extension-questionnaire-displaycategory.html and I see that it defines a context invariant that is type!='display'.
This is surprising to me for a few reasons:
1) The property .value[x] detailed description says, "Identifies the purpose for a "display" item.", which seems to directly contradict the context invariant
2) The extension is named "displayCategory", so it seems odd that display types are excluded
3) Other discussions on fhirchat (e.g. https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/Item.20help/near/153961398) suggest, e.g. "You create a separate item of type "display", put your instructions in the 'text' element and set the category to "instructions"" which would violate this context invariant
Am I thinking about context invariants incorrectly, or should the invariant actually be "type='display'"?
Lloyd McKenzie (Nov 01 2019 at 20:18):
Yes, that definitely seems like an error. Can you submit a change request?
Tadas Antanavicius (Nov 01 2019 at 20:56):
Will do -- just signed up for a gforge account and will do it when my account is approved.
Related potential typo: on the CodeSystem that is bound to this extension (https://www.hl7.org/fhir/codesystem-questionnaire-display-category.html), the spec refers to the corresponding ValueSets as "Codes defining the purpose of a Questionnaire item of type 'text'."
I assume 'text' should be 'display'? This is particularly confusing because 'text' is an actual Questionnaire Item type that falls under question types. Should I make a separate change request for this as well?
Lloyd McKenzie (Nov 01 2019 at 21:19):
Yes please
Tadas Antanavicius (Nov 04 2019 at 19:30):
Added as #25127 and #25128
Lloyd McKenzie (Nov 04 2019 at 19:37):
Tx
Last updated: Apr 12 2022 at 19:14 UTC