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
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 names cannot include some special characters
Element names should be simple alphanumerics with a max of 64 characters, or code generation tools may be broken
sliceIsConstraining can only appear if slicename is present
All FHIR elements must have a @value or children