Path
StructureDefinition
Id
StructureDefinition
Cardinality
0 - *
Definition
A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types.
Comment
Constraint
Name should be usable as an identifier for the module by machine processing applications such as code generation
Element paths must be unique unless the structure is a constraint
If the structure is not abstract, then there SHALL be a baseDefinition
If the structure defines an extension then the structure must have context information
A structure must have either a differential, or a snapshot (or both)
If there's a type, its content must match the path name in the first element of a snapshot
All element definitions must have an id
The first element in a snapshot has no type unless model is a logical model.
If the first element in a differential has no "." in the path and it's not a logical model, it has no type
In any snapshot or differential, no label, code or requirements on an element without a "." in the path (e.g. the first element)
All element definitions must have unique ids (snapshot)
All element definitions must have unique ids (diff)
Context Invariants can only be used for extensions
FHIR Specification models only use FHIR defined types
Default values can only be specified on specializations
FHIR Specification models never have default values
No slice name on root
If there's a base definition, there must be a derivation
Elements in Resources must have a min cardinality or 0 or 1 and a max cardinality of 1 or *