Implementation Guide
ePA Basisfunktionalitäten
Version 1.3.1 - release

## : Example Export History Bundle - XML Representation

Raw xml | Download

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="31a277f5-6ed9-4ee2-a864-4abc26b5de5b"/>
      <type value="history"/>
      <total value="3"/>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"/>
        <request>
          <method value="DELETE"/>
          <url value="MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"/>
        </request>
        <response>
          <status value="200 OK"/>
          <lastModified value="2026-08-22T15:00:00.000Z"/>
        </response>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"/>
        <resource>
          <MedicationRequest>
            <id value="1959b8cd-58d2-4961-aa10-74d7e68896403"/>
            <meta>
              <versionId value="2"/>
              <lastUpdated value="2026-08-22T14:50:10.000Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0"/>
            </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-08-22"/>
                <end value="2026-08-25"/>
              </valuePeriod>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension">
              <valueReference>
                <reference
                           value="Medication/9cbf1803-e125-40d3-ad68-1e155f71e252"/>
              </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>
            <extension
                       url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction">
              <valueMarkdown value="1-0-2-0 Stück"/>
            </extension>
            <status value="active"/>
            <intent value="plan"/>
            <medicationReference>
              <reference value="Medication/9cbf1803-e125-40d3-ad68-1e155f71e252"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-08-22"/>
            <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>
            <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="http://unitsofmeasure.org"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
            <dosageInstruction>
              <timing>
                <repeat>
                  <frequency value="1"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="EVE"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="2"/>
                  <unit value="Stück"/>
                  <system value="http://unitsofmeasure.org"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
          </MedicationRequest>
        </resource>
        <request>
          <method value="PUT"/>
          <url value="MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"/>
        </request>
        <response>
          <status value="200 OK"/>
          <location
                    value="MedicationDispense/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/2"/>
          <lastModified value="2026-08-22T14:50:10.000Z"/>
        </response>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"/>
        <resource>
          <MedicationRequest>
            <id value="1959b8cd-58d2-4961-aa10-74d7e68896403"/>
            <meta>
              <versionId value="1"/>
              <lastUpdated value="2026-08-22T14:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0"/>
            </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-08-22"/>
                <end value="2026-08-25"/>
              </valuePeriod>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension">
              <valueReference>
                <reference
                           value="Medication/9cbf1803-e125-40d3-ad68-1e155f71e252"/>
              </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/9cbf1803-e125-40d3-ad68-1e155f71e252"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-08-22"/>
            <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>
        <request>
          <method value="POST"/>
          <url value="MedicationRequest"/>
        </request>
        <response>
          <status value="201 Created"/>
          <location
                    value="MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/1"/>
          <lastModified value="2026-08-22T14:43:33.244Z"/>
        </response>
      </entry>
    </Bundle>