Name Flags Card. Type Description & Constraints doco
. . StructureDefinition I DomainResource Structural Definition
If there's a constrained type, its content must match the path name in the first element of a snapshot
If the structure defines an extension then the structure must have context information
element.base cannot appear if there is no base on the structure definition
A structure must have a base unless abstract = true
element.base must appear if there is a base on the structure definition
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)
Element paths must be unique unless the structure is a constraint
In any snapshot or differential, all the elements except the first have to have a path that starts with the path of the first + "."
In any snapshot or differential, no label, code or requirements on the an element without a "." in the path (e.g. the first element)
If the structure is not abstract, or there's a constrained type, then there SHALL be a base
. . . url Σ 1..1 uri Absolute URL used to reference this StructureDefinition
. . . identifier Σ 0..* Identifier Other identifiers for the StructureDefinition
. . . version Σ 0..1 string Logical id for this version of the StructureDefinition
. . . name Σ 1..1 string Informal name for this StructureDefinition
. . . display Σ 0..1 string Use this name when displaying the value
. . . status ?! Σ 1..1 code draft | active | retired
ConformanceResourceStatus ( Required)
. . . experimental Σ 0..1 boolean If for testing purposes, not real usage
. . . publisher Σ 0..1 string Name of the publisher (Organization or individual)
. . . contact Σ 0..* BackboneElement Contact details of the publisher
. . . . name Σ 0..1 string Name of a individual to contact
. . . . telecom Σ 0..* ContactPoint Contact details for individual or publisher
. . . date Σ 0..1 dateTime Date for this version of the StructureDefinition
. . . description Σ 0..1 string Natural language description of the StructureDefinition
. . . useContext Σ 0..* CodeableConcept Content intends to support these contexts
Context of Use ValueSet ( Extensible)
. . . requirements 0..1 string Scope and Usage this structure definition is for
. . . copyright 0..1 string Use and/or publishing restrictions
. . . code Σ 0..* Coding Assist with indexing and finding
Structure Definition Codes ( Example)
. . . fhirVersion Σ 0..1 id FHIR Version this StructureDefinition targets
. . . mapping I 0..* BackboneElement External specification that the content is mapped to
Must have at a name or a uri (or both)
. . . . identity 1..1 id Internal id when this mapping is used
. . . . uri I 0..1 uri Identifies what this mapping refers to
. . . . name I 0..1 string Names what this mapping refers to
. . . . comments 0..1 string Versions, Issues, Scope limitations etc.
. . . kind Σ 1..1 code datatype | resource | logical
StructureDefinitionKind ( Required)
. . . constrainedType Σ I 0..1 code Any datatype or resource, including abstract ones
FHIRDefinedType ( Required)
. . . abstract Σ 1..1 boolean Whether the structure is abstract
. . . contextType Σ I 0..1 code resource | datatype | mapping | extension
ExtensionContext ( Required)
. . . context Σ I 0..* string Where the extension can be used in instances
. . . base Σ I 0..1 uri Structure that this set of constraints applies to
. . . snapshot I 0..1 BackboneElement Snapshot view of the structure
Each element definition in a snapshot must have a formal definition and cardinalities
. . . . element I 1..* ElementDefinition Definition of elements in the resource (if no StructureDefinition)
. . . differential I 0..1 BackboneElement Differential view of the structure
. . . . element 1..* ElementDefinition Definition of elements in the resource (if no StructureDefinition)

doco Documentation for this format