{ "description": "Defines additional capabilities for controlling data entry and calculating values within the questionnaire.", "_filename": "StructureDefinition-sdc-questionnaire-behave.json", "package_name": "hl7.fhir.uv.sdc", "date": "2024-12-17T01:55:34+00:00", "derivation": "constraint", "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": "SDCQuestionnaireBehave", "mapping": [ { "name": "IHE SDC", "identity": "ihe-sdc" }, { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Pattern", "identity": "workflow" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://hl7.org/fhir/object-implementation", "name": "Object Implementation Information", "identity": "objimpl" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "type": "Questionnaire", "experimental": null, "resourceType": "StructureDefinition", "title": "Advanced Behavior Questionnaire", "package_version": "4.0.0-ballot", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "fhir" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 4, "_valueInteger": { "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/StructureDefinition/structuredefinition-standards-status", "valueCode": "trial-use", "_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": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-3", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "xpath": "not(exists(f:contained/*/f:meta/f:security))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.security.empty()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "xpath": "exists(f:text/h:div)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." } ], "expression": "text.`div`.exists()" }, { "key": "que-0", "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation", "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "warning", "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')" }, { "key": "que-2", "human": "The link ids for groups and questions must be unique within the questionnaire", "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "descendants().linkId.isDistinct()" }, { "key": "cnl-0", "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation", "xpath": "not(f:name) or matches(f:name/@value, '^[A-Z]([A-Za-z0-9_]){1,254}$')", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "warning", "expression": "name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')" }, { "key": "sdc-2", "human": "If version is present, versionAlgorithm must be present.", "xpath": "not(exists(f:version)) or exists(f:extension[@url='http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]'])", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "error", "expression": "version.exists() implies extension.where(url='http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]').exists()" }, { "key": "sdc-3", "human": "Semver is the preferred version algorithm - package machinery doesn't work well with artifacts using alternate versioning schemes", "xpath": "not(f:extension[@url='http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]' and not(exists(f:valueCoding[f:system/@value='http://hl7.org/fhir/version-algorithm' and f:code/@value='semver'])))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true } ], "expression": "extension.where(url='http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]').all(value.ofType(Coding).where(system='http://hl7.org/fhir/version-algorithm' and code='semver').exists())" } ], "path": "Questionnaire", "min": 0, "definition": "Defines additional capabilities for controlling data entry and calculating values within the questionnaire.", "isModifier": false, "short": "Advanced Behavior Questionnaire", "mapping": [ { "map": "Form_Package", "identity": "ihe-sdc" }, { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "Definition", "identity": "workflow" }, { "map": "Observation[moodCode=DEF]", "identity": "rim" } ], "alias": [ "Form", "CRF", "Survey" ], "max": "*", "id": "Questionnaire", "base": { "max": "*", "min": 0, "path": "Questionnaire" }, "isSummary": false }, { "path": "Questionnaire.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": "id" } ] } ], "max": "1", "id": "Questionnaire.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": "Questionnaire.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": "Questionnaire.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": "Questionnaire.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": "Questionnaire.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": "Questionnaire.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" } ], "description": "A human language." }, "max": "1", "id": "Questionnaire.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 }, { "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": "Questionnaire.text", "min": 0, "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "isModifier": false, "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "Questionnaire.text", "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" }, "isSummary": false }, { "path": "Questionnaire.contained", "min": 0, "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "isModifier": false, "short": "Contained, inline Resources", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "Questionnaire.contained", "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" }, "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": "Questionnaire.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.extension", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "Optional Extension Element - found in all resources.", "isModifier": false, "short": "Optional Extensions Element", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]" ] } ], "mustSupport": true, "sliceName": "versionAlgorithm", "max": "1", "id": "Questionnaire.extension:versionAlgorithm", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "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": "Questionnaire.extension", "min": 0, "definition": "Optional Extension Element - found in all resources.", "isModifier": false, "short": "Optional Extensions Element", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.copyrightLabel" ] } ], "sliceName": "copyrightLabel", "max": "1", "id": "Questionnaire.extension:copyrightLabel", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "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": "Questionnaire.extension", "min": 0, "definition": "Indicates how questions within the questionnaire should be presented to the end-user. Specifically, differentiates whether the questions should be displayed one-at-a-time with no ability to adjust prior entries; one-at-a-time or continuously expanding where all questions up to the current question can be looked at and edited, or random, where all questions can be seen and the questions can be filled out in any order desired.", "isModifier": false, "short": "sequential | prior-edit | random", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode" ] } ], "mustSupport": true, "sliceName": "entryMode", "max": "*", "id": "Questionnaire.extension:entryMode", "comment": "The prior-edit functionality can be accomplished by adding questions to the screen as each subsequent question is answered (resulting in all questions being displayed in a single screen) or with a view that shows only one question at a time but allows backward navigation to view and/or edit prior answers.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "The base URL for the server to which questionnaire response associated with this questionnaire should be submitted. If multiple repetitions are present, the completed form should be sent to all listed endpoints.", "isModifier": false, "short": "Where to send answers", "mapping": [ { "map": "administrative_package/submissionRule/destination/endpoint", "identity": "ihe-sdc" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-endpoint" ] } ], "mustSupport": true, "sliceName": "submissionEndpoint", "max": "*", "id": "Questionnaire.extension:submissionEndpoint", "comment": "Indicates that the form has been designed with an expectation that it will be submitted to the specified URI. If multiple endpoints are specified, expectation is that answers are submitted to all endpoints.\n\nIf no end-point is specified, then the form is not exclusively designed to be submitted to a specific site. If and where the form needs to be submitted or how the form should be internally processed must be inferred from external context or system business rules.\n\nEndpoints may have expectations around authorization, etc. Some of this may be learned by consulting the CapabilityStatement associated with the endpoint.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "Indicates that a signature (of the specified type) is needed when completing the QuestionnaireResponse.", "isModifier": false, "short": "Is signature needed?", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ] } ], "sliceName": "signatureRequired", "max": "*", "id": "Questionnaire.extension:signatureRequired", "comment": "If this appears at the Questionnaire level, then the signature will be gathered for the entire form when it is marked complete. If it appears on a particular item, then it will be gathered on that question or group when it is filled in. (E.g. seeking the user's initials beside certain questions.)\n\nThe signature can be captured using the http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature extension. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#signatureRequired).", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "Specifies a constraint that is enforced on instantiated (or target) resources. This extension can be applied to definitional resources (such as ActivityDefinition or Measure) and indicates that the constraint should be enforced on resources that are instantiated from the definition.", "isModifier": false, "short": "A constraint on the target resource", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/targetConstraint" ] } ], "sliceName": "constraint", "max": "*", "id": "Questionnaire.extension:constraint", "comment": "Can be used on any definitional artifact to define a constraint that is enforced in the context of an instantiated resource. The constraint expression will have access to `%target` and `%definition` variables, where target is the instantiated resource, and definition is the definition used to instantiate.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "A reference to a library containing cql used in this Questionnaire.", "isModifier": false, "short": "A library containing logic used by the artifact", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-library" ] } ], "sliceName": "library", "max": "*", "id": "Questionnaire.extension:library", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-library).", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "min": 0, "definition": "Resources that provide context for form processing logic (pre-population, flow-control, drop-down selection, etc.) when creating/displaying/editing a QuestionnaireResponse.", "isModifier": false, "short": "Context resources needed for Questionnaire", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" ] } ], "sliceName": "launchContext", "max": "*", "id": "Questionnaire.extension:launchContext", "comment": "3 of these launch contexts are aligned with the existing SMART on FHIR \"launch\" contexts.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.extension", "requirements": "Allows variables to be calculated higher in the context of a QuestionnaireResponse for use with enableWhen-expression.", "min": 0, "definition": "Variable specifying a logic to generate a variable for use in subsequent logic. The name of the variable will be added to FHIRPath's context when processing descendants of the element that contains this extension as well as extensions within the same element.", "isModifier": false, "short": "Variable for processing", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/variable" ] } ], "sliceName": "variable", "max": "*", "id": "Questionnaire.extension:variable", "comment": "Ordering of variable extension declarations is significant as variables declared in one repetition of this extension might be used in subsequent extension repetitions\n\nFor questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#variable).", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "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": "Questionnaire.modifierExtension", "min": 0, "definition": "An Extension", "isModifier": true, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.modifierExtension", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", "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": "Questionnaire.modifierExtension", "min": 0, "definition": "Indicates an extension that must be supported by the system presenting the instance for data capture or end-user consumption. If a system does not recognize the extension or cannot implement the functionality defined by the extension, it should display an error message or warning and refrain from presenting the instance to the user or using it when capturing data.", "isModifier": true, "short": "Extension that must be supported", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-rendering-criticalExtension" ] } ], "mustSupport": true, "sliceName": "rendering-criticalExtension", "max": "*", "id": "Questionnaire.modifierExtension:rendering-criticalExtension", "condition": [ "ele-1" ], "comment": "This may point to extensions that control the appearance of data elements, control what value elements have, what elements are or are not available, what elements can or cannot be edited, or rules about how editing may occur. This extension does NOT apply when simply rendering a resource for publication purposes or for other purposes not intended for end-user data capture or data consumption.", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Indicates that the Questionnaire can't be safely rendered in certain situations" }, { "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": "cnl-1", "human": "Warning\tQuestionnaire.url\tURL should not contain | or # - these characters make processing canonical references problematic", "xpath": "not(@value) or matches(@value, '^[^|# ]+$')", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "warning", "expression": "exists() implies matches('^[^|# ]+$')" } ], "path": "Questionnaire.url", "requirements": "… This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for.", "min": 0, "definition": "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.", "isModifier": false, "short": "Canonical identifier for this questionnaire, represented as a URI (globally unique)", "mapping": [ { "map": "Definition.url", "identity": "workflow" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": ".identifier[scope=BUSN;reliability=ISS]", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "Questionnaire.url", "comment": "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.", "base": { "max": "1", "min": 0, "path": "Questionnaire.url" }, "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": "Questionnaire.identifier", "requirements": "Allows externally provided and/or usable business identifiers to be easily associated with the module.", "min": 0, "definition": "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.", "isModifier": false, "short": "Additional identifier for the questionnaire", "mapping": [ { "map": "Definition.identifier", "identity": "workflow" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": ".identifier", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "Identifier" } ], "max": "*", "id": "Questionnaire.identifier", "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.", "base": { "max": "*", "min": 0, "path": "Questionnaire.identifier" }, "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": "Questionnaire.version", "min": 0, "definition": "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", "isModifier": false, "short": "Business version of the questionnaire", "mapping": [ { "map": "Not currently in schema", "identity": "ihe-sdc" }, { "map": "Definition.version", "identity": "workflow" }, { "map": "FiveWs.version", "identity": "w5" }, { "map": "N/A (to add?)", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "Questionnaire.version", "comment": "There may be different questionnaire instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format [url]|[version].", "base": { "max": "1", "min": 0, "path": "Questionnaire.version" }, "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": "Questionnaire.name", "requirements": "Support human navigation and code generation.", "min": 0, "definition": "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.", "isModifier": false, "short": "Name for this questionnaire (computer friendly)", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "Questionnaire.name", "condition": [ "inv-0" ], "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.", "base": { "max": "1", "min": 0, "path": "Questionnaire.name" }, "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": "Questionnaire.title", "min": 0, "definition": "A short, descriptive, user-friendly title for the questionnaire.", "isModifier": false, "short": "Name for this questionnaire (human friendly)", "mapping": [ { "map": "Definition.title", "identity": "workflow" }, { "map": ".title", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "max": "1", "id": "Questionnaire.title", "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.", "base": { "max": "1", "min": 0, "path": "Questionnaire.title" }, "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": "Questionnaire.derivedFrom", "requirements": "Allows a Questionnaire to be created based on another Questionnaire.", "min": 0, "definition": "The URL of a Questionnaire that this Questionnaire is based on.", "isModifier": false, "short": "Instantiates protocol or definition", "mapping": [ { "map": "Definition.derivedFrom", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=DRIV].target[classCode=OBS, moodCode=DEFN]", "identity": "rim" } ], "type": [ { "code": "canonical", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Questionnaire" ] } ], "max": "*", "id": "Questionnaire.derivedFrom", "base": { "max": "*", "min": 0, "path": "Questionnaire.derivedFrom" }, "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())" } ], "path": "Questionnaire.status", "min": 1, "definition": "The status of this questionnaire. Enables tracking the life-cycle of the content.", "isModifier": true, "short": "draft | active | retired | unknown", "mapping": [ { "map": "./administration_package/registration/state/registration_status", "identity": "ihe-sdc" }, { "map": "Definition.status", "identity": "workflow" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": ".status", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "PublicationStatus" } ], "description": "The lifecycle status of an artifact." }, "max": "1", "id": "Questionnaire.status", "comment": "Allows filtering of questionnaires that are appropriate for use versus not.", "base": { "max": "1", "min": 1, "path": "Questionnaire.status" }, "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration", "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": "Questionnaire.experimental", "requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire.", "min": 0, "definition": "A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", "isModifier": false, "short": "For testing purposes, not real usage", "mapping": [ { "map": "Definition.experimental", "identity": "workflow" }, { "map": "FiveWs.class", "identity": "w5" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "max": "1", "id": "Questionnaire.experimental", "comment": "Allows filtering of questionnaires that are appropriate for use versus not.", "base": { "max": "1", "min": 0, "path": "Questionnaire.experimental" }, "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": "Questionnaire.subjectType", "min": 0, "definition": "The types of subjects that can be the subject of responses created for the questionnaire.", "isModifier": false, "short": "Resource that can be subject of QuestionnaireResponse", "mapping": [ { "map": "Definition.subject[x]", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "ResourceType" } ], "description": "One of the resource types defined as part of this version of FHIR." }, "max": "*", "id": "Questionnaire.subjectType", "comment": "If none are specified, then the subject is unlimited.", "base": { "max": "*", "min": 0, "path": "Questionnaire.subjectType" }, "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": "Questionnaire.date", "min": 0, "definition": "The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes.", "isModifier": false, "short": "Date last changed", "mapping": [ { "map": "Definition.date", "identity": "workflow" }, { "map": "FiveWs.recorded", "identity": "w5" }, { "map": ".participation[typeCode=AUT].time", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "alias": [ "Revision Date" ], "max": "1", "id": "Questionnaire.date", "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.", "base": { "max": "1", "min": 0, "path": "Questionnaire.date" }, "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": "Questionnaire.publisher", "requirements": "Helps establish the \"authority/credibility\" of the questionnaire. May also allow for contact.", "min": 0, "definition": "The name of the organization or individual that published the questionnaire.", "isModifier": false, "short": "Name of the publisher (organization or individual)", "mapping": [ { "map": "Definition.publisher", "identity": "workflow" }, { "map": "FiveWs.witness", "identity": "w5" }, { "map": ".participation[typeCode=AUT].role", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "Questionnaire.publisher", "comment": "Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the questionnaire. This item SHOULD be populated unless the information is available from context.", "base": { "max": "1", "min": 0, "path": "Questionnaire.publisher" }, "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": "Questionnaire.contact", "min": 0, "definition": "Contact details to assist a user in finding and communicating with the publisher.", "isModifier": false, "short": "Contact details for the publisher", "mapping": [ { "map": "Definition.contact", "identity": "workflow" }, { "map": ".participation[typeCode=CALLBCK].role", "identity": "rim" } ], "type": [ { "code": "ContactDetail" } ], "max": "*", "id": "Questionnaire.contact", "comment": "May be a web site, an email address, a telephone number, etc.", "base": { "max": "*", "min": 0, "path": "Questionnaire.contact" }, "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": "Questionnaire.description", "min": 0, "definition": "A free text natural language description of the questionnaire from a consumer's perspective.", "isModifier": false, "short": "Natural language description of the questionnaire", "mapping": [ { "map": "Definition.description", "identity": "workflow" }, { "map": ".text", "identity": "rim" } ], "type": [ { "code": "markdown" } ], "max": "1", "id": "Questionnaire.description", "comment": "This description can be used to capture details such as why the questionnaire was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the questionnaire is presumed to be the predominant language in the place the questionnaire was created).", "base": { "max": "1", "min": 0, "path": "Questionnaire.description" }, "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())" } ], "path": "Questionnaire.useContext", "requirements": "Assist in searching for appropriate content.", "min": 0, "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaire instances.", "isModifier": false, "short": "The context that the content is intended to support", "mapping": [ { "map": "Definition.useContext", "identity": "workflow" }, { "map": "N/A (to add?)", "identity": "rim" } ], "type": [ { "code": "UsageContext" } ], "max": "*", "id": "Questionnaire.useContext", "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.", "base": { "max": "*", "min": 0, "path": "Questionnaire.useContext" }, "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": "Questionnaire.jurisdiction", "min": 0, "definition": "A legal or geographic region in which the questionnaire is intended to be used.", "isModifier": false, "short": "Intended jurisdiction for questionnaire (if applicable)", "mapping": [ { "map": "Definition.jurisdiction", "identity": "workflow" }, { "map": "N/A (to add?)", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Jurisdiction" } ], "description": "Countries and regions within which this artifact is targeted for use." }, "max": "*", "id": "Questionnaire.jurisdiction", "comment": "It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.", "base": { "max": "*", "min": 0, "path": "Questionnaire.jurisdiction" }, "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": "Questionnaire.purpose", "min": 0, "definition": "Explanation of why this questionnaire is needed and why it has been designed as it has.", "isModifier": false, "short": "Why this questionnaire is defined", "mapping": [ { "map": "Definition.purpose", "identity": "workflow" }, { "map": "FiveWs.why[x]", "identity": "w5" }, { "map": ".reasonCode.text", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "markdown" } ], "max": "1", "id": "Questionnaire.purpose", "comment": "This element does not describe the usage of the questionnaire. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this questionnaire.", "base": { "max": "1", "min": 0, "path": "Questionnaire.purpose" }, "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())" } ], "path": "Questionnaire.copyright", "requirements": "Consumers must be able to determine any legal restrictions on the use of the questionnaire and/or its content.", "min": 0, "definition": "A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire.", "isModifier": false, "short": "Use and/or publishing restrictions", "mapping": [ { "map": "Definition.copyright", "identity": "workflow" }, { "map": "N/A (to add?)", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "markdown" } ], "alias": [ "License", "Restrictions" ], "max": "1", "id": "Questionnaire.copyright", "base": { "max": "1", "min": 0, "path": "Questionnaire.copyright" }, "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())" } ], "path": "Questionnaire.approvalDate", "min": 0, "definition": "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", "isModifier": false, "short": "When the questionnaire was approved by publisher", "mapping": [ { "map": "Definition.approvalDate", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "date" } ], "max": "1", "id": "Questionnaire.approvalDate", "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.", "base": { "max": "1", "min": 0, "path": "Questionnaire.approvalDate" }, "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())" } ], "path": "Questionnaire.lastReviewDate", "requirements": "Gives a sense of how \"current\" the content is. Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.", "min": 0, "definition": "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", "isModifier": false, "short": "When the questionnaire was last reviewed", "mapping": [ { "map": "Definition.lastReviewDate", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "date" } ], "max": "1", "id": "Questionnaire.lastReviewDate", "comment": "If specified, this date follows the original approval date.", "base": { "max": "1", "min": 0, "path": "Questionnaire.lastReviewDate" }, "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())" } ], "path": "Questionnaire.effectivePeriod", "requirements": "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting process when new versions of the questionnaire are or are expected to be used instead.", "min": 0, "definition": "The period during which the questionnaire content was or is planned to be in active use.", "isModifier": false, "short": "When the questionnaire is expected to be used", "mapping": [ { "map": "Definition.effectivePeriod", "identity": "workflow" }, { "map": "N/A (to add?)", "identity": "rim" }, { "map": "no-gen-base", "identity": "objimpl" } ], "type": [ { "code": "Period" } ], "max": "1", "id": "Questionnaire.effectivePeriod", "comment": "The effective period for a questionnaire determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.", "base": { "max": "1", "min": 0, "path": "Questionnaire.effectivePeriod" }, "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": "Questionnaire.code", "requirements": "Allows linking of the complete Questionnaire resources to formal terminologies. It's common for \"panels\" of questions to be identified by a code.", "min": 0, "definition": "An identifier for this question or group of questions in a particular terminology such as LOINC.", "isModifier": false, "short": "Concept that represents the overall questionnaire", "mapping": [ { "map": ".code", "identity": "rim" } ], "type": [ { "code": "Coding" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireConcept" } ], "description": "Codes for questionnaires, groups and individual questions." }, "max": "*", "id": "Questionnaire.code", "base": { "max": "*", "min": 0, "path": "Questionnaire.code" }, "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())" }, { "key": "que-1", "human": "Group items must have nested items, display items cannot have nested items", "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())" }, { "key": "que-3", "human": "Display items cannot have a \"code\" asserted", "xpath": "not(f:type/@value='display' and f:code)", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "type!='display' or code.empty()" }, { "key": "que-4", "human": "A question cannot have both answerOption and answerValueSet", "xpath": "not(f:answerValueSet and f:answerOption)", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "answerOption.empty() or answerValueSet.empty()" }, { "key": "que-5", "human": "Only 'choice' and 'open-choice' items can have answerValueSet", "xpath": "f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "(type ='choice' or type = 'open-choice' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())" }, { "key": "que-6", "human": "Required and repeat aren't permitted for display items", "xpath": "not(f:type/@value='display' and (f:required or f:repeats))", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "type!='display' or (required.empty() and repeats.empty())" }, { "key": "que-8", "human": "Initial values can't be specified for groups or display items", "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "(type!='group' and type!='display') or initial.empty()" }, { "key": "que-9", "human": "Read-only can't be specified for \"display\" items", "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "type!='display' or readOnly.empty()" }, { "key": "que-10", "human": "Maximum length can only be declared for simple question types", "xpath": "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()" }, { "key": "que-11", "human": "If one or more answerOption is present, initial[x] must be missing", "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "answerOption.empty() or initial.empty()" }, { "key": "que-12", "human": "If there are more than one enableWhen, enableBehavior must be specified", "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "enableWhen.count() > 2 implies enableBehavior.exists()" }, { "key": "que-13", "human": "Can only have multiple initial values for repeating items", "xpath": "f:repeats/@value='true' or count(f:initial)<=1", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "repeats=true or initial.count() <= 1" }, { "key": "sdc-1", "human": "An item cannot have an answerExpression if answerOption or answerValueSet is already present.", "xpath": "f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression'] and (not(f:answerOption) and not(f:answerValueSet))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "error", "expression": "extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression').empty().not() implies (answerOption.empty() and answerValueSet.empty())" }, { "key": "que-1a", "human": "Group items must have nested items when Questionanire is complete", "xpath": "not(f:type/@value='group' and ancestor::f:Questionnaire/f:status/@value='complete') or exists(f:item)", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "error", "expression": "(type='group' and %resource.status='complete') implies item.empty().not()" }, { "key": "que-1b", "human": "Groups should have items", "xpath": "not(f:type='group') or exists(f:item)", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "warning", "expression": "type='group' implies item.empty().not()" }, { "key": "que-1c", "human": "Display items cannot have child items", "xpath": "not(f:type/@value='display') or not(exists(f:item))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "error", "expression": "type='display' implies item.empty()" }, { "key": "que-14", "human": "Can only have answerConstraint if answerOption, answerValueSet, or answerExpression are present. (This is a warning because other extensions may serve the same purpose)", "xpath": "not(exists(f:extension[@url='http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.answerConstraint'])) or exists(f:answerOption) or exists(f:answerValueSet) or exists(f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression'])", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "warning", "expression": "extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.answerConstraint').exists() implies answerOption.exists() or answerValueSet.exists() or extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression').exists()" }, { "key": "sdc-behave-2", "human": "An item cannot have both enableWhen and enableWhenExpression", "xpath": "not(exists(f:enableWhen) and exists(f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression']))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "error", "expression": "enableWhen.empty() or extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression').empty()" }, { "key": "sdc-behave-1", "human": "An item cannot have both initial.value and initialExpression", "xpath": "not(exists(f:initial) and exists(f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression']))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "error", "expression": "initial.empty() or extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression').empty()" }, { "key": "sdc-behave-3", "human": "For items of type 'quantity', it is best practice to include either a 'unitOption' or 'unitValueSet' extension to provide a list of valid units.", "xpath": "(f:type/@value = 'quantity' implies (count(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption']) > 0 or count(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet']) > 0)) and not(.//f:item[f:type/@value = 'quantity' and not(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption'] or f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet'])])", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true } ], "expression": "(type = 'quantity' implies (extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption').exists() or extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet').exists())) and (repeat(item).where(type = 'quantity')).all(extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption').exists() or extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet').exists())" } ], "path": "Questionnaire.item", "min": 0, "definition": "A particular question, question grouping or display text that is part of the questionnaire.", "isModifier": false, "short": "Questions and sections within the Questionnaire", "mapping": [ { "map": "./form_design/*[self::header or self::footer or self::section]", "identity": "ihe-sdc" }, { "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "max": "*", "id": "Questionnaire.item", "condition": [ "que-3" ], "comment": "The content of the questionnaire is constructed from an ordered, hierarchical collection of items.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item" }, "isSummary": false }, { "path": "Questionnaire.item.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": "Questionnaire.item.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": "Questionnaire.item.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension", "min": 0, "definition": "If true, indicates that the extended item should not be displayed to the user.", "isModifier": false, "short": "Don't display to user", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden" ] } ], "mustSupport": true, "sliceName": "hidden", "max": "1", "id": "Questionnaire.item.extension:hidden", "comment": "If an item is hidden, all descendant items are hidden as well. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/rendering.html#hidden).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "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": "Questionnaire.item.extension", "min": 0, "definition": "Optional Extension Element - found in all resources.", "isModifier": false, "short": "Optional Extensions Element", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.answerConstraint" ] } ], "sliceName": "answerConstraint", "max": "1", "id": "Questionnaire.item.extension:answerConstraint", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "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": "Questionnaire.item.extension", "min": 0, "definition": "Optional Extension Element - found in all resources.", "isModifier": false, "short": "Optional Extensions Element", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay" ] } ], "sliceName": "disabledDisplay", "max": "1", "id": "Questionnaire.item.extension:disabledDisplay", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "An expression (FHIRPath, CQL or FHIR Query) that resolves to a list of permitted answers for the question item or that establishes context for a group item. The user may select from among the list to choose answers for the question.", "isModifier": false, "short": "Expression for possible answers", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression" ] } ], "mustSupport": true, "sliceName": "answerExpression", "max": "1", "id": "Questionnaire.item.extension:answerExpression", "comment": "This is only permitted when the containing item does NOT have any answerOption or answerValueSet elements. The results of the expression must correspond to the item type of the question the element appears on or must correspond to a resource, backbone element or complex data type for a group item. Resources are considered a match for the Reference item type. Quantity can be a match for decimal and integer items so long as a questionnaire-unit extension is present. If the result of an expression returns a code or codes, it **SHALL** return the results as Coding, not code or CodeableConcept.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Identifies that the specified element should only appear in certain \"modes\" of operation.", "isModifier": false, "short": "capture | display | display-non-empty | capture-display | capture-display-non-empty", "mapping": [ { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-usageMode" ] } ], "mustSupport": true, "sliceName": "usageMode", "max": "1", "id": "Questionnaire.item.extension:usageMode", "comment": "See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#usageMode).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Indicates that a signature (of the specified type) is needed when completing the QuestionnaireResponse.", "isModifier": false, "short": "Is signature needed?", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ] } ], "sliceName": "itemSignatureRequired", "max": "*", "id": "Questionnaire.item.extension:itemSignatureRequired", "comment": "If this appears at the Questionnaire level, then the signature will be gathered for the entire form when it is marked complete. If it appears on a particular item, then it will be gathered on that question or group when it is filled in. (E.g. seeking the user's initials beside certain questions.)\n\nThe signature can be captured using the http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature extension. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#signatureRequired).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The minimum number of times the group must appear, or the minimum number of answers for a question - when greater than 1.", "isModifier": false, "short": "Minimum repetitions", "mapping": [ { "map": "./cardinality/minimum", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs" ] } ], "mustSupport": true, "sliceName": "itemMinOccurs", "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs", "comment": "Default assumption for \"required\" elements is minOccurs=1. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#minOccurs).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "id" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:itemMinOccurs.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "integer" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs.value[x]", "condition": [ "ext-1" ], "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.extension:itemMinOccurs.value[x].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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.extension:itemMinOccurs.value[x].extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "itemMinOccursExpression", "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs.value[x].extension:itemMinOccursExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.extension.value[x].value", "min": 0, "definition": "The actual value", "minValueInteger": -2147483648, "isModifier": false, "short": "Primitive value for integer", "type": [ { "code": "http://hl7.org/fhirpath/System.Integer", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "integer" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "-?([0]|([1-9][0-9]*))" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMinOccurs.value[x].value", "maxValueInteger": 2147483647, "base": { "max": "1", "min": 0, "path": "integer.value" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The maximum number of times the group must appear, or the maximum number of answers for a question - when greater than 1 and not unlimited.", "isModifier": false, "short": "Maximum repetitions", "mapping": [ { "map": "./cardinality/maximum", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs" ] } ], "mustSupport": true, "sliceName": "itemMaxOccurs", "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs", "comment": "Only relevant if the element has repeats=true and there's a need to constrain the number of allowed repetitions. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#maxOccurs).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "id" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:itemMaxOccurs.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "integer" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs.value[x]", "condition": [ "ext-1" ], "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.extension:itemMaxOccurs.value[x].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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.extension:itemMaxOccurs.value[x].extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "itemMaxOccursExpression", "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs.value[x].extension:itemMaxOccursExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.extension.value[x].value", "min": 0, "definition": "The actual value", "minValueInteger": -2147483648, "isModifier": false, "short": "Primitive value for integer", "type": [ { "code": "http://hl7.org/fhirpath/System.Integer", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "integer" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "-?([0]|([1-9][0-9]*))" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:itemMaxOccurs.value[x].value", "maxValueInteger": 2147483647, "base": { "max": "1", "min": 0, "path": "integer.value" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The minimum number of characters that must be present in the simple data type to be considered a \"valid\" instance.", "isModifier": false, "short": "At least this many characters", "mapping": [ { "map": "./*_Field/datatype/string/maximum_characters", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/minLength" ] } ], "mustSupport": true, "sliceName": "minLength", "max": "1", "id": "Questionnaire.item.extension:minLength", "comment": "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#minLength).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "A regular expression that defines the syntax for the data element to be considered valid.", "isModifier": false, "short": "Regular expression pattern", "mapping": [ { "map": "./*_Field/datatype/string/reg_ex", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/regex" ] } ], "mustSupport": true, "sliceName": "regex", "max": "1", "id": "Questionnaire.item.extension:regex", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The inclusive lower bound on the range of allowed values for the data element.", "isModifier": false, "short": "Must be >= this value", "mapping": [ { "map": "./*_Field/datatype/[integer|decimal]/minimum_value", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/minValue" ] } ], "mustSupport": true, "sliceName": "minValue", "max": "1", "id": "Questionnaire.item.extension:minValue", "comment": "Data type specified must be the same as the data type for the data element. For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#minValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "id" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:minValue.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:minValue.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/StructureDefinition/minValue", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:minValue.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "Quantity" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:minValue.value[x]", "condition": [ "ext-1" ], "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:minValue.value[x].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": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:minValue.value[x].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 }, { "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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that determines a calculated value. The expression may be simply the name of a expression in a referenced library, or it may be a complete inline expression.", "isModifier": false, "short": "A calculated value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "minValueCalculated", "max": "1", "id": "Questionnaire.item.extension:minValue.value[x].extension:minValueCalculated", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-calculatedValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The inclusive upper bound on the range of allowed values for the data element.", "isModifier": false, "short": "Must be <= this value", "mapping": [ { "map": "./*_Field/datatype/[integer|decimal]/maximum_value", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxValue" ] } ], "mustSupport": true, "sliceName": "maxValue", "max": "1", "id": "Questionnaire.item.extension:maxValue", "comment": "Data type specified must be the same as the data type for the data element. For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#maxValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "id" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:maxValue.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:maxValue.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/StructureDefinition/maxValue", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:maxValue.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "Quantity" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:maxValue.value[x]", "condition": [ "ext-1" ], "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:maxValue.value[x].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": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:maxValue.value[x].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 }, { "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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that determines a calculated value. The expression may be simply the name of a expression in a referenced library, or it may be a complete inline expression.", "isModifier": false, "short": "A calculated value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "maxValueCalculated", "max": "1", "id": "Questionnaire.item.extension:maxValue.value[x].extension:maxValueCalculated", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-calculatedValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "The inclusive lower bound on the range of allowed values for a 'quantity' type question. Open Issue: Revisit whether this should be folded into the regular minValue extension once there are better capabilities around defining conformance expectations regarding extensions.", "isModifier": false, "short": "Must be >= this value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-minQuantity" ] } ], "mustSupport": false, "sliceName": "minQuantity", "max": "1", "id": "Questionnaire.item.extension:minQuantity", "comment": "This must only be used if the set of permitted units is constrained to UCUM codes and the minimum checks will be performed by converting the answer.valueQuantity to the same units as the minQuantity unit prior to comparison.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "Questionnaire.item.extension:minQuantity.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": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:minQuantity.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-minQuantity", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:minQuantity.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "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())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 0, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Quantity" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x]", "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:minQuantity.value[x].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": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:minQuantity.value[x].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 }, { "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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that determines a calculated value. The expression may be simply the name of a expression in a referenced library, or it may be a complete inline expression.", "isModifier": false, "short": "A calculated value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "minQuantityCalculated", "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].extension:minQuantityCalculated", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-calculatedValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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())" } ], "path": "Questionnaire.item.extension.value[x].value", "requirements": "Precision is handled implicitly in almost all cases of measurement.", "min": 0, "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", "isModifier": false, "short": "Numerical value (with implicit precision)", "mapping": [ { "map": "SN.2 / CQ - N/A", "identity": "v2" }, { "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].value", "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", "base": { "max": "1", "min": 0, "path": "Quantity.value" }, "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": "Questionnaire.item.extension.value[x].comparator", "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", "min": 0, "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.", "isModifier": true, "short": "< | <= | >= | > - how to understand the value", "mapping": [ { "map": "SN.1 / CQ.1", "identity": "v2" }, { "map": "IVL properties", "identity": "rim" } ], "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuantityComparator" } ], "description": "How the Quantity should be understood and represented." }, "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].comparator", "base": { "max": "1", "min": 0, "path": "Quantity.comparator" }, "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value", "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": "Questionnaire.item.extension.value[x].unit", "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", "min": 0, "definition": "A human-readable form of the unit.", "isModifier": false, "short": "Unit representation", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "PQ.unit", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].unit", "base": { "max": "1", "min": 0, "path": "Quantity.unit" }, "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": "Questionnaire.item.extension.value[x].system", "requirements": "Need to know the system that defines the coded form of the unit.", "min": 0, "definition": "The identification of the system that provides the coded form of the unit.", "isModifier": false, "short": "System that defines coded unit form", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "CO.codeSystem, PQ.translation.codeSystem", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].system", "condition": [ "qty-3" ], "base": { "max": "1", "min": 0, "path": "Quantity.system" }, "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": "Questionnaire.item.extension.value[x].code", "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", "min": 0, "definition": "A computer processable form of the unit in some unit representation system.", "isModifier": false, "short": "Coded form of the unit", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "PQ.code, MO.currency, PQ.translation.code", "identity": "rim" } ], "type": [ { "code": "code" } ], "max": "1", "id": "Questionnaire.item.extension:minQuantity.value[x].code", "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", "base": { "max": "1", "min": 0, "path": "Quantity.code" }, "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())" }, { "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": "Questionnaire.item.extension", "min": 0, "definition": "The inclusive upper bound on the range of allowed values for a 'quantity' type question. Open Issue: Revisit whether this should be folded into the regular maxValue extension once there are better capabilities around defining conformance expectations regarding extensions.", "isModifier": false, "short": "Must be <= this value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-maxQuantity" ] } ], "mustSupport": false, "sliceName": "maxQuantity", "max": "1", "id": "Questionnaire.item.extension:maxQuantity", "comment": "This must only be used if the set of permitted units is constrained to UCUM codes and the maximum checks will be performed by converting the answer.valueQuantity to the same units as the maxQuantity unit prior to comparison.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.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": "Questionnaire.item.extension:maxQuantity.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": "Questionnaire.item.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "Questionnaire.item.extension:maxQuantity.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Questionnaire.item.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-maxQuantity", "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": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.extension:maxQuantity.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "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())" } ], "path": "Questionnaire.item.extension.value[x]", "min": 0, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Quantity" } ], "mustSupport": false, "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x]", "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false }, { "path": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:maxQuantity.value[x].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": "Questionnaire.item.extension.value[x].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": "Questionnaire.item.extension:maxQuantity.value[x].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 }, { "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": "Questionnaire.item.extension.value[x].extension", "min": 0, "definition": "An expression that determines a calculated value. The expression may be simply the name of a expression in a referenced library, or it may be a complete inline expression.", "isModifier": false, "short": "A calculated value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "maxQuantityCalculated", "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].extension:maxQuantityCalculated", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-calculatedValue).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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())" } ], "path": "Questionnaire.item.extension.value[x].value", "requirements": "Precision is handled implicitly in almost all cases of measurement.", "min": 0, "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", "isModifier": false, "short": "Numerical value (with implicit precision)", "mapping": [ { "map": "SN.2 / CQ - N/A", "identity": "v2" }, { "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].value", "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", "base": { "max": "1", "min": 0, "path": "Quantity.value" }, "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": "Questionnaire.item.extension.value[x].comparator", "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", "min": 0, "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.", "isModifier": true, "short": "< | <= | >= | > - how to understand the value", "mapping": [ { "map": "SN.1 / CQ.1", "identity": "v2" }, { "map": "IVL properties", "identity": "rim" } ], "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuantityComparator" } ], "description": "How the Quantity should be understood and represented." }, "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].comparator", "base": { "max": "1", "min": 0, "path": "Quantity.comparator" }, "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value", "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": "Questionnaire.item.extension.value[x].unit", "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", "min": 0, "definition": "A human-readable form of the unit.", "isModifier": false, "short": "Unit representation", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "PQ.unit", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].unit", "base": { "max": "1", "min": 0, "path": "Quantity.unit" }, "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": "Questionnaire.item.extension.value[x].system", "requirements": "Need to know the system that defines the coded form of the unit.", "min": 0, "definition": "The identification of the system that provides the coded form of the unit.", "isModifier": false, "short": "System that defines coded unit form", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "CO.codeSystem, PQ.translation.codeSystem", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].system", "condition": [ "qty-3" ], "base": { "max": "1", "min": 0, "path": "Quantity.system" }, "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": "Questionnaire.item.extension.value[x].code", "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", "min": 0, "definition": "A computer processable form of the unit in some unit representation system.", "isModifier": false, "short": "Coded form of the unit", "mapping": [ { "map": "(see OBX.6 etc.) / CQ.2", "identity": "v2" }, { "map": "PQ.code, MO.currency, PQ.translation.code", "identity": "rim" } ], "type": [ { "code": "code" } ], "max": "1", "id": "Questionnaire.item.extension:maxQuantity.value[x].code", "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", "base": { "max": "1", "min": 0, "path": "Quantity.code" }, "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())" }, { "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": "Questionnaire.item.extension", "min": 0, "definition": "Identifies the maximum number of decimal places that may be specified for the data element.", "isModifier": false, "short": "Maximum digits after decimal", "mapping": [ { "map": "./*_Field/datatype/decimal/fractionDigits", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces" ] } ], "mustSupport": true, "sliceName": "maxDecimalPlaces", "max": "1", "id": "Questionnaire.item.extension:maxDecimalPlaces", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#maxDecimalPlaces).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Identifies the kind(s) of attachment allowed to be sent for an element.", "isModifier": false, "short": "Type of attachment", "mapping": [ { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/mimeType" ] } ], "mustSupport": true, "sliceName": "mimeType", "max": "*", "id": "Questionnaire.item.extension:mimeType", "comment": "This extension only has meaning if the element has a type of Attachment. For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#mimeType).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "For attachment answers, indicates the maximum size in bytes an attachment can be.", "isModifier": false, "short": "Max size in bytes", "mapping": [ { "map": "N/A", "identity": "v2" }, { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxSize" ] } ], "sliceName": "maxSize", "max": "1", "id": "Questionnaire.item.extension:maxSize", "comment": "This extension only has meaning if the element has a type of Attachment. For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#maxSize).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "A complex expression that provides a list of the allowed options that should be enabled or disabled based on the evaluation of a provided expression. It allows toggling of allowed answers based on context, including the answers provided to other expressions.", "isModifier": false, "short": "Expression constraining allowed answers", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression" ] } ], "mustSupport": true, "sliceName": "answerOptionsToggleExpression", "max": "*", "id": "Questionnaire.item.extension:answerOptionsToggleExpression", "comment": "For example, this allows a list of conditions to be modified based on the gender of the patient", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "A unit that the user may choose when providing a quantity value.", "isModifier": false, "short": "Unit choice", "mapping": [ { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption" ] } ], "mustSupport": true, "sliceName": "unitOption", "max": "*", "id": "Questionnaire.item.extension:unitOption", "comment": "Provide either unitOption(s) or unitValueSet. If either of the extensions are present, the units for a Quantity element are constrained to only the units listed by the extensions - i.e. it is treated as a \"required\", not an \"extensible\" binding. In the absence of either, any unit is valid. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#unitOption). If this extension present and an answer is provided for the question item in the QuestionnaireResponse, then the valueQuantity **SHALL** have a Quantity.code and Quantity.system that match the Coding.code and system of one of the allowed values if the Coding has a code and/or system. If the Coding only has a display, then the Quantity.unit must match. (Note that Coding with only a display is strongly discouraged.) If there is a match on code and system, but no match on display/unit, systems MAY raise a warning. However, because of translation and bandwidth considerations, some systems **MAY** opt to drop the unit or express it in an alternate language.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "A set of units that the user may choose when providing a quantity value.", "isModifier": false, "short": "Unit choices", "mapping": [ { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet" ] } ], "mustSupport": true, "sliceName": "unitValueSet", "max": "1", "id": "Questionnaire.item.extension:unitValueSet", "comment": "Provide either unitOption(s) or unitValueSet. If either of the extensions are present, the units for a Quantity element are constrained to only the units listed by the extensions - i.e. it is treated as a \"required\", not an \"extensible\" binding. In the absence of either, any unit is valid. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior#unitValusSet). If this extension present and an answer is provided for the question item in the QuestionnaireResponse, then the valueQuantity **SHALL** have a Quantity.code and Quantity.system that match the Coding.code and system of one of the allowed values if the Coding has a code and/or system. If the Coding only has a display, then the Quantity.unit must match. (Note that Coding with only a display is strongly discouraged.) If there is a match on code and system, but no match on display/unit, systems MAY raise a warning. However, because of translation and bandwidth considerations, some systems **MAY** opt to drop the unit or express it in an alternate language. Validation of the Quantity unit **MAY** be performed by using the $validateCode operation, populating the elements passed into the operation from the Quantity.code, system and unit elements.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Indicates whether the list of supported units (conveyed in other extensions) are the exhaustive list from which the user must choose or whether they're able to select alternate codes or specify a string.", "isModifier": false, "short": "Used to denote if user can specify alternate codes", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitOpen" ] } ], "sliceName": "unitOpen", "max": "1", "id": "Questionnaire.item.extension:unitOpen", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "If the questionnaire-unit-open extension indicates that additional units other than the set of options provided for the question are allowed, this indicates the code system those units are expected to be drawn from. This extension SHOULD be present on any question where questionare-unit-open allows additional coded values.", "isModifier": false, "short": "This extension indicates the code system the additional units are drawn from", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitSupplementalSystem" ] } ], "sliceName": "unitSupplementalSystem", "max": "1", "id": "Questionnaire.item.extension:unitSupplementalSystem", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Where the type for a question is \"Reference\", indicates a type of resource that is permitted.", "isModifier": false, "short": "Allowed resource for reference", "mapping": [ { "map": "/form_package/mapping_package/mdr_mapping/question_element_data_element_association[question_element_identifier=current()/question_identifier]/data_element_scoped_identifier", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceResource" ] } ], "mustSupport": true, "sliceName": "allowedResource", "max": "*", "id": "Questionnaire.item.extension:allowedResource", "comment": "This extension only has meaning if the question.type = Reference. If no allowedResource extensions are present, the presumption is that any type of resource is permitted. If multiple are present, then any of the specified types are permitted. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#referenceResource).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Where the type for a question is \"Reference\", indicates a profile that the resource instances pointed to in answers to this question must be valid against.", "isModifier": false, "short": "Allowed profile for reference", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceProfile" ] } ], "sliceName": "allowedProfile", "max": "*", "id": "Questionnaire.item.extension:allowedProfile", "comment": "If multiple profiles are present, then the resource must be valid against at least one of them. See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#referenceProfile).", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "A FHIRPath or CQL expression, or FHIR Query that resolves to a list of candidate answers for the question item or that establishes context for a group item. The user may select from among the candidates to choose answers for the question.", "isModifier": false, "short": "Expression for possible answers", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-candidateExpression" ] } ], "sliceName": "candidateExpression", "max": "1", "id": "Questionnaire.item.extension:candidateExpression", "comment": "The results of the expression must correspond to the item type of the question the element appears on or must correspond to a resource, backbone element or complex data type for a group item. Resources are considered a match for the Reference item type. Quantity can be a match for decimal and integer items so long as a questionnaire-unit extension is present. If the expression returns coded data, it **SHALL* return the information as either code or Coding, not CodeableConcept. If the expression returns elements of type 'code', when the user selects one or more candidates, the code will be matched against the allowed Codings (from answerValueSet, answerOptions, or answerExpresssion). In this case, it is an error if there is more than one Coding with the same code.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "For items of type reference, the reference can be populated either by picking an existing entity or by creating a new one. In the latter case, this Questionnaire allows specifying the Questionnaire to use in creating the target instance. Typically this will result in a QuestionnaireResponse that can be [extracted](extraction.html) to produce the desired resource. However, if the target resource for the reference is a QuestionnaireResponse, then the QuestionnaireResponse resulting from the Questionnaire can be referenced directly.", "isModifier": false, "short": "Questionnaire to populate a reference", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-lookupQuestionnaire" ] } ], "sliceName": "lookupQuestionnaire", "max": "1", "id": "Questionnaire.item.extension:lookupQuestionnaire", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Specifies a constraint that is enforced on instantiated (or target) resources. This extension can be applied to definitional resources (such as ActivityDefinition or Measure) and indicates that the constraint should be enforced on resources that are instantiated from the definition.", "isModifier": false, "short": "A constraint on the target resource", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/targetConstraint" ] } ], "sliceName": "itemConstraint", "max": "*", "id": "Questionnaire.item.extension:itemConstraint", "comment": "Can be used on any definitional artifact to define a constraint that is enforced in the context of an instantiated resource. The constraint expression will have access to `%target` and `%definition` variables, where target is the instantiated resource, and definition is the definition used to instantiate.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Initial value for a question answer as determined by an evaluated expression.", "isModifier": false, "short": "Expression-determined initial value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ] } ], "sliceName": "initialExpression", "max": "1", "id": "Questionnaire.item.extension:initialExpression", "comment": "Initial value is only calculated at the time the QuestionnaireResponse is first generated. If the expression returns coded data, it **SHALL* return the information as either code or Coding, not CodeableConcept. If the expression returns elements of type 'code', when the user selects one or more candidates, the code will be matched against the allowed Codings (from answerValueSet, answerOptions, or answerExpression). In this case, it is an error if there is more than one Coding with the same code.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "Calculated value for a question answer as determined by an evaluated expression.", "isModifier": false, "short": "Expression-determined initial value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression" ] } ], "sliceName": "calculatedExpression", "max": "1", "id": "Questionnaire.item.extension:calculatedExpression", "comment": "Calculated value is updated as other answers in the QuestionnaireResponse are filled in.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "An expression that returns a boolean value for whether to enable the item.", "isModifier": false, "short": "Expression for when to enable the item", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression" ] } ], "mustSupport": true, "sliceName": "enableWhenExpression", "max": "1", "id": "Questionnaire.item.extension:enableWhenExpression", "comment": "This is only permitted when the containing item does NOT have any enableWhen elements.\r\n\r\nIf the expression involves comparisons between elements that have different precisions but are otherwise equal, FHIRPath will resolve the expression to an empty set, which will in turn evaluate to false (meaning the item won't be enabled). If this is not the desired behavior, the author should add a `.allTrue()` to the end of the expression, which will result in an indeterminate outcome because of precision differences being handled as 'true' and the item being enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc.\r\n\r\nIf the expression evaluates to something other than a boolean true or false, the Form Filler SHOULD still display the form, and if it does so, SHOULD treat the element as 'enabled' and display a warning to the user that the questionnaire logic was faulty and it's possible that the item shouldn't be enabled.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.extension", "min": 0, "definition": "For string or text items, indicates the 'keyboard type' that should be used by the user interface to guide entry.", "isModifier": false, "short": "Keyboard Type", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-keyboard" ] } ], "sliceName": "keyboardType", "max": "1", "id": "Questionnaire.item.extension:keyboardType", "comment": "The assertion applies on a per item basis and is not inherited. If the item is 'text', only 'chat' should be declared if this extension is present.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "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": "Questionnaire.item.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "Questionnaire.item.modifierExtension", "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": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "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())" }, { "key": "que-15", "human": "Link ids must be 255 characters or less", "xpath": "string-length(@value) <= 255", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon", "severity": "error", "expression": "$this.length() <= 255" } ], "path": "Questionnaire.item.linkId", "requirements": "[QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html#) does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.", "min": 1, "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.", "isModifier": false, "short": "Unique id for item in questionnaire", "mapping": [ { "map": "./section_identifier", "identity": "ihe-sdc" }, { "map": ".id", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "max": "1", "id": "Questionnaire.item.linkId", "comment": "This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.linkId" }, "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())" } ], "path": "Questionnaire.item.definition", "requirements": "A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.", "min": 0, "definition": "This element is a URI that refers to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).", "isModifier": false, "short": "ElementDefinition - details for the item", "mapping": [ { "map": ".outboundRelationship[typeCode=INST].target[classCode=OBS, moodCode=DEF]", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "Questionnaire.item.definition", "comment": "The uri refers to an ElementDefinition in a [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) and always starts with the [canonical URL](http://hl7.org/fhir/R4/references.html#canonical) for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](http://hl7.org/fhir/R4/element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.definition" }, "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())" } ], "path": "Questionnaire.item.code", "requirements": "Allows linking of groups of questions to formal terminologies.", "min": 0, "definition": "A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).", "isModifier": false, "short": "Corresponding concept for this item in a terminology", "mapping": [ { "map": ".code", "identity": "rim" } ], "type": [ { "code": "Coding" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireConcept" } ], "description": "Codes for questionnaires, groups and individual questions." }, "max": "*", "id": "Questionnaire.item.code", "condition": [ "que-3" ], "comment": "The value may come from the ElementDefinition referred to by .definition.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item.code" }, "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())" } ], "path": "Questionnaire.item.prefix", "requirements": "Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.", "min": 0, "definition": "A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.", "isModifier": false, "short": "E.g. \"1(a)\", \"2.5.3\"", "mapping": [ { "map": "./section_number/label", "identity": "ihe-sdc" }, { "map": "Not supported", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "alias": [ "label" ], "max": "1", "id": "Questionnaire.item.prefix", "comment": "These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for \"display\" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.prefix" }, "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())" } ], "path": "Questionnaire.item.text", "min": 0, "definition": "The name of a section, the text of a question or text content for a display item.", "isModifier": false, "short": "Primary text for the item", "mapping": [ { "map": "Form Design/designation[context=\"primary?\"/definition/ ./section_instruction/label", "identity": "ihe-sdc" }, { "map": ".text", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "Questionnaire.item.text", "comment": "When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.text" }, "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())" } ], "path": "Questionnaire.item.type", "requirements": "Defines the format in which the user is to be prompted for the answer.", "min": 1, "definition": "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).", "isModifier": false, "short": "group | display | boolean | decimal | integer | date | dateTime +", "mapping": [ { "map": "./*/datatype", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/item-type|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireItemType" } ], "description": "Distinguishes groups from questions and display text and indicates data type for questions." }, "max": "1", "id": "Questionnaire.item.type", "comment": "Time is handled using \"string\". File is handled using Attachment. (Content can be sent as a contained binary).", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.type" }, "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": "que-7", "human": "If the operator is 'exists', the value must be a boolean", "xpath": "f:operator/@value != 'exists' or exists(f:answerBoolean)", "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "severity": "error", "expression": "operator = 'exists' implies (answer is Boolean)" } ], "path": "Questionnaire.item.enableWhen", "requirements": "Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.", "min": 0, "definition": "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.", "isModifier": true, "short": "Only allow data when", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "max": "*", "id": "Questionnaire.item.enableWhen", "comment": "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true. I.e. treat \"enableWhen\"s as being joined by an \"or\" clause. This element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item.enableWhen" }, "isModifierReason": "If enableWhen is present and the condition evaluates to false, then the Questionnaire behaves as though the elements weren't actually present", "isSummary": false }, { "path": "Questionnaire.item.enableWhen.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": "Questionnaire.item.enableWhen.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": "Questionnaire.item.enableWhen.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" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.enableWhen.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 }, { "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": "Questionnaire.item.enableWhen.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "Questionnaire.item.enableWhen.modifierExtension", "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": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "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": "Questionnaire.item.enableWhen.question", "min": 1, "definition": "The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.", "isModifier": false, "short": "Question that determines whether item is enabled", "mapping": [ { "map": "parent::list_item/parent::list_field/parent::question", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "max": "1", "id": "Questionnaire.item.enableWhen.question", "comment": "If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the \"ancestor\" axis and then the \"preceding\" axis and then the \"following\" axis.", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.enableWhen.question" }, "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())" } ], "path": "Questionnaire.item.enableWhen.operator", "min": 1, "definition": "Specifies the criteria by which the question is enabled.", "isModifier": false, "short": "exists | = | != | > | < | >= | <=", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireItemOperator" } ], "description": "The criteria by which a question is enabled." }, "max": "1", "id": "Questionnaire.item.enableWhen.operator", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.enableWhen.operator" }, "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())" } ], "path": "Questionnaire.item.enableWhen.answer[x]", "min": 1, "definition": "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", "isModifier": false, "short": "Value for question comparison based on operator", "mapping": [ { "map": "parent::list_item", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" }, { "code": "decimal" }, { "code": "integer" }, { "code": "date" }, { "code": "dateTime" }, { "code": "time" }, { "code": "string" }, { "code": "Coding" }, { "code": "Quantity" }, { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "mustSupport": true, "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireQuestionOption3" } ], "description": "Allowed values to answer questions." }, "max": "1", "id": "Questionnaire.item.enableWhen.answer[x]", "condition": [ "que-7" ], "base": { "max": "1", "min": 1, "path": "Questionnaire.item.enableWhen.answer[x]" }, "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())" } ], "path": "Questionnaire.item.enableBehavior", "min": 0, "definition": "Controls how multiple enableWhen values are interpreted - whether all or any must be true.", "isModifier": false, "short": "all | any", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "EnableWhenBehavior" } ], "description": "Controls how multiple enableWhen values are interpreted - whether all or any must be true." }, "max": "1", "id": "Questionnaire.item.enableBehavior", "condition": [ "que-12" ], "comment": "This element must be specified if more than one enableWhen value is provided.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.enableBehavior" }, "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())" } ], "path": "Questionnaire.item.required", "min": 0, "definition": "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.", "isModifier": false, "short": "Whether the item must be included in data results", "mapping": [ { "map": "./cardinality/minimum!=0", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "mustSupport": true, "meaningWhenMissing": "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value", "max": "1", "id": "Questionnaire.item.required", "condition": [ "que-6" ], "comment": "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.required" }, "isSummary": false }, { "path": "Questionnaire.item.required.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.required.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": "Questionnaire.item.required.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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", "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.required.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": "Questionnaire.item.required.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.required.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "isSummary": false }, { "path": "Questionnaire.item.required.value.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.required.value.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": "Questionnaire.item.required.value.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.required.value.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.required.value.extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "requiredExpression", "max": "1", "id": "Questionnaire.item.required.value.extension:requiredExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.required.value.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.required.value.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "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())" } ], "path": "Questionnaire.item.repeats", "requirements": "Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.", "min": 0, "definition": "An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items)", "isModifier": false, "short": "Whether the item may repeat", "mapping": [ { "map": "./cardinality/maximum!=1", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "mustSupport": true, "meaningWhenMissing": "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value", "max": "1", "id": "Questionnaire.item.repeats", "condition": [ "que-6" ], "comment": "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.repeats" }, "isSummary": false }, { "path": "Questionnaire.item.repeats.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.repeats.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": "Questionnaire.item.repeats.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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", "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.repeats.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": "Questionnaire.item.repeats.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.repeats.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "isSummary": false }, { "path": "Questionnaire.item.repeats.value.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.repeats.value.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": "Questionnaire.item.repeats.value.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.repeats.value.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.repeats.value.extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "repeatsExpression", "max": "1", "id": "Questionnaire.item.repeats.value.extension:repeatsExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.repeats.value.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.repeats.value.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "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())" } ], "path": "Questionnaire.item.readOnly", "requirements": "Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.", "min": 0, "definition": "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.", "isModifier": false, "short": "Don't allow human editing", "mapping": [ { "map": "./*_Field/default_value_read_only ./default_element/read_only", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "mustSupport": true, "max": "1", "id": "Questionnaire.item.readOnly", "condition": [ "que-9" ], "comment": "The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.readOnly" }, "isSummary": false }, { "path": "Questionnaire.item.readOnly.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.readOnly.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": "Questionnaire.item.readOnly.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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", "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.readOnly.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": "Questionnaire.item.readOnly.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.readOnly.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "isSummary": false }, { "path": "Questionnaire.item.readOnly.value.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.readOnly.value.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": "Questionnaire.item.readOnly.value.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.readOnly.value.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.readOnly.value.extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "readOnlyExpression", "max": "1", "id": "Questionnaire.item.readOnly.value.extension:readOnlyExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.readOnly.value.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for boolean", "type": [ { "code": "http://hl7.org/fhirpath/System.Boolean", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "boolean" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "true|false" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.readOnly.value.value", "base": { "max": "1", "min": 0, "path": "boolean.value" }, "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())" } ], "path": "Questionnaire.item.maxLength", "min": 0, "definition": "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.", "isModifier": false, "short": "No more than this many characters", "mapping": [ { "map": "./*_Field/maximum_character_quantity | ./*_Field/datatype/string/maximum_characters", "identity": "ihe-sdc" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "integer" } ], "max": "1", "id": "Questionnaire.item.maxLength", "condition": [ "que-10" ], "comment": "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.maxLength" }, "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())" } ], "path": "Questionnaire.item.answerValueSet", "min": 0, "definition": "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.", "isModifier": false, "short": "Valueset containing permitted answers", "mapping": [ { "map": "./list_field | ./lookup_field/endpoint", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "canonical", "targetProfile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset" ] } ], "max": "1", "id": "Questionnaire.item.answerValueSet", "condition": [ "que-4", "que-5" ], "comment": "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](http://hl7.org/fhir/R4/loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.answerValueSet" }, "isSummary": false }, { "path": "Questionnaire.item.answerValueSet.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.answerValueSet.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": "Questionnaire.item.answerValueSet.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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", "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.answerValueSet.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": "Questionnaire.item.answerValueSet.value", "min": 0, "definition": "Primitive value for canonical", "isModifier": false, "short": "Primitive value for canonical", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "\\S*" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.answerValueSet.value", "base": { "max": "1", "min": 0, "path": "uri.value" }, "isSummary": false }, { "path": "Questionnaire.item.answerValueSet.value.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "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": "Questionnaire.item.answerValueSet.value.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": "Questionnaire.item.answerValueSet.value.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.answerValueSet.value.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.answerValueSet.value.extension", "min": 0, "definition": "An expression that, when evaluated, provides the value for the element on which it appears.", "isModifier": false, "short": "An dynamic expression", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "mustSupport": true, "sliceName": "answerValueSetExpression", "max": "1", "id": "Questionnaire.item.answerValueSet.value.extension:answerValueSetExpression", "comment": "For questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#cqf-expression).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "path": "Questionnaire.item.answerValueSet.value.value", "min": 0, "definition": "The actual value", "isModifier": false, "short": "Primitive value for string", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" }, { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "[ \\r\\n\\t\\S]+" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Questionnaire.item.answerValueSet.value.value", "maxLength": 1048576, "base": { "max": "1", "min": 0, "path": "string.value" }, "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())" } ], "path": "Questionnaire.item.answerOption", "min": 0, "definition": "One of the permitted answers for a \"choice\" or \"open-choice\" question.", "isModifier": false, "short": "Permitted answer", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "max": "*", "id": "Questionnaire.item.answerOption", "condition": [ "que-4", "que-5" ], "comment": "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item.answerOption" }, "isSummary": false }, { "path": "Questionnaire.item.answerOption.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": "Questionnaire.item.answerOption.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": "Questionnaire.item.answerOption.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Questionnaire.item.answerOption.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.answerOption.extension", "min": 0, "definition": "If true, indicates that if this answerOption is selected, no other possible answers may be selected, even if the item is a repeating question.", "isModifier": false, "short": "Option is exclusive", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive" ] } ], "mustSupport": true, "sliceName": "optionExclusive", "max": "1", "id": "Questionnaire.item.answerOption.extension:optionExclusive", "comment": "See additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#optionExclusive).", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Questionnaire.item.answerOption.extension", "min": 0, "definition": "A numeric value that allows the comparison (less than, greater than) or other numerical manipulation of a concept (e.g. Adding up components of a score). Scores are usually a whole number, but occasionally decimals are encountered in scores. In the CodeSystem and ValueSet resources, the item weight is represented using the [itemWeight property](http://hl7.org/fhir/R4/codesystem-concept-properties.html#concept-properties-itemWeight)", "isModifier": false, "short": "Assigned Ordinal Value", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/itemWeight" ] } ], "mustSupport": true, "sliceName": "itemWeight", "max": "1", "id": "Questionnaire.item.answerOption.extension:itemWeight", "comment": "NOTE: questionnaire.item.answerOption can have a type of Coding, potentially allowing two different scopes for this extension. In the case where answerOption is available, the weight SHALL be declared on the answerOption rather than on the answerOption.valueCoding.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "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": "Questionnaire.item.answerOption.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "Questionnaire.item.answerOption.modifierExtension", "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": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "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": "Questionnaire.item.answerOption.value[x]", "min": 1, "definition": "A potential answer that's allowed as the answer to this question.", "isModifier": false, "short": "Answer value", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "integer" }, { "code": "date" }, { "code": "time" }, { "code": "string" }, { "code": "Coding" }, { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "mustSupport": true, "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireQuestionOption" } ], "description": "Allowed values to answer questions." }, "max": "1", "id": "Questionnaire.item.answerOption.value[x]", "comment": "The data type of the value must agree with the item.type.", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.answerOption.value[x]" }, "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())" } ], "path": "Questionnaire.item.answerOption.initialSelected", "min": 0, "definition": "Indicates whether the answer value is selected when the list of possible answers is initially shown.", "isModifier": false, "short": "Whether option is selected by default", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "meaningWhenMissing": "Only selected items explicitly marked to be selected", "max": "1", "id": "Questionnaire.item.answerOption.initialSelected", "comment": "Use this instead of initial[v] if answerValueSet is present.", "base": { "max": "1", "min": 0, "path": "Questionnaire.item.answerOption.initialSelected" }, "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())" } ], "path": "Questionnaire.item.initial", "requirements": "In some workflows, having defaults saves time.", "min": 0, "definition": "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.", "isModifier": false, "short": "Initial value(s) when item is first rendered", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "max": "*", "id": "Questionnaire.item.initial", "condition": [ "que-8", "que-13" ], "comment": "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item.initial" }, "isSummary": false }, { "path": "Questionnaire.item.initial.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": "Questionnaire.item.initial.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": "Questionnaire.item.initial.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" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Questionnaire.item.initial.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 }, { "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": "Questionnaire.item.initial.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "Questionnaire.item.initial.modifierExtension", "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": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "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": "Questionnaire.item.initial.value[x]", "min": 1, "definition": "The actual value to for an initial answer.", "isModifier": false, "short": "Actual value for initializing the question", "mapping": [ { "map": "./default_value ./default_element/default/value ./default_element/list_item_identifier (resolve)", "identity": "ihe-sdc" }, { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "boolean" }, { "code": "decimal" }, { "code": "integer" }, { "code": "date" }, { "code": "dateTime" }, { "code": "time" }, { "code": "string" }, { "code": "uri" }, { "code": "Attachment" }, { "code": "Coding" }, { "code": "Quantity" }, { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "mustSupport": true, "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "QuestionnaireQuestionOption2" } ], "description": "Allowed values to answer questions." }, "max": "1", "id": "Questionnaire.item.initial.value[x]", "comment": "The type of the initial value must be consistent with the type of the item.", "base": { "max": "1", "min": 1, "path": "Questionnaire.item.initial.value[x]" }, "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())" } ], "path": "Questionnaire.item.item", "requirements": "Reports can consist of complex nested groups.", "min": 0, "definition": "Text, questions and other groups to be nested beneath a question or group.", "isModifier": false, "short": "Nested questionnaire items", "mapping": [ { "map": "./contained_section", "identity": "ihe-sdc" }, { "map": ".outboundRelationship[typeCode=COMP].target", "identity": "rim" } ], "contentReference": "http://hl7.org/fhir/StructureDefinition/Questionnaire#Questionnaire.item", "mustSupport": true, "max": "*", "id": "Questionnaire.item.item", "condition": [ "que-1" ], "comment": "There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.", "base": { "max": "*", "min": 0, "path": "Questionnaire.item.item" }, "isSummary": false } ] }, "status": "active", "id": "747173ba-ab3e-4526-a47e-57ce649100dc", "kind": "resource", "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.17.42.16", "system": "urn:ietf:rfc:3986" } ], "version": "4.0.0-ballot", "differential": { "element": [ { "id": "Questionnaire", "path": "Questionnaire", "short": "Advanced Behavior Questionnaire", "mapping": [ { "map": "Form_Package", "identity": "ihe-sdc" } ], "definition": "Defines additional capabilities for controlling data entry and calculating values within the questionnaire." }, { "id": "Questionnaire.extension:entryMode", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode" ] } ], "sliceName": "entryMode", "mustSupport": true }, { "id": "Questionnaire.extension:submissionEndpoint", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-endpoint" ] } ], "mapping": [ { "map": "administrative_package/submissionRule/destination/endpoint", "identity": "ihe-sdc" } ], "sliceName": "submissionEndpoint", "mustSupport": true }, { "id": "Questionnaire.extension:signatureRequired", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ] } ], "sliceName": "signatureRequired" }, { "id": "Questionnaire.extension:constraint", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/targetConstraint" ] } ], "sliceName": "constraint" }, { "id": "Questionnaire.extension:library", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-library" ] } ], "sliceName": "library", "definition": "A reference to a library containing cql used in this Questionnaire." }, { "id": "Questionnaire.extension:launchContext", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" ] } ], "sliceName": "launchContext" }, { "id": "Questionnaire.extension:variable", "max": "*", "min": 0, "path": "Questionnaire.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/variable" ] } ], "sliceName": "variable", "requirements": "Allows variables to be calculated higher in the context of a QuestionnaireResponse for use with enableWhen-expression." }, { "id": "Questionnaire.modifierExtension", "path": "Questionnaire.modifierExtension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.modifierExtension:rendering-criticalExtension", "max": "*", "min": 0, "path": "Questionnaire.modifierExtension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-rendering-criticalExtension" ] } ], "sliceName": "rendering-criticalExtension", "mustSupport": true }, { "id": "Questionnaire.item", "path": "Questionnaire.item", "constraint": [ { "key": "sdc-behave-2", "human": "An item cannot have both enableWhen and enableWhenExpression", "xpath": "not(exists(f:enableWhen) and exists(f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression']))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "error", "expression": "enableWhen.empty() or extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression').empty()" }, { "key": "sdc-behave-1", "human": "An item cannot have both initial.value and initialExpression", "xpath": "not(exists(f:initial) and exists(f:extension[@url='http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression']))", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "error", "expression": "initial.empty() or extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression').empty()" }, { "key": "sdc-behave-3", "human": "For items of type 'quantity', it is best practice to include either a 'unitOption' or 'unitValueSet' extension to provide a list of valid units.", "xpath": "(f:type/@value = 'quantity' implies (count(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption']) > 0 or count(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet']) > 0)) and not(.//f:item[f:type/@value = 'quantity' and not(f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption'] or f:extension[@url='http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet'])])", "source": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true } ], "expression": "(type = 'quantity' implies (extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption').exists() or extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet').exists())) and (repeat(item).where(type = 'quantity')).all(extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption').exists() or extension('http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet').exists())" } ] }, { "id": "Questionnaire.item.extension:disabledDisplay", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay" ] } ], "sliceName": "disabledDisplay" }, { "id": "Questionnaire.item.extension:answerExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression" ] } ], "sliceName": "answerExpression", "mustSupport": true }, { "id": "Questionnaire.item.extension:usageMode", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-usageMode" ] } ], "sliceName": "usageMode", "mustSupport": true }, { "id": "Questionnaire.item.extension:itemSignatureRequired", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ] } ], "sliceName": "itemSignatureRequired" }, { "id": "Questionnaire.item.extension:itemMinOccurs", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs" ] } ], "mapping": [ { "map": "./cardinality/minimum", "identity": "ihe-sdc" } ], "sliceName": "itemMinOccurs", "mustSupport": true }, { "id": "Questionnaire.item.extension:itemMinOccurs.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:itemMinOccurs.value[x].extension", "path": "Questionnaire.item.extension.value[x].extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.extension:itemMinOccurs.value[x].extension:itemMinOccursExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "itemMinOccursExpression", "mustSupport": true }, { "id": "Questionnaire.item.extension:itemMaxOccurs", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs" ] } ], "mapping": [ { "map": "./cardinality/maximum", "identity": "ihe-sdc" } ], "sliceName": "itemMaxOccurs", "mustSupport": true }, { "id": "Questionnaire.item.extension:itemMaxOccurs.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:itemMaxOccurs.value[x].extension", "path": "Questionnaire.item.extension.value[x].extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.extension:itemMaxOccurs.value[x].extension:itemMaxOccursExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "itemMaxOccursExpression", "mustSupport": true }, { "id": "Questionnaire.item.extension:minLength", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/minLength" ] } ], "mapping": [ { "map": "./*_Field/datatype/string/maximum_characters", "identity": "ihe-sdc" } ], "sliceName": "minLength", "mustSupport": true }, { "id": "Questionnaire.item.extension:regex", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/regex" ] } ], "mapping": [ { "map": "./*_Field/datatype/string/reg_ex", "identity": "ihe-sdc" } ], "sliceName": "regex", "mustSupport": true }, { "id": "Questionnaire.item.extension:minValue", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/minValue" ] } ], "mapping": [ { "map": "./*_Field/datatype/[integer|decimal]/minimum_value", "identity": "ihe-sdc" } ], "sliceName": "minValue", "mustSupport": true }, { "id": "Questionnaire.item.extension:minValue.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:minValue.value[x].extension:minValueCalculated", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "minValueCalculated" }, { "id": "Questionnaire.item.extension:maxValue", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxValue" ] } ], "mapping": [ { "map": "./*_Field/datatype/[integer|decimal]/maximum_value", "identity": "ihe-sdc" } ], "sliceName": "maxValue", "mustSupport": true }, { "id": "Questionnaire.item.extension:maxValue.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:maxValue.value[x].extension:maxValueCalculated", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "maxValueCalculated" }, { "id": "Questionnaire.item.extension:minQuantity", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-minQuantity" ] } ], "sliceName": "minQuantity", "mustSupport": false }, { "id": "Questionnaire.item.extension:minQuantity.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:minQuantity.value[x].extension:minQuantityCalculated", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "minQuantityCalculated" }, { "id": "Questionnaire.item.extension:maxQuantity", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-maxQuantity" ] } ], "sliceName": "maxQuantity", "mustSupport": false }, { "id": "Questionnaire.item.extension:maxQuantity.value[x]", "path": "Questionnaire.item.extension.value[x]", "mustSupport": false }, { "id": "Questionnaire.item.extension:maxQuantity.value[x].extension:maxQuantityCalculated", "max": "1", "min": 0, "path": "Questionnaire.item.extension.value[x].extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue" ] } ], "sliceName": "maxQuantityCalculated" }, { "id": "Questionnaire.item.extension:maxDecimalPlaces", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces" ] } ], "mapping": [ { "map": "./*_Field/datatype/decimal/fractionDigits", "identity": "ihe-sdc" } ], "sliceName": "maxDecimalPlaces", "mustSupport": true }, { "id": "Questionnaire.item.extension:mimeType", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/mimeType" ] } ], "sliceName": "mimeType", "mustSupport": true }, { "id": "Questionnaire.item.extension:maxSize", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/maxSize" ] } ], "sliceName": "maxSize" }, { "id": "Questionnaire.item.extension:answerOptionsToggleExpression", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression" ] } ], "sliceName": "answerOptionsToggleExpression", "mustSupport": true }, { "id": "Questionnaire.item.extension:unitOption", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption" ] } ], "sliceName": "unitOption", "mustSupport": true }, { "id": "Questionnaire.item.extension:unitValueSet", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet" ] } ], "sliceName": "unitValueSet", "mustSupport": true }, { "id": "Questionnaire.item.extension:unitOpen", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitOpen" ] } ], "sliceName": "unitOpen" }, { "id": "Questionnaire.item.extension:unitSupplementalSystem", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitSupplementalSystem" ] } ], "sliceName": "unitSupplementalSystem" }, { "id": "Questionnaire.item.extension:allowedResource", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceResource" ] } ], "mapping": [ { "map": "/form_package/mapping_package/mdr_mapping/question_element_data_element_association[question_element_identifier=current()/question_identifier]/data_element_scoped_identifier", "identity": "ihe-sdc" } ], "sliceName": "allowedResource", "mustSupport": true }, { "id": "Questionnaire.item.extension:allowedProfile", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceProfile" ] } ], "sliceName": "allowedProfile" }, { "id": "Questionnaire.item.extension:candidateExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-candidateExpression" ] } ], "sliceName": "candidateExpression" }, { "id": "Questionnaire.item.extension:lookupQuestionnaire", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-lookupQuestionnaire" ] } ], "sliceName": "lookupQuestionnaire" }, { "id": "Questionnaire.item.extension:itemConstraint", "max": "*", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/targetConstraint" ] } ], "sliceName": "itemConstraint" }, { "id": "Questionnaire.item.extension:initialExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ] } ], "sliceName": "initialExpression" }, { "id": "Questionnaire.item.extension:calculatedExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression" ] } ], "sliceName": "calculatedExpression" }, { "id": "Questionnaire.item.extension:enableWhenExpression", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression" ] } ], "sliceName": "enableWhenExpression", "mustSupport": true }, { "id": "Questionnaire.item.extension:keyboardType", "max": "1", "min": 0, "path": "Questionnaire.item.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-keyboard" ] } ], "sliceName": "keyboardType" }, { "id": "Questionnaire.item.enableWhen.question", "path": "Questionnaire.item.enableWhen.question", "mapping": [ { "map": "parent::list_item/parent::list_field/parent::question", "identity": "ihe-sdc" } ], "mustSupport": true }, { "id": "Questionnaire.item.enableWhen.operator", "path": "Questionnaire.item.enableWhen.operator", "mustSupport": true }, { "id": "Questionnaire.item.enableWhen.answer[x]", "path": "Questionnaire.item.enableWhen.answer[x]", "mapping": [ { "map": "parent::list_item", "identity": "ihe-sdc" } ], "mustSupport": true }, { "id": "Questionnaire.item.enableBehavior", "path": "Questionnaire.item.enableBehavior", "mustSupport": true }, { "id": "Questionnaire.item.required", "path": "Questionnaire.item.required", "mapping": [ { "map": "./cardinality/minimum!=0", "identity": "ihe-sdc" } ] }, { "id": "Questionnaire.item.required.value.extension", "path": "Questionnaire.item.required.value.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.required.value.extension:requiredExpression", "max": "1", "min": 0, "path": "Questionnaire.item.required.value.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "requiredExpression", "mustSupport": true }, { "id": "Questionnaire.item.repeats.value.extension", "path": "Questionnaire.item.repeats.value.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.repeats.value.extension:repeatsExpression", "max": "1", "min": 0, "path": "Questionnaire.item.repeats.value.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "repeatsExpression", "mustSupport": true }, { "id": "Questionnaire.item.readOnly.value.extension", "path": "Questionnaire.item.readOnly.value.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.readOnly.value.extension:readOnlyExpression", "max": "1", "min": 0, "path": "Questionnaire.item.readOnly.value.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "readOnlyExpression", "mustSupport": true }, { "id": "Questionnaire.item.answerValueSet.value.extension", "path": "Questionnaire.item.answerValueSet.value.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.answerValueSet.value.extension:answerValueSetExpression", "max": "1", "min": 0, "path": "Questionnaire.item.answerValueSet.value.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/cqf-expression" ] } ], "sliceName": "answerValueSetExpression", "mustSupport": true }, { "id": "Questionnaire.item.answerOption.extension", "path": "Questionnaire.item.answerOption.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Questionnaire.item.answerOption.extension:optionExclusive", "max": "1", "min": 0, "path": "Questionnaire.item.answerOption.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive" ] } ], "sliceName": "optionExclusive", "mustSupport": true }, { "id": "Questionnaire.item.answerOption.extension:itemWeight", "max": "1", "min": 0, "path": "Questionnaire.item.answerOption.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/StructureDefinition/itemWeight" ] } ], "comment": "NOTE: questionnaire.item.answerOption can have a type of Coding, potentially allowing two different scopes for this extension. In the case where answerOption is available, the weight SHALL be declared on the answerOption rather than on the answerOption.valueCoding.", "sliceName": "itemWeight", "mustSupport": true } ] }, "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/uv/sdc/StructureDefinition/sdc-questionnairecommon" }