STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

StructureDefinition: elementdefinition-de - Detailed Descriptions

Definitions for the elementdefinition-de Profile.

ElementDefinition(elementdefinition-de)
Definition

Captures constraints on each element within the resource, profile, or extension.

Control0..*
TypeElementDefinition
InvariantsDefined on this element
eld-11: Binding can only be present for coded elements, string, and uri (xpath: not(exists(f:binding)) or (count(f:type/f:code) = 0) or f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri'))
eld-13: Types must be unique by the combination of code and profile (xpath: not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value])))
eld-14: Constraints must be unique by key (xpath: count(f:constraint) = count(distinct-values(f:constraint/f:key/@value)))
eld-15: default value and meaningWhenMissing are mutually exclusive (xpath: not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing)))
eld-2: Min <= Max (xpath: not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value))
eld-5: if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding (xpath: not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')]) or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding))))
eld-6: Fixed value may only be specified if there is one type (xpath: not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)=1))
eld-7: Pattern may only be specified if there is one type (xpath: not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)=1))
eld-8: Pattern and value are mutually exclusive (xpath: not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'value')])))
ElementDefinition.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.extension
Definition

An Extension

Control0..*
TypeExtension
SlicingThis element introduces a set of slices. The slicing rules are:
  • unordered
  • Open
  • discriminators: url
ElementDefinition.extension (http://hl7.org/fhir/StructureDefinition/elementdefinition-question)
Definition

The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey).

Control0..*
TypeExtension (Extension Type: string)
Comments

Question and label serve similar purposes in they both can be used to prompt for capturing a data element. Whether the question form or label form should be used will depend on the type of instrument being used to capture the information. The ordering is in order of preference. I.e. Most preferred question form is listed first. Note that this is for alternate phrasings of the question. Language translations are handled using the ISO 21090 string translation extensions.

ElementDefinition.extension (http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits)
Definition

Identifies the units of measure in which the element should be captured or expressed.

Control0..1
TypeExtension (Extension Type: Choice of: CodeableConcept, Reference(ValueSet))
Comments

Use a value set if more than one unit of measure is possible. Value sets will typically be short enough to display in a drop-down selection list.

ElementDefinition.path
Definition

The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.

Control1..1
Typestring
ElementDefinition.representation
Definition

Codes that define how this element is represented in instances, when the deviation varies from the normal case.

Control0..0
BindingHow a property is represented on the wire.
The codes SHALL be taken from PropertyRepresentation
Typecode
Comments

This is rarely used except for special cases where the representation deviates from the normal, which is done only very reluctantly, and can only be done in the base standard (and profiles must reproduce what the base standard does).

ElementDefinition.name
Definition

The name of this element definition. 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.

Control0..1
Typestring
Requirements

May also be used for code generation purposes.

Comments

The name SHALL be unique within the structure within the context of the constrained resource element. (Though to avoid confusion, uniqueness across all elements is recommended.).

ElementDefinition.label
Definition

The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.

Control0..1
Typestring
Comments

Question and label serve similar purposes in they both can be used to prompt for capturing a data element. Whether the question form or label form should be used will depend on the type of instrument being used to capture the information.

ElementDefinition.code
Definition

A code that provides the meaning for the element according to a particular terminology.

Control0..*
BindingCodes that indicate the meaning of a data element.
For example codes, see LOINC Codes
TypeCoding
Requirements

Links the meaning of an element to an external terminology.

Comments

The data element definition and other constraints SHALL be a proper constraint on the meaning (as defined in the code system, including relationships) of any code listed here. Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself.

ElementDefinition.slicing
Definition

Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).

Control0..0
TypeElement
Comments

The first element in the sequence, the one that carries the slicing, is the unconstrained element, for reference purposes . This may include the unconstrained children.

InvariantsDefined on this element
eld-1: If there are no discriminators, there must be a definition (xpath: (f:discriminator) or (f:description))
ElementDefinition.slicing.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.slicing.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.slicing.discriminator
Definition

Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.

Control0..*
Typestring
Comments

If there is no discriminator, the content is hard to process, so this should be avoided. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator most be "@type".

ElementDefinition.slicing.description
Definition

A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.

Control0..1 This element is affected by the following invariants: eld-1
Typestring
Comments

If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable.

ElementDefinition.slicing.ordered
Definition

If the matching elements have to occur in the same order as defined in the profile.

Control0..1
Typeboolean
Comments

Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable.

Default Valuefalse
ElementDefinition.slicing.rules
Definition

Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.

Control1..1
BindingHow slices are interpreted when evaluating an instance.
The codes SHALL be taken from SlicingRules
Typecode
Comments

Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile.

ElementDefinition.short
Definition

A concise description of what this element means (e.g. for use in autogenerated summaries).

Control0..0
Typestring
Comments

May change the term to provide language more appropriate to the context of the profile or to reflect slicing.

ElementDefinition.definition
Definition

Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.

Control0..1
Typemarkdown
Requirements

To allow a user to state the usage of an element in a particular context.

Alternate NamesDescription
Comments

It is easy for a different definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing definitions.

ElementDefinition.comments
Definition

Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.

Control0..1
Typemarkdown
Comments

If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element.

ElementDefinition.requirements
Definition

This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.

Control0..1
Typemarkdown
Comments

This element does not describe the usage of the element (that's done in comments), rather it's for traceability of why the element is either needed or why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this data element.

ElementDefinition.alias
Definition

Identifies additional names by which this element might also be known.

Control0..*
Typestring
Requirements

Allows for better easier recognition of the element by multiple communities, including international communities.

Alternate Namessynonym, other name
ElementDefinition.min
Definition

The minimum number of times this element SHALL appear in the instance.

Control0..1 This element is affected by the following invariants: eld-2
Typeinteger
ElementDefinition.max
Definition

The maximum number of times this element is permitted to appear in the instance.

Control0..1 This element is affected by the following invariants: eld-3, eld-2
Typestring
InvariantsDefined on this element
eld-3: Max SHALL be a number or "*" (xpath: @value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))=''))
ElementDefinition.base
Definition

Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.

Control0..1
TypeElement
Comments

The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies.

ElementDefinition.base.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.base.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.base.path
Definition

The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a StructureDefinition without a StructureDefinition.base.

Control1..1
Typestring
ElementDefinition.base.min
Definition

Minimum cardinality of the base element identified by the path.

Control1..1
Typeinteger
Comments

This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this).

ElementDefinition.base.max
Definition

Maximum cardinality of the base element identified by the path.

Control1..1
Typestring
Comments

This is provided to code generation, since the wire representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ.

ElementDefinition.contentReference
Definition

Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.

Control0..1 This element is affected by the following invariants: eld-5
Typeuri
ElementDefinition.type
Definition

The data type or resource that the value of this element is permitted to be.

Control0..* This element is affected by the following invariants: eld-13
TypeElement
Comments

The Type of the element can be left blank, in which case the type is inherited from the resource. The type can only be listed in this field if it is an allowed option in the base resource.

InvariantsDefined on this element
eld-4: Aggregation may only be specified if one of the allowed types for the element is a resource (xpath: not(exists(f:aggregation)) or exists(f:code[@value = 'Reference']))
ElementDefinition.type.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.type.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.type.code
Definition

Name of Data type or Resource that is a(or the) type used for this element.

Control1..1
BindingEither a resource or a data type.
The codes SHALL be taken from FHIRDefinedType
Typecode
Comments

If the element is a reference to another resource, this element contains "Reference", and the profile element refers to the profile of the allowed target of the resource, which may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). There would be one pair of type/code for each allowed target resource type.

ElementDefinition.type.profile
Definition

Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.

Control0..0
Typeuri
ElementDefinition.type.aggregation
Definition

If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.

Control0..0 This element is affected by the following invariants: eld-4
BindingHow resource references can be aggregated.
The codes SHALL be taken from AggregationMode
Typecode
ElementDefinition.type.versioning
Definition

Whether this reference needs to be version specific or version independent, or whetehr either can be used.

Control0..1
BindingWhether a reference needs to be version specific or version independent, or whetehr either can be used
The codes SHALL be taken from ReferenceVersionRules
Typecode
Comments

The base specification never makes a rule as to which form is allowed, but implementation guides may do this.

Default Valueeither
ElementDefinition.defaultValue[x]
Definition

The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').

Control0..1 This element is affected by the following invariants: eld-15
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed. For these reasons, default values are (and should be) used extremely sparingly. This element should only be used on child elements of complex data elements.

ElementDefinition.meaningWhenMissing
Definition

The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.

Control0..1 This element is affected by the following invariants: eld-15
Typemarkdown
Comments

Implicit meanings for missing values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. An implicit meaning for a missing value can never be changed, and specifying one has the consequence that constraining its use in profiles eliminates use cases as possibilities, not merely moving them out of scope. This element should only be used on child elements of complex data elements.

ElementDefinition.fixed[x]
Definition

Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.

Control0..0 This element is affected by the following invariants: eld-5, eld-6, eld-8
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

This is not recommended for Coding and CodeableConcept since these often have highly contextual properties such as version or display.

ElementDefinition.pattern[x]
Definition

Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).

Control0..0 This element is affected by the following invariants: eld-5, eld-7, eld-8
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

Mostly used for fixing values of CodeableConcept. At present, pattern[x] is not recommended as a basis for slicing while issues related to this are investigated during the DSTU period.

ElementDefinition.example[x]
Definition

A sample value for this element demonstrating the type of information that would typically be captured.

Control0..1
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

This will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be. (I.e. Example values for dates or quantities would generally be unnecessary.) If the example value is fully populated, the publication tool can generate an instance automatically.

ElementDefinition.minValue[x]
Definition

The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.

Control0..1
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

Except for date/date/instant, the type of the minValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of minValue[x] SHALL be either the same, or a a Duration which specifies a relative time limit to the current time. The duration value is positive, and is subtracted from the current clock to determine the minimum allowable value. A minimum value for a Quantity is interpreted as an canonical minimum - e.g. you cannot provide 100mg if the minimum value is 10g.

ElementDefinition.maxValue[x]
Definition

The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.

Control0..1
TypeChoice of: boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference, Meta
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

Except for date/date/instant, the type of the maxValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of maxValue[x] SHALL be either the same, or a a Duration which specifies a relative time limit to the current time. The duration value is positive, and is added to the current clock to determine the maximum allowable value. A maximum value for a Quantity is interpreted as an canonical maximum - e.g. you cannot provide 10g if the maximum value is 50mg.

ElementDefinition.maxLength
Definition

Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.

Control0..1
Typeinteger
Comments

Receivers are not required to reject instances that exceed the maximum length. The full length could be stored. In some cases, data might be truncated, though truncation should be undertaken with care and an understanding of the consequences of doing so. If not specified, there is no conformance expectation for length support.

ElementDefinition.condition
Definition

A reference to an invariant that may make additional statements about the cardinality or value in the instance.

Control0..*
Typeid
ElementDefinition.constraint
Definition

Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.

Control0..*
TypeElement
Comments

Constraints should be declared on the "context" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint.

ElementDefinition.constraint.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.constraint.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.constraint.key
Definition

Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.

Control1..1 This element is affected by the following invariants: eld-14
Typeid
ElementDefinition.constraint.requirements
Definition

Description of why this constraint is necessary or appropriate.

Control0..1
Typestring
Comments

To be used if the reason for the constraint may not be intuitive to all implementers.

ElementDefinition.constraint.severity
Definition

Identifies the impact constraint violation has on the conformance of the instance.

Control1..1
BindingSHALL applications comply with this constraint?
The codes SHALL be taken from ConstraintSeverity
Typecode
Comments

This allows constraints to be asserted as "shall" (error) and "should" (warning).

ElementDefinition.constraint.human
Definition

Text that can be used to describe the constraint in messages identifying that the constraint has been violated.

Control1..1
Typestring
Comments

Should be expressed in business terms as much as possible.

ElementDefinition.constraint.expression
Definition

A FluentPath expression of constraint that can be executed to see if this constraint is met.

Control0..1
Typestring
Requirements

Used by validation tooling tests of the validity of the resource.

ElementDefinition.constraint.xpath
Definition

An XPath expression of constraint that can be executed to see if this constraint is met.

Control1..1
Typestring
Requirements

Used in Schematron tests of the validity of the resource.

Comments

Elements SHALL use "f" as the namespace prefix for the FHIR namespace, and "x" for the xhtml namespace, and SHALL NOT use any other prefixes.

ElementDefinition.mustSupport
Definition

If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.

Control0..1
Typeboolean
Requirements

Allows a profile to set expectations for system capabilities beyond merely respecting cardinality constraints.

Comments

"Something useful" is context dependent and impossible to describe in the base FHIR specification. For this reason, tue mustSupport flag is never set to true by the FHIR specification itself - it is only set to true in profiles.

This is done in Resource Profiles, where the profile labels an element as mustSupport=true. When a profile does this, it SHALL also make clear exactly what kind of "support" is required, as this can mean many things.

Note that an element that has the property IsModifier is not necessarily a "key" element (e.g. one of the important elements to make use of the resource), nor is it automatically mustSupport - however both of these things are more likely to be true for IsModifier elements than for other elements.

Default Valuefalse
ElementDefinition.isModifier
Definition

If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.

Control0..0
Typeboolean
Requirements

Allows elements to be introduced into a specification that can't safely be ignored by applications that don't recognize them.

Comments

Only the definition of an element can set IsModifier true - either the specification itself or where an extension is originally defined. Once set, it cannot be changed in derived profiles. An element/extension that has isModifier=true SHOULD also have a minimum cardinality of 1, so that there is no lack of clarity about what to do if it is missing. If it can be missing, the definition SHALL make the meaning of a missing element clear.

Default Valuefalse
ElementDefinition.isSummary
Definition

Whether the element should be included if a client requests a search with the parameter _summary=true.

Control0..0
Typeboolean
Requirements

Allow clients to search through large resources quickly.

Comments

Some resources include a set of simple metadata, and some very large data. This element is used to reduce the quantity of data returned in searches. Note that servers may pre-cache summarized resources for optimal performance, so servers may not support per-profile use of the isSummary flag.

Default Valuefalse
ElementDefinition.binding
Definition

Binds to a value set if this element is coded (code, Coding, CodeableConcept).

Control0..1 This element is affected by the following invariants: eld-11
TypeElement
InvariantsDefined on this element
eld-10: provide either a reference or a description (or both) (xpath: (exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description))
ElementDefinition.binding.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.binding.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.binding.strength
Definition

Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.

Control1..1
BindingIndication of the degree of conformance expectations associated with a binding.
The codes SHALL be taken from BindingStrength
Typecode
Alternate Namesconformance, extensibility
Comments

For further discussion, see Using Terminologies.

ElementDefinition.binding.description
Definition

Describes the intended use of this particular set of codes.

Control0..1 This element is affected by the following invariants: eld-10
Typestring
ElementDefinition.binding.valueSet[x]
Definition

Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.

Control0..1 This element is affected by the following invariants: eld-10, eld-12
TypeChoice of: uri, Reference(ValueSet)
[x] NoteSee Choice of Data Types for further information about how to use [x]
Comments

For value sets with a referenceResource, the display can contain the value set description. The reference may be version-specific or not.

InvariantsDefined on this element
eld-12: URI SHALL start with http:// or https:// urn: (xpath: starts-with(string(@value), 'http:') or starts-with(string(@value), 'https:') or starts-with(string(@value), 'urn:'))
ElementDefinition.mapping
Definition

Identifies a concept from an external specification that roughly corresponds to this element.

Control0..*
TypeElement
Requirements

Provides guidance to implementers familiar with or converting content from other specifications.

Comments

Mappings are not necessarily specific enough for safe translation.

ElementDefinition.mapping.id
Definition

unique id for the element within a resource (for internal references).

Control0..1
Typeid
ElementDefinition.mapping.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Control0..*
TypeExtension
Alternate Namesextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

ElementDefinition.mapping.identity
Definition

An internal reference to the definition of a mapping.

Control1..1
Typeid
ElementDefinition.mapping.language
Definition

Identifies the computable language in which mapping.map is expressed.

Control0..1
BindingThe mime type of an attachment. Any valid mime type is allowed.
The codes SHALL be taken from http://www.rfc-editor.org/bcp/bcp13.txt
Typecode
Comments

If omitted, then there can be no expectation of computational interpretation of the mapping.

ElementDefinition.mapping.map
Definition

Expresses what part of the target specification corresponds to this element.

Control1..1
Typestring
Comments

For most mappings, the syntax is undefined. Syntax will be provided for mappings to the RIM. Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies.