This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
StructureDefinition for ElementDefinition
{ "resourceType": "StructureDefinition", "id": "ElementDefinition", "meta": { "lastUpdated": "2016-12-06T12:22:34.981+11:00" }, "text": { "status": "generated", "div": "<div>!-- Snipped for Brevity --></div>" }, "url": "http://hl7.org/fhir/StructureDefinition/ElementDefinition", "name": "ElementDefinition", "status": "draft", "publisher": "HL7 FHIR Standard", "contact": [ { "telecom": [ { "system": "url", "value": "http://hl7.org/fhir" } ] } ], "date": "2016-12-06T12:22:34+11:00", "description": "Base StructureDefinition for ElementDefinition Type", "fhirVersion": "1.8.0", "mapping": [ { "identity": "dex", "uri": "http://wiki.ihe.net/index.php?title=Data_Element_Exchange", "name": "IHE Data Element Exchange (DEX)" }, { "identity": "v2", "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping" }, { "identity": "rim", "uri": "http://hl7.org/v3", "name": "RIM Mapping" }, { "identity": "iso11179", "uri": "http://metadata-standards.org/11179/", "name": "ISO 11179" }, { "identity": "loinc", "uri": "http://loinc.org", "name": "LOINC code for the element" } ], "kind": "complex-type", "abstract": false, "type": "ElementDefinition", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", "derivation": "specialization", "snapshot": { "element": [ { "id": "ElementDefinition", "path": "ElementDefinition", "short": "Definition of an element in a resource or extension", "definition": "Captures constraints on each element within the resource, profile, or extension.", "min": 0, "max": "*", "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-2", "severity": "error", "human": "Min <= Max", "expression": "min.empty() or max.empty() or (max = '*') or (min <= max.toInteger())", "xpath": "not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value)" }, { "key": "eld-5", "severity": "error", "human": "if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding", "expression": "contentReference.empty() or (type.empty() and defaultValue.empty() and fixed.empty() and pattern.empty() and example.empty() and minValue.empty() and maxValue.empty() and maxLength.empty() and binding.empty())", "xpath": "not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')]) or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding)))" }, { "key": "eld-7", "severity": "error", "human": "Pattern may only be specified if there is one type", "expression": "pattern.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)<=1)" }, { "key": "eld-6", "severity": "error", "human": "Fixed value may only be specified if there is one type", "expression": "fixed.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)<=1)" }, { "key": "eld-11", "severity": "error", "human": "Binding can only be present for coded elements, string, and uri", "expression": "binding.empty() or type.code.empty() or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'Extension') or (code = 'string') or (code = 'uri')).exists()", "xpath": "not(exists(f:binding)) or (count(f:type/f:code) = 0) or f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri')" }, { "key": "eld-8", "severity": "error", "human": "Pattern and value are mutually exclusive", "expression": "pattern.empty() or fixed.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'fixed')]))" }, { "key": "eld-14", "severity": "error", "human": "Constraints must be unique by key", "expression": "constraint.select(key).isDistinct()", "xpath": "count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))" }, { "key": "eld-13", "severity": "error", "human": "Types must be unique by the combination of code and profile", "expression": "type.select(code&profile&targetProfile).isDistinct()", "xpath": "not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value]))" }, { "key": "eld-16", "severity": "error", "human": "sliceName must be a proper token", "expression": "sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\\\-\\\\_]+$')", "xpath": "not(exists(f:sliceName/@value)) or matches(f:sliceName/@value, '^[a-zA-Z0-9\\\\-\\\\_]+$')" }, { "key": "eld-15", "severity": "error", "human": "default value and meaningWhenMissing are mutually exclusive", "expression": "defaultValue.empty() or meaningWhenMissing.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))" } ], "mapping": [ { "identity": "rim", "map": "n/a" }, { "identity": "dex", "map": "RetrieveMetadata response" }, { "identity": "v2", "map": "OM1" }, { "identity": "rim", "map": "Observation[classCode=OBS, moodCode=DEFN]" }, { "identity": "iso11179", "map": "Data_Element" } ] }, { "id": "ElementDefinition.id", "path": "ElementDefinition.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.extension", "path": "ElementDefinition.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.path", "path": "ElementDefinition.path", "short": "Path of the element in the heirarchy of elements", "definition": "The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "Name, Identifier & Context" } ] }, { "id": "ElementDefinition.representation", "path": "ElementDefinition.representation", "short": "xmlAttr | xmlText | typeAttr | cdaText | xhtml", "definition": "Codes that define how this element is represented in instances, when the deviation varies from the normal case.", "comments": "In resources, this is rarely used except for special cases where the representation deviates from the normal, and can only be done in the base standard (and profiles must reproduce what the base standard does). This element is used quite commonly in Logical models when the logical models represent a specific wire format (e.g. CDA, v2 etc).", "min": 0, "max": "*", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How a property is represented on the wire.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/property-representation" } }, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.sliceName", "path": "ElementDefinition.sliceName", "short": "Name for this particular element (in a set of slices)", "definition": "The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.", "comments": "The name SHALL be unique within the structure within the context of the constrained resource element. (Though to avoid confusion, uniqueness across all elements is recommended.).", "requirements": "May also be used for code generation purposes.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.label", "path": "ElementDefinition.label", "short": "Name for element to display with or prompt for element", "definition": "The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.", "comments": "Question and label serve similar purposes in they both can be used to prompt for capturing a data element. Whether the question form or label form should be used will depend on the type of instrument being used to capture the information.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./code/display" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.code", "path": "ElementDefinition.code", "short": "Defining code", "definition": "A code that provides the meaning for the element according to a particular terminology.", "comments": "The data element definition and other constraints SHALL be a proper constraint on the meaning (as defined in the code system, including relationships) of any code listed here. Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself.", "requirements": "Links the meaning of an element to an external terminology.", "min": 0, "max": "*", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes that indicate the meaning of a data element.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } }, "mapping": [ { "identity": "v2", "map": "OM1.7" }, { "identity": "rim", "map": "./code (root or translation)" }, { "identity": "iso11179", "map": "(Data_Element).data_element_concept.identifier" }, { "identity": "loinc", "map": "LOINC_NUM" } ] }, { "id": "ElementDefinition.slicing", "path": "ElementDefinition.slicing", "short": "This element is sliced - slices follow", "definition": "Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).", "comments": "The first element in the sequence, the one that carries the slicing, is the definition that applies to all the slices. This is based on the unconstrained element, but can apply any constraints as appropriate. This may include the common constraints on the children of the element.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-1", "severity": "error", "human": "If there are no discriminators, there must be a definition", "expression": "discriminator.exists() or description.exists()", "xpath": "(f:discriminator) or (f:description)" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.id", "path": "ElementDefinition.slicing.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.extension", "path": "ElementDefinition.slicing.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.discriminator", "path": "ElementDefinition.slicing.discriminator", "short": "Element values that are used to distinguish the slices", "definition": "Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.", "comments": "If there is no discriminator, the content is hard to process, so this should be avoided. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator must be \"@type\".", "min": 0, "max": "*", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.description", "path": "ElementDefinition.slicing.description", "short": "Text description of how slicing works (or not)", "definition": "A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.", "comments": "If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-1" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "id": "ElementDefinition.slicing.ordered", "path": "ElementDefinition.slicing.ordered", "short": "If elements must be in same order as slices", "definition": "If the matching elements have to occur in the same order as defined in the profile.", "comments": "Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.rules", "path": "ElementDefinition.slicing.rules", "short": "closed | open | openAtEnd", "definition": "Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.", "comments": "Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile.", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How slices are interpreted when evaluating an instance.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-slicing-rules" } }, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.short", "path": "ElementDefinition.short", "short": "Concise definition for xml presentation", "definition": "A concise description of what this element means (e.g. for use in autogenerated summaries).", "comments": "May change the term to provide language more appropriate to the context of the profile or to reflect slicing.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "N/A" } ] }, { "id": "ElementDefinition.definition", "path": "ElementDefinition.definition", "short": "Full formal definition as narrative text", "definition": "Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.", "comments": "It is easy for a different definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing definitions.", "requirements": "To allow a user to state the usage of an element in a particular context.", "alias": [ "Description" ], "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM1.6, OM1.41" }, { "identity": "rim", "map": "./text" }, { "identity": "iso11179", "map": "(Designatable_Item).definition.text acceptability=preferred in default context" }, { "identity": "loinc", "map": "TERM DEFINITION/DESCRIPTION(S)" } ] }, { "id": "ElementDefinition.comments", "path": "ElementDefinition.comments", "short": "Comments about the use of this element", "definition": "Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.", "comments": "If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "NTE, OM1.32, OM1.33, OM1.39" }, { "identity": "rim", "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code" }, { "identity": "iso11179", "map": "(Administered_Item).explanatory_comment" }, { "identity": "loinc", "map": "COMMENTS" } ] }, { "id": "ElementDefinition.requirements", "path": "ElementDefinition.requirements", "short": "Why this resource has been created", "definition": "This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.", "comments": "This element does not describe the usage of the element (that's done in comments), rather it's for traceability of *why* the element is either needed or why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this data element.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./inboundRelationship[typeCode=META]/source[classCode=ACT, moodCode=EVN, isCriterionInd=true]/reasonCode/originalText" }, { "identity": "iso11179", "map": "(Registered_item).document_reference[document_type=requirements].notation" }, { "identity": "loinc", "map": "R/O/C" } ] }, { "id": "ElementDefinition.alias", "path": "ElementDefinition.alias", "short": "Other names", "definition": "Identifies additional names by which this element might also be known.", "requirements": "Allows for better easier recognition of the element by multiple communities, including international communities.", "alias": [ "synonym", "other name" ], "min": 0, "max": "*", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM1.8, OM1.52" }, { "identity": "rim", "map": "Not currently expressible" }, { "identity": "iso11179", "map": "(Designatable_Item).designation.sign acceptability!=preferred or context is other than default" }, { "identity": "loinc", "map": "RELATED NAMES (only some of these apply)" } ] }, { "id": "ElementDefinition.min", "path": "ElementDefinition.min", "short": "Minimum Cardinality", "definition": "The minimum number of times this element SHALL appear in the instance.", "min": 0, "max": "1", "type": [ { "code": "integer" } ], "condition": [ "eld-2" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Minimum size of data element values?" } ] }, { "id": "ElementDefinition.max", "path": "ElementDefinition.max", "short": "Maximum Cardinality (a number or *)", "definition": "The maximum number of times this element is permitted to appear in the instance.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-3", "eld-2" ], "constraint": [ { "key": "eld-3", "severity": "error", "human": "Max SHALL be a number or \"*\"", "expression": "empty() or ($this = '*') or (toInteger() >= 0)", "xpath": "@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OMC.10" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Maximum size of data element values?" } ] }, { "id": "ElementDefinition.base", "path": "ElementDefinition.base", "short": "Base definition information for tools", "definition": "Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is provided when the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot.", "comments": "The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.id", "path": "ElementDefinition.base.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.base.extension", "path": "ElementDefinition.base.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.base.path", "path": "ElementDefinition.base.path", "short": "Path that identifies the base element", "definition": "The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [StructureDefinition](structuredefinition.html#) without a StructureDefinition.base.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.min", "path": "ElementDefinition.base.min", "short": "Min cardinality of the base element", "definition": "Minimum cardinality of the base element identified by the path.", "comments": "This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this).", "min": 1, "max": "1", "type": [ { "code": "integer" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.max", "path": "ElementDefinition.base.max", "short": "Max cardinality of the base element", "definition": "Maximum cardinality of the base element identified by the path.", "comments": "This is provided to code generation, since the wire representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.contentReference", "path": "ElementDefinition.contentReference", "short": "Reference to definition of content for the element", "definition": "Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "condition": [ "eld-5" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "id": "ElementDefinition.type", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "TypeRef" } ], "path": "ElementDefinition.type", "short": "Data type and Profile for this element", "definition": "The data type or resource that the value of this element is permitted to be.", "comments": "The Type of the element can be left blank in a differential constraint, in which case the type is inherited from the resource. Abstract types are not permitted to appear as a type when multiple types are listed. (I.e. Abstract types cannot be part of a choice).", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "condition": [ "eld-13" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-4", "severity": "error", "human": "Aggregation may only be specified if one of the allowed types for the element is a resource", "expression": "aggregation.empty() or (code = 'Reference')", "xpath": "not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])" } ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "valueDomain.dataType" }, { "identity": "v2", "map": "OM1.3, OMC.9" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.data+Q14type" }, { "identity": "loinc", "map": "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" } ] }, { "id": "ElementDefinition.type.id", "path": "ElementDefinition.type.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.type.extension", "path": "ElementDefinition.type.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.type.code", "path": "ElementDefinition.type.code", "short": "Data type or Resource (reference to definition)", "definition": "URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. \"string\" is a reference to http://hl7.org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.", "comments": "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). There would be one pair of type/code for each allowed target resource type.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Either a resource or a data type, including logical model types", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/defined-types" } }, "mapping": [ { "identity": "v2", "map": "OM1.3" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.data+Q14type" }, { "identity": "loinc", "map": "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" } ] }, { "id": "ElementDefinition.type.profile", "path": "ElementDefinition.type.profile", "short": "Profile (StructureDefinition) to apply (or IG)", "definition": "Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition in another profile. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.targetProfile", "path": "ElementDefinition.type.targetProfile", "short": "Profile (StructureDefinition) to apply to reference target (or IG)", "definition": "Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition in another profile. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.", "comments": "NOTE: This element is not used properly by the build tooling at this time - it puts what should go in here in .profile. This will be fixed prior to publication of STU3. When this happens, there will be a constrain that this element must be populated if the value of .code is 'Reference'.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.aggregation", "path": "ElementDefinition.type.aggregation", "short": "contained | referenced | bundled - how aggregated", "definition": "If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.", "min": 0, "max": "*", "type": [ { "code": "code" } ], "condition": [ "eld-4" ], "isSummary": true, "binding": { "strength": "required", "description": "How resource references can be aggregated.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-aggregation-mode" } }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.versioning", "path": "ElementDefinition.type.versioning", "short": "either | independent | specific", "definition": "Whether this reference needs to be version specific or version independent, or whetehr either can be used.", "comments": "The base specification never makes a rule as to which form is allowed, but implementation guides may do this.", "min": 0, "max": "1", "type": [ { "code": "code" } ], "defaultValueCode": "either", "isSummary": true, "binding": { "strength": "required", "description": "Whether a reference needs to be version specific or version independent, or whetehr either can be used", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/reference-version-rules" } }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.defaultValue[x]", "path": "ElementDefinition.defaultValue[x]", "short": "Specified value if missing from instance", "definition": "The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').", "comments": "Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed. For these reasons, default values are (and should be) used extremely sparingly.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-15" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.meaningWhenMissing", "path": "ElementDefinition.meaningWhenMissing", "short": "Implicit meaning when this element is missing", "definition": "The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.", "comments": "Implicit meanings for missing values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. An implicit meaning for a missing value can never be changed, and specifying one has the consequence that constraining its use in profiles eliminates use cases as possibilities, not merely moving them out of scope.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "condition": [ "eld-15" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.fixed[x]", "path": "ElementDefinition.fixed[x]", "short": "Value must be exactly this", "definition": "Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.", "comments": "This is not recommended for Coding and CodeableConcept since these often have highly contextual properties such as version or display.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-6", "eld-8" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "N/A (only relevant when constraining, which 11179 doesn't do)" } ] }, { "id": "ElementDefinition.pattern[x]", "path": "ElementDefinition.pattern[x]", "short": "Value must have at least these property values", "definition": "Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).", "comments": "Mostly used for fixing values of CodeableConcept. At present, pattern[x] is not recommended as a basis for slicing while issues related to this are investigated during the STU period.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-7", "eld-8" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example", "path": "ElementDefinition.example", "short": "Example value (as defined for type)", "definition": "A sample value for this element demonstrating the type of information that would typically be found in the element.", "comments": "Examples will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be. (I.e. Example values for dates or quantities would generally be unnecessary.) If the example value is fully populated, the publication tool can generate an instance automatically.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example.id", "path": "ElementDefinition.example.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.example.extension", "path": "ElementDefinition.example.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.example.label", "path": "ElementDefinition.example.label", "short": "Describes the purpose of this example", "definition": "Describes the purpose of this example amoung the set of examples.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example.value[x]", "path": "ElementDefinition.example.value[x]", "short": "Value of Example (one of allowed types)", "definition": "The actual value for the element, which must be one of the types allowed for this element.", "min": 1, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".example" }, { "identity": "loinc", "map": "EXMPL_ANSWERS" } ] }, { "id": "ElementDefinition.minValue[x]", "path": "ElementDefinition.minValue[x]", "short": "Minimum Allowed Value (for some types)", "definition": "The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.", "comments": "Except for date/date/instant, the type of the minValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of minValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is subtracted from the current clock to determine the minimum allowable value. A minimum value for a Quantity is interpreted as an canonical minimum - e.g. you cannot provide 100mg if the minimum value is 10g.", "min": 0, "max": "1", "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.maxValue[x]", "path": "ElementDefinition.maxValue[x]", "short": "Maximum Allowed Value (for some types)", "definition": "The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.", "comments": "Except for date/date/instant, the type of the maxValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of maxValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is added to the current clock to determine the maximum allowable value. A maximum value for a Quantity is interpreted as an canonical maximum - e.g. you cannot provide 10g if the maximum value is 50mg.", "min": 0, "max": "1", "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.maxLength", "path": "ElementDefinition.maxLength", "short": "Max length for strings", "definition": "Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.", "comments": "Receivers are not required to reject instances that exceed the maximum length. The full length could be stored. In some cases, data might be truncated, though truncation should be undertaken with care and an understanding of the consequences of doing so. If not specified, there is no conformance expectation for length support.", "min": 0, "max": "1", "type": [ { "code": "integer" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OMC.12" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.maximum_character_quantity" } ] }, { "id": "ElementDefinition.condition", "path": "ElementDefinition.condition", "short": "Reference to invariant about presence", "definition": "A reference to an invariant that may make additional statements about the cardinality or value in the instance.", "min": 0, "max": "*", "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ElementDefinition.constraint", "path": "ElementDefinition.constraint", "short": "Condition that must evaluate to true", "definition": "Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.", "comments": "Constraints should be declared on the \"context\" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.constraint.id", "path": "ElementDefinition.constraint.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.constraint.extension", "path": "ElementDefinition.constraint.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.constraint.key", "path": "ElementDefinition.constraint.key", "short": "Target of 'condition' reference above", "definition": "Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.", "min": 1, "max": "1", "type": [ { "code": "id" } ], "condition": [ "eld-14" ], "isSummary": true }, { "id": "ElementDefinition.constraint.requirements", "path": "ElementDefinition.constraint.requirements", "short": "Why this constraint is necessary or appropriate", "definition": "Description of why this constraint is necessary or appropriate.", "comments": "To be used if the reason for the constraint may not be intuitive to all implementers.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.severity", "path": "ElementDefinition.constraint.severity", "short": "error | warning", "definition": "Identifies the impact constraint violation has on the conformance of the instance.", "comments": "This allows constraints to be asserted as \"shall\" (error) and \"should\" (warning).", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "SHALL applications comply with this constraint?", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/constraint-severity" } } }, { "id": "ElementDefinition.constraint.human", "path": "ElementDefinition.constraint.human", "short": "Human description of constraint", "definition": "Text that can be used to describe the constraint in messages identifying that the constraint has been violated.", "comments": "Should be expressed in business terms as much as possible.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.expression", "path": "ElementDefinition.constraint.expression", "short": "FluentPath expression of constraint", "definition": "A [FluentPath](http://hl7.org/fluentpath) expression of constraint that can be executed to see if this constraint is met.", "requirements": "Used by validation tooling tests of the validity of the resource.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.xpath", "path": "ElementDefinition.constraint.xpath", "short": "XPath expression of constraint", "definition": "An XPath expression of constraint that can be executed to see if this constraint is met.", "comments": "Elements SHALL use \"f\" as the namespace prefix for the FHIR namespace, and \"x\" for the xhtml namespace, and SHALL NOT use any other prefixes. \n\nNote: we are considering deprecating the xpath element. Implementer feedback is welcome.", "requirements": "Used in Schematron tests of the validity of the resource.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.source", "path": "ElementDefinition.constraint.source", "short": "Reference to original source of constraint", "definition": "A reference to the original source of the constraint, for traceability purposes.", "comments": "This is used when, e.g. rendering, where it is not useful to present inherited constraints when rendering the snapshot.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ElementDefinition.mustSupport", "path": "ElementDefinition.mustSupport", "short": "If the element must supported", "definition": "If true, implementations that produce or consume resources SHALL provide \"support\" for the element in some meaningful way. If false, the element may be ignored and not supported.", "comments": "\"Something useful\" is context dependent and impossible to describe in the base FHIR specification. For this reason, tue mustSupport flag is never set to true by the FHIR specification itself - it is only set to true in profiles. \n\nThis is done in [Resource Profiles](profiling.html#mustsupport), where the profile labels an element as mustSupport=true. When a profile does this, it SHALL also make clear exactly what kind of \"support\" is required, as this can mean many things.\n\nNote that an element that has the property IsModifier is not necessarily a \"key\" element (e.g. one of the important elements to make use of the resource), nor is it automatically mustSupport - however both of these things are more likely to be true for IsModifier elements than for other elements.", "requirements": "Allows a profile to set expectations for system capabilities beyond merely respecting cardinality constraints.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.isModifier", "path": "ElementDefinition.isModifier", "short": "If this modifies the meaning of other elements", "definition": "If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.", "comments": "Only the definition of an element can set IsModifier true - either the specification itself or where an extension is originally defined. Once set, it cannot be changed in derived profiles. An element/extension that has isModifier=true SHOULD also have a minimum cardinality of 1, so that there is no lack of clarity about what to do if it is missing. If it can be missing, the definition SHALL make the meaning of a missing element clear.", "requirements": "Allows elements to be introduced into a specification that can't safely be ignored by applications that don't recognize them.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.isSummary", "path": "ElementDefinition.isSummary", "short": "Include when _summary = true?", "definition": "Whether the element should be included if a client requests a search with the parameter _summary=true.", "comments": "Some resources include a set of simple metadata, and some very large data. This element is used to reduce the quantity of data returned in searches. Note that servers may pre-cache summarized resources for optimal performance, so servers may not support per-profile use of the isSummary flag. When a request is made with _summary=true, serailisers only include elements marked as 'isSummary = true'. Other than Attachment.data, all data type properties are included in the summary form. Modifier elements or elements with minimum cardinality = 1 must be marked as summary elements.", "requirements": "Allow clients to search through large resources quickly.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.binding", "path": "ElementDefinition.binding", "short": "ValueSet details if this is coded", "definition": "Binds to a value set if this element is coded (code, Coding, CodeableConcept).", "comments": "For a CodeableConcept, when no codes are allowed - only text, use a binding of strength \"required\" with a description explaining that no coded values are allowed and what sort of information to put in the \"text\" element.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "condition": [ "eld-11" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-10", "severity": "error", "human": "provide either a reference or a description (or both)", "expression": "valueSet.exists() or description.exists()", "xpath": "(exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description)" }, { "key": "eld-12", "severity": "error", "human": "ValueSet as a URI SHALL start with http:// or https:// or urn:", "expression": "valueSet.is(uri).not() or valueSet.as(uri).startsWith('http:') or valueSet.as(uri).startsWith('https') or valueSet.as(uri).startsWith('urn:')", "xpath": "not(exists(f:valueSetUri)) or (starts-with(string(f:valueSetUri/@value), 'http:') or starts-with(string(f:valueSetUri/@value), 'https:') or starts-with(string(f:valueSetUri/@value), 'urn:'))" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM3, OMC.11" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain" }, { "identity": "loinc", "map": "ANSWER LIST, NORMATIVE ANSWER LIST" } ] }, { "id": "ElementDefinition.binding.id", "path": "ElementDefinition.binding.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.binding.extension", "path": "ElementDefinition.binding.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.binding.strength", "path": "ElementDefinition.binding.strength", "short": "required | extensible | preferred | example", "definition": "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.", "comments": "For further discussion, see [Using Terminologies](terminologies.html).", "alias": [ "conformance", "extensibility" ], "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "Indication of the degree of conformance expectations associated with a binding.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/binding-strength" } }, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "loinc", "map": "N/A" } ] }, { "id": "ElementDefinition.binding.description", "path": "ElementDefinition.binding.description", "short": "Human explanation of the value set", "definition": "Describes the intended use of this particular set of codes.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-10" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.description" } ] }, { "id": "ElementDefinition.binding.valueSet[x]", "path": "ElementDefinition.binding.valueSet[x]", "short": "Source of value set", "definition": "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used. If the binding refers to an explicit value set - the normal case - then use a Reference(ValueSet) preferably containing the canonical URL for the value set. If the reference is to an implicit value set - usually, an IETF RFC that defines a grammar, such as mime types - then use a uri.", "comments": "For value sets with a referenceResource, the display can contain the value set description. The reference may be version-specific or not.", "min": 0, "max": "1", "type": [ { "code": "uri" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ValueSet" } ], "condition": [ "eld-10", "eld-12" ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "valueDomain.valueSet" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "points to explicit list or expression that evaluates to list of (Enumerated_Value_Domain).member" }, { "identity": "loinc", "map": "CODE_TABLE" } ] }, { "id": "ElementDefinition.mapping", "path": "ElementDefinition.mapping", "short": "Map element to another set of definitions", "definition": "Identifies a concept from an external specification that roughly corresponds to this element.", "comments": "Mappings are not necessarily specific enough for safe translation.", "requirements": "Provides guidance to implementers familiar with or converting content from other specifications.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "mappingSpecification" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Registered_item).document_reference[document_type=mapping] Also, .meaning linkage to Data_Element_Concept is done as a mapping to a reference model. (Data_Element_Concepts are all defined in some sort of reference model, be that Object_Class and Property or some other mechanism)" } ] }, { "id": "ElementDefinition.mapping.id", "path": "ElementDefinition.mapping.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.mapping.extension", "path": "ElementDefinition.mapping.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "ElementDefinition.mapping.identity", "path": "ElementDefinition.mapping.identity", "short": "Reference to mapping declaration", "definition": "An internal reference to the definition of a mapping.", "min": 1, "max": "1", "type": [ { "code": "id" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.mapping.language", "path": "ElementDefinition.mapping.language", "short": "Computable language of mapping", "definition": "Identifies the computable language in which mapping.map is expressed.", "comments": "If omitted, then there can be no expectation of computational interpretation of the mapping.", "min": 0, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The mime type of an attachment. Any valid mime type is allowed.", "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt" }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.mapping.map", "path": "ElementDefinition.mapping.map", "short": "Details of the mapping", "definition": "Expresses what part of the target specification corresponds to this element.", "comments": "For most mappings, the syntax is undefined. Syntax will be provided for mappings to the RIM. Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "ObjectClass, Property (this is one possible data model that can be mapped to - the uri would identify the data model mappingSpecification.mappingScript" } ] } ] }, "differential": { "element": [ { "id": "ElementDefinition", "path": "ElementDefinition", "short": "Definition of an element in a resource or extension", "definition": "Captures constraints on each element within the resource, profile, or extension.", "min": 0, "max": "*", "constraint": [ { "key": "eld-2", "severity": "error", "human": "Min <= Max", "expression": "min.empty() or max.empty() or (max = '*') or (min <= max.toInteger())", "xpath": "not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value)" }, { "key": "eld-5", "severity": "error", "human": "if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding", "expression": "contentReference.empty() or (type.empty() and defaultValue.empty() and fixed.empty() and pattern.empty() and example.empty() and minValue.empty() and maxValue.empty() and maxLength.empty() and binding.empty())", "xpath": "not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')]) or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding)))" }, { "key": "eld-7", "severity": "error", "human": "Pattern may only be specified if there is one type", "expression": "pattern.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)<=1)" }, { "key": "eld-6", "severity": "error", "human": "Fixed value may only be specified if there is one type", "expression": "fixed.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)<=1)" }, { "key": "eld-11", "severity": "error", "human": "Binding can only be present for coded elements, string, and uri", "expression": "binding.empty() or type.code.empty() or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'Extension') or (code = 'string') or (code = 'uri')).exists()", "xpath": "not(exists(f:binding)) or (count(f:type/f:code) = 0) or f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri')" }, { "key": "eld-8", "severity": "error", "human": "Pattern and value are mutually exclusive", "expression": "pattern.empty() or fixed.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'fixed')]))" }, { "key": "eld-14", "severity": "error", "human": "Constraints must be unique by key", "expression": "constraint.select(key).isDistinct()", "xpath": "count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))" }, { "key": "eld-13", "severity": "error", "human": "Types must be unique by the combination of code and profile", "expression": "type.select(code&profile&targetProfile).isDistinct()", "xpath": "not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value]))" }, { "key": "eld-16", "severity": "error", "human": "sliceName must be a proper token", "expression": "sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\\\-\\\\_]+$')", "xpath": "not(exists(f:sliceName/@value)) or matches(f:sliceName/@value, '^[a-zA-Z0-9\\\\-\\\\_]+$')" }, { "key": "eld-15", "severity": "error", "human": "default value and meaningWhenMissing are mutually exclusive", "expression": "defaultValue.empty() or meaningWhenMissing.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))" } ], "mapping": [ { "identity": "dex", "map": "RetrieveMetadata response" }, { "identity": "v2", "map": "OM1" }, { "identity": "rim", "map": "Observation[classCode=OBS, moodCode=DEFN]" }, { "identity": "iso11179", "map": "Data_Element" } ] }, { "id": "ElementDefinition.path", "path": "ElementDefinition.path", "short": "Path of the element in the heirarchy of elements", "definition": "The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "Name, Identifier & Context" } ] }, { "id": "ElementDefinition.representation", "path": "ElementDefinition.representation", "short": "xmlAttr | xmlText | typeAttr | cdaText | xhtml", "definition": "Codes that define how this element is represented in instances, when the deviation varies from the normal case.", "comments": "In resources, this is rarely used except for special cases where the representation deviates from the normal, and can only be done in the base standard (and profiles must reproduce what the base standard does). This element is used quite commonly in Logical models when the logical models represent a specific wire format (e.g. CDA, v2 etc).", "min": 0, "max": "*", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How a property is represented on the wire.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/property-representation" } }, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.sliceName", "path": "ElementDefinition.sliceName", "short": "Name for this particular element (in a set of slices)", "definition": "The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.", "comments": "The name SHALL be unique within the structure within the context of the constrained resource element. (Though to avoid confusion, uniqueness across all elements is recommended.).", "requirements": "May also be used for code generation purposes.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.label", "path": "ElementDefinition.label", "short": "Name for element to display with or prompt for element", "definition": "The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.", "comments": "Question and label serve similar purposes in they both can be used to prompt for capturing a data element. Whether the question form or label form should be used will depend on the type of instrument being used to capture the information.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./code/display" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.code", "path": "ElementDefinition.code", "short": "Defining code", "definition": "A code that provides the meaning for the element according to a particular terminology.", "comments": "The data element definition and other constraints SHALL be a proper constraint on the meaning (as defined in the code system, including relationships) of any code listed here. Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself.", "requirements": "Links the meaning of an element to an external terminology.", "min": 0, "max": "*", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes that indicate the meaning of a data element.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } }, "mapping": [ { "identity": "v2", "map": "OM1.7" }, { "identity": "rim", "map": "./code (root or translation)" }, { "identity": "iso11179", "map": "(Data_Element).data_element_concept.identifier" }, { "identity": "loinc", "map": "LOINC_NUM" } ] }, { "id": "ElementDefinition.slicing", "path": "ElementDefinition.slicing", "short": "This element is sliced - slices follow", "definition": "Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).", "comments": "The first element in the sequence, the one that carries the slicing, is the definition that applies to all the slices. This is based on the unconstrained element, but can apply any constraints as appropriate. This may include the common constraints on the children of the element.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "constraint": [ { "key": "eld-1", "severity": "error", "human": "If there are no discriminators, there must be a definition", "expression": "discriminator.exists() or description.exists()", "xpath": "(f:discriminator) or (f:description)" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.discriminator", "path": "ElementDefinition.slicing.discriminator", "short": "Element values that are used to distinguish the slices", "definition": "Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.", "comments": "If there is no discriminator, the content is hard to process, so this should be avoided. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator must be \"@type\".", "min": 0, "max": "*", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.description", "path": "ElementDefinition.slicing.description", "short": "Text description of how slicing works (or not)", "definition": "A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.", "comments": "If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-1" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "id": "ElementDefinition.slicing.ordered", "path": "ElementDefinition.slicing.ordered", "short": "If elements must be in same order as slices", "definition": "If the matching elements have to occur in the same order as defined in the profile.", "comments": "Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.slicing.rules", "path": "ElementDefinition.slicing.rules", "short": "closed | open | openAtEnd", "definition": "Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.", "comments": "Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile.", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How slices are interpreted when evaluating an instance.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-slicing-rules" } }, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.short", "path": "ElementDefinition.short", "short": "Concise definition for xml presentation", "definition": "A concise description of what this element means (e.g. for use in autogenerated summaries).", "comments": "May change the term to provide language more appropriate to the context of the profile or to reflect slicing.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" }, { "identity": "iso11179", "map": "N/A" } ] }, { "id": "ElementDefinition.definition", "path": "ElementDefinition.definition", "short": "Full formal definition as narrative text", "definition": "Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.", "comments": "It is easy for a different definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing definitions.", "requirements": "To allow a user to state the usage of an element in a particular context.", "alias": [ "Description" ], "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM1.6, OM1.41" }, { "identity": "rim", "map": "./text" }, { "identity": "iso11179", "map": "(Designatable_Item).definition.text acceptability=preferred in default context" }, { "identity": "loinc", "map": "TERM DEFINITION/DESCRIPTION(S)" } ] }, { "id": "ElementDefinition.comments", "path": "ElementDefinition.comments", "short": "Comments about the use of this element", "definition": "Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.", "comments": "If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "NTE, OM1.32, OM1.33, OM1.39" }, { "identity": "rim", "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code" }, { "identity": "iso11179", "map": "(Administered_Item).explanatory_comment" }, { "identity": "loinc", "map": "COMMENTS" } ] }, { "id": "ElementDefinition.requirements", "path": "ElementDefinition.requirements", "short": "Why this resource has been created", "definition": "This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.", "comments": "This element does not describe the usage of the element (that's done in comments), rather it's for traceability of *why* the element is either needed or why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this data element.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./inboundRelationship[typeCode=META]/source[classCode=ACT, moodCode=EVN, isCriterionInd=true]/reasonCode/originalText" }, { "identity": "iso11179", "map": "(Registered_item).document_reference[document_type=requirements].notation" }, { "identity": "loinc", "map": "R/O/C" } ] }, { "id": "ElementDefinition.alias", "path": "ElementDefinition.alias", "short": "Other names", "definition": "Identifies additional names by which this element might also be known.", "requirements": "Allows for better easier recognition of the element by multiple communities, including international communities.", "alias": [ "synonym", "other name" ], "min": 0, "max": "*", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM1.8, OM1.52" }, { "identity": "rim", "map": "Not currently expressible" }, { "identity": "iso11179", "map": "(Designatable_Item).designation.sign acceptability!=preferred or context is other than default" }, { "identity": "loinc", "map": "RELATED NAMES (only some of these apply)" } ] }, { "id": "ElementDefinition.min", "path": "ElementDefinition.min", "short": "Minimum Cardinality", "definition": "The minimum number of times this element SHALL appear in the instance.", "min": 0, "max": "1", "type": [ { "code": "integer" } ], "condition": [ "eld-2" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Minimum size of data element values?" } ] }, { "id": "ElementDefinition.max", "path": "ElementDefinition.max", "short": "Maximum Cardinality (a number or *)", "definition": "The maximum number of times this element is permitted to appear in the instance.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-3", "eld-2" ], "constraint": [ { "key": "eld-3", "severity": "error", "human": "Max SHALL be a number or \"*\"", "expression": "empty() or ($this = '*') or (toInteger() >= 0)", "xpath": "@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OMC.10" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Maximum size of data element values?" } ] }, { "id": "ElementDefinition.base", "path": "ElementDefinition.base", "short": "Base definition information for tools", "definition": "Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is provided when the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot.", "comments": "The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.path", "path": "ElementDefinition.base.path", "short": "Path that identifies the base element", "definition": "The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [StructureDefinition](structuredefinition.html#) without a StructureDefinition.base.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.min", "path": "ElementDefinition.base.min", "short": "Min cardinality of the base element", "definition": "Minimum cardinality of the base element identified by the path.", "comments": "This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this).", "min": 1, "max": "1", "type": [ { "code": "integer" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.base.max", "path": "ElementDefinition.base.max", "short": "Max cardinality of the base element", "definition": "Maximum cardinality of the base element identified by the path.", "comments": "This is provided to code generation, since the wire representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.contentReference", "path": "ElementDefinition.contentReference", "short": "Reference to definition of content for the element", "definition": "Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "condition": [ "eld-5" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "id": "ElementDefinition.type", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "TypeRef" } ], "path": "ElementDefinition.type", "short": "Data type and Profile for this element", "definition": "The data type or resource that the value of this element is permitted to be.", "comments": "The Type of the element can be left blank in a differential constraint, in which case the type is inherited from the resource. Abstract types are not permitted to appear as a type when multiple types are listed. (I.e. Abstract types cannot be part of a choice).", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "condition": [ "eld-13" ], "constraint": [ { "key": "eld-4", "severity": "error", "human": "Aggregation may only be specified if one of the allowed types for the element is a resource", "expression": "aggregation.empty() or (code = 'Reference')", "xpath": "not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])" } ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "valueDomain.dataType" }, { "identity": "v2", "map": "OM1.3, OMC.9" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.data+Q14type" }, { "identity": "loinc", "map": "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" } ] }, { "id": "ElementDefinition.type.code", "path": "ElementDefinition.type.code", "short": "Data type or Resource (reference to definition)", "definition": "URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. \"string\" is a reference to http://hl7.org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.", "comments": "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). There would be one pair of type/code for each allowed target resource type.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Either a resource or a data type, including logical model types", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/defined-types" } }, "mapping": [ { "identity": "v2", "map": "OM1.3" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.data+Q14type" }, { "identity": "loinc", "map": "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" } ] }, { "id": "ElementDefinition.type.profile", "path": "ElementDefinition.type.profile", "short": "Profile (StructureDefinition) to apply (or IG)", "definition": "Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition in another profile. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.targetProfile", "path": "ElementDefinition.type.targetProfile", "short": "Profile (StructureDefinition) to apply to reference target (or IG)", "definition": "Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition in another profile. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.", "comments": "NOTE: This element is not used properly by the build tooling at this time - it puts what should go in here in .profile. This will be fixed prior to publication of STU3. When this happens, there will be a constrain that this element must be populated if the value of .code is 'Reference'.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.aggregation", "path": "ElementDefinition.type.aggregation", "short": "contained | referenced | bundled - how aggregated", "definition": "If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.", "min": 0, "max": "*", "type": [ { "code": "code" } ], "condition": [ "eld-4" ], "isSummary": true, "binding": { "strength": "required", "description": "How resource references can be aggregated.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-aggregation-mode" } }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "n/a" } ] }, { "id": "ElementDefinition.type.versioning", "path": "ElementDefinition.type.versioning", "short": "either | independent | specific", "definition": "Whether this reference needs to be version specific or version independent, or whetehr either can be used.", "comments": "The base specification never makes a rule as to which form is allowed, but implementation guides may do this.", "min": 0, "max": "1", "type": [ { "code": "code" } ], "defaultValueCode": "either", "isSummary": true, "binding": { "strength": "required", "description": "Whether a reference needs to be version specific or version independent, or whetehr either can be used", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/reference-version-rules" } }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.defaultValue[x]", "path": "ElementDefinition.defaultValue[x]", "short": "Specified value if missing from instance", "definition": "The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').", "comments": "Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed. For these reasons, default values are (and should be) used extremely sparingly.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-15" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.meaningWhenMissing", "path": "ElementDefinition.meaningWhenMissing", "short": "Implicit meaning when this element is missing", "definition": "The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.", "comments": "Implicit meanings for missing values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. An implicit meaning for a missing value can never be changed, and specifying one has the consequence that constraining its use in profiles eliminates use cases as possibilities, not merely moving them out of scope.", "min": 0, "max": "1", "type": [ { "code": "markdown" } ], "condition": [ "eld-15" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.fixed[x]", "path": "ElementDefinition.fixed[x]", "short": "Value must be exactly this", "definition": "Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.", "comments": "This is not recommended for Coding and CodeableConcept since these often have highly contextual properties such as version or display.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-6", "eld-8" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "N/A (only relevant when constraining, which 11179 doesn't do)" } ] }, { "id": "ElementDefinition.pattern[x]", "path": "ElementDefinition.pattern[x]", "short": "Value must have at least these property values", "definition": "Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).", "comments": "Mostly used for fixing values of CodeableConcept. At present, pattern[x] is not recommended as a basis for slicing while issues related to this are investigated during the STU period.", "min": 0, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-7", "eld-8" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example", "path": "ElementDefinition.example", "short": "Example value (as defined for type)", "definition": "A sample value for this element demonstrating the type of information that would typically be found in the element.", "comments": "Examples will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be. (I.e. Example values for dates or quantities would generally be unnecessary.) If the example value is fully populated, the publication tool can generate an instance automatically.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example.label", "path": "ElementDefinition.example.label", "short": "Describes the purpose of this example", "definition": "Describes the purpose of this example amoung the set of examples.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.example.value[x]", "path": "ElementDefinition.example.value[x]", "short": "Value of Example (one of allowed types)", "definition": "The actual value for the element, which must be one of the types allowed for this element.", "min": 1, "max": "1", "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".example" }, { "identity": "loinc", "map": "EXMPL_ANSWERS" } ] }, { "id": "ElementDefinition.minValue[x]", "path": "ElementDefinition.minValue[x]", "short": "Minimum Allowed Value (for some types)", "definition": "The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.", "comments": "Except for date/date/instant, the type of the minValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of minValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is subtracted from the current clock to determine the minimum allowable value. A minimum value for a Quantity is interpreted as an canonical minimum - e.g. you cannot provide 100mg if the minimum value is 10g.", "min": 0, "max": "1", "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.maxValue[x]", "path": "ElementDefinition.maxValue[x]", "short": "Maximum Allowed Value (for some types)", "definition": "The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.", "comments": "Except for date/date/instant, the type of the maxValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of maxValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is added to the current clock to determine the maximum allowable value. A maximum value for a Quantity is interpreted as an canonical maximum - e.g. you cannot provide 10g if the maximum value is 50mg.", "min": 0, "max": "1", "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.maxLength", "path": "ElementDefinition.maxLength", "short": "Max length for strings", "definition": "Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.", "comments": "Receivers are not required to reject instances that exceed the maximum length. The full length could be stored. In some cases, data might be truncated, though truncation should be undertaken with care and an understanding of the consequences of doing so. If not specified, there is no conformance expectation for length support.", "min": 0, "max": "1", "type": [ { "code": "integer" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OMC.12" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.maximum_character_quantity" } ] }, { "id": "ElementDefinition.condition", "path": "ElementDefinition.condition", "short": "Reference to invariant about presence", "definition": "A reference to an invariant that may make additional statements about the cardinality or value in the instance.", "min": 0, "max": "*", "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ElementDefinition.constraint", "path": "ElementDefinition.constraint", "short": "Condition that must evaluate to true", "definition": "Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.", "comments": "Constraints should be declared on the \"context\" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.constraint.key", "path": "ElementDefinition.constraint.key", "short": "Target of 'condition' reference above", "definition": "Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.", "min": 1, "max": "1", "type": [ { "code": "id" } ], "condition": [ "eld-14" ], "isSummary": true }, { "id": "ElementDefinition.constraint.requirements", "path": "ElementDefinition.constraint.requirements", "short": "Why this constraint is necessary or appropriate", "definition": "Description of why this constraint is necessary or appropriate.", "comments": "To be used if the reason for the constraint may not be intuitive to all implementers.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.severity", "path": "ElementDefinition.constraint.severity", "short": "error | warning", "definition": "Identifies the impact constraint violation has on the conformance of the instance.", "comments": "This allows constraints to be asserted as \"shall\" (error) and \"should\" (warning).", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "SHALL applications comply with this constraint?", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/constraint-severity" } } }, { "id": "ElementDefinition.constraint.human", "path": "ElementDefinition.constraint.human", "short": "Human description of constraint", "definition": "Text that can be used to describe the constraint in messages identifying that the constraint has been violated.", "comments": "Should be expressed in business terms as much as possible.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.expression", "path": "ElementDefinition.constraint.expression", "short": "FluentPath expression of constraint", "definition": "A [FluentPath](http://hl7.org/fluentpath) expression of constraint that can be executed to see if this constraint is met.", "requirements": "Used by validation tooling tests of the validity of the resource.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.xpath", "path": "ElementDefinition.constraint.xpath", "short": "XPath expression of constraint", "definition": "An XPath expression of constraint that can be executed to see if this constraint is met.", "comments": "Elements SHALL use \"f\" as the namespace prefix for the FHIR namespace, and \"x\" for the xhtml namespace, and SHALL NOT use any other prefixes. \n\nNote: we are considering deprecating the xpath element. Implementer feedback is welcome.", "requirements": "Used in Schematron tests of the validity of the resource.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition.constraint.source", "path": "ElementDefinition.constraint.source", "short": "Reference to original source of constraint", "definition": "A reference to the original source of the constraint, for traceability purposes.", "comments": "This is used when, e.g. rendering, where it is not useful to present inherited constraints when rendering the snapshot.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ElementDefinition.mustSupport", "path": "ElementDefinition.mustSupport", "short": "If the element must supported", "definition": "If true, implementations that produce or consume resources SHALL provide \"support\" for the element in some meaningful way. If false, the element may be ignored and not supported.", "comments": "\"Something useful\" is context dependent and impossible to describe in the base FHIR specification. For this reason, tue mustSupport flag is never set to true by the FHIR specification itself - it is only set to true in profiles. \n\nThis is done in [Resource Profiles](profiling.html#mustsupport), where the profile labels an element as mustSupport=true. When a profile does this, it SHALL also make clear exactly what kind of \"support\" is required, as this can mean many things.\n\nNote that an element that has the property IsModifier is not necessarily a \"key\" element (e.g. one of the important elements to make use of the resource), nor is it automatically mustSupport - however both of these things are more likely to be true for IsModifier elements than for other elements.", "requirements": "Allows a profile to set expectations for system capabilities beyond merely respecting cardinality constraints.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.isModifier", "path": "ElementDefinition.isModifier", "short": "If this modifies the meaning of other elements", "definition": "If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.", "comments": "Only the definition of an element can set IsModifier true - either the specification itself or where an extension is originally defined. Once set, it cannot be changed in derived profiles. An element/extension that has isModifier=true SHOULD also have a minimum cardinality of 1, so that there is no lack of clarity about what to do if it is missing. If it can be missing, the definition SHALL make the meaning of a missing element clear.", "requirements": "Allows elements to be introduced into a specification that can't safely be ignored by applications that don't recognize them.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.isSummary", "path": "ElementDefinition.isSummary", "short": "Include when _summary = true?", "definition": "Whether the element should be included if a client requests a search with the parameter _summary=true.", "comments": "Some resources include a set of simple metadata, and some very large data. This element is used to reduce the quantity of data returned in searches. Note that servers may pre-cache summarized resources for optimal performance, so servers may not support per-profile use of the isSummary flag. When a request is made with _summary=true, serailisers only include elements marked as 'isSummary = true'. Other than Attachment.data, all data type properties are included in the summary form. Modifier elements or elements with minimum cardinality = 1 must be marked as summary elements.", "requirements": "Allow clients to search through large resources quickly.", "min": 0, "max": "1", "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true, "mapping": [ { "identity": "iso11179", "map": "??" } ] }, { "id": "ElementDefinition.binding", "path": "ElementDefinition.binding", "short": "ValueSet details if this is coded", "definition": "Binds to a value set if this element is coded (code, Coding, CodeableConcept).", "comments": "For a CodeableConcept, when no codes are allowed - only text, use a binding of strength \"required\" with a description explaining that no coded values are allowed and what sort of information to put in the \"text\" element.", "min": 0, "max": "1", "type": [ { "code": "Element" } ], "condition": [ "eld-11" ], "constraint": [ { "key": "eld-10", "severity": "error", "human": "provide either a reference or a description (or both)", "expression": "valueSet.exists() or description.exists()", "xpath": "(exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description)" }, { "key": "eld-12", "severity": "error", "human": "ValueSet as a URI SHALL start with http:// or https:// or urn:", "expression": "valueSet.is(uri).not() or valueSet.as(uri).startsWith('http:') or valueSet.as(uri).startsWith('https') or valueSet.as(uri).startsWith('urn:')", "xpath": "not(exists(f:valueSetUri)) or (starts-with(string(f:valueSetUri/@value), 'http:') or starts-with(string(f:valueSetUri/@value), 'https:') or starts-with(string(f:valueSetUri/@value), 'urn:'))" } ], "isSummary": true, "mapping": [ { "identity": "v2", "map": "OM3, OMC.11" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain" }, { "identity": "loinc", "map": "ANSWER LIST, NORMATIVE ANSWER LIST" } ] }, { "id": "ElementDefinition.binding.strength", "path": "ElementDefinition.binding.strength", "short": "required | extensible | preferred | example", "definition": "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.", "comments": "For further discussion, see [Using Terminologies](terminologies.html).", "alias": [ "conformance", "extensibility" ], "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "Indication of the degree of conformance expectations associated with a binding.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/binding-strength" } }, "mapping": [ { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "loinc", "map": "N/A" } ] }, { "id": "ElementDefinition.binding.description", "path": "ElementDefinition.binding.description", "short": "Human explanation of the value set", "definition": "Describes the intended use of this particular set of codes.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "condition": [ "eld-10" ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": ".domain.description" } ] }, { "id": "ElementDefinition.binding.valueSet[x]", "path": "ElementDefinition.binding.valueSet[x]", "short": "Source of value set", "definition": "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used. If the binding refers to an explicit value set - the normal case - then use a Reference(ValueSet) preferably containing the canonical URL for the value set. If the reference is to an implicit value set - usually, an IETF RFC that defines a grammar, such as mime types - then use a uri.", "comments": "For value sets with a referenceResource, the display can contain the value set description. The reference may be version-specific or not.", "min": 0, "max": "1", "type": [ { "code": "uri" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ValueSet" } ], "condition": [ "eld-10", "eld-12" ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "valueDomain.valueSet" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "points to explicit list or expression that evaluates to list of (Enumerated_Value_Domain).member" }, { "identity": "loinc", "map": "CODE_TABLE" } ] }, { "id": "ElementDefinition.mapping", "path": "ElementDefinition.mapping", "short": "Map element to another set of definitions", "definition": "Identifies a concept from an external specification that roughly corresponds to this element.", "comments": "Mappings are not necessarily specific enough for safe translation.", "requirements": "Provides guidance to implementers familiar with or converting content from other specifications.", "min": 0, "max": "*", "type": [ { "code": "Element" } ], "isSummary": true, "mapping": [ { "identity": "dex", "map": "mappingSpecification" }, { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "Registered_item).document_reference[document_type=mapping] Also, .meaning linkage to Data_Element_Concept is done as a mapping to a reference model. (Data_Element_Concepts are all defined in some sort of reference model, be that Object_Class and Property or some other mechanism)" } ] }, { "id": "ElementDefinition.mapping.identity", "path": "ElementDefinition.mapping.identity", "short": "Reference to mapping declaration", "definition": "An internal reference to the definition of a mapping.", "min": 1, "max": "1", "type": [ { "code": "id" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.mapping.language", "path": "ElementDefinition.mapping.language", "short": "Computable language of mapping", "definition": "Identifies the computable language in which mapping.map is expressed.", "comments": "If omitted, then there can be no expectation of computational interpretation of the mapping.", "min": 0, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The mime type of an attachment. Any valid mime type is allowed.", "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt" }, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" } ] }, { "id": "ElementDefinition.mapping.map", "path": "ElementDefinition.mapping.map", "short": "Details of the mapping", "definition": "Expresses what part of the target specification corresponds to this element.", "comments": "For most mappings, the syntax is undefined. Syntax will be provided for mappings to the RIM. Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies.", "min": 1, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "N/A (MIF territory)" }, { "identity": "iso11179", "map": "ObjectClass, Property (this is one possible data model that can be mapped to - the uri would identify the data model mappingSpecification.mappingScript" } ] } ] } }
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.