Stream: questionnaire
Topic: StuctureMap extraction
Corey Wen (May 04 2021 at 20:14):
From what I understand, if I wanted to extract data from a questionnaire and transform it into a FHIR resource such as Patient or AllergenIntolerance, StructureMap based extraction is the most useful for this situation.
Where can I find any examples that demonstrate this functionality?
Lloyd McKenzie (May 04 2021 at 20:55):
@Joee Garcia
Oliver Egger (May 05 2021 at 06:31):
@Corey Wen you can find an example here which extracts a QuestionnaireResponse to a FHIR Document:
- Questionnaire which is refererring to a StructureMap for extraction (Questionnaire in IG)
"extension": [ {
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
"valueCanonical": "http://fhir.ch/ig/ch-rad-order/StructureMap/RadOrderQrToBundle"
} ]
-
StructureMap, IG, depends on base orf map
-
Sample QuestionnarieResponse
-
Extracted Questionnaire to Bundle is here
You can do the transform yourself with VSCode, RESTClient http:
@host = https://test.ahdis.ch/r4
POST {{host}}/QuestionnaireResponse/$extract
Content-Type: application/fhir+json
< ./fsh-generated/resources/QuestionnaireResponse-QuestionnaireResponseRadiologyOrder.json
We are preparing this testcase (we still struggle with $populate operation) for the upcoming connectathon and will be participating at the FHIR connectathon questionnaire track ...
Joee Garcia (May 06 2021 at 18:36):
@Corey Wen There's another example in the SDOH Clinical Care IG that extracts Observation and Conditions from a QuestionnaireResponse using a StructureMap. You can look for examples in the Artifact Index related to the Hunger Vital Signs (HVS) Questionnaire and it also has the mapping file used to create the StructureMap.
Last updated: Apr 12 2022 at 19:14 UTC