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 NOT contain any narrative
If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
In any snapshot or differential, no label, code or requirements on the an element without a "." in the path (e.g. the first element)
Custom types can only be used in logical models
All element definitions must have unique ids (snapshot)
Context Invariants can only be used for extensions
All element definitions must have unique ids (diff)
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
Element paths must be unique unless the structure is a constraint
If the structure describes a base Resource or Type, the URL has to start with "http://hl7.org/fhir/StructureDefinition/" and the tail must match the id
A structure must have either a differential, or a snapshot (or both)
If the structure defines an extension then the structure must have context information
If the structure is not abstract, then there SHALL be a baseDefinition