Use inline extensions when the custom elements are profile-specific and are not intended for reuse across multiple profiles or resources.
Inline extensions are extensions that you define inline to the definition. This means that inline extensions are extensions with child elements defined internally.
Inline extensions can be either simple or complex, depending on the structure of the extension. Simple inline extensions have a single value, while complex inline extensions can have multiple elements and nested structures.
First, create a nested extension that contains the inline extensions. This nested extension is then used in the resource or profile. Inline extensions can be with 0..1 or 0..* cardinality.
Exceptions for Inline Extensions
The URL for extensions must always be “URL” and it must be the canonical URL of a StructureDefinition that defines the extension. However, for inline extensions defined within complex extensions, the URL must be an absolute URL.
All extensions must be defined and published. This means that they must have their own StructureDefinition resource as definition. The only exception is for inline extensions, which do not require a separate StructureDefinition.