-
Type:
Change Request
-
Resolution: Persuasive
-
Priority:
Medium
-
Structured Data Capture (SDC) (FHIR)
-
current
-
FHIR Infrastructure
-
Questionnaire response extract to resource(s)
-
Form Data Extraction
-
-
Paul Lynch/Joee Garcia: 4-0-0
-
Enhancement
-
Compatible, substantive
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).
However, it is not clear how to specify that new resource should be created regardless. For example, what should be specified in this extension when the purpose of the questionnaire is to create a new "Patient" resource?
Based on FHIR chat, the answer is to use query that will never return anything at all, like "Patient?_id=<nonexistent id>", however, this looks suboptimal.
See https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/SDC.3A.20extracting.20into.20a.20new.20resource for the context.