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
| Official URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary | Version: 4.0.0 | |||
| Standards status: Informative Active as of 2025-10-22 | Computable Name: SDCQuestionLibrary | |||
| Other Identifiers: OID:2.16.840.1.113883.4.642.40.17.42.75 | ||||
An example library of questions showing how questions can be compiled into a library for use by modular questionnaires
Usages:
You can also check for usages in the FHIR IG Statistics
Description Differentials, Snapshots, and other representations.
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | Base | SDC Logical Question Library | |
![]() ![]()  | 
0..1 | date | n/a | |
![]() ![]()  | 
0..1 | code | n/a Binding: AdministrativeGender (required)  | |
![]() ![]()  | 
0..1 | Element | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | code | n/a Binding: Australian States - example value set (extensible)  | |
![]() ![]() ![]()  | 
C | 1..1 | string | n/a Constraints: sdc-ex-pcode  | 
![]() ![]()  | 
0..1 | Element | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| SdcQuestionLibrary.sex | Base | required | AdministrativeGender | 📦4.0.1 | FHIR Std. | 
| SdcQuestionLibrary.address.state | Base | extensible | Australian States - example value set | 📦4.0.0 | This IG | 
| Id | Grade | Path(s) | Description | Expression | 
| sdc-ex-pcode | error | SdcQuestionLibrary.address.postalCode | Postal code must be 4 digits | 
      value.matches('^[0-9]{4}$')
     | 
  
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | Base | SDC Logical Question Library | |
![]() ![]()  | 
0..1 | date | n/a | |
![]() ![]()  | 
0..1 | code | n/a Binding: AdministrativeGender (required)  | |
![]() ![]()  | 
0..1 | Element | n/a Constraints: ele-1  | |
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | code | n/a Binding: Australian States - example value set (extensible)  | |
![]() ![]() ![]()  | 
C | 1..1 | string | n/a Constraints: sdc-ex-pcode  | 
![]() ![]()  | 
0..1 | Element | n/a Constraints: ele-1  | |
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| SdcQuestionLibrary.sex | Base | required | AdministrativeGender | 📦4.0.1 | FHIR Std. | 
| SdcQuestionLibrary.address.state | Base | extensible | Australian States - example value set | 📦4.0.0 | This IG | 
| Id | Grade | Path(s) | Description | Expression | 
| ele-1 | error | SdcQuestionLibrary.address, SdcQuestionLibrary.address.extension, SdcQuestionLibrary.name, SdcQuestionLibrary.name.extension | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | 
      extension.exists() != value.exists()
     | 
  
| sdc-ex-pcode | error | SdcQuestionLibrary.address.postalCode | Postal code must be 4 digits | 
      value.matches('^[0-9]{4}$')
     | 
  
Differential View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | Base | SDC Logical Question Library | |
![]() ![]()  | 
0..1 | date | n/a | |
![]() ![]()  | 
0..1 | code | n/a Binding: AdministrativeGender (required)  | |
![]() ![]()  | 
0..1 | Element | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | code | n/a Binding: Australian States - example value set (extensible)  | |
![]() ![]() ![]()  | 
C | 1..1 | string | n/a Constraints: sdc-ex-pcode  | 
![]() ![]()  | 
0..1 | Element | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| SdcQuestionLibrary.sex | Base | required | AdministrativeGender | 📦4.0.1 | FHIR Std. | 
| SdcQuestionLibrary.address.state | Base | extensible | Australian States - example value set | 📦4.0.0 | This IG | 
| Id | Grade | Path(s) | Description | Expression | 
| sdc-ex-pcode | error | SdcQuestionLibrary.address.postalCode | Postal code must be 4 digits | 
      value.matches('^[0-9]{4}$')
     | 
  
Snapshot ViewView
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | Base | SDC Logical Question Library | |
![]() ![]()  | 
0..1 | date | n/a | |
![]() ![]()  | 
0..1 | code | n/a Binding: AdministrativeGender (required)  | |
![]() ![]()  | 
0..1 | Element | n/a Constraints: ele-1  | |
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | code | n/a Binding: Australian States - example value set (extensible)  | |
![]() ![]() ![]()  | 
C | 1..1 | string | n/a Constraints: sdc-ex-pcode  | 
![]() ![]()  | 
0..1 | Element | n/a Constraints: ele-1  | |
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | string | n/a | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
![]() ![]() ![]()  | 
0..1 | string | n/a Max Length:100  | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| SdcQuestionLibrary.sex | Base | required | AdministrativeGender | 📦4.0.1 | FHIR Std. | 
| SdcQuestionLibrary.address.state | Base | extensible | Australian States - example value set | 📦4.0.0 | This IG | 
| Id | Grade | Path(s) | Description | Expression | 
| ele-1 | error | SdcQuestionLibrary.address, SdcQuestionLibrary.address.extension, SdcQuestionLibrary.name, SdcQuestionLibrary.name.extension | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | 
      extension.exists() != value.exists()
     | 
  
| sdc-ex-pcode | error | SdcQuestionLibrary.address.postalCode | Postal code must be 4 digits | 
      value.matches('^[0-9]{4}$')
     |