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
(No assigned work group) | Maturity Level: 0 | Context: Any |
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/elementdefinition-de
Identifies how the ElementDefinition data type is used when it appears within a data element
This profile was published on Sat, Feb 28, 2015 00:00+1100 as a draft by Health Level Seven International (Orders and Observations).
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from ElementDefinition.
This structure is derived from ElementDefinition.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ElementDefinition | I | 0..* | Definition of an element in a resource or extension | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
elementdefinition-question | I | 0..* | string | Extension URL: http://hl7.org/fhir/StructureDefinition/elementdefinition-question |
elementdefinition-allowedUnits | I | 0..1 | CodeableConcept, Reference(ValueSet) | Extension URL: http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits Binding: UCUM Codes (required) |
path | ∑ | 1..1 | string | Path of the element in the heirarchy of elements |
sliceName | ∑ | 0..1 | string | Name for this particular element (in a set of slices) |
label | ∑ | 0..1 | string | Name for element to display with or prompt for element |
code | ∑ | 0..* | Coding | Defining code Binding: LOINC Codes (example) |
definition | ∑ | 0..1 | markdown | Full formal definition as narrative text |
comments | ∑ | 0..1 | markdown | Comments about the use of this element |
requirements | ∑ | 0..1 | markdown | Why this resource has been created |
alias | ∑ | 0..* | string | Other names |
min | ∑I | 0..1 | integer | Minimum Cardinality |
max | ∑I | 0..1 | string | Maximum Cardinality (a number or *) eld-3: Max SHALL be a number or "*" |
base | ∑I | 0..1 | Element | Base definition information for tools |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
path | ∑ | 1..1 | string | Path that identifies the base element |
min | ∑ | 1..1 | integer | Min cardinality of the base element |
max | ∑ | 1..1 | string | Max cardinality of the base element |
type | ∑I | 0..* | Element | Data type and Profile for this element |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
code | ∑ | 1..1 | uri | Data type or Resource (reference to definition) Binding: FHIRDefinedType (extensible) |
targetProfile | ∑ | 0..1 | uri | Profile (StructureDefinition) to apply to reference target (or IG) |
versioning | ∑ | 0..1 | code | either | independent | specific Binding: ReferenceVersionRules (required) |
defaultValue[x] | ∑I | 0..1 | base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta | Specified value if missing from instance |
meaningWhenMissing | ∑I | 0..1 | markdown | Implicit meaning when this element is missing |
example | ∑I | 0..* | Element | Example value (as defined for type) |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
label | ∑ | 1..1 | string | Describes the purpose of this example |
value[x] | ∑ | 1..1 | base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta | Value of Example (one of allowed types) |
minValue[x] | ∑ | 0..1 | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | Minimum Allowed Value (for some types) |
maxValue[x] | ∑ | 0..1 | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | Maximum Allowed Value (for some types) |
maxLength | ∑ | 0..1 | integer | Max length for strings |
condition | ∑ | 0..* | id | Reference to invariant about presence |
constraint | ∑I | 0..* | Element | Condition that must evaluate to true |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
key | ∑I | 1..1 | id | Target of 'condition' reference above |
requirements | ∑ | 0..1 | string | Why this constraint is necessary or appropriate |
severity | ∑ | 1..1 | code | error | warning Binding: ConstraintSeverity (required) |
human | ∑ | 1..1 | string | Human description of constraint |
expression | ∑ | 1..1 | string | FluentPath expression of constraint |
xpath | ∑ | 0..1 | string | XPath expression of constraint |
source | ∑ | 0..1 | uri | Reference to original source of constraint |
mustSupport | ∑ | 0..1 | boolean | If the element must supported |
binding | ∑I | 0..1 | Element | ValueSet details if this is coded eld-10: provide either a reference or a description (or both) eld-12: ValueSet as a URI SHALL start with http:// or https:// or urn: |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
strength | ∑ | 1..1 | code | required | extensible | preferred | example Binding: BindingStrength (required) |
description | ∑I | 0..1 | string | Human explanation of the value set |
valueSet[x] | ∑I | 0..1 | uri, Reference(ValueSet) | Source of value set |
mapping | ∑I | 0..* | Element | Map element to another set of definitions |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
identity | ∑ | 1..1 | id | Reference to mapping declaration |
language | ∑ | 0..1 | code | Computable language of mapping Binding: IETF BCP-13 (required) |
map | ∑ | 1..1 | string | Details of the mapping |
Documentation for this format |
todo
This structure is derived from ElementDefinition.
Differential View
This structure is derived from ElementDefinition.
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ElementDefinition | I | 0..* | Definition of an element in a resource or extension | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
elementdefinition-question | I | 0..* | string | Extension URL: http://hl7.org/fhir/StructureDefinition/elementdefinition-question |
elementdefinition-allowedUnits | I | 0..1 | CodeableConcept, Reference(ValueSet) | Extension URL: http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits Binding: UCUM Codes (required) |
path | ∑ | 1..1 | string | Path of the element in the heirarchy of elements |
sliceName | ∑ | 0..1 | string | Name for this particular element (in a set of slices) |
label | ∑ | 0..1 | string | Name for element to display with or prompt for element |
code | ∑ | 0..* | Coding | Defining code Binding: LOINC Codes (example) |
definition | ∑ | 0..1 | markdown | Full formal definition as narrative text |
comments | ∑ | 0..1 | markdown | Comments about the use of this element |
requirements | ∑ | 0..1 | markdown | Why this resource has been created |
alias | ∑ | 0..* | string | Other names |
min | ∑I | 0..1 | integer | Minimum Cardinality |
max | ∑I | 0..1 | string | Maximum Cardinality (a number or *) eld-3: Max SHALL be a number or "*" |
base | ∑I | 0..1 | Element | Base definition information for tools |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
path | ∑ | 1..1 | string | Path that identifies the base element |
min | ∑ | 1..1 | integer | Min cardinality of the base element |
max | ∑ | 1..1 | string | Max cardinality of the base element |
type | ∑I | 0..* | Element | Data type and Profile for this element |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
code | ∑ | 1..1 | uri | Data type or Resource (reference to definition) Binding: FHIRDefinedType (extensible) |
targetProfile | ∑ | 0..1 | uri | Profile (StructureDefinition) to apply to reference target (or IG) |
versioning | ∑ | 0..1 | code | either | independent | specific Binding: ReferenceVersionRules (required) |
defaultValue[x] | ∑I | 0..1 | base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta | Specified value if missing from instance |
meaningWhenMissing | ∑I | 0..1 | markdown | Implicit meaning when this element is missing |
example | ∑I | 0..* | Element | Example value (as defined for type) |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
label | ∑ | 1..1 | string | Describes the purpose of this example |
value[x] | ∑ | 1..1 | base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta | Value of Example (one of allowed types) |
minValue[x] | ∑ | 0..1 | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | Minimum Allowed Value (for some types) |
maxValue[x] | ∑ | 0..1 | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | Maximum Allowed Value (for some types) |
maxLength | ∑ | 0..1 | integer | Max length for strings |
condition | ∑ | 0..* | id | Reference to invariant about presence |
constraint | ∑I | 0..* | Element | Condition that must evaluate to true |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
key | ∑I | 1..1 | id | Target of 'condition' reference above |
requirements | ∑ | 0..1 | string | Why this constraint is necessary or appropriate |
severity | ∑ | 1..1 | code | error | warning Binding: ConstraintSeverity (required) |
human | ∑ | 1..1 | string | Human description of constraint |
expression | ∑ | 1..1 | string | FluentPath expression of constraint |
xpath | ∑ | 0..1 | string | XPath expression of constraint |
source | ∑ | 0..1 | uri | Reference to original source of constraint |
mustSupport | ∑ | 0..1 | boolean | If the element must supported |
binding | ∑I | 0..1 | Element | ValueSet details if this is coded eld-10: provide either a reference or a description (or both) eld-12: ValueSet as a URI SHALL start with http:// or https:// or urn: |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
strength | ∑ | 1..1 | code | required | extensible | preferred | example Binding: BindingStrength (required) |
description | ∑I | 0..1 | string | Human explanation of the value set |
valueSet[x] | ∑I | 0..1 | uri, Reference(ValueSet) | Source of value set |
mapping | ∑I | 0..* | Element | Map element to another set of definitions |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
identity | ∑ | 1..1 | id | Reference to mapping declaration |
language | ∑ | 0..1 | code | Computable language of mapping Binding: IETF BCP-13 (required) |
map | ∑ | 1..1 | string | Details of the mapping |
Documentation for this format |
XML Template
JSON Template
todo
Other representations of profile: Schematron
Path | Name | Conformance | ValueSet |
ElementDefinition.code | LOINC Codes | example | LOINC Codes |
ElementDefinition.slicing.rules | SlicingRules | required | SlicingRules |
ElementDefinition.type.code | FHIRDefinedType | extensible | FHIRDefinedType |
ElementDefinition.type.versioning | ReferenceVersionRules | required | ReferenceVersionRules |
ElementDefinition.constraint.severity | ConstraintSeverity | required | ConstraintSeverity |
ElementDefinition.binding.strength | BindingStrength | required | BindingStrength |
ElementDefinition.mapping.language | ?ext | required | http://www.rfc-editor.org/bcp/bcp13.txt |
Id | Path | Details | Requirements |
eld-3 | ElementDefinition.max | Max SHALL be a number or "*" XPath: @value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='') | |
eld-10 | ElementDefinition.binding | provide either a reference or a description (or both) XPath: (exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description) | |
eld-12 | ElementDefinition.binding | ValueSet as a URI SHALL start with http:// or https:// or 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:')) |