# Mapping to Profiles - MyHealth@Eu Electronic Prescription and Dispense v1.0.0-poc

* [**Table of Contents**](toc.md)
* **Mapping to Profiles**

## Mapping to Profiles

### Mappings from MyHealth@EU / EHDS models to FHIR profiles

MyHealth@EU logical models refine the EHDS logical information models provided by the Xt-EHR project. These models add obligation levels (Mandatory, Required, Optional) to the EHDS base elements.
 Please read more about the models on the [ePrescription and eDispensation Models Overview](overview-epd.md) page.

The mappings below show how the logical model elements explicitly defined in the MyHealth@EU models are realised in the FHIR R4 profiles of this guide.

#### ePrescription

**Mapping Context**

* **Source logical model:** [MyHealthEuPrescription](StructureDefinition-MyHealthEuPrescription.md)
* **Target FHIR profile:** [MedicationRequestMyHealthEuEpd](StructureDefinition-MedicationRequest-myhealtheu-epd.md)

EHDS Medication Prescription allows multiple prescribed items on one prescription. In such cases, the prescription identifier may be represented using `MedicationRequest.groupIdentifier`, and one `MedicationRequest` instance represents each prescribed item.

| | | |
| :--- | :--- | :--- |
| header | MedicationRequest | Backbone element. |
| header.subject | MedicationRequest.subject | Reference to PatientMyHealthCore. |
| header.identifier | MedicationRequest.identifier; MedicationRequest.groupIdentifier | Use`groupIdentifier`when several prescribed items belong to the same prescription. |
| header.author[x] | MedicationRequest.requester | Reference to PractitionerRoleMyHealthCore or OrganizationMyHealthCore. |
| header.date | MedicationRequest.authoredOn |   |
| presentedForm |   | No direct mapping in MedicationRequest. Reference a DocumentReference containing the rendered prescription. |
| prescriptionItem | MedicationRequest | One MedicationRequest represents one prescribed item. |
| prescriptionItem.identifier | MedicationRequest.identifier |   |
| prescriptionItem.medication | MedicationRequest.medication[x] | Reference to MedicationMyHealthEuEpd. |
| prescriptionItem.quantityPrescribed | MedicationRequest.dispenseRequest.extension:prescribedQuantity |   |
| prescriptionItem.periodOfUse | MedicationRequest.extension:effectiveDosePeriod | R5 preadoption extension. |
| prescriptionItem.validityPeriod | MedicationRequest.dispenseRequest.validityPeriod |   |
| prescriptionItem.indication[x] | MedicationRequest.reasonCode; MedicationRequest.reasonReference |   |
| prescriptionItem.substitution | MedicationRequest.substitution |   |
| prescriptionItem.substitution.allowed[x] | MedicationRequest.substitution.allowed[x] |   |
| prescriptionItem.substitution.reason[x] | MedicationRequest.substitution.reason |   |
| prescriptionItem.dosageInstructions | MedicationRequest.dosageInstruction | See Dosaging mapping section below. |
| prescriptionItem.note | MedicationRequest.note |   |

#### Prescribed Medication

**Mapping Context**

* **Source logical model:** [MyHealthEuMedicationEpd](StructureDefinition-MyHealthEuMedicationEpd.md)
* **Target FHIR profile:** [MedicationMyHealthEuEpd](StructureDefinition-medication-myhealtheu-epd.md)

| | | |
| :--- | :--- | :--- |
| identifyingCode[x] | Medication.code; Medication.identifier |   |
| productName | Medication.extension:productName |   |
| classification | Medication.extension:classification |   |
| marketingAuthorisationHolder | Medication.manufacturer | Reference to OrganizationMyHealthCore where available. |
| item | Medication | FHIR R4 Medication represents both the medicinal product and its package/item details. |
| item.ingredient | Medication.ingredient |   |
| item.ingredient.isActive | Medication.ingredient.isActive |   |
| item.ingredient.substance | Medication.ingredient.itemCodeableConcept; Medication.ingredient.itemReference |   |
| item.ingredient.strengthInfo | Medication.ingredient.strength |   |
| item.ingredient.strengthInfo.strength | Medication.ingredient.strength |   |
| item.doseForm | Medication.form |   |
| item.containedQuantity | Medication.extension:sizeOfItem |   |
| item.amount | Medication.amount |   |
| item.packageType | Medication.extension:packageType |   |

#### Dosaging

**Mapping Context**

* **Source logical model:** [MyHealthEuDosagingEpd](StructureDefinition-MyHealthEuDosagingEpd.md)
* **Target FHIR profile:** [MedicationRequestMyHealthEuEpd](StructureDefinition-MedicationRequest-myhealtheu-epd.md) (`dosageInstruction`); [MedicationDispenseMyHealthEuEpd](StructureDefinition-MedicationDispense-myhealtheu-epd.md) (`dosageInstruction`); [DosageEuMpd](http://hl7.eu/fhir/mpd/StructureDefinition-Dosage-eu-mpd.html)

| | | |
| :--- | :--- | :--- |
| renderedDosageInstruction | MedicationRequest.extension:renderedDosageInstruction; MedicationDispense.extension:renderedDosageInstruction | R5 preadoption extension on the containing resource. |
| dosageDetails | Dosage | One Dosage entry per dosage step. |
| dosageDetails.note | Dosage.patientInstruction |   |
| dosageDetails.doseAndRate | Dosage.doseAndRate |   |
| dosageDetails.repeat.frequency | Dosage.timing.repeat.frequency; Dosage.timing.repeat.period; Dosage.timing.repeat.periodUnit |   |
| dosageDetails.repeat.eventTime | Dosage.timing.repeat.when |   |
| dosageDetails.repeat.bounds.duration | Dosage.timing.repeat.boundsDuration |   |
| dosageDetails.routeOfAdministration | Dosage.route |   |

#### eDispensation

**Mapping Context**

* **Source logical model:** [MyHealthEuMedicationDispenseEd](StructureDefinition-MyHealthEuMedicationDispenseEd.md)
* **Target FHIR profile:** [MedicationDispenseMyHealthEuEpd](StructureDefinition-MedicationDispense-myhealtheu-epd.md)

| | | |
| :--- | :--- | :--- |
| header | MedicationDispense | Backbone element. |
| header.subject | MedicationDispense.subject | Reference to PatientMyHealthCore. |
| header.identifier | MedicationDispense.identifier |   |
| header.author[x] | MedicationDispense.performer.actor | Reference to PractitionerRoleMyHealthCore, PractitionerMyHealthCore, or OrganizationMyHealthCore. |
| header.date | MedicationDispense.extension:recorded | R5 preadoption extension. |
| dispenseLocation | MedicationDispense.location | Reference to LocationMyHealthCore constrained by MyHealthEuLocationEpd. |
| relatedRequest | MedicationDispense.authorizingPrescription | Reference to MedicationRequestMyHealthEuEpd. |
| medication | MedicationDispense.medicationReference | Reference to MedicationMyHealthEuEpd. |
| dispensedQuantity | MedicationDispense.quantity |   |
| timeOfDispensation | MedicationDispense.whenHandedOver |   |
| substitutionOccurred | MedicationDispense.substitution.wasSubstituted |   |

#### Dispensed Medication

**Mapping Context**

* **Source logical model:** [MyHealthEuMedicationEd](StructureDefinition-MyHealthEuMedicationEd.md)
* **Target FHIR profile:** [MedicationMyHealthEuEpd](StructureDefinition-medication-myhealtheu-epd.md)

| | | |
| :--- | :--- | :--- |
| identifyingCode[x] | Medication.code; Medication.identifier |   |
| productName | Medication.extension:productName | Mandatory for dispensed medication. Not enforced in the shared profile; see comment in MedicationMyHealthEuEpd. |
| classification | Medication.extension:classification |   |
| marketingAuthorisationHolder | Medication.manufacturer | Reference to OrganizationMyHealthCore where available. |
| item | Medication | FHIR R4 Medication represents both the medicinal product and its package/item details. |
| item.ingredient | Medication.ingredient |   |
| item.ingredient.isActive | Medication.ingredient.isActive |   |
| item.ingredient.substance | Medication.ingredient.itemCodeableConcept; Medication.ingredient.itemReference |   |
| item.ingredient.strengthInfo | Medication.ingredient.strength |   |
| item.ingredient.strengthInfo.strength | Medication.ingredient.strength |   |
| item.doseForm | Medication.form |   |
| item.containedQuantity | Medication.extension:sizeOfItem |   |
| item.amount | Medication.amount |   |
| item.packageType | Medication.extension:packageType |   |

#### Health Professional (Prescriber/Dispenser)

**Mapping Context**

* **Source logical model:** [MyHealthEuHealthProfessionalEpd](StructureDefinition-MyHealthEuHealthProfessionalEpd.md)
* **Target FHIR profiles:** [PractitionerMyHealthCore](http://fhir.ehdsi.eu/core/StructureDefinition/practitioner-myhealtheu-core); [PractitionerRoleMyHealthCore](http://fhir.ehdsi.eu/core/StructureDefinition/practitionerRole-myhealtheu-core)

| | | |
| :--- | :--- | :--- |
| identifier | Practitioner.identifier; PractitionerRole.identifier |   |
| name | Practitioner.name | Constrained to MyHealthEuHumanName. |
| address | Practitioner.address | Constrained to MyHealthEuAddress. |
| telecom | Practitioner.telecom | Constrained to MyHealthEuTelecom. |
| professionalRole | PractitionerRole |   |
| professionalRole.role | PractitionerRole.code | Mandatory for the prescriber/dispenser. |
| professionalRole.organisation | PractitionerRole.organization | Reference to OrganizationMyHealthCore. |
| professionalRole.specialty | PractitionerRole.specialty |   |

#### Location (Pharmacy)

**Mapping Context**

* **Source logical model:** [MyHealthEuLocationEpd](StructureDefinition-MyHealthEuLocationEpd.md)
* **Target FHIR profile:** [LocationMyHealthCore](http://fhir.ehdsi.eu/core/StructureDefinition/location-myhealtheu-core)

| | | |
| :--- | :--- | :--- |
| identifier | Location.identifier |   |
| name | Location.name |   |
| address | Location.address | Constrained to MyHealthEuAddress. |
| address.street | Location.address.line.extension:streetName | iso21090-ADXP-streetName extension. |
| address.city | Location.address.city |   |
| address.postalCode | Location.address.postalCode |   |
| managingOrganisation | Location.managingOrganization | Reference to OrganizationMyHealthCore. |

