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 (Experimental)

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

Complex template-based extraction example

LinkIDTextCardinalityTypeDescription & Constraintsdoco
.. ExtractComplexTemplate Complex template-based extraction example Questionnaire http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template#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


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


Contact Detailph: -unknown-(Mobile)

patient: ?rref?

relationship:

name: null

telecom: ph: -unknown-(Mobile)


status: Final

category: Vital Signs

code: Body height

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

category: Vital Signs

code: Weight

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

code: sigmoidoscopy-complication

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

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


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


Contact Detailph: -unknown-(Mobile)

patient: ?rref?

relationship:

name: null

telecom: ph: -unknown-(Mobile)


status: Final

category: Vital Signs

code: Body height

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

category: Vital Signs

code: Weight

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

code: sigmoidoscopy-complication

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

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


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


Contact Detailph: -unknown-(Mobile)

patient: ?rref?

relationship:

name: null

telecom: ph: -unknown-(Mobile)


status: Final

category: Vital Signs

code: Body height

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

category: Vital Signs

code: Weight

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

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

derivedFrom: ?rref?


status: Final

code: sigmoidoscopy-complication

subject: ?rref?

effective: 1900-01-01

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

performer: ?rref?

value: Extract Template - Extract value: answer.value

derivedFrom: ?rref?

Test this Questionnaire

Try this questionnaire out:

    Contained Resources


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


    Contact Detailph: -unknown-(Mobile)

    patient: ?rref?

    relationship:

    name: null

    telecom: ph: -unknown-(Mobile)


    status: Final

    category: Vital Signs

    code: Body height

    subject: ?rref?

    effective: 1900-01-01

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

    performer: ?rref?

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

    derivedFrom: ?rref?


    status: Final

    category: Vital Signs

    code: Weight

    subject: ?rref?

    effective: 1900-01-01

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

    performer: ?rref?

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

    derivedFrom: ?rref?


    status: Final

    code: sigmoidoscopy-complication

    subject: ?rref?

    effective: 1900-01-01

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

    performer: ?rref?

    value: Extract Template - Extract value: answer.value

    derivedFrom: ?rref?

    Responses for this Questionnaire