Implementation Guide
ePA Medication Service
Version 1.3.5 - release

## : ExampleEPABatchEmpResponseBundle - XML Representation

Raw xml | Download

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="example-epa-batch-emp-response-bundle"/>
      <type value="transaction-response"/>
      <entry>
        <resource>
          <Parameters>
            <id value="0fe348cc-adee-496c-9359-3cf3eaa1d355"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters|1.3.0"/>
            </meta>
            <parameter>
              <name value="empEntry"/>
              <resource>
                <MedicationRequest>
                  <id value="71b66f1b-8032-4886-b7bf-e775daee22fb"/>
                  <meta>
                    <versionId value="1"/>
                    <lastUpdated value="2026-12-01T14:00:00.400Z"/>
                    <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="Bluthochdruck"/>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension">
                    <valueAnnotation>
                      <text
                            value="Benazepril kann anfangs Schwindel verursachen - daher zuerst in Ruhe einnehmen und Autofahren vermeiden."/>
                    </valueAnnotation>
                  </extension>
                  <extension
                             url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod">
                    <valuePeriod>
                      <start value="2026-12-01"/>
                    </valuePeriod>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension">
                    <valueReference>🔗
                      <reference
                                 value="Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
                    </valueReference>
                  </extension>
                  <extension
                             url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction">
                    <valueMarkdown value="1-0-1-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>
                  <identifier>
                    <system value="https://gematik.de/fhir/sid/emp-identifier"/>
                    <value value="71b66f1b-8032-4886-b7bf-e775daee22fb"/>
                  </identifier>
                  <status value="active"/>
                  <intent value="plan"/>
                  <medicationReference>🔗
                    <reference
                               value="Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
                  </medicationReference>
                  <subject>
                    <identifier>
                      <system value="http://fhir.de/sid/gkv/kvid-10"/>
                      <value value="X110411319"/>
                    </identifier>
                  </subject>
                  <authoredOn value="2026-12-01"/>
                  <note>
                    <text value="Hinweis für den LE"/>
                  </note>
                  <dosageInstruction>
                    <timing>
                      <repeat>
                        <frequency value="2"/>
                        <period value="1"/>
                        <periodUnit value="d"/>
                        <when value="MORN"/>
                        <when value="EVE"/>
                      </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>
            <parameter>
              <name value="medication"/>
              <resource>
                <Medication>
                  <id value="13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
                  <meta>
                    <versionId value="1"/>
                    <lastUpdated value="2026-12-01T14:00:00.200Z"/>
                    <profile
                             value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication|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/epa-medication-type-extension">
                    <valueCoding>
                      <system value="http://snomed.info/sct"/>
                      <code value="763158003"/>
                    </valueCoding>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
                    <valueCoding>
                      <system
                              value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
                      <code value="00"/>
                    </valueCoding>
                  </extension>
                  <extension
                             url="http://fhir.de/StructureDefinition/normgroesse">
                    <valueCode value="N3"/>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
                    <valueBoolean value="false"/>
                  </extension>
                  <identifier>
                    <system
                            value="https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"/>
                    <value
                           value="D15E4956F59A13CD3BB365799857D6FA9757C62D36DBDB9578D018CA4B6D969F"/>
                  </identifier>
                  <code>
                    <coding>
                      <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
                      <code value="04351736"/>
                      <display value="Benazepril AL 20mg 98 Filmtabletten N3"/>
                    </coding>
                    <text value="Benazepril AL 20mg 98 Filmtabletten N3"/>
                  </code>
                  <status value="active"/>
                  <form>
                    <coding>
                      <system
                              value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
                      <code value="FTA"/>
                    </coding>
                  </form>
                  <amount>
                    <numerator>
                      <extension
                                 url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
                        <valueString value="98"/>
                      </extension>
                      <unit value="Stück"/>
                    </numerator>
                    <denominator>
                      <value value="1"/>
                    </denominator>
                  </amount>
                  <ingredient>
                    <itemCodeableConcept>
                      <coding>
                        <system value="http://fhir.de/CodeSystem/ask"/>
                        <code value="23413"/>
                      </coding>
                      <text value="Benazepril hydrochlorid"/>
                    </itemCodeableConcept>
                    <strength>
                      <numerator>
                        <value value="20"/>
                        <unit value="mg"/>
                      </numerator>
                      <denominator>
                        <value value="1"/>
                        <unit value="Filmtbl."/>
                      </denominator>
                    </strength>
                  </ingredient>
                </Medication>
              </resource>
            </parameter>
            <parameter>
              <name value="relatedActivity"/>
              <resource>
                <Provenance>
                  <id value="8faa45dd-b2dc-4a80-8956-94aeab1db04b"/>
                  <meta>
                    <profile
                             value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance|1.3.0"/>
                  </meta>
                  <target>
                    <reference
                               value="MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"/>
                  </target>
                  <recorded value="2026-12-01T14:00:00.600Z"/>
                  <activity>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                      <code value="CREATE"/>
                    </coding>
                  </activity>
                  <agent>
                    <type>
                      <coding>
                        <system
                                value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                        <code value="author"/>
                      </coding>
                    </type>
                    <who>🔗
                      <reference
                                 value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                      <identifier>
                        <type>
                          <coding>
                            <system
                                    value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                            <code value="PRN"/>
                          </coding>
                        </type>
                        <system value="https://gematik.de/fhir/sid/telematik-id"/>
                        <value value="9-2.58.00000089"/>
                      </identifier>
                      <display value="Die Hausarztpraxis"/>
                    </who>
                  </agent>
                </Provenance>
              </resource>
            </parameter>
          </Parameters>
        </resource>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
      <entry>
        <resource>
          <Parameters>
            <id value="946af3ef-eec2-4a5d-81c4-fe46bc115d58"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters|1.3.0"/>
            </meta>
            <parameter>
              <name value="empEntry"/>
              <resource>
                <MedicationRequest>
                  <id value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
                  <meta>
                    <versionId value="3"/>
                    <lastUpdated value="2026-12-01T14:00:00.400Z"/>
                    <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>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension">
                    <extension url="reference">
                      <valueReference>🔗
                        <reference
                                   value="MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"/>
                      </valueReference>
                    </extension>
                    <extension url="addedOn">
                      <valueDateTime value="2026-12-01T14:00:00.400Z"/>
                    </extension>
                  </extension>
                  <identifier>
                    <system value="https://gematik.de/fhir/sid/emp-identifier"/>
                    <value value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
                  </identifier>
                  <status value="active"/>
                  <intent value="plan"/>
                  <medicationReference>🔗
                    <reference
                               value="Medication/87f08ba2-da7e-467e-86aa-404d9035297c"/>
                  </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>
            <parameter>
              <name value="medication"/>
              <resource>
                <Medication>
                  <id value="87f08ba2-da7e-467e-86aa-404d9035297c"/>
                  <meta>
                    <versionId value="1"/>
                    <lastUpdated value="2026-11-01T14:00:00.200Z"/>
                    <profile
                             value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication|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/epa-medication-type-extension">
                    <valueCoding>
                      <system value="http://snomed.info/sct"/>
                      <code value="781405001"/>
                    </valueCoding>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
                    <valueCoding>
                      <system
                              value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
                      <code value="00"/>
                    </valueCoding>
                  </extension>
                  <extension
                             url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
                    <valueBoolean value="false"/>
                  </extension>
                  <extension
                             url="http://fhir.de/StructureDefinition/normgroesse">
                    <valueCode value="N1"/>
                  </extension>
                  <identifier>
                    <system
                            value="https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"/>
                    <value
                           value="5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1"/>
                  </identifier>
                  <code>
                    <coding>
                      <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
                      <code value="06313728"/>
                    </coding>
                    <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
                  </code>
                  <status value="active"/>
                  <form>
                    <coding>
                      <system
                              value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
                      <code value="TAB"/>
                      <display value="Tabletten"/>
                    </coding>
                  </form>
                  <amount>
                    <numerator>
                      <extension
                                 url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
                        <valueString value="20 St."/>
                      </extension>
                      <value value="20"/>
                      <unit value="St"/>
                    </numerator>
                    <denominator>
                      <value value="1"/>
                    </denominator>
                  </amount>
                </Medication>
              </resource>
            </parameter>
            <parameter>
              <name value="relatedActivity"/>
              <resource>
                <Provenance>
                  <id value="20335453-d103-4957-a370-03c9007db2f6"/>
                  <meta>
                    <profile
                             value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance|1.3.0"/>
                  </meta>
                  <target>
                    <reference
                               value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/3"/>
                  </target>
                  <recorded value="2026-12-01T14:00:00.400Z"/>
                  <activity>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                      <code value="CREATE"/>
                    </coding>
                  </activity>
                  <agent>
                    <type>
                      <coding>
                        <system
                                value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                        <code value="author"/>
                      </coding>
                    </type>
                    <who>🔗
                      <reference
                                 value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                      <identifier>
                        <type>
                          <coding>
                            <system
                                    value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                            <code value="PRN"/>
                          </coding>
                        </type>
                        <system value="https://gematik.de/fhir/sid/telematik-id"/>
                        <value value="9-2.58.00000089"/>
                      </identifier>
                      <display value="Die Hausarztpraxis"/>
                    </who>
                  </agent>
                </Provenance>
              </resource>
            </parameter>
          </Parameters>
        </resource>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
      <entry>
        <resource>
          <Provenance>
            <id value="319fcc6e-049d-4eb1-9a5c-82c33438cf94"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-chronology-provenance|1.3.0"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-chronology-extension">
              <valueBoolean value="true"/>
            </extension>
            <target>
              <reference
                         value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/3"/>
            </target>
            <target>
              <reference
                         value="MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"/>
            </target>
            <occurredDateTime value="2026-12-01T14:00:00.400Z"/>
            <recorded value="2026-12-01T14:00:00.400Z"/>
            <activity>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                <code value="UPDATE"/>
              </coding>
            </activity>
            <agent>
              <type>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                  <code value="author"/>
                </coding>
              </type>
              <who>🔗
                <reference
                           value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                <identifier>
                  <type>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                      <code value="PRN"/>
                    </coding>
                  </type>
                  <system value="https://gematik.de/fhir/sid/telematik-id"/>
                  <value value="9-2.58.00000089"/>
                </identifier>
                <display value="Die Hausarztpraxis"/>
              </who>
            </agent>
          </Provenance>
        </resource>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
    </Bundle>