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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="Reassign-patient-schedules"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition Reassign-patient-schedules</b></p><a name="Reassign-patient-schedules"> </a><a name="hcReassign-patient-schedules"> </a><p>URL: [base]/Patient/$reassign-schedules</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>NHI</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td><td/><td><div><p>The logical id to identify patient/consumer.</p>
</div></td></tr><tr><td>IN</td><td>reassignDate</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td><td/><td><div><p>The new onboarding date for the consumer</p>
</div></td></tr><tr><td>OUT</td><td>version</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td><td/><td><div><p>The consumer version following the update.</p>
</div></td></tr><tr><td>OUT</td><td>state</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td><td/><td><div><p>The consumer state.</p>
</div></td></tr><tr><td>OUT</td><td>subStatus</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td><td/><td><div><p>The consumer subStatus.</p>
</div></td></tr></table></div>
  </text>
  <url value="https://standards.digital.health.nz/fhir/air/OperationDefinition/reassign-patient-schedules"/>
  <version value="1.28.0-SNAPSHOT"/>
  <name value="reassign-patient-schedules"/>
  <title value="Reassign Patient Schedules"/>
  <status value="active"/>
  <kind value="operation"/>
  <experimental value="false"/>
  <date value="2026-08-04T03:40:16+00:00"/>
  <publisher value="Te Whatu Ora"/>
  <contact>
    <name value="Te Whatu Ora"/>
    <telecom>
      <system value="url"/>
      <value value="https://tewhatuora.govt.nz"/>
    </telecom>
  </contact>
  <description value="Reassign immunisation schedules for a patient.&#xA;&#xA;        Cancels the existing schedules and then creates a new set of schedules based on the new onboarding date. Input is the new onboarding date."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
      <display value="New Zealand"/>
    </coding>
  </jurisdiction>
  <affectsState value="false"/>
  <code value="reassign-schedules"/>
  <resource value="Patient"/>
  <system value="false"/>
  <type value="true"/>
  <instance value="false"/>
  <parameter>
    <name value="NHI"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="The logical id to identify patient/consumer."/>
    <type value="Patient"/>
  </parameter>
  <parameter>
    <name value="reassignDate"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="The new onboarding date for the consumer"/>
    <type value="Patient"/>
  </parameter>
  <parameter>
    <name value="version"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="The consumer version following the update."/>
    <type value="Patient"/>
  </parameter>
  <parameter>
    <name value="state"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="The consumer state."/>
    <type value="Patient"/>
  </parameter>
  <parameter>
    <name value="subStatus"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="The consumer subStatus."/>
    <type value="Patient"/>
  </parameter>
</OperationDefinition>