HL7 Europe Base and Core FHIR IG
2.0.0-gamma - qa-preview 150

HL7 Europe Base and Core FHIR IG - Downloaded Version 2.0.0-gamma See the Directory of published versions

## EHDSMedicationprescription to FHIR MedicationRequest Mapping

EHDSMedicationPrescription → MedicationRequest
Context Xt-EHR currently has no dedicated common model for `MedicationRequest`. For that reason, this mapping is based on the prescription model realised by the HL7 Europe Medication Prescription and Dispense (MPD) FHIR Implementation Guide (https://hl7.eu/fhir/mpd).

### EHDSMedicationPrescription → MedicationRequest

This page explains how conceptual elements from the EHDS logical model are expressed in the corresponding FHIR MedicationRequest profile used by this Implementation Guide.

Mapping Context

- Source logical model: EHDSMedicationPrescription
- Target FHIR profile: MedicationRequest

EHDSMedicationPrescription → MedicationRequest
EHDSMedicationPrescription (Logical Model) | Relationship | MedicationRequest
--- | --- | ---
Element | Description | Relation | Resource | Element | Description | Notes
header | Common header for the prescription dataset. | related-to | MedicationRequest | . | General metadata. | Dataset-level information; not directly represented on the MedicationRequest instance.
header.subject | Patient for whom the medication is prescribed. | equivalent | MedicationRequest | subject | Identifies the patient. | Reference to Patient.
header.identifier | Business identifier(s) for the prescription. | source-is-narrower-than-target | MedicationRequest | identifier | External identifiers for this request. |
header.identifier | Identifier for a single item on the prescription. | source-is-narrower-than-target | MedicationRequest | groupIdentifier | Identifiers for a group of prescribed items. |
header.author[x] | The prescriber who made the prescription. | equivalent | MedicationRequest | requester | The authorizing practitioner or organization. | Reference to Practitioner / PractitionerRole / Organization depending on profile rules.
header.date | Time of issuing/signing the prescription. | equivalent | MedicationRequest | authoredOn | When the request was authored. |
header.status | Status of authorization to dispense. | equivalent | MedicationRequest | status | Active/on-hold/cancelled/etc. | Use statusReason when additional context is required.
header.language | Language in which the resource is written. | equivalent | MedicationRequest | language | Language of the narrative. |
header.statusReason[x] | Reason for the current prescription status. | equivalent | MedicationRequest | statusReason | Explains the status. | The model allows for CodeableConcept and string. The target only CodeableConcept.
presentedForm | Entire prescription as issued (PDF, etc.). | no-map | MedicationRequest |  |  | Reference a DocumentReference containing the rendered prescription.
prescriptionItem | Prescription line for a medication. | equivalent | MedicationRequest | . | MedicationRequest instances represent single items. | Create one MedicationRequest per prescription item.
prescriptionItem.identifier | Identifier for a single item on the prescription. | equivalent | MedicationRequest | identifier | Identifiers for that single prescribed item. |
prescriptionItem.medication | Prescribed product (branded, generic, etc.). | equivalent | MedicationRequest | medication[x]〔R4〕 | Medication as CodeableConcept or Reference. |
prescriptionItem.medication | Prescribed product (branded, generic, etc.). | equivalent | MedicationRequest | medication〔R5〕 | Medication as CodeableConcept or Reference. |
prescriptionItem.indication[x] | Coded reason for the prescription. | equivalent | MedicationRequest | reasonCode〔R4〕 | Why the medication is prescribed. |
prescriptionItem.indication[x] | Coded reason for the prescription. | equivalent | MedicationRequest | reason.concept〔R5〕 | Why the medication is prescribed. |
prescriptionItem.indication[x] | Diagnosis/reason referenced as a Condition. | equivalent | MedicationRequest | reasonReference〔R4〕 | Reference to the clinical reason. | Reference to Condition or other resource.
prescriptionItem.indication[x] | Diagnosis/reason referenced as a Condition. | equivalent | MedicationRequest | reason.reference〔R5〕 | Reference to the clinical reason. | Reference to Condition or other resource.
prescriptionItem.indication[x] | Free-text reason for the prescription. | related-to | MedicationRequest | reasonCode.text | Textual reason. | Alternatively capture as `note` if preferred.
prescriptionItem.intendedUseType | Intent of the prescription (prophylaxis, treatment, etc.). | source-is-narrower-than-target | MedicationRequest | category | Classification of the request. | Use dedicated category code or custom extension if additional granularity is required.
prescriptionItem.periodOfUse | Overall period over which the medication is to be taken. | related-to | MedicationRequest | extension:effectiveDosePeriod〔R4〕 | Period over which the medication should be taken. |
prescriptionItem.periodOfUse | Overall period over which the medication is to be taken. | related-to | MedicationRequest | effectiveDosePeriod〔R5〕 | Period over which the medication should be taken. |
prescriptionItem.quantityPrescribed | Overall quantity of product prescribed. | equivalent | MedicationRequest | dispenseRequest.extension:prescribedQuantity | Overall amount of product prescribed, independent from the number of repeats. |
prescriptionItem.validityPeriod | Period over which the prescription item is valid and dispensable. | equivalent | MedicationRequest | dispenseRequest.validityPeriod | Period of dispensing validity. |
prescriptionItem.dosageInstructions | Dosage and administration instructions. | equivalent | MedicationRequest | dosageInstruction | Dosage instructions for administration. | Map each EHDSDosaging entry to a `dosageInstruction`.
prescriptionItem.substitution | Container for substitution rules. | equivalent | MedicationRequest | substitution | Any restrictions on medication substitution. |
prescriptionItem.substitution.allowed[x] | Whether substitution is allowed. | equivalent | MedicationRequest | substitution.allowed[x]] | Indicates if substitution is permitted. |
prescriptionItem.substitution.reason[x] | Reason for substitution requirements. | equivalent | MedicationRequest | substitution.reason | Why substitution is (not) allowed. | FHIR accepts CodeableConcept; textual reasons may need an additional note.
prescriptionItem.status | Status of a single item of the prescription. | equivalent | MedicationRequest | status | Status at the line level. | For single-item prescriptions, same meaning as header.status.
prescriptionItem.statusReason[x] | Reason for the line-item status. | equivalent | MedicationRequest | statusReason | Status explanation. | As above, textual-only reasons may require notes.
prescriptionItem.numberOfRepeats | Number of refills authorized. | equivalent | MedicationRequest | dispenseRequest.numberOfRepeatsAllowed | Repeat count. |
prescriptionItem.minimumDispenseInterval | Minimum interval between dispenses. | equivalent | MedicationRequest | dispenseRequest.dispenseInterval | Minimum dispense interval. |
prescriptionItem.offLabel | Container indicating off-label usage context. | related-to | MedicationRequest | extension:offLabelUse | Off-label use marker and associated details. |
prescriptionItem.offLabel.isOffLabelUse | Indicates off-label use. | related-to | MedicationRequest | extension:offLabelUse | Flag for off-label prescription. | Implementer-specific extension required.
prescriptionItem.offLabel.reason[x] | Reason for off-label use. | related-to | MedicationRequest | extension:offLabelUse.reason | Explanation of off-label decision. | Same extension as above; allow CodeableConcept or string.
prescriptionItem.note | Additional information or comments (line-level). | equivalent | MedicationRequest | note.text | Line-level comments. | Use `note.author` / `note.time` if available.

Return to overview: EHDS Logical Models → FHIR Profiles