R4 Release 5 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 (v5.0.0-ballot: R5 Ballot 2). - see ballot notes ). 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

2.29.0 2.1.27.7.0 Element Definition

FHIR Infrastructure icon Work Group Maturity Level : 5 Normative Ballot Standards Status : Normative
Normative Candidate Note: This page is candidate normative content for R4 in the Infrastructure Package . Once normative, it will lose it's Maturity Level, and breaking changes will no longer be made.

Types Framework Cross Reference: Base Types | Datatypes | Resources | Patterns

The definition of an element in a resource or an extension. The definition includes:

  • Path (name), Cardinality, and data type datatype
  • Definitions, usage notes, and requirements
  • Default or fixed values
  • Constraints, Length limits, and other usage rules
  • Terminology Binding
  • Mappings to other specifications
  • Structural Usage Information such as Slicing

The ElementDefinition type is the core of the FHIR metadata layer, and is closely (conceptually) aligned to ISO 11179 . All the data elements defined in this specification are published as a collection of data elements ( XML or JSON ).

ElementDefinition is used in StructureDefinition

Note to Balloters: The Jira task FHIR-37871 icon proposes to remove ElementDefinition.constraint.xpath . This is approved but removing the xpath constraints will be difficult to reverse. The task proposes to remove them because no one is using them (or at least, no one is reporting errors in the xpaths).

If you don't want the xpaths removed, raise this as a ballot issue, along with justification.

Structure

Σ Human explanation
Name Flags Card. Type Description & Constraints doco
. . ElementDefinition Σ I N Element Definition of an element in a resource or extension
+ Rule: Min <= Max
+ Rule: if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding
+ Pattern Rule: Fixed value may only be specified if there is one type
+ Fixed value Rule: Pattern may only be specified if there is one type
+ Rule: Pattern and fixed are mutually exclusive
+ Rule: Binding can only be present for coded elements, string, and uri if using FHIR-defined types
+ Pattern and value are mutually exclusive Rule: Types must be unique by code
+ Rule: Constraints must be unique by key
+ Types must be unique by code Rule: default value and meaningWhenMissing are mutually exclusive
+ Rule: sliceName must be composed of proper tokens separated by "/"
+ default value and meaningWhenMissing are mutually exclusive + Rule: Must have a modifier reason if isModifier = true
+ Rule: Element names cannot include some special characters with a max of 64 characters,
+ Warning: Element names should be simple alphanumerics with a max of 64 characters or code generation tools may be broken
+ Rule: sliceIsConstraining can only appear if slicename is present
+ Guideline: pattern[x] should be used rather than fixed[x]
+ Warning: Order has no meaning (and cannot be asserted to have meaning), so enforcing rules on order is improper
+ Warning: Mappings SHOULD be unique by key

Elements defined in Ancestors: id , extension , modifierExtension
. . . path Σ 1..1 string Path of the element in the hierarchy of elements
. . . representation Σ 0..* code xmlAttr | xmlText | typeAttr | cdaText | xhtml
PropertyRepresentation ( Required )

. . . sliceName Σ 0..1 string Name for this particular element (in a set of slices)
. . . label sliceIsConstraining Σ TU 0..1 boolean If this slice definition constrains an inherited slice definition (or not)
... label Σ 0..1 string Name for element to display with or prompt for element
. . . code Σ 0..* Coding Corresponding codes in terminologies
LOINC Codes ElementDefinitionCode icon ( Example )

. . . slicing Σ I 0..1 Element This element is sliced - slices follow
+ If there are no discriminators, there must be a definition
. . . . discriminator Σ 0..* Element Element values that are used to distinguish the slices

. . . . . type Σ 1..1 code value | exists | pattern | type | profile | position
DiscriminatorType ( Required )
. . . . . path Σ 1..1 string Path to element value
. . . . description Σ I 0..1 string Text description of how slicing works (or not)
. . . . ordered Σ 0..1 boolean If elements must be in same order as slices
. . . . rules Σ 1..1 code closed | open | openAtEnd
SlicingRules ( Required )
. . . short Σ 0..1 string Concise definition for space-constrained presentation
. . . definition Σ 0..1 markdown Full formal definition as narrative text
. . . comment Σ 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 C 0..1 unsignedInt Minimum Cardinality
. . . max Σ I C 0..1 string Maximum Cardinality (a number or *)
+ Rule: Max SHALL be a number or "*"
. . . base Σ 0..1 Element Base definition information for tools
. . . . path Σ 1..1 string Path that identifies the base element
. . . . min Σ 1..1 unsignedInt Min cardinality of the base element
. . . . max Σ 1..1 string Max cardinality of the base element
. . . contentReference Σ I C 0..1 uri Reference to definition of content for the element
. . . type Σ I C 0..* Element Data type and Profile for this element
+ Rule: Aggregation may only be specified if one of the allowed types for the element is a reference
+ targetProfie Rule: targetProfile is only allowed if the type is reference Reference or canonical

. . . . code Σ 1..1 uri Data type or Resource (reference to definition)
FHIRDefinedType Element Definition Types ( Extensible Required )
. . . . profile Σ 0..* canonical ( StructureDefinition | ImplementationGuide ) Profiles (StructureDefinition or IG) - one must apply

. . . . targetProfile Σ 0..* canonical ( StructureDefinition | ImplementationGuide ) Profile (StructureDefinition or IG) on the Reference Reference/canonical target - one must apply

. . . . aggregation Σ I C 0..* code contained | referenced | bundled - how aggregated
AggregationMode ( Required )

. . . . versioning Σ 0..1 code either | independent | specific
ReferenceVersionRules ( Required )
. . . defaultValue[x] Σ I C 0..1 * Specified value if missing from instance
. . . meaningWhenMissing Σ I C 0..1 markdown Implicit meaning when this element is missing
. . . orderMeaning Σ 0..1 string What the order of the elements means
. . . fixed[x] Σ I C 0..1 * Value must be exactly this
. . . pattern[x] Σ I C 0..1 * Value must have at least these property values
. . . example Σ 0..* Element Example value (as defined for type)

. . . . label Σ 1..1 string Describes the purpose of this example
. . . . value[x] Σ 1..1 * Value of Example (one of allowed types)
. . . minValue[x] Σ 0..1 Minimum Allowed Value (for some types)
. . . . minValueDate date
. . . . minValueDateTime dateTime
. . . . minValueInstant instant
. . . . minValueTime time
. . . . minValueDecimal decimal
. . . . minValueInteger integer
. . . . minValueInteger64 integer64
. . . . minValuePositiveInt positiveInt
. . . . minValueUnsignedInt unsignedInt
. . . . minValueQuantity Quantity
. . . maxValue[x] Σ 0..1 Maximum Allowed Value (for some types)
. . . . maxValueDate date
. . . . maxValueDateTime dateTime
. . . . maxValueInstant instant
. . . . maxValueTime time
. . . . maxValueDecimal decimal
. . . . maxValueInteger integer
. . . . maxValuePositiveInt maxValueInteger64 integer64
.... maxValuePositiveInt positiveInt
. . . . maxValueUnsignedInt unsignedInt
. . . . maxValueQuantity Quantity
. . . maxLength Σ 0..1 integer Max length for strings string type data
. . . condition Σ 0..* id Reference to invariant about presence

. . . constraint Σ C 0..* Element Condition that must evaluate to true
+ Warning: Constraints should have an expression or else validators will not be able to enforce them
+ Rule: Errors cannot be suppressed

. . . . key Σ I C 1..1 id Target of 'condition' reference above
. . . . requirements Σ 0..1 string markdown Why this constraint is necessary or appropriate
. . . . severity Σ 1..1 code error | warning
ConstraintSeverity ( Required )
. . . . human suppress Σ 0..1 boolean Suppress warning or hint in profile
.... human Σ 1..1 string Human description of constraint
. . . . expression Σ 1..1 0..1 string FHIRPath expression of constraint
. . . . xpath Σ TU 0..1 string XPath expression of constraint
. . . . source Σ 0..1 canonical ( StructureDefinition ) Reference to original source of constraint
. . . mustSupport Σ 0..1 boolean If the element must be supported
. . . isModifier Σ 0..1 boolean If this modifies the meaning of other elements
. . . isModifierReason Σ 0..1 string Reason that this element is marked as a modifier
. . . isSummary Σ 0..1 boolean Include when _summary = true?
. . . binding Σ I C 0..1 Element ValueSet details if this is coded
+ Rule: ValueSet as a URI SHALL start with http:// or https:// or urn: or #
+ Rule: binding SHALL have either description or valueSet
. . . . strength Σ 1..1 code required | extensible | preferred | example
BindingStrength ( Required )
. . . . description Σ 0..1 string markdown Intended use of codes in the bound value set
. . . valueSet[x] . valueSet Σ I C 0..1 canonical ( ValueSet ) Source of value set valueSetUri uri valueSetCanonical canonical
. . . mapping Σ 0..* Element Map element to another set of definitions

. . . . identity Σ 1..1 id Reference to mapping declaration
. . . . language Σ 0..1 code Computable language of mapping
MimeType ( Required )
. . . . map Σ 1..1 string Details of the mapping
. . . . comment Σ 0..1 string markdown Comments about the mapping or its use

doco Documentation for this format

Definition: XML | JSON

UML Diagram ( Legend )

Element Extensions - as described for all elements: additional information that is not part of the basic definition of the resource / type extension : Extension 0..* ElementDefinition The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension path : string [1..1] Codes that define how this element is represented in instances, when the deviation varies from the normal case case. No extensions are allowed on elements with a representation of 'xmlAttr', no matter what FHIR serialization format is used representation : code [0..*] « How a property is represented when serialized. (Strength=Required) PropertyRepresentation ! » 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 sliceName : string [0..1] If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName sliceIsConstraining : boolean [0..1] A single preferred label which is the text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form label : string [0..1] A code that has the same meaning as the element in a particular terminology code : Coding [0..*] « Codes that indicate the meaning of a data element. (Strength=Example) LOINC ElementDefinitionCode ?? » A concise description of what this element means (e.g. for use in autogenerated summaries) short : string [0..1] 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 resource. (Note: The text you are reading is specified in ElementDefinition.definition) definition : markdown [0..1] Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc etc. (Note: The text you are reading is specified in ElementDefinition.comment) comment : markdown [0..1] 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 requirements : markdown [0..1] Identifies additional names by which this element might also be known alias : string [0..*] The minimum number of times this element SHALL appear in the instance min : unsignedInt [0..1] « This element has or is affected by some invariants C » The maximum number of times this element is permitted to appear in the instance max : string [0..1] « This element has or is affected by some invariants C » Identifies the identity of an element defined elsewhere in the profile definition whose content rules should be applied to the current element element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc contentReference : uri [0..1] « This element has or is affected by some invariants C » 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') defaultValue[x] : * [0..1] « This element has or is affected by some invariants C » The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing' ongoing') meaningWhenMissing : markdown [0..1] « This element has or is affected by some invariants C » If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning orderMeaning : string [0..1] Specifies a value that SHALL be exactly the value for this element in the instance. instance, if present. 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 fixed[x] : * [0..1] « This element has or is affected by some invariants C » Specifies a value that each occurrence of the value element in the instance SHALL follow - that is, any value in the pattern must be found in the instance. instance, if the element has a value. Other additional values may be found too. This is effectively constraint by example. The values of elements present When pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly. When an element within a pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] must (recursively) match at least one element from the instance array. When pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e., 1. If primitive: it must match exactly (case-sensitive, accent-sensitive, etc.) the pattern value 2. If a complex object: it must match (recursively) the pattern value 3. If an array: it must match (recursively) the pattern value If a pattern[x] is declared on a repeating element, the pattern applies to all repetitions. If the desire is for a pattern to apply to only one element or a subset of elements, slicing must be used. See [Examples of Patterns](elementdefinition-examples.html#pattern-examples) for examples of pattern usage and the effect it will have pattern[x] : * [0..1] « This element has or is affected by some invariants C » 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 minValue[x] : Type DataType [0..1] « date | dateTime | instant | time | decimal | integer | integer64 | positiveInt | unsignedInt | Quantity » 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 maxValue[x] : Type DataType [0..1] « date | dateTime | instant | time | decimal | integer | integer64 | positiveInt | unsignedInt | Quantity » 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 element. ```maxLength``` SHOULD only be used on primitive data types that have a string representation (see [Datatype characteristics](extension-structuredefinition-type-characteristics.html)) maxLength : integer [0..1] A reference to an invariant that may make additional statements about the cardinality or value in the instance condition : id [0..*] 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 supported. If false, whether to populate or use the data element in any way is at the discretion of the implementation mustSupport : boolean [0..1] 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 isModifier : boolean [0..1] Explains how that element affects the interpretation of the resource or element that contains it isModifierReason : string [0..1] Whether the element should be included if a client requests a search with the parameter _summary=true isSummary : boolean [0..1] Slicing 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 description : string [0..1] If the matching elements have to occur in the same order as defined in the profile ordered : boolean [0..1] 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 rules : code [1..1] « How slices are interpreted when evaluating an instance. (Strength=Required) SlicingRules ! » Discriminator How the element value is interpreted when discrimination is evaluated type : code [1..1] « How an element value is interpreted when discrimination is evaluated evaluated. (Strength=Required) DiscriminatorType ! » A FHIRPath expression, using [the simple subset of FHIRPath](fhirpath.html#simple), that is used to identify the element on which discrimination is based path : string [1..1] Base 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]]] without a StructureDefinition.base path : string [1..1] Minimum cardinality of the base element identified by the path min : unsignedInt [1..1] Maximum cardinality of the base element identified by the path max : string [1..1] TypeRef 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 code : uri [1..1] « Either a resource or a data type, including logical model types (Strength=Extensible) List of all Types for ElementDefinition.type.code. (Strength=Required) FHIRDefinedType + ElementDefinitionTypes ! » Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide profile : canonical [0..*] « StructureDefinition | ImplementationGuide » Used when the type is "Reference", "Reference" or "canonical", and Identifies identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide targetProfile : canonical [0..*] « StructureDefinition | ImplementationGuide » 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 aggregation : code [0..*] « How resource references can be aggregated. (Strength=Required) AggregationMode ! » « This element has or is affected by some invariants C » Whether this reference needs to be version specific or version independent, or whether either can be used versioning : code [0..1] « Whether a reference needs to be version specific or version independent, or whether either can be used used. (Strength=Required) ReferenceVersionRules ! » Example Describes the purpose of this example amoung the set of examples label : string [1..1] The actual value for the element, which must be one of the types allowed for this element value[x] : * [1..1] Constraint Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality key : id [1..1] « This element has or is affected by some invariants C » Description of why this constraint is necessary or appropriate requirements : string markdown [0..1] Identifies the impact constraint violation has on the conformance of the instance severity : code [1..1] « SHALL applications comply with this constraint? (Strength=Required) ConstraintSeverity ! » If true, indicates that the warning or best practice guideline should be suppressed suppress : boolean [0..1] Text that can be used to describe the constraint in messages identifying that the constraint has been violated human : string [1..1] A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met expression : string [1..1] [0..1] An XPath expression of constraint that can be executed to see if this constraint is met xpath : string [0..1] A reference to the original source of the constraint, for traceability purposes source : canonical [0..1] « StructureDefinition » ElementDefinitionBinding 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 strength : code [1..1] « Indication of the degree of conformance expectations associated with a binding. (Strength=Required) BindingStrength ! » Describes the intended use of this particular set of codes description : string markdown [0..1] Points Refers 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 canonical(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 valueSet[x] valueSet : Type canonical [0..1] « uri | canonical ( ValueSet ) » « This element has or is affected by some invariants C » Mapping An internal reference to the definition of a mapping identity : id [1..1] Identifies the computable language in which mapping.map is expressed language : code [0..1] « The mime type of an attachment. Any valid mime type is allowed. (Strength=Required) MimeType Mime Types ! » Expresses what part of the target specification corresponds to this element map : string [1..1] Comments that provide information about the mapping or its use comment : string markdown [0..1] BackboneType May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself) (this element modifies the meaning of other elements) modifierExtension : Extension [0..*] 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 discriminator [0..*] 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) slicing [0..1] 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. 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 - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same base [0..1] The data type or resource that the value of this element is permitted to be type [0..*] A sample value for this element demonstrating the type of information that would typically be found in the element example [0..*] Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance constraint [0..*] Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri) binding [0..1] Identifies a concept from an external specification that roughly corresponds to this element mapping [0..*]

XML Template

< xmlns="http://hl7.org/fhir">

<ElementDefinition xmlns="http://hl7.org/fhir">

 <!-- from Element: extension -->
 <path value="[string]"/><!-- 1..1 Path of the element in the hierarchy of elements -->
 <

 <representation value="[code]"/><!-- 0..* xmlAttr | xmlText | typeAttr | cdaText | xhtml -->

 <sliceName value="[string]"/><!-- 0..1 Name for this particular element (in a set of slices) -->
 <sliceIsConstraining value="[boolean]"/><!-- 0..1 If this slice definition constrains an inherited slice definition (or not) -->

 <label value="[string]"/><!-- 0..1 Name for element to display with or prompt for element -->
 <</code>

 <code><!-- 0..* Coding Corresponding codes in terminologies icon --></code>

 <slicing>  <!-- 0..1 This element is sliced - slices follow -->
  <discriminator>  <!-- 0..* Element values that are used to distinguish the slices -->
   <

   <type value="[code]"/><!-- 1..1 value | exists | pattern | type | profile | position -->

   <path value="[string]"/><!-- 1..1 Path to element value -->
  </discriminator>
  <

  <description value="[string]"/><!-- 0..1 Text description of how slicing works (or not) -->

  <ordered value="[boolean]"/><!-- 0..1 If elements must be in same order as slices -->
  <rules value="[code]"/><!-- 1..1 closed | open | openAtEnd -->
 </slicing>
 <short value="[string]"/><!-- 0..1 Concise definition for space-constrained presentation -->
 <
 <

 <definition value="[markdown]"/><!-- 0..1 Full formal definition as narrative text -->
 <comment value="[markdown]"/><!-- 0..1 Comments about the use of this element -->

 <requirements value="[markdown]"/><!-- 0..1 Why this resource has been created -->
 <alias value="[string]"/><!-- 0..* Other names -->
 <
 <

 <min value="[unsignedInt]"/><!-- I 0..1 Minimum Cardinality -->
 <max value="[string]"/><!-- I 0..1 Maximum Cardinality (a number or *) -->

 <base>  <!-- 0..1 Base definition information for tools -->
  <path value="[string]"/><!-- 1..1 Path that identifies the base element -->
  <min value="[unsignedInt]"/><!-- 1..1 Min cardinality of the base element -->
  <max value="[string]"/><!-- 1..1 Max cardinality of the base element -->
 </base>
 <
 <
  <
  <</profile>
  <</targetProfile>
  <

 <contentReference value="[uri]"/><!-- I 0..1 Reference to definition of content for the element -->
 <type>  <!-- I 0..* Data type and Profile for this element -->
  <code value="[uri]"/><!-- 1..1 Data type or Resource (reference to definition) -->
  <profile><!-- 0..* canonical(ImplementationGuide|StructureDefinition) Profiles (StructureDefinition or IG) - one must apply --></profile>
  <targetProfile><!-- 0..* canonical(ImplementationGuide|StructureDefinition) Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply --></targetProfile>
  <aggregation value="[code]"/><!-- I 0..* contained | referenced | bundled - how aggregated -->

  <versioning value="[code]"/><!-- 0..1 either | independent | specific -->
 </type>
 <</defaultValue[x]>
 <

 <defaultValue[x]><!-- I 0..1 * Specified value if missing from instance --></defaultValue[x]>
 <meaningWhenMissing value="[markdown]"/><!-- I 0..1 Implicit meaning when this element is missing -->

 <orderMeaning value="[string]"/><!-- 0..1 What the order of the elements means -->
 <</fixed[x]>
 <</pattern[x]>

 <fixed[x]><!-- I 0..1 * Value must be exactly this --></fixed[x]>
 <pattern[x]><!-- I 0..1 * Value must have at least these property values --></pattern[x]>

 <example>  <!-- 0..* Example value (as defined for type) -->
  <label value="[string]"/><!-- 1..1 Describes the purpose of this example -->
  <value[x]><!-- 1..1 * Value of Example (one of allowed types) --></value[x]>
 </example>
 <|
   </minValue[x]>
 <|
   </maxValue[x]>
 <

 <minValue[x]><!-- 0..1 date|dateTime|instant|time|decimal|integer|integer64|
   positiveInt|unsignedInt|Quantity Minimum Allowed Value (for some types) --></minValue[x]>

 <maxValue[x]><!-- 0..1 date|dateTime|instant|time|decimal|integer|integer64|
   positiveInt|unsignedInt|Quantity Maximum Allowed Value (for some types) --></maxValue[x]>

 <maxLength value="[integer]"/><!-- 0..1 Max length for string type data -->

 <condition value="[id]"/><!-- 0..* Reference to invariant about presence -->
 <constraint>  <!-- 0..* Condition that must evaluate to true -->
  <
  <

  <key value="[id]"/><!-- I 1..1 Target of 'condition' reference above -->
  <requirements value="[markdown]"/><!-- 0..1 Why this constraint is necessary or appropriate -->

  <severity value="[code]"/><!-- 1..1 error | warning -->
  <suppress value="[boolean]"/><!-- 0..1 Suppress warning or hint in profile -->

  <human value="[string]"/><!-- 1..1 Human description of constraint -->
  <

  <expression value="[string]"/><!-- 0..1 FHIRPath expression of constraint -->

  <xpath value="[string]"/><!-- 0..1 XPath expression of constraint -->
  <source><!-- 0..1 canonical(StructureDefinition) Reference to original source of constraint --></source>
 </constraint>
 <

 <mustSupport value="[boolean]"/><!-- 0..1 If the element must be supported -->

 <isModifier value="[boolean]"/><!-- 0..1 If this modifies the meaning of other elements -->
 <isModifierReason value="[string]"/><!-- 0..1 Reason that this element is marked as a modifier -->
 <isSummary value="[boolean]"/><!-- 0..1 Include when _summary = true? -->
 <

 <binding>  <!-- I 0..1 ValueSet details if this is coded -->

  <strength value="[code]"/><!-- 1..1 required | extensible | preferred | example -->
  <
  <</valueSet[x]>

  <description value="[markdown]"/><!-- 0..1 Intended use of codes in the bound value set -->
  <valueSet><!-- I 0..1 canonical(ValueSet) Source of value set --></valueSet>

 </binding>
 <mapping>  <!-- 0..* Map element to another set of definitions -->
  <identity value="[id]"/><!-- 1..1 Reference to mapping declaration -->
  <

  <language value="[code]"/><!-- 0..1 Computable language of mapping -->

  <map value="[string]"/><!-- 1..1 Details of the mapping -->
  <

  <comment value="[markdown]"/><!-- 0..1 Comments about the mapping or its use -->

 </mapping>
</[name]>

</ElementDefinition>

JSON Template

{doco
  // from Element: extension
  "path" : "<string>", // R!  Path of the element in the hierarchy of elements
  "

  "representation" : ["<code>"], // xmlAttr | xmlText | typeAttr | cdaText | xhtml

  "sliceName" : "<string>", // Name for this particular element (in a set of slices)
  "sliceIsConstraining" : <boolean>, // If this slice definition constrains an inherited slice definition (or not)

  "label" : "<string>", // Name for element to display with or prompt for element
  "

  "code" : [{ Coding }], // Corresponding codes in terminologies icon

  "slicing" : { // This element is sliced - slices follow
    "discriminator" : [{ // Element values that are used to distinguish the slices
      "

      "type" : "<code>", // R!  value | exists | pattern | type | profile | position

      "path" : "<string>" // R!  Path to element value
    }],
    "

    "description" : "<string>", // Text description of how slicing works (or not)

    "ordered" : <boolean>, // If elements must be in same order as slices
    "rules" : "<code>" // R!  closed | open | openAtEnd
  },
  "short" : "<string>", // Concise definition for space-constrained presentation
  "
  "

  "definition" : "<markdown>", // Full formal definition as narrative text
  "comment" : "<markdown>", // Comments about the use of this element

  "requirements" : "<markdown>", // Why this resource has been created
  "alias" : ["<string>"], // Other names
  "
  "

  "min" : "<unsignedInt>", // I Minimum Cardinality
  "max" : "<string>", // I Maximum Cardinality (a number or *)

  "base" : { // Base definition information for tools
    "path" : "<string>", // R!  Path that identifies the base element
    "min" : "<unsignedInt>", // R!  Min cardinality of the base element
    "max" : "<string>" // R!  Max cardinality of the base element
  },
  "
  "
    "
    "
    "
    "

  "contentReference" : "<uri>", // I Reference to definition of content for the element
  "type" : [{ // I Data type and Profile for this element
    "code" : "<uri>", // R!  Data type or Resource (reference to definition)
    "profile" : ["<canonical(StructureDefinition|ImplementationGuide)>"], // Profiles (StructureDefinition or IG) - one must apply
    "targetProfile" : ["<canonical(StructureDefinition|ImplementationGuide)>"], // Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply
    "aggregation" : ["<code>"], // I contained | referenced | bundled - how aggregated

    "versioning" : "<code>" // either | independent | specific
  }],
  
  ">,
  ">,
  ">",

  // defaultValue[x]: Specified value if missing from instance. One of these 54:
  "defaultValueBase64Binary" : "<base64Binary>",
  "defaultValueBoolean" : <boolean>,
  "defaultValueCanonical" : "<canonical>",
  "defaultValueCode" : "<code>",

  "defaultValueDate" : "<date>",
  "defaultValueDateTime" : "<dateTime>",
  "defaultValueDecimal" : <decimal>,
  "defaultValueId" : "<id>",

  "defaultValueInstant" : "<instant>",
  "defaultValueInteger" : <integer>,
  "defaultValueInteger64" : "<integer64>",
  "defaultValueMarkdown" : "<markdown>",
  "defaultValueOid" : "<oid>",
  "defaultValuePositiveInt" : "<positiveInt>",

  "defaultValueString" : "<string>",
  "defaultValueTime" : "<time>",
  "defaultValueUnsignedInt" : "<unsignedInt>",

  "defaultValueUri" : "<uri>",
  ">,
  ">",
  ">",
  " },
  " },

  "defaultValueUrl" : "<url>",
  "defaultValueUuid" : "<uuid>",
  "defaultValueAddress" : { Address },
  "defaultValueAge" : { Age },
  "defaultValueAnnotation" : { Annotation },

  "defaultValueAttachment" : { Attachment },
  "defaultValueCodeableConcept" : { CodeableConcept },
  "defaultValueCodeableReference" : { CodeableReference },
  "defaultValueCoding" : { Coding },
  "defaultValueContactPoint" : { ContactPoint },
  "defaultValueCount" : { Count },
  "defaultValueDistance" : { Distance },
  "defaultValueDuration" : { Duration },
  "defaultValueHumanName" : { HumanName },

  "defaultValueIdentifier" : { Identifier },
  "defaultValueMoney" : { Money },
  "defaultValuePeriod" : { Period },

  "defaultValueQuantity" : { Quantity },
  "defaultValueRange" : { Range },
  " },

  "defaultValueRatio" : { Ratio },
  " },
  " },
  " },
  " },

  "defaultValueRatioRange" : { RatioRange },

  "defaultValueReference" : { Reference },
  "

  "defaultValueSampledData" : { SampledData },
  "defaultValueSignature" : { Signature },
  "defaultValueTiming" : { Timing },
  "defaultValueContactDetail" : { ContactDetail },
  "defaultValueDataRequirement" : { DataRequirement },
  "defaultValueExpression" : { Expression },
  "defaultValueParameterDefinition" : { ParameterDefinition },
  "defaultValueRelatedArtifact" : { RelatedArtifact },
  "defaultValueTriggerDefinition" : { TriggerDefinition },
  "defaultValueUsageContext" : { UsageContext },
  "defaultValueAvailability" : { Availability },
  "defaultValueExtendedContactDetail" : { ExtendedContactDetail },
  "defaultValueDosage" : { Dosage },
  "defaultValueMeta" : { Meta },
  "meaningWhenMissing" : "<markdown>", // I Implicit meaning when this element is missing

  "orderMeaning" : "<string>", // What the order of the elements means
  
  ">,
  ">,
  ">",
  ">",
  ">",
  ">",
  ">",
  ">,
  ">",
  ">",
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  
  ">,
  ">,
  ">",
  ">",
  ">",
  ">",
  ">",
  ">,
  ">",
  ">",
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },

  // fixed[x]: Value must be exactly this. One of these 54:
  "fixedBase64Binary" : "<base64Binary>",
  "fixedBoolean" : <boolean>,
  "fixedCanonical" : "<canonical>",
  "fixedCode" : "<code>",
  "fixedDate" : "<date>",
  "fixedDateTime" : "<dateTime>",
  "fixedDecimal" : <decimal>,
  "fixedId" : "<id>",
  "fixedInstant" : "<instant>",
  "fixedInteger" : <integer>,
  "fixedInteger64" : "<integer64>",
  "fixedMarkdown" : "<markdown>",
  "fixedOid" : "<oid>",
  "fixedPositiveInt" : "<positiveInt>",
  "fixedString" : "<string>",
  "fixedTime" : "<time>",
  "fixedUnsignedInt" : "<unsignedInt>",
  "fixedUri" : "<uri>",
  "fixedUrl" : "<url>",
  "fixedUuid" : "<uuid>",
  "fixedAddress" : { Address },
  "fixedAge" : { Age },
  "fixedAnnotation" : { Annotation },
  "fixedAttachment" : { Attachment },
  "fixedCodeableConcept" : { CodeableConcept },
  "fixedCodeableReference" : { CodeableReference },
  "fixedCoding" : { Coding },
  "fixedContactPoint" : { ContactPoint },
  "fixedCount" : { Count },
  "fixedDistance" : { Distance },
  "fixedDuration" : { Duration },
  "fixedHumanName" : { HumanName },
  "fixedIdentifier" : { Identifier },
  "fixedMoney" : { Money },
  "fixedPeriod" : { Period },
  "fixedQuantity" : { Quantity },
  "fixedRange" : { Range },
  "fixedRatio" : { Ratio },
  "fixedRatioRange" : { RatioRange },
  "fixedReference" : { Reference },
  "fixedSampledData" : { SampledData },
  "fixedSignature" : { Signature },
  "fixedTiming" : { Timing },
  "fixedContactDetail" : { ContactDetail },
  "fixedDataRequirement" : { DataRequirement },
  "fixedExpression" : { Expression },
  "fixedParameterDefinition" : { ParameterDefinition },
  "fixedRelatedArtifact" : { RelatedArtifact },
  "fixedTriggerDefinition" : { TriggerDefinition },
  "fixedUsageContext" : { UsageContext },
  "fixedAvailability" : { Availability },
  "fixedExtendedContactDetail" : { ExtendedContactDetail },
  "fixedDosage" : { Dosage },
  "fixedMeta" : { Meta },
  // pattern[x]: Value must have at least these property values. One of these 54:

  "patternBase64Binary" : "<base64Binary>",
  "patternBoolean" : <boolean>,
  "patternCanonical" : "<canonical>",
  "patternCode" : "<code>",
  "patternDate" : "<date>",
  "patternDateTime" : "<dateTime>",
  "patternDecimal" : <decimal>,
  "patternId" : "<id>",
  "patternInstant" : "<instant>",
  "patternInteger" : <integer>,
  "patternInteger64" : "<integer64>",
  "patternMarkdown" : "<markdown>",
  "patternOid" : "<oid>",
  "patternPositiveInt" : "<positiveInt>",
  "patternString" : "<string>",
  "patternTime" : "<time>",
  "patternUnsignedInt" : "<unsignedInt>",
  "patternUri" : "<uri>",
  "patternUrl" : "<url>",
  "patternUuid" : "<uuid>",
  "patternAddress" : { Address },
  "patternAge" : { Age },
  "patternAnnotation" : { Annotation },
  "patternAttachment" : { Attachment },
  "patternCodeableConcept" : { CodeableConcept },
  "patternCodeableReference" : { CodeableReference },
  "patternCoding" : { Coding },
  "patternContactPoint" : { ContactPoint },
  "patternCount" : { Count },
  "patternDistance" : { Distance },
  "patternDuration" : { Duration },
  "patternHumanName" : { HumanName },
  "patternIdentifier" : { Identifier },
  "patternMoney" : { Money },
  "patternPeriod" : { Period },
  "patternQuantity" : { Quantity },
  "patternRange" : { Range },
  "patternRatio" : { Ratio },
  "patternRatioRange" : { RatioRange },
  "patternReference" : { Reference },
  "patternSampledData" : { SampledData },
  "patternSignature" : { Signature },
  "patternTiming" : { Timing },
  "patternContactDetail" : { ContactDetail },
  "patternDataRequirement" : { DataRequirement },
  "patternExpression" : { Expression },
  "patternParameterDefinition" : { ParameterDefinition },
  "patternRelatedArtifact" : { RelatedArtifact },
  "patternTriggerDefinition" : { TriggerDefinition },
  "patternUsageContext" : { UsageContext },
  "patternAvailability" : { Availability },
  "patternExtendedContactDetail" : { ExtendedContactDetail },
  "patternDosage" : { Dosage },
  "patternMeta" : { Meta },

  "example" : [{ // Example value (as defined for type)
    "label" : "<string>", // R!  Describes the purpose of this example
    
    ">
    ">
    ">"
    ">"
    ">"
    ">"
    ">"
    ">
    ">"

    // value[x]: Value of Example (one of allowed types). One of these 54:
    "valueBase64Binary" : "<base64Binary>"
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }

    "valueBoolean" : <boolean>,
    "valueCanonical" : "<canonical>",
    "valueCode" : "<code>",
    "valueDate" : "<date>",
    "valueDateTime" : "<dateTime>",
    "valueDecimal" : <decimal>,
    "valueId" : "<id>",
    "valueInstant" : "<instant>",
    "valueInteger" : <integer>,
    "valueInteger64" : "<integer64>",
    "valueMarkdown" : "<markdown>",
    "valueOid" : "<oid>",
    "valuePositiveInt" : "<positiveInt>",
    "valueString" : "<string>",
    "valueTime" : "<time>",
    "valueUnsignedInt" : "<unsignedInt>",
    "valueUri" : "<uri>",
    "valueUrl" : "<url>",
    "valueUuid" : "<uuid>",
    "valueAddress" : { Address },
    "valueAge" : { Age },
    "valueAnnotation" : { Annotation },
    "valueAttachment" : { Attachment },
    "valueCodeableConcept" : { CodeableConcept },
    "valueCodeableReference" : { CodeableReference },
    "valueCoding" : { Coding },
    "valueContactPoint" : { ContactPoint },
    "valueCount" : { Count },
    "valueDistance" : { Distance },
    "valueDuration" : { Duration },
    "valueHumanName" : { HumanName },
    "valueIdentifier" : { Identifier },
    "valueMoney" : { Money },
    "valuePeriod" : { Period },
    "valueQuantity" : { Quantity },
    "valueRange" : { Range },
    "valueRatio" : { Ratio },
    "valueRatioRange" : { RatioRange },
    "valueReference" : { Reference },
    "valueSampledData" : { SampledData },
    "valueSignature" : { Signature },
    "valueTiming" : { Timing },
    "valueContactDetail" : { ContactDetail },
    "valueDataRequirement" : { DataRequirement },
    "valueExpression" : { Expression },
    "valueParameterDefinition" : { ParameterDefinition },
    "valueRelatedArtifact" : { RelatedArtifact },
    "valueTriggerDefinition" : { TriggerDefinition },
    "valueUsageContext" : { UsageContext },
    "valueAvailability" : { Availability },
    "valueExtendedContactDetail" : { ExtendedContactDetail },
    "valueDosage" : { Dosage },
    "valueMeta" : { Meta },

  }],
  

  // minValue[x]: Minimum Allowed Value (for some types). One of these 10:
  "minValueDate" : "<date>",
  "minValueDateTime" : "<dateTime>",
  "minValueInstant" : "<instant>",
  "minValueTime" : "<time>",
  "minValueDecimal" : <decimal>,
  "minValueInteger" : <integer>,
  "minValueInteger64" : "<integer64>",

  "minValuePositiveInt" : "<positiveInt>",
  "minValueUnsignedInt" : "<unsignedInt>",
  "minValueQuantity" : { Quantity },
  

  // maxValue[x]: Maximum Allowed Value (for some types). One of these 10:
  "maxValueDate" : "<date>",
  "maxValueDateTime" : "<dateTime>",
  "maxValueInstant" : "<instant>",
  "maxValueTime" : "<time>",
  "maxValueDecimal" : <decimal>,
  "maxValueInteger" : <integer>,
  "maxValueInteger64" : "<integer64>",

  "maxValuePositiveInt" : "<positiveInt>",
  "maxValueUnsignedInt" : "<unsignedInt>",
  "maxValueQuantity" : { Quantity },
  "

  "maxLength" : <integer>, // Max length for string type data

  "condition" : ["<id>"], // Reference to invariant about presence
  "constraint" : [{ // Condition that must evaluate to true
    "
    "

    "key" : "<id>", // I R!  Target of 'condition' reference above
    "requirements" : "<markdown>", // Why this constraint is necessary or appropriate

    "severity" : "<code>", // R!  error | warning
    "suppress" : <boolean>, // Suppress warning or hint in profile

    "human" : "<string>", // R!  Human description of constraint
    "

    "expression" : "<string>", // FHIRPath expression of constraint

    "xpath" : "<string>", // XPath expression of constraint
    "

    "source" : "<canonical(StructureDefinition)>" // Reference to original source of constraint

  }],
  "

  "mustSupport" : <boolean>, // If the element must be supported

  "isModifier" : <boolean>, // If this modifies the meaning of other elements
  "isModifierReason" : "<string>", // Reason that this element is marked as a modifier
  "isSummary" : <boolean>, // Include when _summary = true?
  "

  "binding" : { // I ValueSet details if this is coded

    "strength" : "<code>", // R!  required | extensible | preferred | example
    "
    
    ">"
    ">"

    "description" : "<markdown>", // Intended use of codes in the bound value set
    "valueSet" : "<canonical(ValueSet)>" // I Source of value set

  },
  "mapping" : [{ // Map element to another set of definitions
    "identity" : "<id>", // R!  Reference to mapping declaration
    "

    "language" : "<code>", // Computable language of mapping

    "map" : "<string>", // R!  Details of the mapping
    "

    "comment" : "<markdown>" // Comments about the mapping or its use

  }]
}

Turtle Template

@prefix fhir: <http://hl7.org/fhir/> .

[
 # from Element: Element.extension
  fhir:ElementDefinition.path [ string ]; # 1..1 Path of the element in the hierarchy of elements
  fhir:

  fhir:ElementDefinition.representation [ code ], ... ; # 0..* xmlAttr | xmlText | typeAttr | cdaText | xhtml

  fhir:ElementDefinition.sliceName [ string ]; # 0..1 Name for this particular element (in a set of slices)
  fhir:ElementDefinition.sliceIsConstraining [ boolean ]; # 0..1 If this slice definition constrains an inherited slice definition (or not)

  fhir:ElementDefinition.label [ string ]; # 0..1 Name for element to display with or prompt for element
  fhir:ElementDefinition.code [ Coding ], ... ; # 0..* Corresponding codes in terminologies
  fhir:ElementDefinition.slicing [ # 0..1 This element is sliced - slices follow
    fhir:ElementDefinition.slicing.discriminator [ # 0..* Element values that are used to distinguish the slices
      fhir:

      fhir:ElementDefinition.slicing.discriminator.type [ code ]; # 1..1 value | exists | pattern | type | profile | position

      fhir:ElementDefinition.slicing.discriminator.path [ string ]; # 1..1 Path to element value
    ], ...;
    fhir:ElementDefinition.slicing.description [ string ]; # 0..1 Text description of how slicing works (or not)
    fhir:ElementDefinition.slicing.ordered [ boolean ]; # 0..1 If elements must be in same order as slices
    fhir:ElementDefinition.slicing.rules [ code ]; # 1..1 closed | open | openAtEnd
  ];
  fhir:ElementDefinition.short [ string ]; # 0..1 Concise definition for space-constrained presentation
  fhir:
  fhir:

  fhir:ElementDefinition.definition [ markdown ]; # 0..1 Full formal definition as narrative text
  fhir:ElementDefinition.comment [ markdown ]; # 0..1 Comments about the use of this element

  fhir:ElementDefinition.requirements [ markdown ]; # 0..1 Why this resource has been created
  fhir:ElementDefinition.alias [ string ], ... ; # 0..* Other names
  fhir:
  fhir:

  fhir:ElementDefinition.min [ unsignedInt ]; # 0..1 I Minimum Cardinality
  fhir:ElementDefinition.max [ string ]; # 0..1 I Maximum Cardinality (a number or *)

  fhir:ElementDefinition.base [ # 0..1 Base definition information for tools
    fhir:ElementDefinition.base.path [ string ]; # 1..1 Path that identifies the base element
    fhir:ElementDefinition.base.min [ unsignedInt ]; # 1..1 Min cardinality of the base element
    fhir:ElementDefinition.base.max [ string ]; # 1..1 Max cardinality of the base element
  ];
  fhir:
  fhir:

  fhir:ElementDefinition.contentReference [ uri ]; # 0..1 I Reference to definition of content for the element
  fhir:ElementDefinition.type [ # 0..* I Data type and Profile for this element

    fhir:ElementDefinition.type.code [ uri ]; # 1..1 Data type or Resource (reference to definition)
    fhir:
    fhir:
    fhir:

    fhir:ElementDefinition.type.profile [ canonical(ImplementationGuide|StructureDefinition) ], ... ; # 0..* Profiles (StructureDefinition or IG) - one must apply
    fhir:ElementDefinition.type.targetProfile [ canonical(ImplementationGuide|StructureDefinition) ], ... ; # 0..* Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply
    fhir:ElementDefinition.type.aggregation [ code ], ... ; # 0..* I contained | referenced | bundled - how aggregated

    fhir:ElementDefinition.type.versioning [ code ]; # 0..1 either | independent | specific
  ], ...;
  # . One of these 48

  # ElementDefinition.defaultValue[x] : 0..1 I Specified value if missing from instance. One of these 54

    fhir:ElementDefinition.defaultValueBase64Binary [ base64Binary ]
    fhir:ElementDefinition.defaultValueBoolean [ boolean ]
    fhir:ElementDefinition.defaultValueCanonical [ canonical ]
    fhir:ElementDefinition.defaultValueCode [ code ]
    fhir:ElementDefinition.defaultValueDate [ date ]
    fhir:ElementDefinition.defaultValueDateTime [ dateTime ]
    fhir:ElementDefinition.defaultValueDecimal [ decimal ]
    fhir:ElementDefinition.defaultValueId [ id ]
    fhir:ElementDefinition.defaultValueInstant [ instant ]
    fhir:ElementDefinition.defaultValueInteger [ integer ]
    fhir:ElementDefinition.defaultValueInteger64 [ integer64 ]

    fhir:ElementDefinition.defaultValueMarkdown [ markdown ]
    fhir:ElementDefinition.defaultValueOid [ oid ]
    fhir:ElementDefinition.defaultValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.defaultValueString [ string ]
    fhir:ElementDefinition.defaultValueTime [ time ]
    fhir:ElementDefinition.defaultValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.defaultValueUri [ uri ]
    fhir:ElementDefinition.defaultValueUrl [ url ]
    fhir:ElementDefinition.defaultValueUuid [ uuid ]
    fhir:ElementDefinition.defaultValueAddress [ Address ]
    fhir:ElementDefinition.defaultValueAge [ Age ]
    fhir:ElementDefinition.defaultValueAnnotation [ Annotation ]
    fhir:ElementDefinition.defaultValueAttachment [ Attachment ]
    fhir:ElementDefinition.defaultValueCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.defaultValueCodeableReference [ CodeableReference ]

    fhir:ElementDefinition.defaultValueCoding [ Coding ]
    fhir:ElementDefinition.defaultValueContactPoint [ ContactPoint ]
    fhir:ElementDefinition.defaultValueCount [ Count ]
    fhir:ElementDefinition.defaultValueDistance [ Distance ]
    fhir:ElementDefinition.defaultValueDuration [ Duration ]
    fhir:ElementDefinition.defaultValueHumanName [ HumanName ]
    fhir:ElementDefinition.defaultValueIdentifier [ Identifier ]
    fhir:ElementDefinition.defaultValueMoney [ Money ]
    fhir:ElementDefinition.defaultValuePeriod [ Period ]
    fhir:ElementDefinition.defaultValueQuantity [ Quantity ]
    fhir:ElementDefinition.defaultValueRange [ Range ]
    fhir:ElementDefinition.defaultValueRatio [ Ratio ]
    fhir:ElementDefinition.defaultValueRatioRange [ RatioRange ]

    fhir:ElementDefinition.defaultValueReference [ Reference ]
    fhir:ElementDefinition.defaultValueSampledData [ SampledData ]
    fhir:ElementDefinition.defaultValueSignature [ Signature ]
    fhir:ElementDefinition.defaultValueTiming [ Timing ]
    fhir: ]

    fhir:ElementDefinition.defaultValueContactDetail [ ContactDetail ]

    fhir:ElementDefinition.defaultValueDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.defaultValueExpression [ Expression ]
    fhir:ElementDefinition.defaultValueParameterDefinition [ ParameterDefinition ]

    fhir:ElementDefinition.defaultValueRelatedArtifact [ RelatedArtifact ]
    fhir: ]
    fhir: ]

    fhir:ElementDefinition.defaultValueTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.defaultValueUsageContext [ UsageContext ]
    fhir:ElementDefinition.defaultValueAvailability [ Availability ]
    fhir:ElementDefinition.defaultValueExtendedContactDetail [ ExtendedContactDetail ]

    fhir:ElementDefinition.defaultValueDosage [ Dosage ]
  fhir:

    fhir:ElementDefinition.defaultValueMeta [ Meta ]
  fhir:ElementDefinition.meaningWhenMissing [ markdown ]; # 0..1 I Implicit meaning when this element is missing

  fhir:ElementDefinition.orderMeaning [ string ]; # 0..1 What the order of the elements means
  # . One of these 48
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
  # . One of these 48
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]

  # ElementDefinition.fixed[x] : 0..1 I Value must be exactly this. One of these 54
    fhir:ElementDefinition.fixedBase64Binary [ base64Binary ]
    fhir:ElementDefinition.fixedBoolean [ boolean ]
    fhir:ElementDefinition.fixedCanonical [ canonical ]
    fhir:ElementDefinition.fixedCode [ code ]
    fhir:ElementDefinition.fixedDate [ date ]
    fhir:ElementDefinition.fixedDateTime [ dateTime ]
    fhir:ElementDefinition.fixedDecimal [ decimal ]
    fhir:ElementDefinition.fixedId [ id ]
    fhir:ElementDefinition.fixedInstant [ instant ]
    fhir:ElementDefinition.fixedInteger [ integer ]
    fhir:ElementDefinition.fixedInteger64 [ integer64 ]
    fhir:ElementDefinition.fixedMarkdown [ markdown ]
    fhir:ElementDefinition.fixedOid [ oid ]
    fhir:ElementDefinition.fixedPositiveInt [ positiveInt ]
    fhir:ElementDefinition.fixedString [ string ]
    fhir:ElementDefinition.fixedTime [ time ]
    fhir:ElementDefinition.fixedUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.fixedUri [ uri ]
    fhir:ElementDefinition.fixedUrl [ url ]
    fhir:ElementDefinition.fixedUuid [ uuid ]
    fhir:ElementDefinition.fixedAddress [ Address ]
    fhir:ElementDefinition.fixedAge [ Age ]
    fhir:ElementDefinition.fixedAnnotation [ Annotation ]
    fhir:ElementDefinition.fixedAttachment [ Attachment ]
    fhir:ElementDefinition.fixedCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.fixedCodeableReference [ CodeableReference ]
    fhir:ElementDefinition.fixedCoding [ Coding ]
    fhir:ElementDefinition.fixedContactPoint [ ContactPoint ]
    fhir:ElementDefinition.fixedCount [ Count ]
    fhir:ElementDefinition.fixedDistance [ Distance ]
    fhir:ElementDefinition.fixedDuration [ Duration ]
    fhir:ElementDefinition.fixedHumanName [ HumanName ]
    fhir:ElementDefinition.fixedIdentifier [ Identifier ]
    fhir:ElementDefinition.fixedMoney [ Money ]
    fhir:ElementDefinition.fixedPeriod [ Period ]
    fhir:ElementDefinition.fixedQuantity [ Quantity ]
    fhir:ElementDefinition.fixedRange [ Range ]
    fhir:ElementDefinition.fixedRatio [ Ratio ]
    fhir:ElementDefinition.fixedRatioRange [ RatioRange ]
    fhir:ElementDefinition.fixedReference [ Reference ]
    fhir:ElementDefinition.fixedSampledData [ SampledData ]
    fhir:ElementDefinition.fixedSignature [ Signature ]
    fhir:ElementDefinition.fixedTiming [ Timing ]
    fhir:ElementDefinition.fixedContactDetail [ ContactDetail ]
    fhir:ElementDefinition.fixedDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.fixedExpression [ Expression ]
    fhir:ElementDefinition.fixedParameterDefinition [ ParameterDefinition ]
    fhir:ElementDefinition.fixedRelatedArtifact [ RelatedArtifact ]
    fhir:ElementDefinition.fixedTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.fixedUsageContext [ UsageContext ]
    fhir:ElementDefinition.fixedAvailability [ Availability ]
    fhir:ElementDefinition.fixedExtendedContactDetail [ ExtendedContactDetail ]
    fhir:ElementDefinition.fixedDosage [ Dosage ]
    fhir:ElementDefinition.fixedMeta [ Meta ]
  # ElementDefinition.pattern[x] : 0..1 I Value must have at least these property values. One of these 54
    fhir:ElementDefinition.patternBase64Binary [ base64Binary ]
    fhir:ElementDefinition.patternBoolean [ boolean ]
    fhir:ElementDefinition.patternCanonical [ canonical ]
    fhir:ElementDefinition.patternCode [ code ]
    fhir:ElementDefinition.patternDate [ date ]
    fhir:ElementDefinition.patternDateTime [ dateTime ]
    fhir:ElementDefinition.patternDecimal [ decimal ]
    fhir:ElementDefinition.patternId [ id ]
    fhir:ElementDefinition.patternInstant [ instant ]
    fhir:ElementDefinition.patternInteger [ integer ]
    fhir:ElementDefinition.patternInteger64 [ integer64 ]
    fhir:ElementDefinition.patternMarkdown [ markdown ]
    fhir:ElementDefinition.patternOid [ oid ]
    fhir:ElementDefinition.patternPositiveInt [ positiveInt ]
    fhir:ElementDefinition.patternString [ string ]
    fhir:ElementDefinition.patternTime [ time ]
    fhir:ElementDefinition.patternUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.patternUri [ uri ]
    fhir:ElementDefinition.patternUrl [ url ]
    fhir:ElementDefinition.patternUuid [ uuid ]
    fhir:ElementDefinition.patternAddress [ Address ]
    fhir:ElementDefinition.patternAge [ Age ]
    fhir:ElementDefinition.patternAnnotation [ Annotation ]
    fhir:ElementDefinition.patternAttachment [ Attachment ]
    fhir:ElementDefinition.patternCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.patternCodeableReference [ CodeableReference ]
    fhir:ElementDefinition.patternCoding [ Coding ]
    fhir:ElementDefinition.patternContactPoint [ ContactPoint ]
    fhir:ElementDefinition.patternCount [ Count ]
    fhir:ElementDefinition.patternDistance [ Distance ]
    fhir:ElementDefinition.patternDuration [ Duration ]
    fhir:ElementDefinition.patternHumanName [ HumanName ]
    fhir:ElementDefinition.patternIdentifier [ Identifier ]
    fhir:ElementDefinition.patternMoney [ Money ]
    fhir:ElementDefinition.patternPeriod [ Period ]
    fhir:ElementDefinition.patternQuantity [ Quantity ]
    fhir:ElementDefinition.patternRange [ Range ]
    fhir:ElementDefinition.patternRatio [ Ratio ]
    fhir:ElementDefinition.patternRatioRange [ RatioRange ]
    fhir:ElementDefinition.patternReference [ Reference ]
    fhir:ElementDefinition.patternSampledData [ SampledData ]
    fhir:ElementDefinition.patternSignature [ Signature ]
    fhir:ElementDefinition.patternTiming [ Timing ]
    fhir:ElementDefinition.patternContactDetail [ ContactDetail ]
    fhir:ElementDefinition.patternDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.patternExpression [ Expression ]
    fhir:ElementDefinition.patternParameterDefinition [ ParameterDefinition ]
    fhir:ElementDefinition.patternRelatedArtifact [ RelatedArtifact ]
    fhir:ElementDefinition.patternTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.patternUsageContext [ UsageContext ]
    fhir:ElementDefinition.patternAvailability [ Availability ]
    fhir:ElementDefinition.patternExtendedContactDetail [ ExtendedContactDetail ]
    fhir:ElementDefinition.patternDosage [ Dosage ]
    fhir:ElementDefinition.patternMeta [ Meta ]

  fhir:ElementDefinition.example [ # 0..* Example value (as defined for type)
    fhir:ElementDefinition.example.label [ string ]; # 1..1 Describes the purpose of this example
    # . One of these 48

    # ElementDefinition.example.value[x] : 1..1 Value of Example (one of allowed types). One of these 54

      fhir:ElementDefinition.example.valueBase64Binary [ base64Binary ]
      fhir:ElementDefinition.example.valueBoolean [ boolean ]
      fhir:ElementDefinition.example.valueCanonical [ canonical ]
      fhir:ElementDefinition.example.valueCode [ code ]
      fhir:ElementDefinition.example.valueDate [ date ]
      fhir:ElementDefinition.example.valueDateTime [ dateTime ]
      fhir:ElementDefinition.example.valueDecimal [ decimal ]
      fhir:ElementDefinition.example.valueId [ id ]
      fhir:ElementDefinition.example.valueInstant [ instant ]
      fhir:ElementDefinition.example.valueInteger [ integer ]
      fhir:ElementDefinition.example.valueInteger64 [ integer64 ]

      fhir:ElementDefinition.example.valueMarkdown [ markdown ]
      fhir:ElementDefinition.example.valueOid [ oid ]
      fhir:ElementDefinition.example.valuePositiveInt [ positiveInt ]
      fhir:ElementDefinition.example.valueString [ string ]
      fhir:ElementDefinition.example.valueTime [ time ]
      fhir:ElementDefinition.example.valueUnsignedInt [ unsignedInt ]
      fhir:ElementDefinition.example.valueUri [ uri ]
      fhir:ElementDefinition.example.valueUrl [ url ]
      fhir:ElementDefinition.example.valueUuid [ uuid ]
      fhir:ElementDefinition.example.valueAddress [ Address ]
      fhir:ElementDefinition.example.valueAge [ Age ]
      fhir:ElementDefinition.example.valueAnnotation [ Annotation ]
      fhir:ElementDefinition.example.valueAttachment [ Attachment ]
      fhir:ElementDefinition.example.valueCodeableConcept [ CodeableConcept ]
      fhir:ElementDefinition.example.valueCodeableReference [ CodeableReference ]

      fhir:ElementDefinition.example.valueCoding [ Coding ]
      fhir:ElementDefinition.example.valueContactPoint [ ContactPoint ]
      fhir:ElementDefinition.example.valueCount [ Count ]
      fhir:ElementDefinition.example.valueDistance [ Distance ]
      fhir:ElementDefinition.example.valueDuration [ Duration ]
      fhir:ElementDefinition.example.valueHumanName [ HumanName ]
      fhir:ElementDefinition.example.valueIdentifier [ Identifier ]
      fhir:ElementDefinition.example.valueMoney [ Money ]
      fhir:ElementDefinition.example.valuePeriod [ Period ]
      fhir:ElementDefinition.example.valueQuantity [ Quantity ]
      fhir:ElementDefinition.example.valueRange [ Range ]
      fhir:ElementDefinition.example.valueRatio [ Ratio ]
      fhir:ElementDefinition.example.valueRatioRange [ RatioRange ]

      fhir:ElementDefinition.example.valueReference [ Reference ]
      fhir:ElementDefinition.example.valueSampledData [ SampledData ]
      fhir:ElementDefinition.example.valueSignature [ Signature ]
      fhir:ElementDefinition.example.valueTiming [ Timing ]
      fhir: ]

      fhir:ElementDefinition.example.valueContactDetail [ ContactDetail ]

      fhir:ElementDefinition.example.valueDataRequirement [ DataRequirement ]
      fhir:ElementDefinition.example.valueExpression [ Expression ]
      fhir:ElementDefinition.example.valueParameterDefinition [ ParameterDefinition ]

      fhir:ElementDefinition.example.valueRelatedArtifact [ RelatedArtifact ]
      fhir: ]
      fhir: ]

      fhir:ElementDefinition.example.valueTriggerDefinition [ TriggerDefinition ]
      fhir:ElementDefinition.example.valueUsageContext [ UsageContext ]
      fhir:ElementDefinition.example.valueAvailability [ Availability ]
      fhir:ElementDefinition.example.valueExtendedContactDetail [ ExtendedContactDetail ]

      fhir:ElementDefinition.example.valueDosage [ Dosage ]
      fhir:ElementDefinition.example.valueMeta [ Meta ]

  ], ...;
  # . One of these 9

  # ElementDefinition.minValue[x] : 0..1 Minimum Allowed Value (for some types). One of these 10

    fhir:ElementDefinition.minValueDate [ date ]
    fhir:ElementDefinition.minValueDateTime [ dateTime ]
    fhir:ElementDefinition.minValueInstant [ instant ]
    fhir:ElementDefinition.minValueTime [ time ]
    fhir:ElementDefinition.minValueDecimal [ decimal ]
    fhir:ElementDefinition.minValueInteger [ integer ]
    fhir:ElementDefinition.minValueInteger64 [ integer64 ]

    fhir:ElementDefinition.minValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.minValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.minValueQuantity [ Quantity ]
  # . One of these 9

  # ElementDefinition.maxValue[x] : 0..1 Maximum Allowed Value (for some types). One of these 10

    fhir:ElementDefinition.maxValueDate [ date ]
    fhir:ElementDefinition.maxValueDateTime [ dateTime ]
    fhir:ElementDefinition.maxValueInstant [ instant ]
    fhir:ElementDefinition.maxValueTime [ time ]
    fhir:ElementDefinition.maxValueDecimal [ decimal ]
    fhir:ElementDefinition.maxValueInteger [ integer ]
    fhir:ElementDefinition.maxValueInteger64 [ integer64 ]

    fhir:ElementDefinition.maxValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.maxValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.maxValueQuantity [ Quantity ]
  fhir:

  fhir:ElementDefinition.maxLength [ integer ]; # 0..1 Max length for string type data

  fhir:ElementDefinition.condition [ id ], ... ; # 0..* Reference to invariant about presence
  fhir:ElementDefinition.constraint [ # 0..* Condition that must evaluate to true
    fhir:
    fhir:

    fhir:ElementDefinition.constraint.key [ id ]; # 1..1 I Target of 'condition' reference above
    fhir:ElementDefinition.constraint.requirements [ markdown ]; # 0..1 Why this constraint is necessary or appropriate

    fhir:ElementDefinition.constraint.severity [ code ]; # 1..1 error | warning
    fhir:ElementDefinition.constraint.suppress [ boolean ]; # 0..1 Suppress warning or hint in profile

    fhir:ElementDefinition.constraint.human [ string ]; # 1..1 Human description of constraint
    fhir:

    fhir:ElementDefinition.constraint.expression [ string ]; # 0..1 FHIRPath expression of constraint

    fhir:ElementDefinition.constraint.xpath [ string ]; # 0..1 XPath expression of constraint
    fhir:ElementDefinition.constraint.source [ canonical(StructureDefinition) ]; # 0..1 Reference to original source of constraint
  ], ...;
  fhir:

  fhir:ElementDefinition.mustSupport [ boolean ]; # 0..1 If the element must be supported

  fhir:ElementDefinition.isModifier [ boolean ]; # 0..1 If this modifies the meaning of other elements
  fhir:ElementDefinition.isModifierReason [ string ]; # 0..1 Reason that this element is marked as a modifier
  fhir:ElementDefinition.isSummary [ boolean ]; # 0..1 Include when _summary = true?
  fhir:

  fhir:ElementDefinition.binding [ # 0..1 I ValueSet details if this is coded

    fhir:ElementDefinition.binding.strength [ code ]; # 1..1 required | extensible | preferred | example
    fhir:
    # . One of these 2
      fhir: ]
      fhir:) ]

    fhir:ElementDefinition.binding.description [ markdown ]; # 0..1 Intended use of codes in the bound value set
    fhir:ElementDefinition.binding.valueSet [ canonical(ValueSet) ]; # 0..1 I Source of value set

  ];
  fhir:ElementDefinition.mapping [ # 0..* Map element to another set of definitions
    fhir:ElementDefinition.mapping.identity [ id ]; # 1..1 Reference to mapping declaration
    fhir:ElementDefinition.mapping.language [ code ]; # 0..1 Computable language of mapping
    fhir:ElementDefinition.mapping.map [ string ]; # 1..1 Details of the mapping
    fhir:

    fhir:ElementDefinition.mapping.comment [ markdown ]; # 0..1 Comments about the mapping or its use

  ], ...;
]

Changes since DSTU2 Release 3

ElementDefinition
ElementDefinition.slicing.ordered Default Value "false" removed ElementDefinition.type.profile ElementDefinition.type.code
  • Max Cardinality changed Change binding strength from 1 extensible to * required
  • Type changed Change value set from uri http://hl7.org/fhir/ValueSet/defined-types to canonical http://hl7.org/fhir/ValueSet/elementdefinition-types|5.0.0-ballot
  • ElementDefinition.type.targetProfile
  • Max Cardinality changed Change binding strength from 1 extensible to * required
  • Type changed Change value set from uri http://hl7.org/fhir/ValueSet/defined-types to canonical http://hl7.org/fhir/ValueSet/elementdefinition-types|5.0.0-ballot
ElementDefinition.type.versioning ElementDefinition.defaultValue[x]
  • Default Value "either" removed Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • ElementDefinition.defaultValue[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.fixed[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.pattern[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.example.value[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.constraint.source ElementDefinition.minValue[x]
  • Add Type changed from uri to canonical integer64, integer64
  • Add Type integer64, integer64
ElementDefinition.mustSupport ElementDefinition.maxValue[x]
  • Default Value "false" removed Add Type integer64, integer64
  • Add Type integer64, integer64
ElementDefinition.isModifier ElementDefinition.constraint.requirements
  • Default Value "false" removed Type changed from string to markdown
  • Type changed from string to markdown
ElementDefinition.isModifierReason ElementDefinition.constraint.suppress
  • Added Element
ElementDefinition.isSummary ElementDefinition.binding.description
  • Default Value "false" removed Type changed from string to markdown
  • Type changed from string to markdown
ElementDefinition.binding.valueSet[x] ElementDefinition.mapping.comment
  • Remove Reference(ValueSet), Add canonical Type changed from string to markdown
  • Type changed from string to markdown

See the Full Difference for further information

Structure

Σ Human explanation
Name Flags Card. Type Description & Constraints doco
. . ElementDefinition Σ I N Element Definition of an element in a resource or extension
+ Rule: Min <= Max
+ Rule: if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding
+ Pattern Rule: Fixed value may only be specified if there is one type
+ Fixed value Rule: Pattern may only be specified if there is one type
+ Rule: Pattern and fixed are mutually exclusive
+ Rule: Binding can only be present for coded elements, string, and uri if using FHIR-defined types
+ Pattern and value are mutually exclusive Rule: Types must be unique by code
+ Rule: Constraints must be unique by key
+ Types must be unique by code Rule: default value and meaningWhenMissing are mutually exclusive
+ Rule: sliceName must be composed of proper tokens separated by "/"
+ default value and meaningWhenMissing are mutually exclusive + Rule: Must have a modifier reason if isModifier = true
+ Rule: Element names cannot include some special characters with a max of 64 characters,
+ Warning: Element names should be simple alphanumerics with a max of 64 characters or code generation tools may be broken
+ Rule: sliceIsConstraining can only appear if slicename is present
+ Guideline: pattern[x] should be used rather than fixed[x]
+ Warning: Order has no meaning (and cannot be asserted to have meaning), so enforcing rules on order is improper
+ Warning: Mappings SHOULD be unique by key

Elements defined in Ancestors: id , extension , modifierExtension
. . . path Σ 1..1 string Path of the element in the hierarchy of elements
. . . representation Σ 0..* code xmlAttr | xmlText | typeAttr | cdaText | xhtml
PropertyRepresentation ( Required )

. . . sliceName Σ 0..1 string Name for this particular element (in a set of slices)
. . . label sliceIsConstraining Σ TU 0..1 boolean If this slice definition constrains an inherited slice definition (or not)
... label Σ 0..1 string Name for element to display with or prompt for element
. . . code Σ 0..* Coding Corresponding codes in terminologies
LOINC Codes ElementDefinitionCode icon ( Example )

. . . slicing Σ I 0..1 Element This element is sliced - slices follow
+ If there are no discriminators, there must be a definition
. . . . discriminator Σ 0..* Element Element values that are used to distinguish the slices

. . . . . type Σ 1..1 code value | exists | pattern | type | profile | position
DiscriminatorType ( Required )
. . . . . path Σ 1..1 string Path to element value
. . . . description Σ I 0..1 string Text description of how slicing works (or not)
. . . . ordered Σ 0..1 boolean If elements must be in same order as slices
. . . . rules Σ 1..1 code closed | open | openAtEnd
SlicingRules ( Required )
. . . short Σ 0..1 string Concise definition for space-constrained presentation
. . . definition Σ 0..1 markdown Full formal definition as narrative text
. . . comment Σ 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 C 0..1 unsignedInt Minimum Cardinality
. . . max Σ I C 0..1 string Maximum Cardinality (a number or *)
+ Rule: Max SHALL be a number or "*"
. . . base Σ 0..1 Element Base definition information for tools
. . . . path Σ 1..1 string Path that identifies the base element
. . . . min Σ 1..1 unsignedInt Min cardinality of the base element
. . . . max Σ 1..1 string Max cardinality of the base element
. . . contentReference Σ I C 0..1 uri Reference to definition of content for the element
. . . type Σ I C 0..* Element Data type and Profile for this element
+ Rule: Aggregation may only be specified if one of the allowed types for the element is a reference
+ targetProfie Rule: targetProfile is only allowed if the type is reference Reference or canonical

. . . . code Σ 1..1 uri Data type or Resource (reference to definition)
FHIRDefinedType Element Definition Types ( Extensible Required )
. . . . profile Σ 0..* canonical ( StructureDefinition | ImplementationGuide ) Profiles (StructureDefinition or IG) - one must apply

. . . . targetProfile Σ 0..* canonical ( StructureDefinition | ImplementationGuide ) Profile (StructureDefinition or IG) on the Reference Reference/canonical target - one must apply

. . . . aggregation Σ I C 0..* code contained | referenced | bundled - how aggregated
AggregationMode ( Required )

. . . . versioning Σ 0..1 code either | independent | specific
ReferenceVersionRules ( Required )
. . . defaultValue[x] Σ I C 0..1 * Specified value if missing from instance
. . . meaningWhenMissing Σ I C 0..1 markdown Implicit meaning when this element is missing
. . . orderMeaning Σ 0..1 string What the order of the elements means
. . . fixed[x] Σ I C 0..1 * Value must be exactly this
. . . pattern[x] Σ I C 0..1 * Value must have at least these property values
. . . example Σ 0..* Element Example value (as defined for type)

. . . . label Σ 1..1 string Describes the purpose of this example
. . . . value[x] Σ 1..1 * Value of Example (one of allowed types)
. . . minValue[x] Σ 0..1 Minimum Allowed Value (for some types)
. . . . minValueDate date
. . . . minValueDateTime dateTime
. . . . minValueInstant instant
. . . . minValueTime time
. . . . minValueDecimal decimal
. . . . minValueInteger integer
. . . . minValueInteger64 integer64
. . . . minValuePositiveInt positiveInt
. . . . minValueUnsignedInt unsignedInt
. . . . minValueQuantity Quantity
. . . maxValue[x] Σ 0..1 Maximum Allowed Value (for some types)
. . . . maxValueDate date
. . . . maxValueDateTime dateTime
. . . . maxValueInstant instant
. . . . maxValueTime time
. . . . maxValueDecimal decimal
. . . . maxValueInteger integer
. . . . maxValuePositiveInt maxValueInteger64 integer64
.... maxValuePositiveInt positiveInt
. . . . maxValueUnsignedInt unsignedInt
. . . . maxValueQuantity Quantity
. . . maxLength Σ 0..1 integer Max length for strings string type data
. . . condition Σ 0..* id Reference to invariant about presence

. . . constraint Σ C 0..* Element Condition that must evaluate to true
+ Warning: Constraints should have an expression or else validators will not be able to enforce them
+ Rule: Errors cannot be suppressed

. . . . key Σ I C 1..1 id Target of 'condition' reference above
. . . . requirements Σ 0..1 string markdown Why this constraint is necessary or appropriate
. . . . severity Σ 1..1 code error | warning
ConstraintSeverity ( Required )
. . . . human suppress Σ 0..1 boolean Suppress warning or hint in profile
.... human Σ 1..1 string Human description of constraint
. . . . expression Σ 1..1 0..1 string FHIRPath expression of constraint
. . . . xpath Σ TU 0..1 string XPath expression of constraint
. . . . source Σ 0..1 canonical ( StructureDefinition ) Reference to original source of constraint
. . . mustSupport Σ 0..1 boolean If the element must be supported
. . . isModifier Σ 0..1 boolean If this modifies the meaning of other elements
. . . isModifierReason Σ 0..1 string Reason that this element is marked as a modifier
. . . isSummary Σ 0..1 boolean Include when _summary = true?
. . . binding Σ I C 0..1 Element ValueSet details if this is coded
+ Rule: ValueSet as a URI SHALL start with http:// or https:// or urn: or #
+ Rule: binding SHALL have either description or valueSet
. . . . strength Σ 1..1 code required | extensible | preferred | example
BindingStrength ( Required )
. . . . description Σ 0..1 string markdown Intended use of codes in the bound value set
. . . valueSet[x] . valueSet Σ I C 0..1 canonical ( ValueSet ) Source of value set valueSetUri uri valueSetCanonical canonical
. . . mapping Σ 0..* Element Map element to another set of definitions

. . . . identity Σ 1..1 id Reference to mapping declaration
. . . . language Σ 0..1 code Computable language of mapping
MimeType ( Required )
. . . . map Σ 1..1 string Details of the mapping
. . . . comment Σ 0..1 string markdown Comments about the mapping or its use

doco Documentation for this format

UML Diagram ( Legend )

Element Extensions - as described for all elements: additional information that is not part of the basic definition of the resource / type extension : Extension 0..* ElementDefinition The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension path : string [1..1] Codes that define how this element is represented in instances, when the deviation varies from the normal case case. No extensions are allowed on elements with a representation of 'xmlAttr', no matter what FHIR serialization format is used representation : code [0..*] « How a property is represented when serialized. (Strength=Required) PropertyRepresentation ! » 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 sliceName : string [0..1] If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName sliceIsConstraining : boolean [0..1] A single preferred label which is the text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form label : string [0..1] A code that has the same meaning as the element in a particular terminology code : Coding [0..*] « Codes that indicate the meaning of a data element. (Strength=Example) LOINC ElementDefinitionCode ?? » A concise description of what this element means (e.g. for use in autogenerated summaries) short : string [0..1] 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 resource. (Note: The text you are reading is specified in ElementDefinition.definition) definition : markdown [0..1] Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc etc. (Note: The text you are reading is specified in ElementDefinition.comment) comment : markdown [0..1] 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 requirements : markdown [0..1] Identifies additional names by which this element might also be known alias : string [0..*] The minimum number of times this element SHALL appear in the instance min : unsignedInt [0..1] « This element has or is affected by some invariants C » The maximum number of times this element is permitted to appear in the instance max : string [0..1] « This element has or is affected by some invariants C » Identifies the identity of an element defined elsewhere in the profile definition whose content rules should be applied to the current element element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc contentReference : uri [0..1] « This element has or is affected by some invariants C » 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') defaultValue[x] : * [0..1] « This element has or is affected by some invariants C » The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing' ongoing') meaningWhenMissing : markdown [0..1] « This element has or is affected by some invariants C » If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning orderMeaning : string [0..1] Specifies a value that SHALL be exactly the value for this element in the instance. instance, if present. 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 fixed[x] : * [0..1] « This element has or is affected by some invariants C » Specifies a value that each occurrence of the value element in the instance SHALL follow - that is, any value in the pattern must be found in the instance. instance, if the element has a value. Other additional values may be found too. This is effectively constraint by example. The values of elements present When pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly. When an element within a pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] must (recursively) match at least one element from the instance array. When pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e., 1. If primitive: it must match exactly (case-sensitive, accent-sensitive, etc.) the pattern value 2. If a complex object: it must match (recursively) the pattern value 3. If an array: it must match (recursively) the pattern value If a pattern[x] is declared on a repeating element, the pattern applies to all repetitions. If the desire is for a pattern to apply to only one element or a subset of elements, slicing must be used. See [Examples of Patterns](elementdefinition-examples.html#pattern-examples) for examples of pattern usage and the effect it will have pattern[x] : * [0..1] « This element has or is affected by some invariants C » 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 minValue[x] : Type DataType [0..1] « date | dateTime | instant | time | decimal | integer | integer64 | positiveInt | unsignedInt | Quantity » 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 maxValue[x] : Type DataType [0..1] « date | dateTime | instant | time | decimal | integer | integer64 | positiveInt | unsignedInt | Quantity » 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 element. ```maxLength``` SHOULD only be used on primitive data types that have a string representation (see [Datatype characteristics](extension-structuredefinition-type-characteristics.html)) maxLength : integer [0..1] A reference to an invariant that may make additional statements about the cardinality or value in the instance condition : id [0..*] 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 supported. If false, whether to populate or use the data element in any way is at the discretion of the implementation mustSupport : boolean [0..1] 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 isModifier : boolean [0..1] Explains how that element affects the interpretation of the resource or element that contains it isModifierReason : string [0..1] Whether the element should be included if a client requests a search with the parameter _summary=true isSummary : boolean [0..1] Slicing 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 description : string [0..1] If the matching elements have to occur in the same order as defined in the profile ordered : boolean [0..1] 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 rules : code [1..1] « How slices are interpreted when evaluating an instance. (Strength=Required) SlicingRules ! » Discriminator How the element value is interpreted when discrimination is evaluated type : code [1..1] « How an element value is interpreted when discrimination is evaluated evaluated. (Strength=Required) DiscriminatorType ! » A FHIRPath expression, using [the simple subset of FHIRPath](fhirpath.html#simple), that is used to identify the element on which discrimination is based path : string [1..1] Base 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]]] without a StructureDefinition.base path : string [1..1] Minimum cardinality of the base element identified by the path min : unsignedInt [1..1] Maximum cardinality of the base element identified by the path max : string [1..1] TypeRef 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 code : uri [1..1] « Either a resource or a data type, including logical model types (Strength=Extensible) List of all Types for ElementDefinition.type.code. (Strength=Required) FHIRDefinedType + ElementDefinitionTypes ! » Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide profile : canonical [0..*] « StructureDefinition | ImplementationGuide » Used when the type is "Reference", "Reference" or "canonical", and Identifies identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide targetProfile : canonical [0..*] « StructureDefinition | ImplementationGuide » 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 aggregation : code [0..*] « How resource references can be aggregated. (Strength=Required) AggregationMode ! » « This element has or is affected by some invariants C » Whether this reference needs to be version specific or version independent, or whether either can be used versioning : code [0..1] « Whether a reference needs to be version specific or version independent, or whether either can be used used. (Strength=Required) ReferenceVersionRules ! » Example Describes the purpose of this example amoung the set of examples label : string [1..1] The actual value for the element, which must be one of the types allowed for this element value[x] : * [1..1] Constraint Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality key : id [1..1] « This element has or is affected by some invariants C » Description of why this constraint is necessary or appropriate requirements : string markdown [0..1] Identifies the impact constraint violation has on the conformance of the instance severity : code [1..1] « SHALL applications comply with this constraint? (Strength=Required) ConstraintSeverity ! » If true, indicates that the warning or best practice guideline should be suppressed suppress : boolean [0..1] Text that can be used to describe the constraint in messages identifying that the constraint has been violated human : string [1..1] A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met expression : string [1..1] [0..1] An XPath expression of constraint that can be executed to see if this constraint is met xpath : string [0..1] A reference to the original source of the constraint, for traceability purposes source : canonical [0..1] « StructureDefinition » ElementDefinitionBinding 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 strength : code [1..1] « Indication of the degree of conformance expectations associated with a binding. (Strength=Required) BindingStrength ! » Describes the intended use of this particular set of codes description : string markdown [0..1] Points Refers 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 canonical(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 valueSet[x] valueSet : Type canonical [0..1] « uri | canonical ( ValueSet ) » « This element has or is affected by some invariants C » Mapping An internal reference to the definition of a mapping identity : id [1..1] Identifies the computable language in which mapping.map is expressed language : code [0..1] « The mime type of an attachment. Any valid mime type is allowed. (Strength=Required) MimeType Mime Types ! » Expresses what part of the target specification corresponds to this element map : string [1..1] Comments that provide information about the mapping or its use comment : string markdown [0..1] BackboneType May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself) (this element modifies the meaning of other elements) modifierExtension : Extension [0..*] 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 discriminator [0..*] 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) slicing [0..1] 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. 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 - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same base [0..1] The data type or resource that the value of this element is permitted to be type [0..*] A sample value for this element demonstrating the type of information that would typically be found in the element example [0..*] Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance constraint [0..*] Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri) binding [0..1] Identifies a concept from an external specification that roughly corresponds to this element mapping [0..*]

XML Template

< xmlns="http://hl7.org/fhir">

<ElementDefinition xmlns="http://hl7.org/fhir">

 <!-- from Element: extension -->
 <path value="[string]"/><!-- 1..1 Path of the element in the hierarchy of elements -->
 <

 <representation value="[code]"/><!-- 0..* xmlAttr | xmlText | typeAttr | cdaText | xhtml -->

 <sliceName value="[string]"/><!-- 0..1 Name for this particular element (in a set of slices) -->
 <sliceIsConstraining value="[boolean]"/><!-- 0..1 If this slice definition constrains an inherited slice definition (or not) -->

 <label value="[string]"/><!-- 0..1 Name for element to display with or prompt for element -->
 <</code>

 <code><!-- 0..* Coding Corresponding codes in terminologies icon --></code>

 <slicing>  <!-- 0..1 This element is sliced - slices follow -->
  <discriminator>  <!-- 0..* Element values that are used to distinguish the slices -->
   <

   <type value="[code]"/><!-- 1..1 value | exists | pattern | type | profile | position -->

   <path value="[string]"/><!-- 1..1 Path to element value -->
  </discriminator>
  <

  <description value="[string]"/><!-- 0..1 Text description of how slicing works (or not) -->

  <ordered value="[boolean]"/><!-- 0..1 If elements must be in same order as slices -->
  <rules value="[code]"/><!-- 1..1 closed | open | openAtEnd -->
 </slicing>
 <short value="[string]"/><!-- 0..1 Concise definition for space-constrained presentation -->
 <
 <

 <definition value="[markdown]"/><!-- 0..1 Full formal definition as narrative text -->
 <comment value="[markdown]"/><!-- 0..1 Comments about the use of this element -->

 <requirements value="[markdown]"/><!-- 0..1 Why this resource has been created -->
 <alias value="[string]"/><!-- 0..* Other names -->
 <
 <

 <min value="[unsignedInt]"/><!-- I 0..1 Minimum Cardinality -->
 <max value="[string]"/><!-- I 0..1 Maximum Cardinality (a number or *) -->

 <base>  <!-- 0..1 Base definition information for tools -->
  <path value="[string]"/><!-- 1..1 Path that identifies the base element -->
  <min value="[unsignedInt]"/><!-- 1..1 Min cardinality of the base element -->
  <max value="[string]"/><!-- 1..1 Max cardinality of the base element -->
 </base>
 <
 <
  <
  <</profile>
  <</targetProfile>
  <

 <contentReference value="[uri]"/><!-- I 0..1 Reference to definition of content for the element -->
 <type>  <!-- I 0..* Data type and Profile for this element -->
  <code value="[uri]"/><!-- 1..1 Data type or Resource (reference to definition) -->
  <profile><!-- 0..* canonical(ImplementationGuide|StructureDefinition) Profiles (StructureDefinition or IG) - one must apply --></profile>
  <targetProfile><!-- 0..* canonical(ImplementationGuide|StructureDefinition) Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply --></targetProfile>
  <aggregation value="[code]"/><!-- I 0..* contained | referenced | bundled - how aggregated -->

  <versioning value="[code]"/><!-- 0..1 either | independent | specific -->
 </type>
 <</defaultValue[x]>
 <

 <defaultValue[x]><!-- I 0..1 * Specified value if missing from instance --></defaultValue[x]>
 <meaningWhenMissing value="[markdown]"/><!-- I 0..1 Implicit meaning when this element is missing -->

 <orderMeaning value="[string]"/><!-- 0..1 What the order of the elements means -->
 <</fixed[x]>
 <</pattern[x]>

 <fixed[x]><!-- I 0..1 * Value must be exactly this --></fixed[x]>
 <pattern[x]><!-- I 0..1 * Value must have at least these property values --></pattern[x]>

 <example>  <!-- 0..* Example value (as defined for type) -->
  <label value="[string]"/><!-- 1..1 Describes the purpose of this example -->
  <value[x]><!-- 1..1 * Value of Example (one of allowed types) --></value[x]>
 </example>
 <|
   </minValue[x]>
 <|
   </maxValue[x]>
 <

 <minValue[x]><!-- 0..1 date|dateTime|instant|time|decimal|integer|integer64|
   positiveInt|unsignedInt|Quantity Minimum Allowed Value (for some types) --></minValue[x]>

 <maxValue[x]><!-- 0..1 date|dateTime|instant|time|decimal|integer|integer64|
   positiveInt|unsignedInt|Quantity Maximum Allowed Value (for some types) --></maxValue[x]>

 <maxLength value="[integer]"/><!-- 0..1 Max length for string type data -->

 <condition value="[id]"/><!-- 0..* Reference to invariant about presence -->
 <constraint>  <!-- 0..* Condition that must evaluate to true -->
  <
  <

  <key value="[id]"/><!-- I 1..1 Target of 'condition' reference above -->
  <requirements value="[markdown]"/><!-- 0..1 Why this constraint is necessary or appropriate -->

  <severity value="[code]"/><!-- 1..1 error | warning -->
  <suppress value="[boolean]"/><!-- 0..1 Suppress warning or hint in profile -->

  <human value="[string]"/><!-- 1..1 Human description of constraint -->
  <

  <expression value="[string]"/><!-- 0..1 FHIRPath expression of constraint -->

  <xpath value="[string]"/><!-- 0..1 XPath expression of constraint -->
  <source><!-- 0..1 canonical(StructureDefinition) Reference to original source of constraint --></source>
 </constraint>
 <

 <mustSupport value="[boolean]"/><!-- 0..1 If the element must be supported -->

 <isModifier value="[boolean]"/><!-- 0..1 If this modifies the meaning of other elements -->
 <isModifierReason value="[string]"/><!-- 0..1 Reason that this element is marked as a modifier -->
 <isSummary value="[boolean]"/><!-- 0..1 Include when _summary = true? -->
 <

 <binding>  <!-- I 0..1 ValueSet details if this is coded -->

  <strength value="[code]"/><!-- 1..1 required | extensible | preferred | example -->
  <
  <</valueSet[x]>

  <description value="[markdown]"/><!-- 0..1 Intended use of codes in the bound value set -->
  <valueSet><!-- I 0..1 canonical(ValueSet) Source of value set --></valueSet>

 </binding>
 <mapping>  <!-- 0..* Map element to another set of definitions -->
  <identity value="[id]"/><!-- 1..1 Reference to mapping declaration -->
  <

  <language value="[code]"/><!-- 0..1 Computable language of mapping -->

  <map value="[string]"/><!-- 1..1 Details of the mapping -->
  <

  <comment value="[markdown]"/><!-- 0..1 Comments about the mapping or its use -->

 </mapping>
</[name]>

</ElementDefinition>

JSON Template

{doco
  // from Element: extension
  "path" : "<string>", // R!  Path of the element in the hierarchy of elements
  "

  "representation" : ["<code>"], // xmlAttr | xmlText | typeAttr | cdaText | xhtml

  "sliceName" : "<string>", // Name for this particular element (in a set of slices)
  "sliceIsConstraining" : <boolean>, // If this slice definition constrains an inherited slice definition (or not)

  "label" : "<string>", // Name for element to display with or prompt for element
  "

  "code" : [{ Coding }], // Corresponding codes in terminologies icon

  "slicing" : { // This element is sliced - slices follow
    "discriminator" : [{ // Element values that are used to distinguish the slices
      "

      "type" : "<code>", // R!  value | exists | pattern | type | profile | position

      "path" : "<string>" // R!  Path to element value
    }],
    "

    "description" : "<string>", // Text description of how slicing works (or not)

    "ordered" : <boolean>, // If elements must be in same order as slices
    "rules" : "<code>" // R!  closed | open | openAtEnd
  },
  "short" : "<string>", // Concise definition for space-constrained presentation
  "
  "

  "definition" : "<markdown>", // Full formal definition as narrative text
  "comment" : "<markdown>", // Comments about the use of this element

  "requirements" : "<markdown>", // Why this resource has been created
  "alias" : ["<string>"], // Other names
  "
  "

  "min" : "<unsignedInt>", // I Minimum Cardinality
  "max" : "<string>", // I Maximum Cardinality (a number or *)

  "base" : { // Base definition information for tools
    "path" : "<string>", // R!  Path that identifies the base element
    "min" : "<unsignedInt>", // R!  Min cardinality of the base element
    "max" : "<string>" // R!  Max cardinality of the base element
  },
  "
  "
    "
    "
    "
    "

  "contentReference" : "<uri>", // I Reference to definition of content for the element
  "type" : [{ // I Data type and Profile for this element
    "code" : "<uri>", // R!  Data type or Resource (reference to definition)
    "profile" : ["<canonical(StructureDefinition|ImplementationGuide)>"], // Profiles (StructureDefinition or IG) - one must apply
    "targetProfile" : ["<canonical(StructureDefinition|ImplementationGuide)>"], // Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply
    "aggregation" : ["<code>"], // I contained | referenced | bundled - how aggregated

    "versioning" : "<code>" // either | independent | specific
  }],
  
  ">,
  ">,
  ">",

  // defaultValue[x]: Specified value if missing from instance. One of these 54:
  "defaultValueBase64Binary" : "<base64Binary>",
  "defaultValueBoolean" : <boolean>,
  "defaultValueCanonical" : "<canonical>",
  "defaultValueCode" : "<code>",

  "defaultValueDate" : "<date>",
  "defaultValueDateTime" : "<dateTime>",
  "defaultValueDecimal" : <decimal>,
  "defaultValueId" : "<id>",

  "defaultValueInstant" : "<instant>",
  "defaultValueInteger" : <integer>,
  "defaultValueInteger64" : "<integer64>",
  "defaultValueMarkdown" : "<markdown>",
  "defaultValueOid" : "<oid>",
  "defaultValuePositiveInt" : "<positiveInt>",

  "defaultValueString" : "<string>",
  "defaultValueTime" : "<time>",
  "defaultValueUnsignedInt" : "<unsignedInt>",

  "defaultValueUri" : "<uri>",
  ">,
  ">",
  ">",
  " },
  " },

  "defaultValueUrl" : "<url>",
  "defaultValueUuid" : "<uuid>",
  "defaultValueAddress" : { Address },
  "defaultValueAge" : { Age },
  "defaultValueAnnotation" : { Annotation },

  "defaultValueAttachment" : { Attachment },
  "defaultValueCodeableConcept" : { CodeableConcept },
  "defaultValueCodeableReference" : { CodeableReference },
  "defaultValueCoding" : { Coding },
  "defaultValueContactPoint" : { ContactPoint },
  "defaultValueCount" : { Count },
  "defaultValueDistance" : { Distance },
  "defaultValueDuration" : { Duration },
  "defaultValueHumanName" : { HumanName },

  "defaultValueIdentifier" : { Identifier },
  "defaultValueMoney" : { Money },
  "defaultValuePeriod" : { Period },

  "defaultValueQuantity" : { Quantity },
  "defaultValueRange" : { Range },
  " },

  "defaultValueRatio" : { Ratio },
  " },
  " },
  " },
  " },

  "defaultValueRatioRange" : { RatioRange },

  "defaultValueReference" : { Reference },
  "

  "defaultValueSampledData" : { SampledData },
  "defaultValueSignature" : { Signature },
  "defaultValueTiming" : { Timing },
  "defaultValueContactDetail" : { ContactDetail },
  "defaultValueDataRequirement" : { DataRequirement },
  "defaultValueExpression" : { Expression },
  "defaultValueParameterDefinition" : { ParameterDefinition },
  "defaultValueRelatedArtifact" : { RelatedArtifact },
  "defaultValueTriggerDefinition" : { TriggerDefinition },
  "defaultValueUsageContext" : { UsageContext },
  "defaultValueAvailability" : { Availability },
  "defaultValueExtendedContactDetail" : { ExtendedContactDetail },
  "defaultValueDosage" : { Dosage },
  "defaultValueMeta" : { Meta },
  "meaningWhenMissing" : "<markdown>", // I Implicit meaning when this element is missing

  "orderMeaning" : "<string>", // What the order of the elements means
  
  ">,
  ">,
  ">",
  ">",
  ">",
  ">",
  ">",
  ">,
  ">",
  ">",
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  
  ">,
  ">,
  ">",
  ">",
  ">",
  ">",
  ">",
  ">,
  ">",
  ">",
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },
  " },

  // fixed[x]: Value must be exactly this. One of these 54:
  "fixedBase64Binary" : "<base64Binary>",
  "fixedBoolean" : <boolean>,
  "fixedCanonical" : "<canonical>",
  "fixedCode" : "<code>",
  "fixedDate" : "<date>",
  "fixedDateTime" : "<dateTime>",
  "fixedDecimal" : <decimal>,
  "fixedId" : "<id>",
  "fixedInstant" : "<instant>",
  "fixedInteger" : <integer>,
  "fixedInteger64" : "<integer64>",
  "fixedMarkdown" : "<markdown>",
  "fixedOid" : "<oid>",
  "fixedPositiveInt" : "<positiveInt>",
  "fixedString" : "<string>",
  "fixedTime" : "<time>",
  "fixedUnsignedInt" : "<unsignedInt>",
  "fixedUri" : "<uri>",
  "fixedUrl" : "<url>",
  "fixedUuid" : "<uuid>",
  "fixedAddress" : { Address },
  "fixedAge" : { Age },
  "fixedAnnotation" : { Annotation },
  "fixedAttachment" : { Attachment },
  "fixedCodeableConcept" : { CodeableConcept },
  "fixedCodeableReference" : { CodeableReference },
  "fixedCoding" : { Coding },
  "fixedContactPoint" : { ContactPoint },
  "fixedCount" : { Count },
  "fixedDistance" : { Distance },
  "fixedDuration" : { Duration },
  "fixedHumanName" : { HumanName },
  "fixedIdentifier" : { Identifier },
  "fixedMoney" : { Money },
  "fixedPeriod" : { Period },
  "fixedQuantity" : { Quantity },
  "fixedRange" : { Range },
  "fixedRatio" : { Ratio },
  "fixedRatioRange" : { RatioRange },
  "fixedReference" : { Reference },
  "fixedSampledData" : { SampledData },
  "fixedSignature" : { Signature },
  "fixedTiming" : { Timing },
  "fixedContactDetail" : { ContactDetail },
  "fixedDataRequirement" : { DataRequirement },
  "fixedExpression" : { Expression },
  "fixedParameterDefinition" : { ParameterDefinition },
  "fixedRelatedArtifact" : { RelatedArtifact },
  "fixedTriggerDefinition" : { TriggerDefinition },
  "fixedUsageContext" : { UsageContext },
  "fixedAvailability" : { Availability },
  "fixedExtendedContactDetail" : { ExtendedContactDetail },
  "fixedDosage" : { Dosage },
  "fixedMeta" : { Meta },
  // pattern[x]: Value must have at least these property values. One of these 54:

  "patternBase64Binary" : "<base64Binary>",
  "patternBoolean" : <boolean>,
  "patternCanonical" : "<canonical>",
  "patternCode" : "<code>",
  "patternDate" : "<date>",
  "patternDateTime" : "<dateTime>",
  "patternDecimal" : <decimal>,
  "patternId" : "<id>",
  "patternInstant" : "<instant>",
  "patternInteger" : <integer>,
  "patternInteger64" : "<integer64>",
  "patternMarkdown" : "<markdown>",
  "patternOid" : "<oid>",
  "patternPositiveInt" : "<positiveInt>",
  "patternString" : "<string>",
  "patternTime" : "<time>",
  "patternUnsignedInt" : "<unsignedInt>",
  "patternUri" : "<uri>",
  "patternUrl" : "<url>",
  "patternUuid" : "<uuid>",
  "patternAddress" : { Address },
  "patternAge" : { Age },
  "patternAnnotation" : { Annotation },
  "patternAttachment" : { Attachment },
  "patternCodeableConcept" : { CodeableConcept },
  "patternCodeableReference" : { CodeableReference },
  "patternCoding" : { Coding },
  "patternContactPoint" : { ContactPoint },
  "patternCount" : { Count },
  "patternDistance" : { Distance },
  "patternDuration" : { Duration },
  "patternHumanName" : { HumanName },
  "patternIdentifier" : { Identifier },
  "patternMoney" : { Money },
  "patternPeriod" : { Period },
  "patternQuantity" : { Quantity },
  "patternRange" : { Range },
  "patternRatio" : { Ratio },
  "patternRatioRange" : { RatioRange },
  "patternReference" : { Reference },
  "patternSampledData" : { SampledData },
  "patternSignature" : { Signature },
  "patternTiming" : { Timing },
  "patternContactDetail" : { ContactDetail },
  "patternDataRequirement" : { DataRequirement },
  "patternExpression" : { Expression },
  "patternParameterDefinition" : { ParameterDefinition },
  "patternRelatedArtifact" : { RelatedArtifact },
  "patternTriggerDefinition" : { TriggerDefinition },
  "patternUsageContext" : { UsageContext },
  "patternAvailability" : { Availability },
  "patternExtendedContactDetail" : { ExtendedContactDetail },
  "patternDosage" : { Dosage },
  "patternMeta" : { Meta },

  "example" : [{ // Example value (as defined for type)
    "label" : "<string>", // R!  Describes the purpose of this example
    
    ">
    ">
    ">"
    ">"
    ">"
    ">"
    ">"
    ">
    ">"

    // value[x]: Value of Example (one of allowed types). One of these 54:
    "valueBase64Binary" : "<base64Binary>"
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }
    " }

    "valueBoolean" : <boolean>,
    "valueCanonical" : "<canonical>",
    "valueCode" : "<code>",
    "valueDate" : "<date>",
    "valueDateTime" : "<dateTime>",
    "valueDecimal" : <decimal>,
    "valueId" : "<id>",
    "valueInstant" : "<instant>",
    "valueInteger" : <integer>,
    "valueInteger64" : "<integer64>",
    "valueMarkdown" : "<markdown>",
    "valueOid" : "<oid>",
    "valuePositiveInt" : "<positiveInt>",
    "valueString" : "<string>",
    "valueTime" : "<time>",
    "valueUnsignedInt" : "<unsignedInt>",
    "valueUri" : "<uri>",
    "valueUrl" : "<url>",
    "valueUuid" : "<uuid>",
    "valueAddress" : { Address },
    "valueAge" : { Age },
    "valueAnnotation" : { Annotation },
    "valueAttachment" : { Attachment },
    "valueCodeableConcept" : { CodeableConcept },
    "valueCodeableReference" : { CodeableReference },
    "valueCoding" : { Coding },
    "valueContactPoint" : { ContactPoint },
    "valueCount" : { Count },
    "valueDistance" : { Distance },
    "valueDuration" : { Duration },
    "valueHumanName" : { HumanName },
    "valueIdentifier" : { Identifier },
    "valueMoney" : { Money },
    "valuePeriod" : { Period },
    "valueQuantity" : { Quantity },
    "valueRange" : { Range },
    "valueRatio" : { Ratio },
    "valueRatioRange" : { RatioRange },
    "valueReference" : { Reference },
    "valueSampledData" : { SampledData },
    "valueSignature" : { Signature },
    "valueTiming" : { Timing },
    "valueContactDetail" : { ContactDetail },
    "valueDataRequirement" : { DataRequirement },
    "valueExpression" : { Expression },
    "valueParameterDefinition" : { ParameterDefinition },
    "valueRelatedArtifact" : { RelatedArtifact },
    "valueTriggerDefinition" : { TriggerDefinition },
    "valueUsageContext" : { UsageContext },
    "valueAvailability" : { Availability },
    "valueExtendedContactDetail" : { ExtendedContactDetail },
    "valueDosage" : { Dosage },
    "valueMeta" : { Meta },

  }],
  

  // minValue[x]: Minimum Allowed Value (for some types). One of these 10:
  "minValueDate" : "<date>",
  "minValueDateTime" : "<dateTime>",
  "minValueInstant" : "<instant>",
  "minValueTime" : "<time>",
  "minValueDecimal" : <decimal>,
  "minValueInteger" : <integer>,
  "minValueInteger64" : "<integer64>",

  "minValuePositiveInt" : "<positiveInt>",
  "minValueUnsignedInt" : "<unsignedInt>",
  "minValueQuantity" : { Quantity },
  

  // maxValue[x]: Maximum Allowed Value (for some types). One of these 10:
  "maxValueDate" : "<date>",
  "maxValueDateTime" : "<dateTime>",
  "maxValueInstant" : "<instant>",
  "maxValueTime" : "<time>",
  "maxValueDecimal" : <decimal>,
  "maxValueInteger" : <integer>,
  "maxValueInteger64" : "<integer64>",

  "maxValuePositiveInt" : "<positiveInt>",
  "maxValueUnsignedInt" : "<unsignedInt>",
  "maxValueQuantity" : { Quantity },
  "

  "maxLength" : <integer>, // Max length for string type data

  "condition" : ["<id>"], // Reference to invariant about presence
  "constraint" : [{ // Condition that must evaluate to true
    "
    "

    "key" : "<id>", // I R!  Target of 'condition' reference above
    "requirements" : "<markdown>", // Why this constraint is necessary or appropriate

    "severity" : "<code>", // R!  error | warning
    "suppress" : <boolean>, // Suppress warning or hint in profile

    "human" : "<string>", // R!  Human description of constraint
    "

    "expression" : "<string>", // FHIRPath expression of constraint

    "xpath" : "<string>", // XPath expression of constraint
    "

    "source" : "<canonical(StructureDefinition)>" // Reference to original source of constraint

  }],
  "

  "mustSupport" : <boolean>, // If the element must be supported

  "isModifier" : <boolean>, // If this modifies the meaning of other elements
  "isModifierReason" : "<string>", // Reason that this element is marked as a modifier
  "isSummary" : <boolean>, // Include when _summary = true?
  "

  "binding" : { // I ValueSet details if this is coded

    "strength" : "<code>", // R!  required | extensible | preferred | example
    "
    
    ">"
    ">"

    "description" : "<markdown>", // Intended use of codes in the bound value set
    "valueSet" : "<canonical(ValueSet)>" // I Source of value set

  },
  "mapping" : [{ // Map element to another set of definitions
    "identity" : "<id>", // R!  Reference to mapping declaration
    "

    "language" : "<code>", // Computable language of mapping

    "map" : "<string>", // R!  Details of the mapping
    "

    "comment" : "<markdown>" // Comments about the mapping or its use

  }]
}

Turtle Template

@prefix fhir: <http://hl7.org/fhir/> .

[
 # from Element: Element.extension
  fhir:ElementDefinition.path [ string ]; # 1..1 Path of the element in the hierarchy of elements
  fhir:

  fhir:ElementDefinition.representation [ code ], ... ; # 0..* xmlAttr | xmlText | typeAttr | cdaText | xhtml

  fhir:ElementDefinition.sliceName [ string ]; # 0..1 Name for this particular element (in a set of slices)
  fhir:ElementDefinition.sliceIsConstraining [ boolean ]; # 0..1 If this slice definition constrains an inherited slice definition (or not)

  fhir:ElementDefinition.label [ string ]; # 0..1 Name for element to display with or prompt for element
  fhir:ElementDefinition.code [ Coding ], ... ; # 0..* Corresponding codes in terminologies
  fhir:ElementDefinition.slicing [ # 0..1 This element is sliced - slices follow
    fhir:ElementDefinition.slicing.discriminator [ # 0..* Element values that are used to distinguish the slices
      fhir:

      fhir:ElementDefinition.slicing.discriminator.type [ code ]; # 1..1 value | exists | pattern | type | profile | position

      fhir:ElementDefinition.slicing.discriminator.path [ string ]; # 1..1 Path to element value
    ], ...;
    fhir:ElementDefinition.slicing.description [ string ]; # 0..1 Text description of how slicing works (or not)
    fhir:ElementDefinition.slicing.ordered [ boolean ]; # 0..1 If elements must be in same order as slices
    fhir:ElementDefinition.slicing.rules [ code ]; # 1..1 closed | open | openAtEnd
  ];
  fhir:ElementDefinition.short [ string ]; # 0..1 Concise definition for space-constrained presentation
  fhir:
  fhir:

  fhir:ElementDefinition.definition [ markdown ]; # 0..1 Full formal definition as narrative text
  fhir:ElementDefinition.comment [ markdown ]; # 0..1 Comments about the use of this element

  fhir:ElementDefinition.requirements [ markdown ]; # 0..1 Why this resource has been created
  fhir:ElementDefinition.alias [ string ], ... ; # 0..* Other names
  fhir:
  fhir:

  fhir:ElementDefinition.min [ unsignedInt ]; # 0..1 I Minimum Cardinality
  fhir:ElementDefinition.max [ string ]; # 0..1 I Maximum Cardinality (a number or *)

  fhir:ElementDefinition.base [ # 0..1 Base definition information for tools
    fhir:ElementDefinition.base.path [ string ]; # 1..1 Path that identifies the base element
    fhir:ElementDefinition.base.min [ unsignedInt ]; # 1..1 Min cardinality of the base element
    fhir:ElementDefinition.base.max [ string ]; # 1..1 Max cardinality of the base element
  ];
  fhir:
  fhir:

  fhir:ElementDefinition.contentReference [ uri ]; # 0..1 I Reference to definition of content for the element
  fhir:ElementDefinition.type [ # 0..* I Data type and Profile for this element

    fhir:ElementDefinition.type.code [ uri ]; # 1..1 Data type or Resource (reference to definition)
    fhir:
    fhir:
    fhir:

    fhir:ElementDefinition.type.profile [ canonical(ImplementationGuide|StructureDefinition) ], ... ; # 0..* Profiles (StructureDefinition or IG) - one must apply
    fhir:ElementDefinition.type.targetProfile [ canonical(ImplementationGuide|StructureDefinition) ], ... ; # 0..* Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply
    fhir:ElementDefinition.type.aggregation [ code ], ... ; # 0..* I contained | referenced | bundled - how aggregated

    fhir:ElementDefinition.type.versioning [ code ]; # 0..1 either | independent | specific
  ], ...;
  # . One of these 48

  # ElementDefinition.defaultValue[x] : 0..1 I Specified value if missing from instance. One of these 54

    fhir:ElementDefinition.defaultValueBase64Binary [ base64Binary ]
    fhir:ElementDefinition.defaultValueBoolean [ boolean ]
    fhir:ElementDefinition.defaultValueCanonical [ canonical ]
    fhir:ElementDefinition.defaultValueCode [ code ]
    fhir:ElementDefinition.defaultValueDate [ date ]
    fhir:ElementDefinition.defaultValueDateTime [ dateTime ]
    fhir:ElementDefinition.defaultValueDecimal [ decimal ]
    fhir:ElementDefinition.defaultValueId [ id ]
    fhir:ElementDefinition.defaultValueInstant [ instant ]
    fhir:ElementDefinition.defaultValueInteger [ integer ]
    fhir:ElementDefinition.defaultValueInteger64 [ integer64 ]

    fhir:ElementDefinition.defaultValueMarkdown [ markdown ]
    fhir:ElementDefinition.defaultValueOid [ oid ]
    fhir:ElementDefinition.defaultValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.defaultValueString [ string ]
    fhir:ElementDefinition.defaultValueTime [ time ]
    fhir:ElementDefinition.defaultValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.defaultValueUri [ uri ]
    fhir:ElementDefinition.defaultValueUrl [ url ]
    fhir:ElementDefinition.defaultValueUuid [ uuid ]
    fhir:ElementDefinition.defaultValueAddress [ Address ]
    fhir:ElementDefinition.defaultValueAge [ Age ]
    fhir:ElementDefinition.defaultValueAnnotation [ Annotation ]
    fhir:ElementDefinition.defaultValueAttachment [ Attachment ]
    fhir:ElementDefinition.defaultValueCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.defaultValueCodeableReference [ CodeableReference ]

    fhir:ElementDefinition.defaultValueCoding [ Coding ]
    fhir:ElementDefinition.defaultValueContactPoint [ ContactPoint ]
    fhir:ElementDefinition.defaultValueCount [ Count ]
    fhir:ElementDefinition.defaultValueDistance [ Distance ]
    fhir:ElementDefinition.defaultValueDuration [ Duration ]
    fhir:ElementDefinition.defaultValueHumanName [ HumanName ]
    fhir:ElementDefinition.defaultValueIdentifier [ Identifier ]
    fhir:ElementDefinition.defaultValueMoney [ Money ]
    fhir:ElementDefinition.defaultValuePeriod [ Period ]
    fhir:ElementDefinition.defaultValueQuantity [ Quantity ]
    fhir:ElementDefinition.defaultValueRange [ Range ]
    fhir:ElementDefinition.defaultValueRatio [ Ratio ]
    fhir:ElementDefinition.defaultValueRatioRange [ RatioRange ]

    fhir:ElementDefinition.defaultValueReference [ Reference ]
    fhir:ElementDefinition.defaultValueSampledData [ SampledData ]
    fhir:ElementDefinition.defaultValueSignature [ Signature ]
    fhir:ElementDefinition.defaultValueTiming [ Timing ]
    fhir: ]

    fhir:ElementDefinition.defaultValueContactDetail [ ContactDetail ]

    fhir:ElementDefinition.defaultValueDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.defaultValueExpression [ Expression ]
    fhir:ElementDefinition.defaultValueParameterDefinition [ ParameterDefinition ]

    fhir:ElementDefinition.defaultValueRelatedArtifact [ RelatedArtifact ]
    fhir: ]
    fhir: ]

    fhir:ElementDefinition.defaultValueTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.defaultValueUsageContext [ UsageContext ]
    fhir:ElementDefinition.defaultValueAvailability [ Availability ]
    fhir:ElementDefinition.defaultValueExtendedContactDetail [ ExtendedContactDetail ]

    fhir:ElementDefinition.defaultValueDosage [ Dosage ]
  fhir:

    fhir:ElementDefinition.defaultValueMeta [ Meta ]
  fhir:ElementDefinition.meaningWhenMissing [ markdown ]; # 0..1 I Implicit meaning when this element is missing

  fhir:ElementDefinition.orderMeaning [ string ]; # 0..1 What the order of the elements means
  # . One of these 48
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
  # . One of these 48
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]
    fhir: ]

  # ElementDefinition.fixed[x] : 0..1 I Value must be exactly this. One of these 54
    fhir:ElementDefinition.fixedBase64Binary [ base64Binary ]
    fhir:ElementDefinition.fixedBoolean [ boolean ]
    fhir:ElementDefinition.fixedCanonical [ canonical ]
    fhir:ElementDefinition.fixedCode [ code ]
    fhir:ElementDefinition.fixedDate [ date ]
    fhir:ElementDefinition.fixedDateTime [ dateTime ]
    fhir:ElementDefinition.fixedDecimal [ decimal ]
    fhir:ElementDefinition.fixedId [ id ]
    fhir:ElementDefinition.fixedInstant [ instant ]
    fhir:ElementDefinition.fixedInteger [ integer ]
    fhir:ElementDefinition.fixedInteger64 [ integer64 ]
    fhir:ElementDefinition.fixedMarkdown [ markdown ]
    fhir:ElementDefinition.fixedOid [ oid ]
    fhir:ElementDefinition.fixedPositiveInt [ positiveInt ]
    fhir:ElementDefinition.fixedString [ string ]
    fhir:ElementDefinition.fixedTime [ time ]
    fhir:ElementDefinition.fixedUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.fixedUri [ uri ]
    fhir:ElementDefinition.fixedUrl [ url ]
    fhir:ElementDefinition.fixedUuid [ uuid ]
    fhir:ElementDefinition.fixedAddress [ Address ]
    fhir:ElementDefinition.fixedAge [ Age ]
    fhir:ElementDefinition.fixedAnnotation [ Annotation ]
    fhir:ElementDefinition.fixedAttachment [ Attachment ]
    fhir:ElementDefinition.fixedCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.fixedCodeableReference [ CodeableReference ]
    fhir:ElementDefinition.fixedCoding [ Coding ]
    fhir:ElementDefinition.fixedContactPoint [ ContactPoint ]
    fhir:ElementDefinition.fixedCount [ Count ]
    fhir:ElementDefinition.fixedDistance [ Distance ]
    fhir:ElementDefinition.fixedDuration [ Duration ]
    fhir:ElementDefinition.fixedHumanName [ HumanName ]
    fhir:ElementDefinition.fixedIdentifier [ Identifier ]
    fhir:ElementDefinition.fixedMoney [ Money ]
    fhir:ElementDefinition.fixedPeriod [ Period ]
    fhir:ElementDefinition.fixedQuantity [ Quantity ]
    fhir:ElementDefinition.fixedRange [ Range ]
    fhir:ElementDefinition.fixedRatio [ Ratio ]
    fhir:ElementDefinition.fixedRatioRange [ RatioRange ]
    fhir:ElementDefinition.fixedReference [ Reference ]
    fhir:ElementDefinition.fixedSampledData [ SampledData ]
    fhir:ElementDefinition.fixedSignature [ Signature ]
    fhir:ElementDefinition.fixedTiming [ Timing ]
    fhir:ElementDefinition.fixedContactDetail [ ContactDetail ]
    fhir:ElementDefinition.fixedDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.fixedExpression [ Expression ]
    fhir:ElementDefinition.fixedParameterDefinition [ ParameterDefinition ]
    fhir:ElementDefinition.fixedRelatedArtifact [ RelatedArtifact ]
    fhir:ElementDefinition.fixedTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.fixedUsageContext [ UsageContext ]
    fhir:ElementDefinition.fixedAvailability [ Availability ]
    fhir:ElementDefinition.fixedExtendedContactDetail [ ExtendedContactDetail ]
    fhir:ElementDefinition.fixedDosage [ Dosage ]
    fhir:ElementDefinition.fixedMeta [ Meta ]
  # ElementDefinition.pattern[x] : 0..1 I Value must have at least these property values. One of these 54
    fhir:ElementDefinition.patternBase64Binary [ base64Binary ]
    fhir:ElementDefinition.patternBoolean [ boolean ]
    fhir:ElementDefinition.patternCanonical [ canonical ]
    fhir:ElementDefinition.patternCode [ code ]
    fhir:ElementDefinition.patternDate [ date ]
    fhir:ElementDefinition.patternDateTime [ dateTime ]
    fhir:ElementDefinition.patternDecimal [ decimal ]
    fhir:ElementDefinition.patternId [ id ]
    fhir:ElementDefinition.patternInstant [ instant ]
    fhir:ElementDefinition.patternInteger [ integer ]
    fhir:ElementDefinition.patternInteger64 [ integer64 ]
    fhir:ElementDefinition.patternMarkdown [ markdown ]
    fhir:ElementDefinition.patternOid [ oid ]
    fhir:ElementDefinition.patternPositiveInt [ positiveInt ]
    fhir:ElementDefinition.patternString [ string ]
    fhir:ElementDefinition.patternTime [ time ]
    fhir:ElementDefinition.patternUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.patternUri [ uri ]
    fhir:ElementDefinition.patternUrl [ url ]
    fhir:ElementDefinition.patternUuid [ uuid ]
    fhir:ElementDefinition.patternAddress [ Address ]
    fhir:ElementDefinition.patternAge [ Age ]
    fhir:ElementDefinition.patternAnnotation [ Annotation ]
    fhir:ElementDefinition.patternAttachment [ Attachment ]
    fhir:ElementDefinition.patternCodeableConcept [ CodeableConcept ]
    fhir:ElementDefinition.patternCodeableReference [ CodeableReference ]
    fhir:ElementDefinition.patternCoding [ Coding ]
    fhir:ElementDefinition.patternContactPoint [ ContactPoint ]
    fhir:ElementDefinition.patternCount [ Count ]
    fhir:ElementDefinition.patternDistance [ Distance ]
    fhir:ElementDefinition.patternDuration [ Duration ]
    fhir:ElementDefinition.patternHumanName [ HumanName ]
    fhir:ElementDefinition.patternIdentifier [ Identifier ]
    fhir:ElementDefinition.patternMoney [ Money ]
    fhir:ElementDefinition.patternPeriod [ Period ]
    fhir:ElementDefinition.patternQuantity [ Quantity ]
    fhir:ElementDefinition.patternRange [ Range ]
    fhir:ElementDefinition.patternRatio [ Ratio ]
    fhir:ElementDefinition.patternRatioRange [ RatioRange ]
    fhir:ElementDefinition.patternReference [ Reference ]
    fhir:ElementDefinition.patternSampledData [ SampledData ]
    fhir:ElementDefinition.patternSignature [ Signature ]
    fhir:ElementDefinition.patternTiming [ Timing ]
    fhir:ElementDefinition.patternContactDetail [ ContactDetail ]
    fhir:ElementDefinition.patternDataRequirement [ DataRequirement ]
    fhir:ElementDefinition.patternExpression [ Expression ]
    fhir:ElementDefinition.patternParameterDefinition [ ParameterDefinition ]
    fhir:ElementDefinition.patternRelatedArtifact [ RelatedArtifact ]
    fhir:ElementDefinition.patternTriggerDefinition [ TriggerDefinition ]
    fhir:ElementDefinition.patternUsageContext [ UsageContext ]
    fhir:ElementDefinition.patternAvailability [ Availability ]
    fhir:ElementDefinition.patternExtendedContactDetail [ ExtendedContactDetail ]
    fhir:ElementDefinition.patternDosage [ Dosage ]
    fhir:ElementDefinition.patternMeta [ Meta ]

  fhir:ElementDefinition.example [ # 0..* Example value (as defined for type)
    fhir:ElementDefinition.example.label [ string ]; # 1..1 Describes the purpose of this example
    # . One of these 48

    # ElementDefinition.example.value[x] : 1..1 Value of Example (one of allowed types). One of these 54

      fhir:ElementDefinition.example.valueBase64Binary [ base64Binary ]
      fhir:ElementDefinition.example.valueBoolean [ boolean ]
      fhir:ElementDefinition.example.valueCanonical [ canonical ]
      fhir:ElementDefinition.example.valueCode [ code ]
      fhir:ElementDefinition.example.valueDate [ date ]
      fhir:ElementDefinition.example.valueDateTime [ dateTime ]
      fhir:ElementDefinition.example.valueDecimal [ decimal ]
      fhir:ElementDefinition.example.valueId [ id ]
      fhir:ElementDefinition.example.valueInstant [ instant ]
      fhir:ElementDefinition.example.valueInteger [ integer ]
      fhir:ElementDefinition.example.valueInteger64 [ integer64 ]

      fhir:ElementDefinition.example.valueMarkdown [ markdown ]
      fhir:ElementDefinition.example.valueOid [ oid ]
      fhir:ElementDefinition.example.valuePositiveInt [ positiveInt ]
      fhir:ElementDefinition.example.valueString [ string ]
      fhir:ElementDefinition.example.valueTime [ time ]
      fhir:ElementDefinition.example.valueUnsignedInt [ unsignedInt ]
      fhir:ElementDefinition.example.valueUri [ uri ]
      fhir:ElementDefinition.example.valueUrl [ url ]
      fhir:ElementDefinition.example.valueUuid [ uuid ]
      fhir:ElementDefinition.example.valueAddress [ Address ]
      fhir:ElementDefinition.example.valueAge [ Age ]
      fhir:ElementDefinition.example.valueAnnotation [ Annotation ]
      fhir:ElementDefinition.example.valueAttachment [ Attachment ]
      fhir:ElementDefinition.example.valueCodeableConcept [ CodeableConcept ]
      fhir:ElementDefinition.example.valueCodeableReference [ CodeableReference ]

      fhir:ElementDefinition.example.valueCoding [ Coding ]
      fhir:ElementDefinition.example.valueContactPoint [ ContactPoint ]
      fhir:ElementDefinition.example.valueCount [ Count ]
      fhir:ElementDefinition.example.valueDistance [ Distance ]
      fhir:ElementDefinition.example.valueDuration [ Duration ]
      fhir:ElementDefinition.example.valueHumanName [ HumanName ]
      fhir:ElementDefinition.example.valueIdentifier [ Identifier ]
      fhir:ElementDefinition.example.valueMoney [ Money ]
      fhir:ElementDefinition.example.valuePeriod [ Period ]
      fhir:ElementDefinition.example.valueQuantity [ Quantity ]
      fhir:ElementDefinition.example.valueRange [ Range ]
      fhir:ElementDefinition.example.valueRatio [ Ratio ]
      fhir:ElementDefinition.example.valueRatioRange [ RatioRange ]

      fhir:ElementDefinition.example.valueReference [ Reference ]
      fhir:ElementDefinition.example.valueSampledData [ SampledData ]
      fhir:ElementDefinition.example.valueSignature [ Signature ]
      fhir:ElementDefinition.example.valueTiming [ Timing ]
      fhir: ]

      fhir:ElementDefinition.example.valueContactDetail [ ContactDetail ]

      fhir:ElementDefinition.example.valueDataRequirement [ DataRequirement ]
      fhir:ElementDefinition.example.valueExpression [ Expression ]
      fhir:ElementDefinition.example.valueParameterDefinition [ ParameterDefinition ]

      fhir:ElementDefinition.example.valueRelatedArtifact [ RelatedArtifact ]
      fhir: ]
      fhir: ]

      fhir:ElementDefinition.example.valueTriggerDefinition [ TriggerDefinition ]
      fhir:ElementDefinition.example.valueUsageContext [ UsageContext ]
      fhir:ElementDefinition.example.valueAvailability [ Availability ]
      fhir:ElementDefinition.example.valueExtendedContactDetail [ ExtendedContactDetail ]

      fhir:ElementDefinition.example.valueDosage [ Dosage ]
      fhir:ElementDefinition.example.valueMeta [ Meta ]

  ], ...;
  # . One of these 9

  # ElementDefinition.minValue[x] : 0..1 Minimum Allowed Value (for some types). One of these 10

    fhir:ElementDefinition.minValueDate [ date ]
    fhir:ElementDefinition.minValueDateTime [ dateTime ]
    fhir:ElementDefinition.minValueInstant [ instant ]
    fhir:ElementDefinition.minValueTime [ time ]
    fhir:ElementDefinition.minValueDecimal [ decimal ]
    fhir:ElementDefinition.minValueInteger [ integer ]
    fhir:ElementDefinition.minValueInteger64 [ integer64 ]

    fhir:ElementDefinition.minValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.minValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.minValueQuantity [ Quantity ]
  # . One of these 9

  # ElementDefinition.maxValue[x] : 0..1 Maximum Allowed Value (for some types). One of these 10

    fhir:ElementDefinition.maxValueDate [ date ]
    fhir:ElementDefinition.maxValueDateTime [ dateTime ]
    fhir:ElementDefinition.maxValueInstant [ instant ]
    fhir:ElementDefinition.maxValueTime [ time ]
    fhir:ElementDefinition.maxValueDecimal [ decimal ]
    fhir:ElementDefinition.maxValueInteger [ integer ]
    fhir:ElementDefinition.maxValueInteger64 [ integer64 ]

    fhir:ElementDefinition.maxValuePositiveInt [ positiveInt ]
    fhir:ElementDefinition.maxValueUnsignedInt [ unsignedInt ]
    fhir:ElementDefinition.maxValueQuantity [ Quantity ]
  fhir:

  fhir:ElementDefinition.maxLength [ integer ]; # 0..1 Max length for string type data

  fhir:ElementDefinition.condition [ id ], ... ; # 0..* Reference to invariant about presence
  fhir:ElementDefinition.constraint [ # 0..* Condition that must evaluate to true
    fhir:
    fhir:

    fhir:ElementDefinition.constraint.key [ id ]; # 1..1 I Target of 'condition' reference above
    fhir:ElementDefinition.constraint.requirements [ markdown ]; # 0..1 Why this constraint is necessary or appropriate

    fhir:ElementDefinition.constraint.severity [ code ]; # 1..1 error | warning
    fhir:ElementDefinition.constraint.suppress [ boolean ]; # 0..1 Suppress warning or hint in profile

    fhir:ElementDefinition.constraint.human [ string ]; # 1..1 Human description of constraint
    fhir:

    fhir:ElementDefinition.constraint.expression [ string ]; # 0..1 FHIRPath expression of constraint

    fhir:ElementDefinition.constraint.xpath [ string ]; # 0..1 XPath expression of constraint
    fhir:ElementDefinition.constraint.source [ canonical(StructureDefinition) ]; # 0..1 Reference to original source of constraint
  ], ...;
  fhir:

  fhir:ElementDefinition.mustSupport [ boolean ]; # 0..1 If the element must be supported

  fhir:ElementDefinition.isModifier [ boolean ]; # 0..1 If this modifies the meaning of other elements
  fhir:ElementDefinition.isModifierReason [ string ]; # 0..1 Reason that this element is marked as a modifier
  fhir:ElementDefinition.isSummary [ boolean ]; # 0..1 Include when _summary = true?
  fhir:

  fhir:ElementDefinition.binding [ # 0..1 I ValueSet details if this is coded

    fhir:ElementDefinition.binding.strength [ code ]; # 1..1 required | extensible | preferred | example
    fhir:
    # . One of these 2
      fhir: ]
      fhir:) ]

    fhir:ElementDefinition.binding.description [ markdown ]; # 0..1 Intended use of codes in the bound value set
    fhir:ElementDefinition.binding.valueSet [ canonical(ValueSet) ]; # 0..1 I Source of value set

  ];
  fhir:ElementDefinition.mapping [ # 0..* Map element to another set of definitions
    fhir:ElementDefinition.mapping.identity [ id ]; # 1..1 Reference to mapping declaration
    fhir:ElementDefinition.mapping.language [ code ]; # 0..1 Computable language of mapping
    fhir:ElementDefinition.mapping.map [ string ]; # 1..1 Details of the mapping
    fhir:

    fhir:ElementDefinition.mapping.comment [ markdown ]; # 0..1 Comments about the mapping or its use

  ], ...;
]

Changes since DSTU2 Release 3

ElementDefinition
ElementDefinition.slicing.ordered Default Value "false" removed ElementDefinition.type.profile ElementDefinition.type.code
  • Max Cardinality changed Change binding strength from 1 extensible to * required
  • Type changed Change value set from uri http://hl7.org/fhir/ValueSet/defined-types to canonical http://hl7.org/fhir/ValueSet/elementdefinition-types|5.0.0-ballot
  • ElementDefinition.type.targetProfile
  • Max Cardinality changed Change binding strength from 1 extensible to * required
  • Type changed Change value set from uri http://hl7.org/fhir/ValueSet/defined-types to canonical http://hl7.org/fhir/ValueSet/elementdefinition-types|5.0.0-ballot
ElementDefinition.type.versioning ElementDefinition.defaultValue[x]
  • Default Value "either" removed Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • ElementDefinition.defaultValue[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.fixed[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.pattern[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.example.value[x]
  • Remove Meta, Add canonical, Add url, Add uuid, Add ParameterDefinition, Add DataRequirement, Add RelatedArtifact, Add ContactDetail, Add Types integer64, CodeableReference, RatioRange, Availability, ExtendedContactDetail, Meta, Meta
  • Remove Type Contributor, Add TriggerDefinition, Add UsageContext, Add Dosage Contributor
  • Remove Type Contributor, Contributor
ElementDefinition.constraint.source ElementDefinition.minValue[x]
  • Add Type changed from uri to canonical integer64, integer64
  • Add Type integer64, integer64
ElementDefinition.mustSupport ElementDefinition.maxValue[x]
  • Default Value "false" removed Add Type integer64, integer64
  • Add Type integer64, integer64
ElementDefinition.isModifier ElementDefinition.constraint.requirements
  • Default Value "false" removed Type changed from string to markdown
  • Type changed from string to markdown
ElementDefinition.isModifierReason ElementDefinition.constraint.suppress
  • Added Element
ElementDefinition.isSummary ElementDefinition.binding.description
  • Default Value "false" removed Type changed from string to markdown
  • Type changed from string to markdown
ElementDefinition.binding.valueSet[x] ElementDefinition.mapping.comment
  • Remove Reference(ValueSet), Add canonical Type changed from string to markdown
  • Type changed from string to markdown

See the Full Difference for further information

Constraints

eld-1 : On ElementDefinition.slicing: If there are no discriminators, there must be a definition ( expression
id Level Location Description Expression on ElementDefinition.slicing: discriminator.exists() or description.exists() )
eld-2 : img  eld-2 Rule (base) Min <= Max ( expression : min.empty() or max.empty() or (max = '*') or iif(max != '*', min <= max.toInteger()) )
eld-3 : On ElementDefinition.max: img  eld-3 Rule ElementDefinition.max Max SHALL be a number or "*" ( expression on ElementDefinition.max: empty() or ($this = '*') or (toInteger() >= 0) )
eld-4 : On ElementDefinition.type: img  eld-4 Rule ElementDefinition.type Aggregation may only be specified if one of the allowed types for the element is a reference ( expression on ElementDefinition.type: aggregation.empty() or (code = 'Reference') or (code = 'canonical') or (code = 'CodeableReference') )
eld-5 : img  eld-5 Rule (base) 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()) )
eld-6 : img  eld-6 Rule (base) Fixed value may only be specified if there is one type ( expression : fixed.empty() or (type.count() <= 1) )
eld-7 : img  eld-7 Rule (base) Pattern may only be specified if there is one type ( expression : pattern.empty() or (type.count() <= 1) )
eld-8 : img  eld-8 Rule (base) Pattern and value fixed are mutually exclusive ( expression : pattern.empty() or fixed.empty() )
eld-11 : img  eld-11 Rule (base) Binding can only be present for coded elements, string, and uri ( expression if using FHIR-defined types : binding.empty() or type.code.empty() or type.code.contains(":") or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'string') or (code = 'uri')).exists() 'uri') or (code = 'Duration')).exists() )
eld-12 : On ElementDefinition.binding: img  eld-12 Rule ElementDefinition.binding ValueSet as a URI SHALL start with http:// or https:// or urn: ( expression or # on ElementDefinition.binding: (valueSet is uri).not() valueSet.exists() implies (valueSet.startsWith('http:') or (valueSet as uri).startsWith('http:') valueSet.startsWith('https') or (valueSet as uri).startsWith('https') valueSet.startsWith('urn:') or (valueSet as uri).startsWith('urn:') valueSet.startsWith('#')) )
eld-13 : img  eld-13 Rule (base) Types must be unique by code ( expression : type.select(code).isDistinct() )
eld-14 : img  eld-14 Rule (base) Constraints must be unique by key ( expression : constraint.select(key).isDistinct() )
eld-15 : img  eld-15 Rule (base) default value and meaningWhenMissing are mutually exclusive ( expression : defaultValue.empty() or meaningWhenMissing.empty() )
eld-16 : img  eld-16 Rule (base) sliceName must be composed of proper tokens separated by "/" ( expression : sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\/\\-_\\[\\]\\@]+$') )
eld-17 : On ElementDefinition.type: targetProfie img  eld-17 Rule ElementDefinition.type targetProfile is only allowed if the type is reference ( expression Reference or canonical on ElementDefinition.type: code='Reference' (code='Reference' or code = 'canonical' or code = 'CodeableReference') or targetProfile.empty() )
eld-18 : img  eld-18 Rule (base) Must have a modifier reason if isModifier = true ( expression : isModifier (isModifier.exists() and isModifier) implies isModifierReason.exists() )
img  eld-19 Rule (base) Element names cannot include some special characters with a max of 64 characters, path.matches('^[^\\s\\.,:;\\\'"\\/|?!@#$%&*()\\[\\]{}]{1,64}(\\.[^\\s\\.,:;\\\'"\\/|?!@#$%&*()\\[\\]{}]{1,64}(\\[x\\])?(\\:[^\\s\\.]+)?)*$')
img  eld-20 Warning (base) Element names should be simple alphanumerics with a max of 64 characters or code generation tools may be broken path.matches('^[A-Za-z][A-Za-z0-9]{0,63}(\\.[a-z][A-Za-z0-9]{0,63}(\\[x])?)*$')
img  eld-21 Warning ElementDefinition.constraint Constraints should have an expression or else validators will not be able to enforce them expression.exists()
img  eld-22 Rule (base) sliceIsConstraining can only appear if slicename is present sliceIsConstraining.exists() implies sliceName.exists()
img  eld-23 Rule ElementDefinition.binding binding SHALL have either description or valueSet description.exists() or valueSet.exists()
img  eld-24 Guideline (base) pattern[x] should be used rather than fixed[x] fixed.exists().not()
This is (only) a best practice guideline because:

pattern[x] is generally preferred over fixed[x] because it doesn't preclude the use of id and additional extensions, though there are corner cases when it's appropriate to exclude those

img  eld-25 Warning (base) Order has no meaning (and cannot be asserted to have meaning), so enforcing rules on order is improper orderMeaning.empty() implies slicing.where(rules='openAtEnd' or ordered).exists().not()
img  eld-26 Rule ElementDefinition.constraint Errors cannot be suppressed (severity = 'error') implies suppress.empty()
img  eld-27 Warning (base) Mappings SHOULD be unique by key mapping.select(identity).isDistinct()

 

The path element is the most important property of the element definition. It both names the element, and locates the element within a hierarchy defined within a particular context. Within the FHIR specification, there is only one original definition for each path (that is, an element definition with no base element). path. This is the master definition to which all the other definitions with the same path must conform.

All elements defined within the FHIR specification itself are defined within a StructureDefinition that defines a resource, or a datatype. This defines the identity of the element and provides the context in which the meaning of the element is understood. When Elements are defined, the following rules apply:

  • Element names (the parts of a path delineated by the '.' character) SHALL not NOT contain whitespace (i.e. Unicode characters marked as whitespace)
  • Element names SHALL not NOT contain the characters ,:;'"/|?|!@#$%^&*()[]{} ,:;'"/|?!@#$%^&*()[]{}
  • Element names SHOULD not contain non-ASCII characters
  • Element paths names SHALL not NOT exceed 64 characters in length
  • Element paths cannot imply elements that are not explicitly defined i.e. a.b.c.d cannot be defined unless a.b.c is explicitly defined
  • By convention, each path start starts with an uppercase letter (type) but all the element names that follow this are lowercase (not type names). All resources and data types datatypes (except for Primitive data types) datatypes) follow this convention, but logical models are not required to do so

If the element is polymorphic (has more than one datatype), then the end of the path for the element SHALL be "[x]" to designate that the name of the element may vary when serialized. The "[x]" is not considered to be part of the official element name, though it may frequently appear in documentation that way.

Elements may be defined in:

  • StructureDefinitions of kind = resource , complex-type or primitive-type , where derivation = specialization . These are either Resources or Data types Datatypes defined in the specification, or in custom resource definitions (see Custom Resource Policy ) specification
  • StructureDefinitions of kind = logical
  • Data Elements

StructureDefinitions with derivation = constraint (i.e. Resource and Data Type Datatype profiles) are not allowed to define or include ElementDefinitions with a path not defined within the base resource type definition from which they derive (e.g. in the FHIR specification).

In addition to the path, every ElementDefinition SHALL have a populated id , and the id SHALL have a unique value populated by following this algorithm:

  • The id will be constructed as a dot separated string, each part corresponding to a token in the path
  • For each token in the path, use the syntax pathpart:slicename/reslicename
  • For type choice elements, the id reflects the type slice. e.g. For path = Patient.deceasedBoolean, the id is Patient.deceased[x]:deceasedBoolean

Note that in a profile with no slices, this id will match the path exactly and entirely. id values constructed in this fashion are unique, and persistent, and may be used as the target of external references into the definition, where necessary.

The data type datatype ElementDefinition is used in StructureDefinition . The way its elements are to be used and interpreted depends on the context:

ElementDefinition field Type definition, first element Type definition, following elements Constraint Definition, first element Constraint Definition, following elements
sliceName prohibited prohibited prohibited required for slices, else prohibited
label optional optional recommended recommended
code optional optional optional optional
slicing prohibited prohibited prohibited optional
short/definition required required required required
requirements/
comments/alias
prohibited optional prohibited optional
base prohibited snapshot: required
differential: optional
prohibited snapshot: required
differential: optional
required required
type required required optional optional
nameReference prohibited optional prohibited optional
min/max optional (irrelevant) optional§ required optional optional
defaultValue[x] prohibited optional prohibited optional
meaningWhenMissing prohibited optional prohibited optional
fixed[x] prohibited prohibited prohibited optional
pattern[x] prohibited prohibited prohibited optional
example[x] prohibited optional prohibited optional
minValue[x] prohibited prohibited prohibited optional
maxValue[x] prohibited prohibited prohibited optional
maxLength prohibited prohibited prohibited optional
mustSupport prohibited prohibited optional optional
isModifier prohibited optional prohibited optional
isSummary prohibited optional prohibited optional
binding prohibited optional prohibited optional
constraint optional optional optional optional
condition prohibited optional prohibited optional
mapping optional optional optional optional

Notes:

  • Type definition: A StructureDefinition without a base baseDefinition element, or where the derivation type is 'specialization'
  • Constraint definition: A StructureDefinition with a base baseDefinition element and a derivation of 'constraint' - e.g. a definition of a structure that constrains another base structure, referring to the differential portion
  • : The element's presence, and value, must match the definition in the base structure definition
  • : The element content must be consistent with that matching element in the base structure definition
  • : Additional constraints and mappings can be defined, but they do not replace the ones in the base structure definition
  • § : The cardinality on a type places constraints on references to that type. I.e. profiles referencing the type must fall within the cardinality bounds of the type itself. This most commonly occurs with Extension profiles, where the profile may prohibit the extension from repeating (max=1), or less commonly, make the extension mandatory (min=1) - i.e. if the extension is referenced in a profile, it must be marked as mandatory.
  • For some simple types, rather than pointing to a FHIR datatype, the element will be defined as having a datatype defined by [FHIRPath]. E.g. http://hl7.org/fhirpath/System.String icon. This occurs when the generic behavior of the FHIR primitive type is not desired (e.g. inheriting extension, id, etc.). Implementations should map these FHIRPath datatypes to the appropriate simple datatype defined in their implementation language. For example, in Java, FHIRPath System.String might best map to the `java.lang.String` class.
  • In addition, when an element has a datatype of http://hl7.org/fhirpath/System.String icon then it will typically also include a structuredefinition-fhir-type extension. This extension might further constrain the allowed value of an element that might be treated as a string. For example, limiting the permitted value regex, length, etc. to the corresponding FHIR-defined datatype (but NOT permitting the additional elements such as id and extension). If the extension is not present, no additional constraints apply.

The use of Path and type depends more deeply on the context where the ElementDefinition is used:

Context path (1st element) path (following elements) type (1st element)
Base definition of a data type datatype
(example: Quantity - XML , JSON )
Name of the type Path inside the datatype Element
A constrained data type datatype
(example: Money - XML , JSON )
Name of the base type Path inside the datatype Name of the base type
Base definition of a resource
(example: Patient - XML , JSON )
The name of the resource Path inside the resource DomainResource or sometimes Resource
Constraint on a resource
(example: DAF Patient - XML , JSON )
The name of the resource Path inside the resource
(including into the data types) datatypes)
The name of the resource
Base Extension (a (which is a standard data type) datatype)
(example: Extension - XML , JSON )
Extension Extension.value[x] or Extension.extension Extension
A defined Extension
(example: Extension - XML , JSON )
Extension Extension.value[x] or Extension.extension (for complex extensions) Extension

There are additional notes about the use of ElementDefinition when defining Extensions on the Defining Extensions page.

For a description of slicing, see Slicing

  • Slicing is only allowed when constraining an existing structure
  • slicing can only be used on the first repeat repetition of an element, this element. This first element that declares slicing is considered to be the slicing entry
  • All elements following the first repeat that containing a slicing SHALL have a sliceName
  • The special slice name @default applies to all entries that are not in any other slice
  • The first entry (the one having the slicing information) is understood to be the set of constraints to be used for the "open" slice, i.e., when the slice is open, this definition is used as a constraint on elements in the instance that are not part of apply to all slices and entries, whether they have a defined slice and belong to the open portion of the slice. Its or not It's use follows the "normal case", except:
    • slicing must be present
    • min and max govern governs the number of total occurrences of the sliced element including the number of occurrences in the open portion of the slice. slice (individual slices may have a different min value).

Elements that allow a choice of multiple types can be constrained. In principle, there are two different types of constraints to apply:

  • A constraint that applies to the element as a whole - e.g. as restricting the cardinality, or limiting the choice of types
  • A constraint that applies to the use of a particular type - e.g. value set binding

When constraining elements with multiple types, the following rules apply:

  • Constraints limiting the acceptable list of types must be applied to the original "[x]" element as this is where the list of acceptable types is defined
  • The inclusion of a type specific path (such as "Patient.deceasedBoolean") SHALL not NOT be interpreted as constraining allowed types, but instead, it constrains the use of a particular type
  • the original element SHALL always be represented in a snapshot; the type specific variants are only represented when needed
  • If there is no StructureDefinition.base : StructureDefinition.baseDefinition : min and max are always required
  • Otherwise, in StructureDefinition.differential : min and max are always optional; if they are not present, they default to the base min and max from the base definition
  • In StructureDefinition.snapshot : min and max are always required
  • If min = 0, and there is a fixed or pattern value present, the fixed or pattern value only applies if the element is actually present
  • If an aggregationMode is present in the definition, the 'reference' element SHALL be present and have a value and the target of the reference SHALL be aggregated as defined
  • If type.versioning is present in the definition, the 'reference' element SHALL be present and have a value and the reference SHALL be populated as the versioning constraint dictates.

Most elements have a minimum cardinality of 0, which means that they may be missing from a resource when it is exchanged between systems. Generally, when an element is missing, all that an application processing the resource can say about the element is that the value is unknown - it may have a correct value, but it has not been provided for security or workflow reasons. On the other hand, it might not have a value at all. All the application can say is that the value is unknown.

This also applies when the element is present, but has no value or child elements, and only has extensions instead.

However, for some elements, this specification makes specific rules about what it means if the element is missing. For example: Element Meaning when missing Period.end If the end of the period is missing, it means that the period is ongoing Quantity.comparator If there is no comparator, then there is no modification of the value MedicationAdministration.wasNotGiven If this is missing, then the medication was administered Substance.instance If this element is not present, then the substance resource describes a kind of substance Assigning a meaning when an element is missing is something that is not done very often. Note that constraints Constraints on other structures cannot change the missing meaning of an element. Here is a list of all elements with a default value or a missing meaning:

This specification does not define any default values for resources or data types datatypes because:

  • The value must be known by all implementations
  • When an element has a default value, it can never be unknown - e.g. it is implicitly mandatory
  • The default value can never be changed
  • The presence of a default value interacts with minimum cardinality and the :missing search token in ways that create confusion for implementations

Note that default values can be defined in Logical Models .