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

<Parameters xmlns="http://hl7.org/fhir">
  <id value="example-epa-op-provide-prescription-erp-input-parameters-2"/>
  <meta>
    <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/>
  </meta>
  <parameter>
    <name value="rxPrescription"/>
    <part>
      <name value="prescriptionId"/>
      <valueIdentifier>
        <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/>
        <value value="160.100.000.000.002.36"/>
      </valueIdentifier>
    </part>
    <part>
      <name value="authoredOn"/>
      <valueDate value="2025-11-27"/>
    </part>
    <part>
      <name value="medicationRequest"/>
      <resource>
        <MedicationRequest>
          <id value="f4f341f8-56b2-475b-914b-b8533c34f849"/>
          <meta>
            <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/>
          </meta>
          <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension">
            <extension url="indicator">
              <valueBoolean value="false"/>
            </extension>
          </extension>
          <status value="active"/>
          <intent value="filler-order"/>
          <medicationReference>
            <reference value="Medication/4ef3e77d-fcaf-483e-8c65-c09372bb60fe"/>
          </medicationReference>
          <subject>
            <identifier>
              <system value="http://fhir.de/sid/gkv/kvid-10"/>
              <value value="X110411319"/>
            </identifier>
          </subject>
          <authoredOn value="2025-11-27"/>
          <dosageInstruction>
            <text value="2mal tägl. 5ml"/>
          </dosageInstruction>
          <dispenseRequest>
            <quantity>
              <value value="1"/>
              <unit value="Packung"/>
            </quantity>
          </dispenseRequest>
          <substitution>
            <allowedBoolean value="true"/>
          </substitution>
        </MedicationRequest>
      </resource>
    </part>
    <part>
      <name value="medication"/>
      <resource>
        <Medication>
          <id value="4ef3e77d-fcaf-483e-8c65-c09372bb60fe"/>
          <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="763158003"/>
              <display value="Medicinal product (product)"/>
            </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="N1"/>
          </extension>
          <code>
            <coding>
              <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
              <code value="08585997"/>
            </coding>
            <text value="Prospan® Hustensaft 100ml N1"/>
          </code>
          <status value="active"/>
          <form>
            <coding>
              <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
              <code value="FLE"/>
            </coding>
          </form>
          <ingredient>
            <itemCodeableConcept>
              <coding>
                <system value="http://fhir.de/CodeSystem/ask"/>
                <code value="50912"/>
              </coding>
              <text value="Efeublätter-Trockenextrakt (5-7,5:1); Auszugsmittel: Ethanol 30% (m/m)"/>
            </itemCodeableConcept>
            <strength>
              <numerator>
                <value value="35"/>
                <unit value="mg"/>
              </numerator>
              <denominator>
                <value value="5"/>
                <unit value="ml"/>
              </denominator>
            </strength>
          </ingredient>
        </Medication>
      </resource>
    </part>
    <part>
      <name value="organization"/>
      <resource>
        <Organization>
          <id value="2a61f8e5-806c-4b4e-b6be-73546cc1de3d"/>
          <meta>
            <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/>
            <tag>
              <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/>
              <code value="ldap"/>
            </tag>
          </meta>
          <identifier>
            <system value="https://gematik.de/fhir/sid/telematik-id"/>
            <value value="9-2.58.00000045"/>
          </identifier>
          <identifier>
            <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/>
            <value value="012300004"/>
          </identifier>
          <active value="true"/>
          <type>
            <coding>
              <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/>
              <code value="1.2.276.0.76.4.50"/>
              <display value="Betriebsstätte Arzt"/>
            </coding>
          </type>
          <name value="Praxis Dr. med. Max Mustermann"/>
          <address>
            <type value="both"/>
            <line value="Musterstr. 1"/>
            <line value="Mitte"/>
            <city value="Darmstadt"/>
            <postalCode value="64283"/>
            <country value="DE"/>
          </address>
          <address>
            <type value="postal"/>
            <line value="45678"/>
            <city value="Darmstadt"/>
            <country value="DE"/>
          </address>
        </Organization>
      </resource>
    </part>
    <part>
      <name value="practitioner"/>
      <resource>
        <Practitioner>
          <id value="d444db71-e932-4c4c-a5cb-1844b2173cef"/>
          <meta>
            <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/>
            <tag>
              <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/>
              <code value="ldap"/>
            </tag>
          </meta>
          <identifier>
            <system value="https://gematik.de/fhir/sid/telematik-id"/>
            <value value="1-1.58.00000056"/>
          </identifier>
          <identifier>
            <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/>
            <value value="123456789"/>
          </identifier>
          <active value="true"/>
          <name>
            <text value="Dr. Max Manfred Mustermann"/>
            <family value="Musterman"/>
            <given value="Max"/>
            <given value="Manfred"/>
            <prefix value="Dr."/>
          </name>
        </Practitioner>
      </resource>
    </part>
  </parameter>
</Parameters>