Path
ElementDefinition
Id
ElementDefinition
Cardinality
0 - *
Definition
Captures constraints on each element within the resource, profile, or extension.
Comment
Constraint
Min <= Max
if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding
Fixed value may only be specified if there is one type
Pattern may only be specified if there is one type
Pattern and fixed are mutually exclusive
Binding can only be present for coded elements, string, and uri if using FHIR-defined types
Types must be unique by code
Constraints must be unique by key
default value and meaningWhenMissing are mutually exclusive
sliceName must be composed of proper tokens separated by "/"
Must have a modifier reason if isModifier = true
Element path SHALL be expressed as a set of '.'-separated components with each component restricted to a maximum of 64 characters and with some limits on the allowed choice of characters
The first component of the path should be UpperCamelCase. Additional components (following a '.') should be lowerCamelCase. If this syntax is not adhered to, code generation tools may be broken. Logical models may be less concerned about this implication.
sliceIsConstraining can only appear if slicename is present
pattern[x] should be used rather than fixed[x]
Order has no meaning (and cannot be asserted to have meaning), so enforcing rules on order is improper
Mappings SHOULD be unique by key
Can't have valueAlternatives if mustHaveValue is true
All FHIR elements must have a @value or children