Structured Data Capture
4.0.0 - International flag

Structured Data Capture, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 4.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/sdc/ and changes regularly. See the Directory of published versions

Questionnaire: Complex Extract Demonstration - Template Bundle (Experimental)

Official URL: http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2 Version: 4.0.0
Standards status: Informative Draft as of 2025-10-22 Computable Name: SDCQuestionnaireExtrTemplate
Other Identifiers: OID:2.16.840.1.113883.4.642.40.17.35.35

Example Questionnaire demonstrating extraction using the template approach

LinkIDTextCardinalityTypeDescription & Constraintsdoco
.. SDCQuestionnaireExtrTemplate Example Questionnaire demonstrating extraction using the template approach Questionnaire http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2#4.0.0
... patient Patient Information 0..1 group
.... name Name 0..* group
..... given Given Name(s) 0..* string
..... family Family/Surname 0..1 string
.... gender Gender 0..1 choice Value Set: AdministrativeGender
.... dob Date of Birth 0..1 date
.... ihi National Identifier (IHI) 0..1 string
.... mobile-phone Mobile Phone number 0..1 string
... contacts Contacts 0..* group
.... contact-name Name 0..1 string
.... relationship Relationship 0..1 choice Value Set: Patient Contact Relationship
.... phone Phone 0..1 string
... obs Observations 0..1 group
.... height What is your current height (m) 0..1 decimal
.... weight What is your current weight (kg) 0..1 decimal
.... complication Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example) 0..1 boolean

doco Documentation for this format

Contained Resources


Bundle bunExtract of type transaction


Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

Resource Patient:

null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)


Contact Detailph: -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:

patient: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

relationship:

name: null

telecom: ph: -unknown-(Mobile)

Request:

POST RelatedPerson

Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033

Resource Observation:

status: Final

category: Vital Signs

code: Body height

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: cm (Details: UCUM codecm = 'cm')

derivedFrom: ?rref?

Request:

POST Observation

Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034

Resource Observation:

status: Final

category: Vital Signs

code: Weight

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: kg (Details: UCUM codekg = 'kg')

derivedFrom: ?rref?

Request:

POST Observation

Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035

Resource Observation:

status: Final

code: sigmoidoscopy-complication

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

Request:

POST Observation

Patient Information

  • linkId: patient

Name

  • linkId: name

Given Name(s)

  • linkId: given

Family/Surname

  • linkId: family

Gender

Date of Birth

  • linkId: dob

National Identifier (IHI)

  • linkId: ihi

Mobile Phone number

  • linkId: mobile-phone

Contacts

  • linkId: contacts

Name

  • linkId: contact-name

Relationship

Phone

  • linkId: phone

Observations

  • linkId: obs

What is your current height (m)

  • linkId: height

What is your current weight (kg)

  • linkId: weight

Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)

  • linkId: complication

Contained Resources


Bundle bunExtract of type transaction


Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

Resource Patient:

null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)


Contact Detailph: -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:

patient: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

relationship:

name: null

telecom: ph: -unknown-(Mobile)

Request:

POST RelatedPerson

Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033

Resource Observation:

status: Final

category: Vital Signs

code: Body height

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: cm (Details: UCUM codecm = 'cm')

derivedFrom: ?rref?

Request:

POST Observation

Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034

Resource Observation:

status: Final

category: Vital Signs

code: Weight

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: kg (Details: UCUM codekg = 'kg')

derivedFrom: ?rref?

Request:

POST Observation

Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035

Resource Observation:

status: Final

code: sigmoidoscopy-complication

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

Request:

POST Observation

LinkIDDescription & Constraintsdoco
.. patient
... name
.... given
.... family
... gender Value Set: AdministrativeGender
... dob
... mobile-phone
.. contacts
... contact-name
... relationship Value Set: Patient Contact Relationship
... phone
.. obs
... height
... weight
... complication

doco Documentation for this format

Contained Resources


Bundle bunExtract of type transaction


Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

Resource Patient:

null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)


Contact Detailph: -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:

patient: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

relationship:

name: null

telecom: ph: -unknown-(Mobile)

Request:

POST RelatedPerson

Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033

Resource Observation:

status: Final

category: Vital Signs

code: Body height

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: cm (Details: UCUM codecm = 'cm')

derivedFrom: ?rref?

Request:

POST Observation

Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034

Resource Observation:

status: Final

category: Vital Signs

code: Weight

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: kg (Details: UCUM codekg = 'kg')

derivedFrom: ?rref?

Request:

POST Observation

Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035

Resource Observation:

status: Final

code: sigmoidoscopy-complication

subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

effective: 1900-01-01

issued: Extract Template - Extract value: %resource.authored

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

Request:

POST Observation

Test this Questionnaire

Try this questionnaire out:

    Contained Resources


    Bundle bunExtract of type transaction


    Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

    Resource Patient:

    null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)


    Contact Detailph: -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:

    patient: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

    relationship:

    name: null

    telecom: ph: -unknown-(Mobile)

    Request:

    POST RelatedPerson
    

    Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033

    Resource Observation:

    status: Final

    category: Vital Signs

    code: Body height

    subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

    effective: 1900-01-01

    issued: Extract Template - Extract value: %resource.authored

    performer: ?rref?

    value: cm (Details: UCUM codecm = 'cm')

    derivedFrom: ?rref?

    Request:

    POST Observation
    

    Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034

    Resource Observation:

    status: Final

    category: Vital Signs

    code: Weight

    subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

    effective: 1900-01-01

    issued: Extract Template - Extract value: %resource.authored

    performer: ?rref?

    value: kg (Details: UCUM codekg = 'kg')

    derivedFrom: ?rref?

    Request:

    POST Observation
    

    Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035

    Resource Observation:

    status: Final

    code: sigmoidoscopy-complication

    subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031

    effective: 1900-01-01

    issued: Extract Template - Extract value: %resource.authored

    performer: ?rref?

    value: Extract Template - Extract value: answer.value

    derivedFrom: ?rref?

    Request:

    POST Observation
    

    Responses for this Questionnaire