<?xml version="1.0" encoding="UTF-8"?>

<Parameters xmlns="http://hl7.org/fhir">
  <id value="7ccb2670-7178-4f82-912a-de70f68ecd51"/>
  <meta>
    <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-update-emp-entry-input-parameters"/>
  </meta>
  <parameter>
    <name value="medicationPlanIdentifier"/>
    <valueIdentifier>
      <system value="https://gematik.de/fhir/sid/emp-identifier"/>
      <value value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
    </valueIdentifier>
  </parameter>
  <parameter>
    <name value="empEntry"/>
    <resource>
      <MedicationRequest>
        <id value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
        <meta>
          <versionId value="2"/>
          <lastUpdated value="2026-11-01T15:43:33.244Z"/>
          <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request"/>
        </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="2027-02-01"/>
          </valuePeriod>
        </extension>
        <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension">
          <valueReference>
            <reference value="MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"/>
          </valueReference>
        </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>
          <extension url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions">
            <extension url="algorithm">
              <valueCoding>
                <system value="http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"/>
                <version value="1.0.0"/>
                <code value="GematikDosageTextGenerator"/>
              </valueCoding>
            </extension>
            <extension url="algorithmVersion">
              <valueString value="1.0.0"/>
            </extension>
            <extension url="language">
              <valueCode value="de-DE"/>
            </extension>
            <extension url="text">
              <valueString value="täglich: morgens — je 1 Stück"/>
            </extension>
          </extension>
          <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>