Stream: questionnaire
Topic: What should %context be in a Questionnaire?
Paul Lynch (Nov 01 2018 at 17:05):
Am I correct in thinking that when a FHIRPath expression appears on an item in a Questionnaire, the %context gets set to the corresponding node of the QuestoinnaireResponse (i.e., not the Questionanire, and not the whole QuestionnaireResponse resource)?
Is that documented somewhere?
Lloyd McKenzie (Nov 01 2018 at 17:37):
The general presumption with those different extensions is that the expression applies on the instantiation (QuestionnaireResponse, Observation, MedicationRequest, etc.) not the definition that contains the extension (Questionnaire, PlanDefinition, ActivityDefinition, etc.) However, definitely agree this needs to be clarified. Can you submit a change request?
Paul Lynch (Nov 01 2018 at 18:10):
Sure, but do you mean that it applies to the whole Questionnaire response (i.e., %context is QuestionnaireResponse) or to the item of the QuestionnaireResponse corresponding to the item in Questionnaire where the FHIRPath appeared? I think it has to be the latter. You can always get back to the whole QR with %resource.
Lloyd McKenzie (Nov 01 2018 at 18:19):
It applies to the item - and similarly for a PlanDefinition, it would apply to the item that corresponded to a particular action, not to the overall CarePlan. @Bryn Rhodes
Paul Lynch (Nov 01 2018 at 18:52):
Last updated: Apr 12 2022 at 19:14 UTC