Global
ext-1: Must have either extensions or value[x], not both
ext-1: Must have either extensions or value[x], not both
Global 1
global-1: All FHIR elements must have a @value or children
StructureDefinition
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
sdf-9: In any snapshot or differential, no label, code or requirements on an element without a "." in the path (e.g. the first element)
sdf-15a: If the first element in a differential has no "." in the path and it's not a logical model, it has no type
sdf-19: FHIR Specification models only use FHIR defined types
sdf-16: All element definitions must have unique ids (snapshot)
sdf-15: The first element in a snapshot has no type unless model is a logical model.
sdf-18: Context Invariants can only be used for extensions
sdf-17: All element definitions must have unique ids (diff)
sdf-23: No slice name on root
sdf-11: If there's a type, its content must match the path name in the first element of a snapshot
sdf-22: FHIR Specification models never have default values
sdf-14: All element definitions must have an id
sdf-1: Element paths must be unique unless the structure is a constraint
sdf-21: Default values can only be specified on specializations
sdf-6: A structure must have either a differential, or a snapshot (or both)
sdf-5: If the structure defines an extension then the structure must have context information
sdf-4: If the structure is not abstract, then there SHALL be a baseDefinition
txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes
txt-2: The narrative SHALL have some non-whitespace content
per-1: If present, start SHALL have a lower value than end
ref-1: SHALL have a contained resource if a local reference is provided
cpt-2: A system is required if a value is provided.
per-1: If present, start SHALL have a lower value than end
qty-3: If a code for the unit is present, the system SHALL also be present
rng-2: If present, low SHALL have a lower value than high
qty-3: If a code for the unit is present, the system SHALL also be present
qty-3: If a code for the unit is present, the system SHALL also be present
ref-1: SHALL have a contained resource if a local reference is provided
per-1: If present, start SHALL have a lower value than end
ref-1: SHALL have a contained resource if a local reference is provided
sdf-2: Must have at least a name or a uri (or both)
sdf-8: All snapshot elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models
sdf-3: Each element definition in a snapshot must have a formal definition and cardinalities
sdf-8b: All snapshot elements must have a base definition
sdf-10: provide either a binding reference or a description (or both)
eld-19: Element names cannot include some special characters
eld-2: Min <= Max
eld-5: if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding
eld-7: Pattern may only be specified if there is one type
eld-6: Fixed value may only be specified if there is one type
eld-11: Binding can only be present for coded elements, string, and uri
eld-22: sliceIsConstraining can only appear if slicename is present
eld-8: Pattern and fixed are mutually exclusive
eld-14: Constraints must be unique by key
eld-13: Types must be unique by code
eld-16: sliceName must be composed of proper tokens separated by "/"
eld-15: default value and meaningWhenMissing are mutually exclusive
eld-18: Must have a modifier reason if isModifier = true
eld-1: If there are no discriminators, there must be a definition
eld-3: Max SHALL be a number or "*"
eld-4: Aggregation may only be specified if one of the allowed types for the element is a reference
eld-17: targetProfile is only allowed if the type is Reference or canonical
qty-3: If a code for the unit is present, the system SHALL also be present
qty-3: If a code for the unit is present, the system SHALL also be present
eld-12: ValueSet SHALL start with http:// or https:// or urn:
sdf-20: No slicing on the root element
sdf-8a: In any differential, all the elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models
eld-19: Element names cannot include some special characters
eld-2: Min <= Max
eld-5: if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding
eld-7: Pattern may only be specified if there is one type
eld-6: Fixed value may only be specified if there is one type
eld-11: Binding can only be present for coded elements, string, and uri
eld-22: sliceIsConstraining can only appear if slicename is present
eld-8: Pattern and fixed are mutually exclusive
eld-14: Constraints must be unique by key
eld-13: Types must be unique by code
eld-16: sliceName must be composed of proper tokens separated by "/"
eld-15: default value and meaningWhenMissing are mutually exclusive
eld-18: Must have a modifier reason if isModifier = true
eld-1: If there are no discriminators, there must be a definition
eld-3: Max SHALL be a number or "*"
eld-4: Aggregation may only be specified if one of the allowed types for the element is a reference
eld-17: targetProfile is only allowed if the type is Reference or canonical
qty-3: If a code for the unit is present, the system SHALL also be present
qty-3: If a code for the unit is present, the system SHALL also be present
eld-12: ValueSet SHALL start with http:// or https:// or urn: