{ "description": "Provides a computable unit of measure associated with numeric questions to support subsequent computation on responses.", "_filename": "StructureDefinition-questionnaire-unit.json", "package_name": "hl7.fhir.r2b.core", "date": null, "derivation": "constraint", "publisher": "HL7", "fhirVersion": "1.6.0", "name": "Unit for numeric answer", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM", "identity": "rim" } ], "baseType": "Extension", "abstract": false, "type": null, "experimental": "false", "resourceType": "StructureDefinition", "title": null, "package_version": "1.4.0", "snapshot": { "element": [ { "constraint": [ { "key": "inv-16", "human": "Lookup Questionnaire can only be specified for questions with a type of \"integer\" or \"decimal\"", "xpath": "parent::*/f:type/@value=('integer', 'decimal')", "severity": "error", "expression": "$parent.type='integer' or $parent.type='decimal'" } ], "path": "Extension", "min": 0, "definition": "Provides a computable unit of measure associated with numeric questions to support subsequent computation on responses.", "isModifier": false, "short": "Unit for numeric answer", "comments": "The human-readable unit is conveyed as a display element. This element is for computation purposes.", "mapping": [ { "map": "N/A (MIF-level)", "identity": "rim" } ], "mustSupport": false, "max": "1", "maxLength": 0, "base": { "max": "*", "min": 0, "path": "Extension" }, "isSummary": false }, { "path": "Extension.id", "min": 0, "definition": "unique id for the element within a resource (for internal references).", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "id" } ], "mustSupport": false, "representation": [ "xmlAttr" ], "max": "1", "maxLength": 0, "base": { "max": "*", "min": 0, "path": "Element.id" }, "isSummary": false }, { "path": "Extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "name": "extension", "type": [ { "code": "Extension" } ], "mustSupport": false, "max": "0", "maxLength": 0, "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "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-unit", "comments": "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 should be version specific. This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "uri" } ], "mustSupport": false, "representation": [ "xmlAttr" ], "max": "1", "maxLength": 0, "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "path": "Extension.valueCoding", "min": 1, "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).", "isModifier": false, "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Coding" } ], "mustSupport": false, "max": "1", "maxLength": 0, "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "isSummary": false } ] }, "status": "draft", "id": "80adea5c-8b0b-4130-b4b5-1f93fae95bd7", "kind": "datatype", "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit", "context": [ "Questionnaire.item", "Questionnaire.item.item" ], "version": null, "differential": { "element": [ { "constraint": [ { "key": "inv-16", "human": "Lookup Questionnaire can only be specified for questions with a type of \"integer\" or \"decimal\"", "xpath": "parent::*/f:type/@value=('integer', 'decimal')", "severity": "error", "expression": "$parent.type='integer' or $parent.type='decimal'" } ], "path": "Extension", "min": 0, "definition": "Provides a computable unit of measure associated with numeric questions to support subsequent computation on responses.", "isModifier": false, "short": "Unit for numeric answer", "comments": "The human-readable unit is conveyed as a display element. This element is for computation purposes.", "mapping": [ { "map": "N/A (MIF-level)", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "mustSupport": false, "max": "1", "maxLength": 0, "base": { "max": "1", "min": 0, "path": "Extension" }, "isSummary": false }, { "path": "Extension.extension", "min": 0, "isModifier": false, "name": "extension", "mustSupport": false, "max": "0", "maxLength": 0, "base": { "max": "0", "min": 0, "path": "Extension.extension" }, "isSummary": false }, { "path": "Extension.url", "min": 0, "isModifier": false, "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit", "type": [ { "code": "uri" } ], "mustSupport": false, "maxLength": 0, "base": { "max": "1", "min": 0, "path": "Extension.url" }, "isSummary": false }, { "min": 1, "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "path": "Extension.value[x]", "type": [ { "code": "Coding" } ], "isSummary": false, "maxLength": 0, "isModifier": false, "mustSupport": false } ] }, "contact": [ { "telecom": [ { "rank": 1, "value": "http://www.hl7.org", "system": "other" } ] } ], "contextType": "resource", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension" }