MyHealth@Eu Electronic Prescription and Dispense
1.0.0-poc - qa-preview 150

MyHealth@Eu Electronic Prescription and Dispense - Downloaded Version 1.0.0-poc See the Directory of published versions

## Resource Profile: Medication (EPD)

Official URL: http://fhir.ehdsi.eu/epd/StructureDefinition/medication-myhealtheu-epd | Version: 1.0.0-poc
Standards status: Draft | Maturity Level: 1 | Computable Name: MedicationMyHealthEuEpd
Copyright/Legal: Copyright European Union, represented by the European Commission - DG SANTE. Licenced under CC-BY-4.0.

This profile sets minimum expectations for the Medication resource common to most of the use cases. This profile is adapted from the MPD work.

Usages:

- Refer to this Profile: MedicationDispense (EPD) and MedicationRequest (EPD)
- Examples for this Profile: Medication/01A-Cefuroxime1500GenericExplicit, Medication/01B-Cefuroxime1500GenericConcept, Medication/01C-Cefuroxime1500Branded, Medication/01D-Cefuroxime750Branded... Show 6 more, Medication/02A-ClotrimazoleCanifugCremolum, Medication/02A1-CanifugCremolumCreamItem, Medication/02A2-CanifugCremolumPessaryItem, Medication/03B-VitaminBComplexBranded, Medication/04A-FirmagonBranded and Medication/05A-Tilidin-Branded

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:productName | O | 0..1 | string | Medication - Product Name URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-productname
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:classification |  | 0..* | (Complex) | Medication - Classification URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification"
Slices for value[x] |  | 0..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: ProductClassification (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Active Ingredient (extensible)
extension:sizeOfItem | O | 0..1 | Quantity | Medication - Size of Item URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-sizeofitem
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:characteristic |  | 0..* | (Complex) | Specifies other descriptive properties of the medication. URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-characteristic
extension:unitOfPresentation |  | 0..1 | (Complex) | Medication - Unit of presentation URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: UnitOfPresentation (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Quantity Unit (extensible)
extension:packageType | O | 0..1 | (Complex) | Medication: Package type URL: http://hl7.eu/fhir/StructureDefinition/medication-package-type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.eu/fhir/StructureDefinition/medication-package-type"
extension:device |  | 0..* | (Complex) | Medication - Device URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:device |  | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "device"
extension:quantity |  | 1..1 | Extension | Number of defined devices in te package
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "quantity"
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
form | O | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: eHDSI Dose Form (required)
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O Σ | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] |  | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content Binding: eHDSI Substance With Exceptions (required)
Additional Bindings | Purpose
eHDSI Substance | Preferred
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
item[x]:itemReference |  | 0..1 | Reference(Medication (Core)) | The actual ingredient or content
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Slices for extension |  |  |  | Content/Rules for all slices
extension:basisOfStrengthSubstance |  | 0..1 | (Complex) | Medication - Strength substance URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: SNOMEDCTSubstanceCodes (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Substance With Exceptions (required)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.extension:classification.​value[x] | Base | example | Product Classification | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:classification.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Active Ingredient | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:unitOfPresentation.​value[x] | Base | example | Unit Of Presentation | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:unitOfPresentation.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Quantity Unit | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.status | Base | required | Medication status codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | required | eHDSI Dose Form | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.ingredient.​item[x]:itemCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x] | Base | example | SNOMED CT Substance Codes | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x]:valueCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from MedicationMyHealthCore

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
Slices for extension |  |  |  | Content/Rules for all slices
extension:productName | O | 0..1 | MedicationProductName | Medication - Product Name
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:sizeOfItem | O | 0..1 | MedicationSizeOfItem | Medication - Size of Item
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:packageType | O | 0..1 | MedicationPackageType | Medication: Package type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
form | O | 0..1 | CodeableConcept | powder | tablets | capsule +
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Slices for item[x] |  |  |  | Content/Rules for all slices
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: eHDSI Language (required)
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:productName | O | 0..1 | string | Medication - Product Name URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-productname
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:classification |  | 0..* | (Complex) | Medication - Classification URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification"
Slices for value[x] |  | 0..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: ProductClassification (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Active Ingredient (extensible)
extension:sizeOfItem | O | 0..1 | Quantity | Medication - Size of Item URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-sizeofitem
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:characteristic |  | 0..* | (Complex) | Specifies other descriptive properties of the medication. URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-characteristic
extension:unitOfPresentation |  | 0..1 | (Complex) | Medication - Unit of presentation URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: UnitOfPresentation (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Quantity Unit (extensible)
extension:packageType | O | 0..1 | (Complex) | Medication: Package type URL: http://hl7.eu/fhir/StructureDefinition/medication-package-type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.eu/fhir/StructureDefinition/medication-package-type"
value[x] |  | 0..1 | CodeableConcept | Type of container, e.g pre-filled syringe, unit-dose blister, sachet, etc. Binding: eHDSI Package (extensible)
extension:device |  | 0..* | (Complex) | Medication - Device URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:device |  | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "device"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Package (extensible)
extension:quantity |  | 1..1 | Extension | Number of defined devices in te package
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "quantity"
value[x] |  | 0..1 | Quantity | Value of extension
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Identifier for the medicinal product, its generic representation, or packaged product (e.g. EMA PMS ID on product or package level)
code | Σ | 0..1 | CodeableConcept | National product code Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
status | ?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
manufacturer | Σ | 0..1 | Reference(Organization) | Manufacturer
form | O | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: eHDSI Dose Form (required)
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O Σ | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] |  | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content Binding: eHDSI Substance With Exceptions (required)
Additional Bindings | Purpose
eHDSI Substance | Preferred
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
item[x]:itemReference |  | 0..1 | Reference(Medication (Core)) | The actual ingredient or content
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:basisOfStrengthSubstance |  | 0..1 | (Complex) | Medication - Strength substance URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: SNOMEDCTSubstanceCodes (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Substance With Exceptions (required)
numerator | Σ | 0..1 | Quantity | Numerator value
denominator | Σ | 0..1 | Quantity | Denominator value
batch |  | 0..1 | BackboneElement | Details about packaged medications
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
lotNumber |  | 0..1 | string | Lot Number
expirationDate |  | 0..1 | dateTime | Expiration Date
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.language | Base | required | eHDSI Language | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:classification.​value[x] | Base | example | Product Classification | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:classification.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Active Ingredient | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:unitOfPresentation.​value[x] | Base | example | Unit Of Presentation | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:unitOfPresentation.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Quantity Unit | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:packageType.​value[x] | Base | extensible | eHDSI Package | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:device.​extension:device.value[x] | Base | extensible | eHDSI Package | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.status | Base | required | Medication status codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | required | eHDSI Dose Form | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.ingredient.​item[x]:itemCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x] | Base | example | SNOMED CT Substance Codes | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x]:valueCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from MedicationMyHealthCore

Summary

Maturity: 1

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:productName | O | 0..1 | string | Medication - Product Name URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-productname
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:classification |  | 0..* | (Complex) | Medication - Classification URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification"
Slices for value[x] |  | 0..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: ProductClassification (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Active Ingredient (extensible)
extension:sizeOfItem | O | 0..1 | Quantity | Medication - Size of Item URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-sizeofitem
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:characteristic |  | 0..* | (Complex) | Specifies other descriptive properties of the medication. URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-characteristic
extension:unitOfPresentation |  | 0..1 | (Complex) | Medication - Unit of presentation URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: UnitOfPresentation (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Quantity Unit (extensible)
extension:packageType | O | 0..1 | (Complex) | Medication: Package type URL: http://hl7.eu/fhir/StructureDefinition/medication-package-type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.eu/fhir/StructureDefinition/medication-package-type"
extension:device |  | 0..* | (Complex) | Medication - Device URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:device |  | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "device"
extension:quantity |  | 1..1 | Extension | Number of defined devices in te package
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "quantity"
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
form | O | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: eHDSI Dose Form (required)
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O Σ | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] |  | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content Binding: eHDSI Substance With Exceptions (required)
Additional Bindings | Purpose
eHDSI Substance | Preferred
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
item[x]:itemReference |  | 0..1 | Reference(Medication (Core)) | The actual ingredient or content
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Slices for extension |  |  |  | Content/Rules for all slices
extension:basisOfStrengthSubstance |  | 0..1 | (Complex) | Medication - Strength substance URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: SNOMEDCTSubstanceCodes (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Substance With Exceptions (required)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.extension:classification.​value[x] | Base | example | Product Classification | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:classification.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Active Ingredient | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:unitOfPresentation.​value[x] | Base | example | Unit Of Presentation | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:unitOfPresentation.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Quantity Unit | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.status | Base | required | Medication status codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | required | eHDSI Dose Form | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.ingredient.​item[x]:itemCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x] | Base | example | SNOMED CT Substance Codes | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x]:valueCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from MedicationMyHealthCore

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
Slices for extension |  |  |  | Content/Rules for all slices
extension:productName | O | 0..1 | MedicationProductName | Medication - Product Name
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:sizeOfItem | O | 0..1 | MedicationSizeOfItem | Medication - Size of Item
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:packageType | O | 0..1 | MedicationPackageType | Medication: Package type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
form | O | 0..1 | CodeableConcept | powder | tablets | capsule +
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Slices for item[x] |  |  |  | Content/Rules for all slices
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  | 0..* | MedicationMyHealthCore | Definition of a Medication This profile also imposes the profile Medication: MPD
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: eHDSI Language (required)
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:productName | O | 0..1 | string | Medication - Product Name URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-productname
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
extension:classification |  | 0..* | (Complex) | Medication - Classification URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-classification"
Slices for value[x] |  | 0..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: ProductClassification (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Active Ingredient (extensible)
extension:sizeOfItem | O | 0..1 | Quantity | Medication - Size of Item URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-sizeofitem
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
extension:characteristic |  | 0..* | (Complex) | Specifies other descriptive properties of the medication. URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-characteristic
extension:unitOfPresentation |  | 0..1 | (Complex) | Medication - Unit of presentation URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-unitofpresentation"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: UnitOfPresentation (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Quantity Unit (extensible)
extension:packageType | O | 0..1 | (Complex) | Medication: Package type URL: http://hl7.eu/fhir/StructureDefinition/medication-package-type
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.eu/fhir/StructureDefinition/medication-package-type"
value[x] |  | 0..1 | CodeableConcept | Type of container, e.g pre-filled syringe, unit-dose blister, sachet, etc. Binding: eHDSI Package (extensible)
extension:device |  | 0..* | (Complex) | Medication - Device URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:device |  | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "device"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Package (extensible)
extension:quantity |  | 1..1 | Extension | Number of defined devices in te package
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "quantity"
value[x] |  | 0..1 | Quantity | Value of extension
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-device"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Identifier for the medicinal product, its generic representation, or packaged product (e.g. EMA PMS ID on product or package level)
code | Σ | 0..1 | CodeableConcept | National product code Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
status | ?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
manufacturer | Σ | 0..1 | Reference(Organization) | Manufacturer
form | O | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: eHDSI Dose Form (required)
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
amount | O Σ | 0..1 | RatioMyHealth | Amount of the medication (for example, in a package or a vial)
Obligations | Actor
SHOULD:handle | MyHealth@EU Handler
ingredient | O | 0..* | BackboneElement | Ingredient or a part product. For combination packs, each ingredient can be a separate manufactured item with its own ingredients, dose form, and strength
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHALL:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] |  | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | O | 0..1 | CodeableConcept | The actual ingredient or content Binding: eHDSI Substance With Exceptions (required)
Additional Bindings | Purpose
eHDSI Substance | Preferred
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
item[x]:itemReference |  | 0..1 | Reference(Medication (Core)) | The actual ingredient or content
isActive | O | 0..1 | boolean | Active ingredient indicator. By default, only active ingredients are expected - therefore, the default value is true.
Obligations | Actor
SHALL:handle | MyHealth@EU Handler
strength | O | 0..1 | RatioMyHealth | Amount of substance in product (presentation or concentration strength)
Obligations | Actor | Source
SHOULD:handle | MyHealth@EU Handler | from Medication (Core)
SHOULD:handle & SHOULD:handle | MyHealth@EU Handler MyHealth@EU Handler | from Medication (Core)
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:basisOfStrengthSubstance |  | 0..1 | (Complex) | Medication - Strength substance URL: https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medication-strengthsubstance"
Slices for value[x] |  | 1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this Binding: SNOMEDCTSubstanceCodes (example)
Slices for value[x] |  |  |  | Content/Rules for all slices
value[x]:valueCodeableConcept |  | 0..1 | CodeableConcept | Value of extension Binding: eHDSI Substance With Exceptions (required)
numerator | Σ | 0..1 | Quantity | Numerator value
denominator | Σ | 0..1 | Quantity | Denominator value
batch |  | 0..1 | BackboneElement | Details about packaged medications
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
lotNumber |  | 0..1 | string | Lot Number
expirationDate |  | 0..1 | dateTime | Expiration Date
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.language | Base | required | eHDSI Language | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:classification.​value[x] | Base | example | Product Classification | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:classification.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Active Ingredient | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:unitOfPresentation.​value[x] | Base | example | Unit Of Presentation | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.extension:unitOfPresentation.​value[x]:valueCodeableConcept | Base | extensible | eHDSI Quantity Unit | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:packageType.​value[x] | Base | extensible | eHDSI Package | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.extension:device.​extension:device.value[x] | Base | extensible | eHDSI Package | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.status | Base | required | Medication status codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | required | eHDSI Dose Form | 📦9.1.0 | MyHealthEu MVC package v9.1
Medication.ingredient.​item[x]:itemCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x] | Base | example | SNOMED CT Substance Codes | 📦5.0.0 | Medication Prescription and Dispense v1.0
Medication.ingredient.​strength.extension:basisOfStrengthSubstance.​value[x]:valueCodeableConcept | Base | required | eHDSI Substance With Exceptions | 📦1.0.0 | MyHealth@EU Core v1.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from MedicationMyHealthCore

Summary

Maturity: 1

Other representations of profile: CSV, Excel, Schematron