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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="ahd-trustee-confirm"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition ahd-trustee-confirm</b></p><a name="ahd-trustee-confirm"> </a><a name="hcahd-trustee-confirm"> </a><p>URL: [base]/RelatedPerson/$confirm</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>bundle</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R5/bundle.html">Bundle</a></td><td/><td><div><p>Collection Bundle with the RelatedPerson and the paper-signing Provenance.</p>
</div></td></tr><tr><td>OUT</td><td>relatedPerson</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R5/references.html#Reference">Reference</a></td><td/><td><div><p>Reference to the stored trusted person version.</p>
</div></td></tr><tr><td>OUT</td><td>provenance</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R5/references.html#Reference">Reference</a></td><td/><td><div><p>Reference to the stored signing Provenance.</p>
</div></td></tr></table></div>
  </text>
  <url value="https://fhir.ee/ahd/OperationDefinition/ahd-trustee-confirm"/>
  <version value="0.1.0"/>
  <name value="AHDTrusteeConfirm"/>
  <title value="Trusted person confirmation by a healthcare worker ($confirm)"/>
  <status value="active"/>
  <kind value="operation"/>
  <experimental value="false"/>
  <date value="2026-09-04T09:27:54+00:00"/>
  <publisher value="TEHIK"/>
  <contact>
    <name value="TEHIK"/>
    <telecom>
      <system value="url"/>
      <value value="https://tehik.ee"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="abi@tehik.ee"/>
    </telecom>
  </contact>
  <description value="UC-AHD-058: a healthcare worker adds and confirms a trusted person who signed on paper during the appointment. Input is a collection Bundle with the RelatedPerson and the paper-signing Provenance."/>
  <affectsState value="true"/>
  <code value="confirm"/>
  <resource value="RelatedPerson"/>
  <system value="false"/>
  <type value="true"/>
  <instance value="false"/>
  <parameter>
    <name value="bundle"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Collection Bundle with the RelatedPerson and the paper-signing Provenance."/>
    <type value="Bundle"/>
  </parameter>
  <parameter>
    <name value="relatedPerson"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Reference to the stored trusted person version."/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="provenance"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Reference to the stored signing Provenance."/>
    <type value="Reference"/>
  </parameter>
</OperationDefinition>