{ "description": "An example library of questions showing how questions can be compiled into a library for use by modular questionnaires", "_filename": "StructureDefinition-sdc-question-library.json", "package_name": "hl7.fhir.uv.sdc", "date": "2022-02-16T19:40:22+11:00", "derivation": "specialization", "publisher": "HL7 International - FHIR Infrastructure Work Group", "fhirVersion": "4.0.1", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm" } ] } ], "name": "SDCQuestionLibrary", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" } ], "abstract": true, "type": "Demographics", "experimental": "true", "resourceType": "StructureDefinition", "title": "SDC Question Library", "package_version": "3.0.0-preview", "extension": [ { "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": [ { "path": "Demographics", "min": 0, "definition": "A set of questions related to demographics", "isModifier": false, "short": "Base Resource", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" } ], "max": "*", "id": "Demographics", "base": { "max": "*", "min": 0, "path": "Resource" }, "isSummary": false }, { "path": "Demographics.id", "min": 0, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "isModifier": false, "short": "Logical id of this artifact", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "max": "1", "id": "Demographics.id", "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "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())" } ], "path": "Demographics.meta", "min": 0, "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", "isModifier": false, "short": "Metadata about the resource", "type": [ { "code": "Meta" } ], "max": "1", "id": "Demographics.meta", "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "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())" } ], "path": "Demographics.implicitRules", "min": 0, "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", "isModifier": true, "short": "A set of rules under which this content was created", "type": [ { "code": "uri" } ], "max": "1", "id": "Demographics.implicitRules", "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary": true }, { "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())" } ], "path": "Demographics.language", "min": 0, "definition": "The base language in which the resource is written.", "isModifier": false, "short": "Language of the resource content", "type": [ { "code": "code" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/languages", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean": true } ], "description": "A human language." }, "max": "1", "id": "Demographics.language", "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "base": { "max": "1", "min": 0, "path": "Resource.language" }, "isSummary": false }, { "path": "Demographics.dob", "min": 0, "definition": "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": "Demographics.dob", "base": { "max": "1", "min": 0, "path": "Demographics.dob" } }, { "path": "Demographics.sex", "min": 0, "definition": "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": "Demographics.sex", "base": { "max": "1", "min": 0, "path": "Demographics.sex" } }, { "id": "Demographics.address", "max": "1", "min": 0, "base": { "max": "1", "min": 0, "path": "Demographics.address" }, "path": "Demographics.address", "type": [ { "code": "Element" } ], "label": "What is this person's current mailing address?", "definition": "n/a" }, { "id": "Demographics.address.street", "max": "1", "min": 0, "base": { "max": "1", "min": 0, "path": "Demographics.address.street" }, "path": "Demographics.address.street", "type": [ { "code": "string" } ], "label": "Street address", "definition": "n/a" }, { "id": "Demographics.address.city", "max": "1", "min": 0, "base": { "max": "1", "min": 0, "path": "Demographics.address.city" }, "path": "Demographics.address.city", "type": [ { "code": "string" } ], "label": "City/Town", "definition": "n/a" }, { "path": "Demographics.address.state", "min": 0, "definition": "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": "Demographics.address.state", "base": { "max": "1", "min": 0, "path": "Demographics.address.state" } }, { "path": "Demographics.address.postalCode", "min": 1, "definition": "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": "Demographics.address.postalCode", "base": { "max": "1", "min": 1, "path": "Demographics.address.postalCode" } }, { "id": "Demographics.name", "max": "1", "min": 0, "base": { "max": "1", "min": 0, "path": "Demographics.name" }, "path": "Demographics.name", "type": [ { "code": "Element" } ], "label": "What is the person's official name?", "definition": "n/a" }, { "id": "Demographics.name.prefix", "max": "1", "min": 0, "base": { "max": "1", "min": 0, "path": "Demographics.name.prefix" }, "path": "Demographics.name.prefix", "type": [ { "code": "string" } ], "label": "Prefix", "definition": "n/a" }, { "path": "Demographics.name.first", "min": 0, "definition": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "First", "id": "Demographics.name.first", "maxLength": 100, "base": { "max": "1", "min": 0, "path": "Demographics.name.first" } }, { "path": "Demographics.name.last", "min": 0, "definition": "n/a", "type": [ { "code": "string" } ], "max": "1", "label": "Last", "id": "Demographics.name.last", "maxLength": 100, "base": { "max": "1", "min": 0, "path": "Demographics.name.last" } } ] }, "status": "draft", "id": "f5317751-7f79-4a40-ad36-6e63b05be08c", "kind": "logical", "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library", "version": "3.0.0-preview", "differential": { "element": [ { "id": "Demographics", "path": "Demographics", "definition": "A set of questions related to demographics" }, { "path": "Demographics.dob", "min": 0, "definition": "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": "Demographics.dob" }, { "path": "Demographics.sex", "min": 0, "definition": "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": "Demographics.sex" }, { "id": "Demographics.address", "max": "1", "min": 0, "path": "Demographics.address", "type": [ { "code": "Element" } ], "label": "What is this person's current mailing address?", "definition": "n/a" }, { "id": "Demographics.address.street", "max": "1", "min": 0, "path": "Demographics.address.street", "type": [ { "code": "string" } ], "label": "Street address", "definition": "n/a" }, { "id": "Demographics.address.city", "max": "1", "min": 0, "path": "Demographics.address.city", "type": [ { "code": "string" } ], "label": "City/Town", "definition": "n/a" }, { "id": "Demographics.address.state", "max": "1", "min": 0, "path": "Demographics.address.state", "type": [ { "code": "code" } ], "label": "State", "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states" }, "definition": "n/a" }, { "id": "Demographics.address.postalCode", "max": "1", "min": 1, "path": "Demographics.address.postalCode", "type": [ { "code": "string", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "[\\d]{4}" } ] } ], "label": "Postal Code", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/entryFormat", "valueString": "9999" } ], "definition": "n/a" }, { "id": "Demographics.name", "max": "1", "min": 0, "path": "Demographics.name", "type": [ { "code": "Element" } ], "label": "What is the person's official name?", "definition": "n/a" }, { "id": "Demographics.name.prefix", "max": "1", "min": 0, "path": "Demographics.name.prefix", "type": [ { "code": "string" } ], "label": "Prefix", "definition": "n/a" }, { "id": "Demographics.name.first", "max": "1", "min": 0, "path": "Demographics.name.first", "type": [ { "code": "string" } ], "label": "First", "maxLength": 100, "definition": "n/a" }, { "id": "Demographics.name.last", "max": "1", "min": 0, "path": "Demographics.name.last", "type": [ { "code": "string" } ], "label": "Last", "maxLength": 100, "definition": "n/a" } ] }, "contact": [ { "telecom": [ { "value": "http://hl7.org/Special/committees/fiwg", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource" }