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
If the resource is contained in another resource, it SHALL NOT contain nested Resources
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
If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
If a resource is contained in another resource, it SHALL NOT have a security label
A resource should have narrative for robust management
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 first element in a differential has no "." in the path and it's not a logical model, it has no type
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)
In any snapshot or differential, no label, code or requirements on an element without a "." in the path (e.g. the first element)
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.
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