{ "description": "An example library of questions showing how questions can be compiled into a library for use by modular questionnaires", "_filename": "StructureDefinition-SdcQuestionLibrary.json", "package_name": "hl7.fhir.uv.sdc", "date": "2024-12-17T01:55:34+00:00", "derivation": "specialization", "publisher": "HL7 International / FHIR Infrastructure", "fhirVersion": "4.0.1", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "display": "World" } ] } ], "name": "SDCQuestionLibrary", "abstract": false, "type": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary", "experimental": "true", "resourceType": "StructureDefinition", "title": "SDC Question Library", "package_version": "4.0.0-ballot", "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" } ] } } ], "snapshot": { "element": [ { "id": "SdcQuestionLibrary", "max": "*", "min": 0, "base": { "max": "*", "min": 0, "path": "Base" }, "path": "SdcQuestionLibrary", "short": "SDC Question Library", "definition": "A set of questions related to demographics", "isModifier": false }, { "path": "SdcQuestionLibrary.dob", "min": 0, "definition": "n/a", "short": "n/a", "minValueDate": "1900-01-01", "_maxValueDate": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression", "valueExpression": { "language": "text/fhirpath", "expression": "now() as date + 1 day" } } ] }, "type": [ { "code": "date" } ], "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "%patient.birthdate" } } ], "max": "1", "label": "What is this person's date of birth?", "id": "SdcQuestionLibrary.dob", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.dob" } }, { "path": "SdcQuestionLibrary.sex", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "code" } ], "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'))" } } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender" }, "max": "1", "label": "What is this person's gender?", "id": "SdcQuestionLibrary.sex", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.sex" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "SdcQuestionLibrary.address", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "Element" } ], "max": "1", "label": "What is this person's current mailing address?", "id": "SdcQuestionLibrary.address", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.address" } }, { "path": "SdcQuestionLibrary.address.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "SdcQuestionLibrary.address.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "SdcQuestionLibrary.address.extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "SdcQuestionLibrary.address.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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "SdcQuestionLibrary.address.street", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "Street address", "id": "SdcQuestionLibrary.address.street", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.address.street" } }, { "path": "SdcQuestionLibrary.address.city", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "City/Town", "id": "SdcQuestionLibrary.address.city", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.address.city" } }, { "path": "SdcQuestionLibrary.address.state", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states" }, "max": "1", "label": "State", "id": "SdcQuestionLibrary.address.state", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.address.state" } }, { "path": "SdcQuestionLibrary.address.postalCode", "min": 1, "definition": "n/a", "short": "n/a", "type": [ { "code": "string", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "[\\d]{4}" } ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/entryFormat", "valueString": "9999" } ], "max": "1", "label": "Postal Code", "id": "SdcQuestionLibrary.address.postalCode", "base": { "max": "1", "min": 1, "path": "SdcQuestionLibrary.address.postalCode" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "SdcQuestionLibrary.name", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "Element" } ], "max": "1", "label": "What is the person's official name?", "id": "SdcQuestionLibrary.name", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.name" } }, { "path": "SdcQuestionLibrary.name.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "SdcQuestionLibrary.name.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "SdcQuestionLibrary.name.extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "SdcQuestionLibrary.name.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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "SdcQuestionLibrary.name.prefix", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "Prefix", "id": "SdcQuestionLibrary.name.prefix", "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.name.prefix" } }, { "path": "SdcQuestionLibrary.name.first", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "First", "id": "SdcQuestionLibrary.name.first", "maxLength": 100, "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.name.first" } }, { "path": "SdcQuestionLibrary.name.last", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "Last", "id": "SdcQuestionLibrary.name.last", "maxLength": 100, "base": { "max": "1", "min": 0, "path": "SdcQuestionLibrary.name.last" } } ] }, "status": "active", "id": "01c0c116-ce22-4c5e-b44e-434ea9f3f2af", "kind": "logical", "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.17.42.75", "system": "urn:ietf:rfc:3986" } ], "version": "4.0.0-ballot", "differential": { "element": [ { "id": "SdcQuestionLibrary", "path": "SdcQuestionLibrary", "short": "SDC Question Library", "definition": "A set of questions related to demographics" }, { "path": "SdcQuestionLibrary.dob", "min": 0, "definition": "n/a", "short": "n/a", "minValueDate": "1900-01-01", "_maxValueDate": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression", "valueExpression": { "language": "text/fhirpath", "expression": "now() as date + 1 day" } } ] }, "type": [ { "code": "date" } ], "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "name": "name", "language": "text/fhirpath", "expression": "%patient.birthdate" } } ], "max": "1", "label": "What is this person's date of birth?", "id": "SdcQuestionLibrary.dob" }, { "path": "SdcQuestionLibrary.sex", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "code" } ], "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'))" } } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender" }, "max": "1", "label": "What is this person's gender?", "id": "SdcQuestionLibrary.sex" }, { "id": "SdcQuestionLibrary.address", "max": "1", "min": 0, "path": "SdcQuestionLibrary.address", "type": [ { "code": "Element" } ], "label": "What is this person's current mailing address?", "short": "n/a", "definition": "n/a" }, { "id": "SdcQuestionLibrary.address.street", "max": "1", "min": 0, "path": "SdcQuestionLibrary.address.street", "type": [ { "code": "string" } ], "label": "Street address", "short": "n/a", "definition": "n/a" }, { "id": "SdcQuestionLibrary.address.city", "max": "1", "min": 0, "path": "SdcQuestionLibrary.address.city", "type": [ { "code": "string" } ], "label": "City/Town", "short": "n/a", "definition": "n/a" }, { "path": "SdcQuestionLibrary.address.state", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states" }, "max": "1", "label": "State", "id": "SdcQuestionLibrary.address.state" }, { "path": "SdcQuestionLibrary.address.postalCode", "min": 1, "definition": "n/a", "short": "n/a", "type": [ { "code": "string", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "[\\d]{4}" } ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/entryFormat", "valueString": "9999" } ], "max": "1", "label": "Postal Code", "id": "SdcQuestionLibrary.address.postalCode" }, { "id": "SdcQuestionLibrary.name", "max": "1", "min": 0, "path": "SdcQuestionLibrary.name", "type": [ { "code": "Element" } ], "label": "What is the person's official name?", "short": "n/a", "definition": "n/a" }, { "id": "SdcQuestionLibrary.name.prefix", "max": "1", "min": 0, "path": "SdcQuestionLibrary.name.prefix", "type": [ { "code": "string" } ], "label": "Prefix", "short": "n/a", "definition": "n/a" }, { "path": "SdcQuestionLibrary.name.first", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "First", "id": "SdcQuestionLibrary.name.first", "maxLength": 100 }, { "path": "SdcQuestionLibrary.name.last", "min": 0, "definition": "n/a", "short": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "Last", "id": "SdcQuestionLibrary.name.last", "maxLength": 100 } ] }, "contact": [ { "name": "HL7 International / FHIR Infrastructure", "telecom": [ { "value": "http://www.hl7.org/Special/committees/fiwg", "system": "url" } ] }, { "telecom": [ { "value": "http://www.hl7.org/Special/committees/fiwg", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base" }