Implementation Guide
ePA Medication Service
Version 1.3.5 - release

## : INVALIDE - Medication Reference mit History in eMP Input Parameter - XML Representation

Raw xml | Download

    <Parameters xmlns="http://hl7.org/fhir">
      <id value="invalid-example-history-reference-not-allowed-emp-input"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-emp-entry-input-parameters|1.3.0"/>
      </meta>
      <parameter>
        <name value="acknowledgedChronologyId"/>
        <valueId value="0b383501-f078-464b-b984-9fdb6751601b"/>
      </parameter>
      <parameter>
        <name value="medication"/>
        <part>
          <name value="reference"/>
          <valueReference>
            <reference
                       value="Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e/_history/2"/>
          </valueReference>
        </part>
      </parameter>
      <parameter>
        <name value="empEntry"/>
        <resource>
          <MedicationRequest>
            <id value="6cc286cc-15a6-48ad-a349-9e8b6a48af75"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.1"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="EMP"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension">
              <valueString
                           value="akuten Behandlung von Migräneanfällen mit und ohne Aura"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension">
              <valueAnnotation>
                <text
                      value="Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung."/>
              </valueAnnotation>
            </extension>
            <extension
                       url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod">
              <valuePeriod>
                <start value="2026-12-01"/>
                <end value="2027-02-01"/>
              </valuePeriod>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension">
              <valueReference>🔗
                <reference
                           value="Medication/87f08ba2-da7e-467e-86aa-404d9035297c"/>
              </valueReference>
            </extension>
            <extension
                       url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction">
              <valueMarkdown value="1-0-0-0 Stück"/>
            </extension>
            <extension
                       url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta">
              <extension url="algorithmVersion">
                <valueString value="1.0.1"/>
              </extension>
              <extension url="language">
                <valueCode value="de-DE"/>
              </extension>
            </extension>
            <status value="active"/>
            <intent value="plan"/>
            <medicationReference>🔗
              <reference value="Medication/87f08ba2-da7e-467e-86aa-404d9035297c"/>
              <display value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-11-01"/>
            <note>
              <text value="Hinweis für den LE"/>
            </note>
            <dosageInstruction>
              <timing>
                <repeat>
                  <frequency value="1"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="MORN"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="1"/>
                  <unit value="Stück"/>
                  <system
                          value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
          </MedicationRequest>
        </resource>
      </parameter>
    </Parameters>