# EHDSMedication to FHIR Medication Mapping - HL7 Europe Base and Core FHIR IG v2.0.0

* [**Table of Contents**](toc.md)
* **EHDSMedication to FHIR Medication Mapping**

## EHDSMedication to FHIR Medication Mapping

# EHDSMedication → MedicationEuCore

**Ongoing alignment:**The models are expected to continue evolving, with updates incorporated into this Implementation Guide to maintain alignment with the EHDS Implementing Acts.

### EHDSMedication → MedicationEuCore

 This page explains how conceptual elements from the EHDS logical model are expressed in the corresponding FHIR MedicationEuCore and OrganizationEuCore profiles used by this Implementation Guide. 

**Mapping Context**
*  **Source logical model:** [ EHDSMedication ](https://www.xt-ehr.eu/fhir/models/0.3.0/StructureDefinition-EHDSMedication.html) 
*  **Target FHIR profiles:** [ MedicationEuCore ](StructureDefinition-medication-eu-core.md) 

The model supports prescribed/dispensed medication and can represent both generic (virtual) products and branded (real) products.

| | | | | |
| :--- | :--- | :--- | :--- | :--- |
| Element | Relation | Resource | Element | Notes |
| identifyingCode[x] | equivalent | Medication | code |  |
| identifyingCode[x] | equivalent | Medication | identifier | Use multiple identifiers if needed; avoid conflicting meanings. |
| classification | equivalent | Medication | extension:classification |  |
| productName | equivalent | Medication | extension:productName | Official name of branded medicinal product. |
| marketingAuthorisationHolder | equivalent | Medication | manufacturer〔R4〕marketingAuthorizationHolder〔R5〕 | Reference to`Organization`. |
| marketingAuthorisationHolder.organisationName | equivalent | Organization | name | Populate the referenced Organization's`name`. |
| marketingAuthorisationHolder.organisationIdentifier | equivalent | Organization | identifier |  |
| doseForm | equivalent | Medication | form〔R4〕doseForm〔R5〕 |  |
| description | source-is-broader-than-target | Medication | extension:characteristic | When intended as additional detail about the medication (e.g. package description) |
| description | source-is-broader-than-target | Medication | code.text | When intended as description of the medication |
| item | equivalent | Medication | ingredient.itemReference〔R4〕ingredient.item.reference〔R5〕 | An item - included in a product - is represented by a Medication resource referenced by the`ingredient.item`(see the example at https://hl7.eu/fhir/mpd-r5/Medication-02A-ClotrimazoleCanifugCremolum.html). If the item is the product, the item is the Medication itself. |
| item.doseForm | equivalent | Medication | form〔R4〕doseForm〔R5〕 |  |
| item.ingredient | equivalent | Medication | ingredient | Replicate per-item ingredients into`ingredient`. See note above about* item* |
| item.ingredient.isActive | equivalent | Medication | ingredient.isActive | Replicate per-item ingredients into`ingredient`. See note above about* item* |
| item.ingredient.substance | equivalent | Medication | ingredient.itemCodeableConcept〔R4〕ingredient.item.concept〔R5〕 | Replicate per-item ingredients into`ingredient`. See note above about* item* |
| item.ingredient.strengthInfo | related-to | Medication | ingredient.strength[x] | Backbone element see below for mapping details. |
| item.ingredient.strengthInfo.strength | equivalent | Medication | ingredient.strength〔R4〕ingredient.strengthRatio〔R5〕 | Replicate per-item ingredients into`ingredient`. See note above about* item* |
| item.ingredient.strengthInfo.basisOfStrengthSubstance | equivalent | Medication | ingredient.strength.extension:basisOfStrengthSubstance〔R4〕ingredient.strength[x].extension:basisOfStrengthSubstance〔R5〕 | Replicate per-item ingredients into`ingredient`. See note above about* item* |
| item.unitOfPresentation | equivalent | Medication | extension:unitOfPresentation | See note above about*item* |
| item.containedQuantity | equivalent | Medication | extension:sizeOfItem | See note above about*item* |
| item.amount | equivalent | Medication | amount〔R4〕totalVolume〔R5〕 | See note above about*item* |
| item.packageType | equivalent | Medication | extension:packageType | See note above about*item* |
| device | equivalent | Medication | extension:device |  |
| device.deviceQuantity | equivalent | Medication | extension:device.extension:quantity |  |
| device.device[x] | source-is-broader-than-target | Medication | extension:device.extension:device.valueCodeableConcept | Only type of device (CodeableConcept) is expected. Reference not supported. |
| characteristic | equivalent | Medication | extension:characteristic |  |
| characteristic.type | equivalent | Medication | extension:characteristic.extension:type |  |
| characteristic.value[x] | equivalent | Medication | extension:characteristic.extension:value | Supports boolean, CodeableConcept, string, Quantity, dateTime, integer, decimal, Ratio in R5 |
| batch | equivalent | Medication | batch |  |
| batch.lotNumber | equivalent | Medication | batch.lotNumber | Traceability / pharmacovigilance. |
| batch.expirationDate | equivalent | Medication | batch.expirationDate |  |

 Return to overview: [EHDS Logical Models → FHIR Profiles](modelmap.md) 

