| Package | hl7.fhir.uv.sdc |
| Resource Type | Questionnaire |
| Id | extract-complex-template2 |
| FHIR Version | R4 |
| Source | http://hl7.org/fhir/uv/sdc/https://build.fhir.org/ig/HL7/sdc/Questionnaire-extract-complex-template2.html |
| URL | http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2 |
| Version | 4.0.0-ballot |
| Status | draft |
| Date | 2025-08-07T06:58:13+00:00 |
| Name | SDCQuestionnaireExtrTemplate |
| Title | Complex Extract Demonstration - Template Bundle |
| Realm | uv |
| Authority | hl7 |
| Description | Example Questionnaire demonstrating extraction using the template approach |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: Questionnaire extract-complex-template2
Profile: Extractable Questionnaire - Template
| LinkID | Text | Cardinality | Type | Description & Constraints |
|---|---|---|---|---|
![]() | Example Questionnaire demonstrating extraction using the template approach | Questionnaire | http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2#4.0.0-ballot | |
![]() ![]() | Patient Information | 0..1 | group | |
![]() ![]() ![]() | Name | 0..* | group | |
![]() ![]() ![]() ![]() | Given Name(s) | 0..* | string | |
![]() ![]() ![]() ![]() | Family/Surname | 0..1 | string | |
![]() ![]() ![]() | Gender | 0..1 | choice | Value Set: AdministrativeGender |
![]() ![]() ![]() | Date of Birth | 0..1 | date | |
![]() ![]() ![]() | National Identifier (IHI) | 0..1 | string | |
![]() ![]() ![]() | Mobile Phone number | 0..1 | string | |
![]() ![]() | Contacts | 0..* | group | |
![]() ![]() ![]() | Name | 0..1 | string | |
![]() ![]() ![]() | Relationship | 0..1 | choice | Value Set: Patient Contact Relationship |
![]() ![]() ![]() | Phone | 0..1 | string | |
![]() ![]() | Observations | 0..1 | group | |
![]() ![]() ![]() | What is your current height (m) | 0..1 | decimal | |
![]() ![]() ![]() | What is your current weight (kg) | 0..1 | decimal | |
![]() ![]() ![]() | Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example) | 0..1 | boolean | |
Bundle #bunExtract
Bundle bunExtract of type transaction
Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031
Resource Patient:
Generated Narrative: Patient
null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)
Contact Detail ph: -unknown-(Mobile)
Request:
POST Patient If-Match = Patient?_name=urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031
Entry 2 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd032
Resource RelatedPerson:
Generated Narrative: RelatedPerson
patient:
urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031relationship:
name: null
telecom: ph: -unknown-(Mobile)
Request:
POST RelatedPerson
Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033
Resource Observation:
Generated Narrative: Observation
status: Final
category: Vital Signs
code: Body height
subject:
urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031effective: 1900-01-01
issued:
Extract Template - Extract value:%resource.authoredperformer: ?rref?
value: cm (Details: UCUM codecm = 'cm')
derivedFrom: ?rref?
Request:
POST Observation
Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034
Resource Observation:
Generated Narrative: Observation
status: Final
category: Vital Signs
code: Weight
subject:
urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031effective: 1900-01-01
issued:
Extract Template - Extract value:%resource.authoredperformer: ?rref?
value: kg (Details: UCUM codekg = 'kg')
derivedFrom: ?rref?
Request:
POST Observation
Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035
Resource Observation:
Generated Narrative: Observation
status: Final
code: sigmoidoscopy-complication
subject:
urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031effective: 1900-01-01
issued:
Extract Template - Extract value:%resource.authoredperformer: ?rref?
value:
Extract Template - Extract value:answer.valuederivedFrom: ?rref?
Request:
POST Observation
{
"resourceType": "Questionnaire",
"id": "extract-complex-template2",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extr-template"
]
},
"text": {
"status": "extensions",
"div": "<!-- snip (see above) -->"
},
"contained": [
{
"resourceType": "Bundle",
"id": "bunExtract",
"type": "transaction",
"entry": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'patient')"
}
],
"fullUrl": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031",
"resource": {
"resourceType": "Patient",
"identifier": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'ihi').answer.value"
}
],
"type": {
"text": "National Identifier (IHI)"
},
"system": "http://example.org/nhio",
"_value": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "first()"
}
]
}
}
],
"name": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'name')"
}
],
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId='given' or linkId='family').answer.value.join(' ')"
}
]
},
"_family": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId = 'family').answer.value.first()"
}
]
},
"_given": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId = 'given').answer.value"
}
]
}
]
}
],
"telecom": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'mobile-phone').answer.value"
}
],
"system": "phone",
"_value": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "first()"
}
]
},
"use": "mobile"
}
],
"gender": "unknown",
"_gender": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId = 'gender').answer.value.first().code"
}
]
}
},
"request": {
"method": "POST",
"url": "Patient",
"ifMatch": "Patient?_name=urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'contacts')"
}
],
"fullUrl": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd032",
"resource": {
"resourceType": "RelatedPerson",
"patient": {
"reference": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"
},
"relationship": [
{
"coding": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId = 'relationship').answer.value.first()"
}
]
}
]
}
],
"name": [
{
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "item.where(linkId = 'contact-name').answer.value.first()"
}
]
}
}
],
"telecom": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'phone').answer.value"
}
],
"system": "phone",
"_value": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "first()"
}
]
},
"use": "mobile"
}
]
},
"request": {
"method": "POST",
"url": "RelatedPerson"
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'obs').item.where(linkId = 'height')"
}
],
"fullUrl": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033",
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "8302-2",
"display": "Body height"
}
]
},
"subject": {
"reference": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"
},
"effectiveDateTime": "1900-01-01",
"_effectiveDateTime": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"_issued": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"performer": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.author"
}
]
}
],
"valueQuantity": {
"_value": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "answer.value * 100"
}
]
},
"unit": "cm",
"system": "http://unitsofmeasure.org",
"code": "cm"
},
"derivedFrom": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "%resource.id"
}
],
"_reference": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "'QuestionnaireResponse/' + %resource.id"
}
]
}
}
]
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'obs').item.where(linkId = 'weight')"
}
],
"fullUrl": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034",
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "29463-7",
"display": "Weight"
}
]
},
"subject": {
"reference": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"
},
"effectiveDateTime": "1900-01-01",
"_effectiveDateTime": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"_issued": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"performer": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.author"
}
]
}
],
"valueQuantity": {
"_value": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "answer.value"
}
]
},
"unit": "kg",
"system": "http://unitsofmeasure.org",
"code": "kg"
},
"derivedFrom": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "%resource.id"
}
],
"_reference": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "'QuestionnaireResponse/' + %resource.id"
}
]
}
}
]
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "item.where(linkId = 'obs').item.where(linkId = 'complication')"
}
],
"fullUrl": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035",
"resource": {
"resourceType": "Observation",
"status": "final",
"code": {
"coding": [
{
"system": "http://example.org/sdh/demo/CodeSystem/cc-screening-codes",
"code": "sigmoidoscopy-complication"
}
]
},
"subject": {
"reference": "urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"
},
"effectiveDateTime": "1900-01-01",
"_effectiveDateTime": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"_issued": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.authored"
}
]
},
"performer": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "%resource.author"
}
]
}
],
"_valueBoolean": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "answer.value"
}
]
},
"derivedFrom": [
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext",
"valueString": "%resource.id"
}
],
"_reference": {
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue",
"valueString": "'QuestionnaireResponse/' + %resource.id"
}
]
}
}
]
},
"request": {
"method": "POST",
"url": "Observation"
}
}
]
}
],
"extension": [
{
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]",
"valueCoding": {
"system": "http://hl7.org/fhir/version-algorithm",
"code": "semver"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractBundle",
"valueReference": {
"reference": "#bunExtract"
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fhir"
}
],
"url": "http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2",
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.35"
}
],
"version": "4.0.0-ballot",
"name": "SDCQuestionnaireExtrTemplate",
"title": "Complex Extract Demonstration - Template Bundle",
"status": "draft",
"experimental": true,
"date": "2025-08-07T06:58:13+00:00",
"publisher": "HL7 International / FHIR Infrastructure",
"contact": [
{
"name": "HL7 International / FHIR Infrastructure",
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
},
{
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description": "Example Questionnaire demonstrating extraction using the template approach",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001",
"display": "World"
}
]
}
],
"item": [
{
"linkId": "patient",
"text": "Patient Information",
"type": "group",
"item": [
{
"linkId": "name",
"text": "Name",
"type": "group",
"repeats": true,
"item": [
{
"linkId": "given",
"text": "Given Name(s)",
"type": "string",
"repeats": true
},
{
"linkId": "family",
"text": "Family/Surname",
"type": "string"
}
]
},
{
"linkId": "gender",
"text": "Gender",
"type": "choice",
"answerValueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
},
{
"linkId": "dob",
"text": "Date of Birth",
"type": "date"
},
{
"linkId": "ihi",
"text": "National Identifier (IHI)",
"type": "string"
},
{
"linkId": "mobile-phone",
"text": "Mobile Phone number",
"type": "string"
}
]
},
{
"linkId": "contacts",
"text": "Contacts",
"type": "group",
"repeats": true,
"item": [
{
"linkId": "contact-name",
"text": "Name",
"type": "string"
},
{
"linkId": "relationship",
"text": "Relationship",
"type": "choice",
"answerValueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship"
},
{
"linkId": "phone",
"text": "Phone",
"type": "string"
}
]
},
{
"linkId": "obs",
"text": "Observations",
"type": "group",
"item": [
{
"linkId": "height",
"text": "What is your current height (m)",
"type": "decimal"
},
{
"linkId": "weight",
"text": "What is your current weight (kg)",
"type": "decimal"
},
{
"linkId": "complication",
"text": "Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)",
"type": "boolean"
}
]
}
]
}