<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="alpha-appointment-cancel" />
  <text>
    <status value="additional" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>Cancel an Appointment</h2>
      <p>This operation allows a client to cancel an Appointment or Appointment [request]. </p>
      <h2>Operation functionality in terms of FHIR</h2>
      <p>
        Sets the status of the appointment to 'cancelled' and the status of its associated Slot(s) to 'free'.  
      </p>
    </div>
  </text>
  <url value="http://hl7.alp/OperationDefinition/alpha-appointment-cancel" />
  <version value="1.0.0" />
  <name value="Appointment Cancel" />
  <status value="active" />
  <kind value="operation" />
  <publisher value="Alpha NHIT Centre" />
  <contact>
    <name value="Alpha NHIT Centre" />
    <telecom>
      <system value="email" />
      <value value="info@nhitcentre.alp" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This operation allows a client to to cancel an Appointment or Appointment [request]. " />
  <code value="cancel" />
  <comment value="The operation updates the instance of the Appointment resource." />
  <resource value="Appointment" />
  <system value="false" />
  <type value="false" />
  <instance value="true" />
  <parameter>
    <name value="appointment" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="The appointment which should be cancelled." />
    <type value="Appointment" />
  </parameter>
  <parameter>
    <name value="return" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="A cancelled [Appointment] resource (in case of success)." />
    <type value="Appointment" />
  </parameter>
</OperationDefinition>