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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="MedicationListFi-current-local-medicationlist"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition MedicationListFi-current-local-medicationlist</b></p><a name="MedicationListFi-current-local-medicationlist"> </a><a name="hcMedicationListFi-current-local-medicationlist"> </a><p>URL: [base]/$MedicationListFi-current-local-medicationlist</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>patientIdentifier</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td/><td><div><p>Identifier of the patient. Provide both the system 'urn:oid:1.2.246.21' and the identifier.</p>
</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td/><td><div><p>Local Kanta medication list</p>
</div></td></tr></table></div>
  </text>
  <url value="https://eradocumentation.atostek.com/OperationDefinition/MedicationListFi-current-local-medicationlist"/>
  <version value="1.0.0"/>
  <name value="MedicationListFi-Current-Local-MedicationList"/>
  <title value="MedicationListFi Current Local Medication List"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2026-10-28T11:52:12+00:00"/>
  <publisher value="Atostek"/>
  <contact>
    <name value="Atostek"/>
    <telecom>
      <system value="url"/>
      <value value="https://atostek.com/"/>
    </telecom>
  </contact>
  <description value="The operation returns the current version of the patient's medication list that is stored in ERA. The medication list includes results of searches made in the Kanta Prescription Centre and local changes."/>
  <code value="MedicationListFi-current-local-medicationlist"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="patientIdentifier"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Identifier of the patient. Provide both the system 'urn:oid:1.2.246.21' and the identifier."/>
    <type value="Identifier"/>
  </parameter>
  <parameter>
    <name value="return"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Local Kanta medication list"/>
    <type value="Parameters"/>
  </parameter>
</OperationDefinition>