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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="MedicationListFi-validate-local-medicationlist"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition MedicationListFi-validate-local-medicationlist</b></p><a name="MedicationListFi-validate-local-medicationlist"> </a><a name="hcMedicationListFi-validate-local-medicationlist"> </a><p>URL: [base]/$MedicationListFi-validate-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/><td/><td><div><p>Validation result</p>
</div></td></tr></table></div>
  </text>
  <url value="https://eradocumentation.atostek.com/OperationDefinition/MedicationListFi-validate-local-medicationlist"/>
  <version value="1.0.0"/>
  <name value="MedicationListFi-Validate-Local-MedicationList"/>
  <title value="MedicationListFi Validate 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 can be used to validate performed medication changes against the local version of the medication list stored in ERA."/>
  <code value="MedicationListFi-validate-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="Validation result"/>
  </parameter>
</OperationDefinition>