## Profile Comparison between https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request vs https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request

Left: | EPA MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request)
Right: | EPA MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request)

### Messages

Error | StructureDefinition.version | Values for version differ: '1.0.6-2' vs '1.3.0'
Information | StructureDefinition.date | Values for date differ: '2025-05-12' vs '2025-12-15'
Information | MedicationRequest.language | Example/preferred bindings differ at MedicationRequest.language using binding from EPAMedicationRequest
Warning | MedicationRequest.basedOn | Elements differ in definition for mustSupport: 'false' vs 'true'
Error | MedicationRequest.basedOn | Type Mismatch: Reference([CanonicalType[http://hl7.org/fhir/StructureDefinition/CarePlan], CanonicalType[http://hl7.org/fhir/StructureDefinition/MedicationRequest], CanonicalType[http://hl7.org/fhir/StructureDefinition/ServiceRequest], CanonicalType[http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation]]) vs Reference([CanonicalType[https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request]])
Information | MedicationRequest.dosageInstruction | Element maximum cardinalities differ: '1' vs '2147483647'
Information | MedicationRequest.dispenseRequest | Element minimum cardinalities differ: '1' vs '0'
Information | MedicationRequest.dispenseRequest.quantity | Element minimum cardinalities differ: '1' vs '0'
Warning | MedicationRequest.dispenseRequest.quantity.unit | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | MedicationRequest.dispenseRequest.quantity.system | Element minimum cardinalities differ: '1' vs '0'
Information | MedicationRequest.dispenseRequest.quantity.code | Element minimum cardinalities differ: '1' vs '0'
Warning | MedicationRequest.dispenseRequest.expectedSupplyDuration | Elements differ in definition for mustSupport: 'false' vs 'true'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/MedicationRequest |
copyright |  | gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0. | Added the item 'gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0.'
date | 2025-05-12 | 2025-12-15 | Values Differ
description | Defines the medication request resource for the Medication Service in the ePA system. |
experimental | false |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#DE |
kind | resource |
name | EPAMedicationRequest |
publisher | gematik GmbH |
purpose |  |
status | active |
title | EPA MedicationRequest |
type | MedicationRequest |
url | https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request |
version | 1.0.6-2 | 1.3.0 | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
MedicationRequest |  | 0..* | MedicationRequest | Ordering of medication for patient or group |  | 0..* | MedicationRequest | Ordering of medication for patient or group |
id | Σ | 0..1 | id | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | S Σ | 0..1 | Meta | Metadata about the resource | S Σ | 0..1 | Meta | Metadata about the resource |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
versionId | S Σ | 0..1 | id | Version specific identifier | S Σ | 0..1 | id | Version specific identifier |
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed | S Σ | 0..1 | instant | When the resource version last changed |
source | Σ | 0..1 | uri | Identifies where the resource comes from | Σ | 0..1 | uri | Identifies where the resource comes from |
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to |
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | Σ | 0..* | Coding | Security Labels applied to this resource Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: ?? (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | Σ | 0..* | Coding | Tags applied to this resource Binding: ?? (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
| Example/preferred bindings differ at MedicationRequest.language using binding from EPAMedicationRequest
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 |  | 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 |  | 0..* | Resource | Contained, inline Resources |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
Slices for modifierExtension | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
Slices for identifier |  | 0..* | Identifier | External ids for this request Slice: Unordered, Open by pattern:$this |  | 0..* | Identifier | External ids for this request Slice: Unordered, Open by pattern:$this |
status | ?!S Σ | 1..1 | code | Status of Medication Request Binding: ?? (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription. | ?!S Σ | 1..1 | code | Status of Medication Request Binding: ?? (required) |
statusReason |  | 0..1 | CodeableConcept | Reason for current status Binding: ?? (example): Identifies the reasons for a given status. |  | 0..1 | CodeableConcept | Reason for current status Binding: ?? (example): Identifies the reasons for a given status. |
intent | ?!S Σ | 1..1 | code | filler-order Binding: ?? (required): The kind of medication order. | ?!S Σ | 1..1 | code | filler-order Binding: ?? (required): The kind of medication order. |
category |  | 0..* | CodeableConcept | Type of medication usage Binding: ?? (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment. |  | 0..* | CodeableConcept | Type of medication usage Binding: ?? (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment. |
priority | Σ | 0..1 | code | routine | urgent | asap | stat Binding: ?? (required): Identifies the level of importance to be assigned to actioning the request. | Σ | 0..1 | code | routine | urgent | asap | stat Binding: ?? (required): Identifies the level of importance to be assigned to actioning the request. |
doNotPerform | ?!Σ | 0..1 | boolean | True if request is prohibiting action | ?!Σ | 0..1 | boolean | True if request is prohibiting action |
reported[x] | Σ | 0..1 | boolean, Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Reported rather than primary record | Σ | 0..1 | boolean, Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Reported rather than primary record |
medication[x] | S Σ | 1..1 | Reference(Medication) | Medication to be taken | S Σ | 1..1 | Reference(Medication) | Medication to be taken |
subject | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | S Σ | 1..1 | ?? | Logical reference, when literal reference is not known | S Σ | 1..1 | ?? | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource | Σ | 0..1 | string | Text alternative for the resource |
encounter | C | 0..1 | Reference(Encounter) | Encounter created as part of encounter/admission/stay | C | 0..1 | Reference(Encounter) | Encounter created as part of encounter/admission/stay |
supportingInformation | C | 0..* | Reference(Resource) | Information to support ordering of the medication | C | 0..* | Reference(Resource) | Information to support ordering of the medication |
authoredOn | S Σ | 1..1 | dateTime | Issue Date | S Σ | 1..1 | dateTime | Issue Date |
requester | S Σ C | 0..1 | Reference(Organization | Practitioner | PractitionerRole) | Who/What requested the Request | S Σ C | 0..1 | Reference(Organization | Practitioner | PractitionerRole) | Who/What requested the Request |
performer | C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) | Intended performer of administration | C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) | Intended performer of administration |
performerType | Σ | 0..1 | CodeableConcept | Desired kind of performer of the medication administration Binding: ?? (example): Identifies the type of individual that is desired to administer the medication. | Σ | 0..1 | CodeableConcept | Desired kind of performer of the medication administration Binding: ?? (example): Identifies the type of individual that is desired to administer the medication. |
recorder | C | 0..1 | Reference(Practitioner | PractitionerRole) | Person who entered the request | C | 0..1 | Reference(Practitioner | PractitionerRole) | Person who entered the request |
reasonCode |  | 0..* | CodeableConcept | Reason or indication for ordering or not ordering the medication Binding: ?? (example): A coded concept indicating why the medication was ordered. |  | 0..* | CodeableConcept | Reason or indication for ordering or not ordering the medication Binding: ?? (example): A coded concept indicating why the medication was ordered. |
reasonReference | C | 0..* | Reference(Condition | Observation) | Condition or observation that supports why the prescription is being written | C | 0..* | Reference(Condition | Observation) | Condition or observation that supports why the prescription is being written |
instantiatesCanonical | Σ | 0..* | canonical() | Instantiates FHIR protocol or definition | Σ | 0..* | canonical() | Instantiates FHIR protocol or definition |
instantiatesUri | Σ | 0..* | uri | Instantiates external protocol or definition | Σ | 0..* | uri | Instantiates external protocol or definition |
basedOn | Σ C | 0..* | Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) | What request fulfills | S Σ C | 0..* | Reference(eMP MedicationRequest) | What request fulfills | Elements differ in definition for mustSupport: 'false' vs 'true' Type Mismatch: Reference([CanonicalType[http://hl7.org/fhir/StructureDefinition/CarePlan], CanonicalType[http://hl7.org/fhir/StructureDefinition/MedicationRequest], CanonicalType[http://hl7.org/fhir/StructureDefinition/ServiceRequest], CanonicalType[http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation]]) vs Reference([CanonicalType[https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request]])
id |  |  |  |  |  | 0..1 | string | Unique id for inter-element referencing | Added this element
Slices for extension |  |  |  |  |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | Added this element
reference |  |  |  |  | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Added this element
type |  |  |  |  | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). | Added this element
identifier |  |  |  |  | S Σ | 0..1 | ?? | Logical reference, when literal reference is not known | Added this element
display |  |  |  |  | Σ | 0..1 | string | Text alternative for the resource | Added this element
groupIdentifier | Σ | 0..1 | Identifier | Composite request this is part of | Σ | 0..1 | Identifier | Composite request this is part of |
courseOfTherapyType |  | 0..1 | CodeableConcept | Overall pattern of medication administration Binding: ?? (example): Identifies the overall pattern of medication administratio. |  | 0..1 | CodeableConcept | Overall pattern of medication administration Binding: ?? (example): Identifies the overall pattern of medication administratio. |
insurance | C | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage | C | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage |
note | S | 0..1 | Annotation | Information about the prescription | S | 0..1 | Annotation | Information about the prescription |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
author[x] | Σ | 0..1 | Reference(Practitioner | Patient | RelatedPerson | Organization), string | Individual responsible for the annotation | Σ | 0..1 | Reference(Practitioner | Patient | RelatedPerson | Organization), string | Individual responsible for the annotation |
time | Σ | 0..1 | dateTime | When the annotation was made | Σ | 0..1 | dateTime | When the annotation was made |
text | S Σ | 1..1 | markdown | Dispensing Note | S Σ | 1..1 | markdown | Dispensing Note |
dosageInstruction | S | 0..1 | Dosage | Hier werden Informationen zur Dosierung angegeben. | S | 0..* | ?? | Hier werden Informationen zur Dosierung angegeben. | Element maximum cardinalities differ: '1' vs '2147483647'
id |  | 0..1 | string | Unique id for inter-element referencing |  |  |  |  | Removed this element
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  |  |  |  | Removed this element
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |  |  |  |  | Removed this element
sequence | Σ | 0..1 | integer | The order of the dosage instructions |  |  |  |  | Removed this element
text | S Σ | 0..1 | string | Hier kann die Dosieranweisung in Form eines Freitextes abgebildet werden. |  |  |  |  | Removed this element
additionalInstruction | Σ | 0..* | CodeableConcept | Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness" Binding: ?? (example): A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery". |  |  |  |  | Removed this element
patientInstruction | S Σ | 0..1 | string | Instructions for Use |  |  |  |  | Removed this element
timing | Σ | 0..1 | Timing | When medication should be administered |  |  |  |  | Removed this element
asNeeded[x] | Σ | 0..1 | boolean, CodeableConcept | Take "as needed" (for x) Binding: ?? (example): A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc. |  |  |  |  | Removed this element
site | Σ | 0..1 | CodeableConcept | Body site to administer to Binding: ?? (example): A coded concept describing the site location the medicine enters into or onto the body. |  |  |  |  | Removed this element
route | Σ | 0..1 | CodeableConcept | How drug should enter body Binding: ?? (example): A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject. |  |  |  |  | Removed this element
method | Σ | 0..1 | CodeableConcept | Technique for administering medication Binding: ?? (example): A coded concept describing the technique by which the medicine is administered. |  |  |  |  | Removed this element
doseAndRate | Σ | 0..* | Element | Amount of medication administered |  |  |  |  | Removed this element
maxDosePerPeriod | Σ C | 0..1 | Ratio | Upper limit on medication per unit of time |  |  |  |  | Removed this element
maxDosePerAdministration | Σ C | 0..1 | ?? | Upper limit on medication per administration |  |  |  |  | Removed this element
maxDosePerLifetime | Σ C | 0..1 | ?? | Upper limit on medication per lifetime of the patient |  |  |  |  | Removed this element
dispenseRequest | S | 1..1 | BackboneElement | Medication supply authorization | S | 0..1 | BackboneElement | Medication supply authorization | Element minimum cardinalities differ: '1' vs '0'
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
initialFill |  | 0..1 | BackboneElement | First fill details |  | 0..1 | BackboneElement | First fill details |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
quantity | C | 0..1 | ?? | First fill quantity | C | 0..1 | ?? | First fill quantity |
duration | C | 0..1 | Duration | First fill duration Binding: ?? (extensible): Appropriate units for Duration.
Additional Bindings | Purpose
?? | Max Binding
| C | 0..1 | Duration | First fill duration |
dispenseInterval | C | 0..1 | Duration | Minimum period of time between dispenses Binding: ?? (extensible): Appropriate units for Duration.
Additional Bindings | Purpose
?? | Max Binding
| C | 0..1 | Duration | Minimum period of time between dispenses |
validityPeriod | C | 0..1 | Period | Time period supply is authorized for | C | 0..1 | Period | Time period supply is authorized for |
numberOfRepeatsAllowed |  | 0..1 | unsignedInt | Number of refills authorized |  | 0..1 | unsignedInt | Number of refills authorized |
quantity | S C | 1..1 | ?? | Amount of medication to supply per dispense | S C | 0..1 | ?? | Amount of medication to supply per dispense | Element minimum cardinalities differ: '1' vs '0'
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
value | S Σ | 1..1 | decimal | Number of Prescribed Packages | S Σ | 1..1 | decimal | Number of Prescribed Packages |
comparator | ?!Σ | 0..0 |  | < | <= | >= | > - how to understand the value Binding: ?? (required): How the Quantity should be understood and represented. | ?!Σ | 0..0 |  | < | <= | >= | > - how to understand the value Binding: ?? (required): How the Quantity should be understood and represented. |
unit | Σ | 0..1 | string | Unit representation | S Σ | 0..1 | string | Unit representation | Elements differ in definition for mustSupport: 'false' vs 'true'
system | S Σ C | 1..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org | S Σ C | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org | Element minimum cardinalities differ: '1' vs '0'
code | S Σ | 1..1 | code | Coded form of the unit Required Pattern: {Package} | S Σ | 0..1 | code | Coded form of the unit | Element minimum cardinalities differ: '1' vs '0'
expectedSupplyDuration | C | 0..1 | Duration | Number of days supply per dispense Binding: ?? (extensible): Appropriate units for Duration.
Additional Bindings | Purpose
?? | Max Binding
| S C | 0..1 | Duration | Number of days supply per dispense | Elements differ in definition for mustSupport: 'false' vs 'true'
performer | C | 0..1 | Reference(Organization) | Intended dispenser | C | 0..1 | Reference(Organization) | Intended dispenser |
substitution | S | 0..1 | BackboneElement | Any restrictions on medication substitution | S | 0..1 | BackboneElement | Any restrictions on medication substitution |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
allowed[x] | S | 1..1 | boolean | Whether substitution is allowed or not | S | 1..1 | boolean | Whether substitution is allowed or not |
reason |  | 0..1 | CodeableConcept | Why should (not) substitution be made Binding: ?? (example): A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed. |  | 0..1 | CodeableConcept | Why should (not) substitution be made Binding: ?? (example): A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed. |
priorPrescription | C | 0..1 | Reference(MedicationRequest) | An order/prescription that is being replaced | C | 0..1 | Reference(MedicationRequest) | An order/prescription that is being replaced |
detectedIssue | C | 0..* | Reference(DetectedIssue) | Clinical Issue with action | C | 0..* | Reference(DetectedIssue) | Clinical Issue with action |
eventHistory | C | 0..* | Reference(Provenance) | A list of events of interest in the lifecycle | C | 0..* | Reference(Provenance) | A list of events of interest in the lifecycle |
Documentation for this format