ElementDefinition
Base StructureDefinition for ElementDefinition Type: Captures constraints on each element within the resource, profile, or extension.
Complex data type in FHIR R4. Maturity: Not stated.
Elements
| Element | Type | Cardinality | Description |
|---|---|---|---|
id | string | 0..1 | Unique id for inter-element referencing |
extension | Extension | 0..* | Additional content defined by implementations |
modifierExtension | Extension | 0..* | Extensions that cannot be ignored even if unrecognized |
path | string | 1..1 | Path of the element in the hierarchy of elements |
representation | code | 0..* | xmlAttr | xmlText | typeAttr | cdaText | xhtml |
sliceName | string | 0..1 | Name for this particular element (in a set of slices) |
sliceIsConstraining | boolean | 0..1 | If this slice definition constrains an inherited slice definition (or not) |
label | string | 0..1 | Name for element to display with or prompt for element |
code | Coding | 0..* | Corresponding codes in terminologies |
slicing | Element | 0..1 | This element is sliced - slices follow |
short | string | 0..1 | Concise definition for space-constrained presentation |
definition | markdown | 0..1 | Full formal definition as narrative text |
comment | markdown | 0..1 | Comments about the use of this element |
requirements | markdown | 0..1 | Why this resource has been created |
alias | string | 0..* | Other names |
min | unsignedInt | 0..1 | Minimum Cardinality |
max | string | 0..1 | Maximum Cardinality (a number or *) |
base | Element | 0..1 | Base definition information for tools |
contentReference | uri | 0..1 | Reference to definition of content for the element |
type | Element | 0..* | Data type and Profile for this element |
defaultValue[x] | base64Binary, boolean, canonical, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta | 0..1 | Specified value if missing from instance |
meaningWhenMissing | markdown | 0..1 | Implicit meaning when this element is missing |
orderMeaning | string | 0..1 | What the order of the elements means |
fixed[x] | base64Binary, boolean, canonical, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta | 0..1 | Value must be exactly this |
pattern[x] | base64Binary, boolean, canonical, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta | 0..1 | Value must have at least these property values |
example | Element | 0..* | Example value (as defined for type) |
minValue[x] | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | 0..1 | Minimum Allowed Value (for some types) |
maxValue[x] | date, dateTime, instant, time, decimal, integer, positiveInt, unsignedInt, Quantity | 0..1 | Maximum Allowed Value (for some types) |
maxLength | integer | 0..1 | Max length for strings |
condition | id | 0..* | Reference to invariant about presence |
constraint | Element | 0..* | Condition that must evaluate to true |
mustSupport | boolean | 0..1 | If the element must be supported |
isModifier | boolean | 0..1 | If this modifies the meaning of other elements |
isModifierReason | string | 0..1 | Reason that this element is marked as a modifier |
isSummary | boolean | 0..1 | Include when _summary = true? |
binding | Element | 0..1 | ValueSet details if this is coded |
mapping | Element | 0..* | Map element to another set of definitions |
Reference
Official FHIR R4 specification: ElementDefinition.