Skip to content

Commit f46c996

Browse files
authored
Add template based extraction
1 parent 6294c6b commit f46c996

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

resources/Questionnaire/extract-vital-signs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@ launchContext:
1212
code: Patient
1313
type:
1414
- Patient
15+
contained:
16+
- id: 421fd51c-fe94-4a7f-ab1e-f91c2572bcb3
17+
code:
18+
coding:
19+
- code: 8310-5
20+
system: http://loinc.org
21+
display: Body temperature
22+
valueQuantity:
23+
extension:
24+
- url: >-
25+
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
26+
valueString: answer.valueQuantity
27+
status: final
28+
subject:
29+
_reference:
30+
extension:
31+
- url: >-
32+
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
33+
valueString: >-
34+
'Patient/' +
35+
%resource.item.where(linkId='patientId').answer.valueString
36+
resourceType: Observation
1537
item:
1638
- linkId: patientId
1739
text: PatientId
@@ -25,6 +47,12 @@ item:
2547
text: Body temperature
2648
type: quantity
2749
required: true
50+
extension:
51+
- url: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtract
52+
extension:
53+
- url: template
54+
valueReference:
55+
reference: '#421fd51c-fe94-4a7f-ab1e-f91c2572bcb3'
2856
unitOption:
2957
- code: Cel
3058
system: http://unitsofmeasure.org

0 commit comments

Comments
 (0)