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

<Parameters xmlns="http://hl7.org/fhir">
  <id value="example-epa-op-add-eml-entry-input-parameters-1"/>
  <meta>
    <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-eml-entry-input-parameters"/>
  </meta>
  <parameter>
    <name value="medicationStatement"/>
    <resource>
      <MedicationStatement>
        <id value="36581a11-806e-4455-a1c9-9173b7d247fd"/>
        <meta>
          <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"/>
        </meta>
        <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
          <valueCode value="MANUAL"/>
        </extension>
        <status value="unknown"/>
        <medicationReference>
          <reference value="Medication/fe79ff64-42e5-4cf8-a8d1-5ce527323dcc"/>
        </medicationReference>
        <subject>
          <identifier>
            <system value="http://fhir.de/sid/gkv/kvid-10"/>
            <value value="X110411319"/>
          </identifier>
        </subject>
        <effectivePeriod>
          <start value="2026-02-10"/>
        </effectivePeriod>
        <dosage>
          <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="2 x täglich: morgens und abends — je 1 Stück"/>
            </extension>
          </extension>
          <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>
        </dosage>
      </MedicationStatement>
    </resource>
  </parameter>
  <parameter>
    <name value="medication"/>
    <resource>
      <Medication>
        <id value="fe79ff64-42e5-4cf8-a8d1-5ce527323dcc"/>
        <meta>
          <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/>
        </meta>
        <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
          <valueCoding>
            <system value="http://snomed.info/sct"/>
            <code value="781405001"/>
            <display value="Medicinal product package (product)"/>
          </valueCoding>
        </extension>
        <extension url="http://fhir.de/StructureDefinition/normgroesse">
          <valueCode value="N1"/>
        </extension>
        <code>
          <coding>
            <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
            <code value="14170042"/>
            <display value="Diclo-ratiopharm® bei Schmerzen und Fieber 25 mg Filmtabletten"/>
          </coding>
          <text value="Diclo-ratiopharm® bei Schmerzen und Fieber 25 mg Filmtabletten"/>
        </code>
        <status value="active"/>
        <form>
          <coding>
            <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
            <code value="TAB"/>
          </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>
</Parameters>