Stream: questionnaire
Topic: SDC: extracting into a new resource
Ivan Dubrov (Nov 27 2020 at 03:01):
How do I specify that questionnaire always extracts into a new resource (as opposed to updating an existing one), for definition-based extraction? http://build.fhir.org/ig/HL7/sdc/extraction.html says:
Include the questionnaire-itemExtractionContext extension either on the Questionnaire root or on 'group' items within the Questionnaire to identify the resource that will serve as the context for any extraction. The itemExtractionContext is used to set the context for the item.definition paths. If the itemExtractionContext is empty, then the Questionnaire is being used to create a resource. If the itemExtractionContext has a resource (or set of resources), then the Questionnaire is being used to update the resource(s).
What does it mean "empty"?
-
An extension without the value? If so, how do I know which type of the resource needs to be extracted?
-
Or does it mean when query returns zero resources? In which case, how do I make sure it's always the case? Specifying query like
Patient?id=<id that never happens>
seems kind of silly.
Lloyd McKenzie (Nov 27 2020 at 03:46):
It means the latter. We haven't really talked about the notion of forcing a create, though obviously that's something some will want to do. Can you submit a change request for us to clarify?
Ivan Dubrov (Nov 27 2020 at 05:43):
https://jira.hl7.org/browse/FHIR-29798
Last updated: Apr 12 2022 at 19:14 UTC