Package | hl7.fhir.uv.sdc |
Type | StructureDefinition |
Id | SdcQuestionLibrary |
FHIR Version | R4 |
Source | http://hl7.org/fhir/uv/sdc/https://build.fhir.org/ig/HL7/sdc/StructureDefinition-SdcQuestionLibrary.html |
URL | http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary |
Version | 4.0.0-ballot |
Status | active |
Date | 2025-07-14T18:38:59+00:00 |
Name | SDCQuestionLibrary |
Title | SDC Question Library |
Realm | uv |
Authority | hl7 |
Description | An example library of questions showing how questions can be compiled into a library for use by modular questionnaires |
Type | http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary |
Kind | logical |
No resources found
ValueSet | |
sdc-question-library-states | Australian States - example value set |
sdc-question-library-states | Australian States - example value set |
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureDefinition SdcQuestionLibrary
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
![]() ![]() | 0..* | Base | SDC 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 | |
{ "resourceType": "StructureDefinition", "id": "SdcQuestionLibrary", "text": { "status": "extensions", "div": "<!-- snip (see above) -->" }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "fhir" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "informative", "_valueCode": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom", "valueCanonical": "http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc" } ] } } ], "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary", "identifier": [ { "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.840.1.113883.4.642.40.17.42.75" } ], "version": "4.0.0-ballot", "name": "SDCQuestionLibrary", "title": "SDC Question Library", "status": "active", "experimental": true, "date": "2025-07-14T18:38:59+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": "An example library of questions showing how questions can be compiled into a library for use by modular questionnaires", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001", "display": "World" } ] } ], "fhirVersion": "4.0.1", "kind": "logical", "abstract": false, "type": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base", "derivation": "specialization", "snapshot": { "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", "valueString": "4.0.1" } ], "element": [ { "id": "SdcQuestionLibrary", "path": "SdcQuestionLibrary", "short": "SDC Question Library", "definition": "A set of questions related to demographics", "min": 0, "max": "*", "base": { "path": "Base", "min": 0, "max": "*" }, "isModifier": false }, { "id": "SdcQuestionLibrary.dob", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "%patient.birthdate" } } ], "path": "SdcQuestionLibrary.dob", "label": "What is this person's date of birth?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.dob", "min": 0, "max": "1" }, "type": [ { "code": "date" } ], "minValueDate": "1900-01-01", "_maxValueDate": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression", "valueExpression": { "language": "text/fhirpath", "expression": "now() as date + 1 day" } } ] } }, { "id": "SdcQuestionLibrary.sex", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "iif(%patient.gender='male','M', iif(%patient.gender='female','F'))" } } ], "path": "SdcQuestionLibrary.sex", "label": "What is this person's gender?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.sex", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender" } }, { "id": "SdcQuestionLibrary.address", "path": "SdcQuestionLibrary.address", "label": "What is this person's current mailing address?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.address", "min": 0, "max": "1" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "hasValue() or (children().count() > id.count())", "xpath": "@value|f:*|h:div" } ] }, { "id": "SdcQuestionLibrary.address.id", "path": "SdcQuestionLibrary.address.id", "representation": [ "xmlAttr" ], "short": "Unique id for inter-element referencing", "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ], "code": "http://hl7.org/fhirpath/System.String" } ], "isModifier": false, "isSummary": false, "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "SdcQuestionLibrary.address.extension", "path": "SdcQuestionLibrary.address.extension", "slicing": { "discriminator": [ { "type": "value", "path": "url" } ], "description": "Extensions are always sliced by (at least) url", "rules": "open" }, "short": "Additional content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "hasValue() or (children().count() > id.count())", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension" } ], "isModifier": false, "isSummary": false, "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "SdcQuestionLibrary.address.street", "path": "SdcQuestionLibrary.address.street", "label": "Street address", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.address.street", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.address.city", "path": "SdcQuestionLibrary.address.city", "label": "City/Town", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.address.city", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.address.state", "path": "SdcQuestionLibrary.address.state", "label": "State", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.address.state", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states" } }, { "id": "SdcQuestionLibrary.address.postalCode", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/entryFormat", "valueString": "9999" } ], "path": "SdcQuestionLibrary.address.postalCode", "label": "Postal Code", "short": "n/a", "definition": "n/a", "min": 1, "max": "1", "base": { "path": "SdcQuestionLibrary.address.postalCode", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "constraint": [ { "key": "sdc-ex-pcode", "severity": "error", "human": "Postal code must be 4 digits", "expression": "value.matches('^[0-9]{4}[%content%]#39;)", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary" } ] }, { "id": "SdcQuestionLibrary.name", "path": "SdcQuestionLibrary.name", "label": "What is the person's official name?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.name", "min": 0, "max": "1" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "hasValue() or (children().count() > id.count())", "xpath": "@value|f:*|h:div" } ] }, { "id": "SdcQuestionLibrary.name.id", "path": "SdcQuestionLibrary.name.id", "representation": [ "xmlAttr" ], "short": "Unique id for inter-element referencing", "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ], "code": "http://hl7.org/fhirpath/System.String" } ], "isModifier": false, "isSummary": false, "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "SdcQuestionLibrary.name.extension", "path": "SdcQuestionLibrary.name.extension", "slicing": { "discriminator": [ { "type": "value", "path": "url" } ], "description": "Extensions are always sliced by (at least) url", "rules": "open" }, "short": "Additional content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "hasValue() or (children().count() > id.count())", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension" } ], "isModifier": false, "isSummary": false, "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "SdcQuestionLibrary.name.prefix", "path": "SdcQuestionLibrary.name.prefix", "label": "Prefix", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.name.prefix", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.name.first", "path": "SdcQuestionLibrary.name.first", "label": "First", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.name.first", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "maxLength": 100 }, { "id": "SdcQuestionLibrary.name.last", "path": "SdcQuestionLibrary.name.last", "label": "Last", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "base": { "path": "SdcQuestionLibrary.name.last", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "maxLength": 100 } ] }, "differential": { "element": [ { "id": "SdcQuestionLibrary", "path": "SdcQuestionLibrary", "short": "SDC Question Library", "definition": "A set of questions related to demographics" }, { "id": "SdcQuestionLibrary.dob", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "%patient.birthdate" } } ], "path": "SdcQuestionLibrary.dob", "label": "What is this person's date of birth?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "date" } ], "minValueDate": "1900-01-01", "_maxValueDate": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression", "valueExpression": { "language": "text/fhirpath", "expression": "now() as date + 1 day" } } ] } }, { "id": "SdcQuestionLibrary.sex", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "iif(%patient.gender='male','M', iif(%patient.gender='female','F'))" } } ], "path": "SdcQuestionLibrary.sex", "label": "What is this person's gender?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender" } }, { "id": "SdcQuestionLibrary.address", "path": "SdcQuestionLibrary.address", "label": "What is this person's current mailing address?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "Element" } ] }, { "id": "SdcQuestionLibrary.address.street", "path": "SdcQuestionLibrary.address.street", "label": "Street address", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.address.city", "path": "SdcQuestionLibrary.address.city", "label": "City/Town", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.address.state", "path": "SdcQuestionLibrary.address.state", "label": "State", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "code" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states" } }, { "id": "SdcQuestionLibrary.address.postalCode", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/entryFormat", "valueString": "9999" } ], "path": "SdcQuestionLibrary.address.postalCode", "label": "Postal Code", "short": "n/a", "definition": "n/a", "min": 1, "max": "1", "type": [ { "code": "string" } ], "constraint": [ { "key": "sdc-ex-pcode", "severity": "error", "human": "Postal code must be 4 digits", "expression": "value.matches('^[0-9]{4}[%content%]#39;)", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary" } ] }, { "id": "SdcQuestionLibrary.name", "path": "SdcQuestionLibrary.name", "label": "What is the person's official name?", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "Element" } ] }, { "id": "SdcQuestionLibrary.name.prefix", "path": "SdcQuestionLibrary.name.prefix", "label": "Prefix", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "string" } ] }, { "id": "SdcQuestionLibrary.name.first", "path": "SdcQuestionLibrary.name.first", "label": "First", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "string" } ], "maxLength": 100 }, { "id": "SdcQuestionLibrary.name.last", "path": "SdcQuestionLibrary.name.last", "label": "Last", "short": "n/a", "definition": "n/a", "min": 0, "max": "1", "type": [ { "code": "string" } ], "maxLength": 100 } ] } }