This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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: R4B R4
Extension constraint - Detailed Descriptions
Detailed Descriptions for the elements in the extension.
Extension
Element Id Extension
Definition
An invariant that must be satisfied before responses to the questionnaire can be considered "complete".
Cardinality 0..* This element is affected by the following invariants: ele-1
Comments
This maps to the ElementDefinition.constraint element.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children unless an empty Parameters resource
hasValue() or (children().count() > id.count()) or $this is Parameters ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.id
Element Id Extension.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension
Element Id Extension.extension
Definition
May be used to represent additional information that is not part of the basic definition of the element. 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.
Alternate Names extensions, 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.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension(key)
Element Id Extension.extension:key
Definition
Unique id for the constraint within the questionnaire.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:key.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:key.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:key.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value key
Extension.extension.value[x]
Element Id Extension.extension:key.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.extension(requirements)
Element Id Extension.extension:requirements
Definition
An explanation of why this extension is required (for documentation purposes).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:requirements.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:requirements.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:requirements.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value requirements
Extension.extension.value[x]
Element Id Extension.extension:requirements.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.extension(severity)
Element Id Extension.extension:severity
Definition
Indicates how serious violating the invariant is.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:severity.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:severity.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:severity.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value severity
Extension.extension.value[x]
Element Id Extension.extension:severity.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.extension(expression)
Element Id Extension.extension:expression
Definition
The FHIRPath expression of the rule for computable interpretation.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:expression.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:expression.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:expression.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value expression
Extension.extension.value[x]
Element Id Extension.extension:expression.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.extension(human)
Element Id Extension.extension:human
Definition
A free text expression of the rule to display to the user if the rule is violated.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:human.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:human.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:human.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value human
Extension.extension.value[x]
Element Id Extension.extension:human.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.extension(location)
Element Id Extension.extension:location
Definition
Relative paths to the questions this rule is enforced against.
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Extension.extension.id
Element Id Extension.extension:location.id
Definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extension.extension.extension
Element Id Extension.extension:location.extension
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count()) ext-1 Rule Must have either extensions or value[x], not both
extension.exists() != value.exists()
Slicing This element introduces a set of slices. The slicing rules are:
- unordered
- Open
- discriminators: value:url
Extension.extension.url
Element Id Extension.extension:location.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value location
Extension.extension.value[x]
Element Id Extension.extension:location.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Extension.url
Element Id Extension.url
Definition
Source of the definition for the extension code - a logical name or a URL.
Comments
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Fixed Value http://hl7.org/fhir/StructureDefinition/questionnaire-constraint
Extension.value[x]
Element Id Extension.value[x]
Definition
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Type Choice of:
base64Binary,
boolean,
canonical,
code,
date,
dateTime,
decimal,
id,
instant,
integer,
markdown,
oid,
positiveInt,
string,
time,
unsignedInt,
uri,
url,
uuid,
Address,
Age,
Annotation,
Attachment,
CodeableConcept,
CodeableReference,
Coding,
ContactPoint,
Count,
Distance,
Duration,
HumanName,
Identifier,
Money,
Period,
Quantity,
Range,
Ratio,
RatioRange,
Reference,
SampledData,
Signature,
Timing,
ContactDetail,
Contributor,
DataRequirement,
Expression,
ParameterDefinition,
RelatedArtifact,
TriggerDefinition,
UsageContext,
Dosage
Invariants
Inherited by this element
ele-1 Rule All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())