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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="GET-Prescription-EU"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition GET-Prescription-EU</b></p><a name="GET-Prescription-EU"> </a><a name="hcGET-Prescription-EU"> </a><p>URL: [base]/$get-eu-prescriptions</p><p>Input parameters Profile:<a href="StructureDefinition-GEM-ERPEU-PR-PAR-EU-GET-Prescription-Input.html">GEM ERPEU PR PAR GET Prescription Input</a></p><p>Output parameters Profile:<a href="StructureDefinition-gem-erpeu-pr-par-get-prescription-output.html">GEM ERPEU PR PAR GET Prescription Output</a></p><h3>Parameters</h3><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>requestData</td><td/><td>1..1</td><td/><td/><td><div><p>Additional request information</p>
</div></td></tr><tr><td>IN</td><td>requestData.requesttype</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.kvnr</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.accessCode</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.countryCode</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.prescription-id</td><td/><td>0..*</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.practitionerName</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.practitionerRole</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.pointOfCare</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td/><td/></tr><tr><td>IN</td><td>requestData.healthcare-facility-type</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td/><td/></tr><tr><td>OUT</td><td>return</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td/><td><div><p>Depending on the requesttype this operation returns a Bundle containing eRezept KBV_PR_ERP_Bundle Prescription-Bundles.</p>
</div></td></tr></table></div>
  </text>
  <url value="https://gematik.de/fhir/erp-eu/OperationDefinition/GET-Prescription-EUOperationDefinition"/>
  <version value="2.0.0-ballot.1"/>
  <name value="GET-Prescription-EU"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2026-05-26"/>
  <publisher value="gematik GmbH"/>
  <contact>
    <name value="gematik GmbH"/>
    <telecom>
      <system value="url"/>
      <value value="https://gematik.de"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="erp-umsetzung@gematik.de"/>
    </telecom>
  </contact>
  <description value="The Operation gets Presciption Information from the ERP System for usage in the e-prescription workflow for EU countries"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="DE"/>
      <display value="Germany"/>
    </coding>
  </jurisdiction>
  <affectsState value="false"/>
  <code value="get-eu-prescriptions"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <inputProfile value="https://gematik.de/fhir/tiflow-xborder/StructureDefinition/GEM-ERPEU-PR-PAR-EU-GET-Prescription-Input"/>
  <outputProfile value="https://gematik.de/fhir/tiflow-xborder/StructureDefinition/gem-erpeu-pr-par-get-prescription-output"/>
  <parameter>
    <name value="requestData"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Additional request information"/>
    <part>
      <name value="requesttype"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Coding"/>
    </part>
    <part>
      <name value="kvnr"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Identifier"/>
    </part>
    <part>
      <name value="accessCode"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Identifier"/>
    </part>
    <part>
      <name value="countryCode"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Coding"/>
    </part>
    <part>
      <name value="prescription-id"/>
      <use value="in"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Identifier"/>
    </part>
    <part>
      <name value="practitionerName"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="string"/>
    </part>
    <part>
      <name value="practitionerRole"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Coding"/>
    </part>
    <part>
      <name value="pointOfCare"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="string"/>
    </part>
    <part>
      <name value="healthcare-facility-type"/>
      <use value="in"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Coding"/>
    </part>
  </parameter>
  <parameter>
    <name value="return"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Depending on the requesttype this operation returns a Bundle containing eRezept KBV_PR_ERP_Bundle Prescription-Bundles."/>
    <type value="Bundle"/>
  </parameter>
</OperationDefinition>