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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="DHOAppointmentBackfillCancel"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition DHOAppointmentBackfillCancel</b></p><a name="DHOAppointmentBackfillCancel"> </a><a name="hcDHOAppointmentBackfillCancel"> </a><p>URL: [base]/Appointment/$backfill-cancel</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>job</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td/><td><div><p>The job id $backfill returned</p>
</div></td></tr><tr><td>OUT</td><td>status</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td/><td><div><p>cancelling</p>
</div></td></tr></table></div>
  </text>
  <url value="https://fhir-ig.digital.health.nz/shared-care/OperationDefinition/DHOAppointmentBackfillCancel"/>
  <version value="0.4.7"/>
  <name value="DHOAppointmentBackfillCancel"/>
  <title value="Cancel an Appointment backfill"/>
  <status value="active"/>
  <kind value="operation"/>
  <date value="2026-10-13T01:26:02+00:00"/>
  <publisher value="Te Whatu Ora"/>
  <contact>
    <name value="Te Whatu Ora"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.tewhatuora.govt.nz/"/>
    </telecom>
  </contact>
  <contact>
    <name value="Te Whatu Ora Integration Team"/>
    <telecom>
      <system value="email"/>
      <value value="integration@tewhatuora.govt.nz"/>
      <use value="work"/>
    </telecom>
  </contact>
  <description value="Asks a running backfill to stop. It stops before its next page, so the current page's writes still complete, and&#xA;nothing already written is undone. Returns 202, or 409 for a job that has already finished."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="NZ"/>
      <display value="New Zealand"/>
    </coding>
  </jurisdiction>
  <affectsState value="true"/>
  <code value="backfill-cancel"/>
  <resource value="Appointment"/>
  <system value="false"/>
  <type value="true"/>
  <instance value="false"/>
  <parameter>
    <name value="job"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="The job id $backfill returned"/>
    <type value="string"/>
  </parameter>
  <parameter>
    <name value="status"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="cancelling"/>
    <type value="code"/>
  </parameter>
</OperationDefinition>