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

<Appointment xmlns="http://hl7.org/fhir">
  <meta>
    <source value="https://standards.digital.health.nz/ns/hpi-facility-id/F12345"/>
    <profile value="https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/DHOutpatientAppointment"/>
    <tag>
      <system value="https://hub.services.digital.health.nz/ns/correlation-id"/>
      <code value="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"/>
    </tag>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Appointment DHOutpatientClinicAppointmentExample</b></p><a name="DHOutpatientClinicAppointmentExample"> </a><a name="hcDHOutpatientClinicAppointmentExample"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Information Source: <a href="https://standards.digital.health.nz/ns/hpi-facility-id/F12345">https://standards.digital.health.nz/ns/hpi-facility-id/F12345</a></p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-DHOutpatientAppointment.html">Dunedin Hospital Outpatient Appointment Profile</a></p><p style="margin-bottom: 0px">Tag: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (Details: correlation-id code xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)</p></div><p><b>identifier</b>: #fbdb8d66-1390-22c7-89a6-a9a75d65d3e6</p><p><b>status</b>: Booked</p><p><b>serviceCategory</b>: <span title="Codes:{http://nzhts.digital.health.nz/fhir/CodeSystem/nc-health-specialty-codes S45}">Orthopaedic Surgery</span></p><p><b>serviceType</b>: <span title="Codes:">Fracture Clinic</span></p><p><b>description</b>: DH Fracture Consultant</p><p><b>start</b>: 2025-09-03 02:30:35+0000</p><p><b>end</b>: 2025-09-03 03:30:35+0000</p><p><b>slot</b>: <a href="#hcDHOutpatientClinicAppointmentExample/AppointmentSlot">Slot: status = busy; start = 2025-09-03 02:30:35+0000; end = 2025-09-03 03:30:35+0000</a></p><p><b>patientInstruction</b>: Bring all medications you are currently taking on your admission to hospital.</p><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href="Patient-CareyCarrington.html">Carey Carrington</a></p><p><b>required</b>: Required</p><p><b>status</b>: Needs Action</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType ATND}">attender</span></p><p><b>actor</b>: Dr Dotty McStuffins (Identifier: <a href="http://fhir.org.nz/ig/base/NamingSystem-hpiProvider.html" title="HPI providers">HPIProvider</a>/99ZZZX (use: official, ))</p><p><b>required</b>: Required</p><p><b>status</b>: Accepted</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType CON}">consultant</span></p><p><b>actor</b>: Dr Dotty McStuffins (Identifier: <a href="http://fhir.org.nz/ig/base/NamingSystem-hpiProvider.html" title="HPI providers">HPIProvider</a>/99ZZZX (use: official, ))</p><p><b>required</b>: Required</p><p><b>status</b>: Accepted</p></blockquote><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href="#hcDHOutpatientClinicAppointmentExample/DHOClinicLocation">Location Dunedin Hospital Outpatients, Clinic K01</a></p><p><b>required</b>: Required</p><p><b>status</b>: Accepted</p></blockquote><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Location #DHOClinicLocation</b></p><a name="DHOutpatientClinicAppointmentExample/DHOClinicLocation"> </a><a name="hcDHOutpatientClinicAppointmentExample/DHOClinicLocation"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="http://fhir.org.nz/ig/base/StructureDefinition-NzLocation.html">Location resource for use in NZ</a></p></div><p><b>identifier</b>: 4211-K01</p><p><b>name</b>: Dunedin Hospital Outpatients, Clinic K01</p><p><b>partOf</b>: Dunedin Hospital (Identifier: <a href="http://fhir.org.nz/ig/base/NamingSystem-hpiFacility.html" title="HPI facilities">HPIFacility</a>/4211)</p></blockquote><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Slot #AppointmentSlot</b></p><a name="DHOutpatientClinicAppointmentExample/AppointmentSlot"> </a><a name="hcDHOutpatientClinicAppointmentExample/AppointmentSlot"> </a><p><b>schedule</b>: <a href="#hcDHOutpatientClinicAppointmentExample/ClinicSchedule">Schedule: identifier = SOFRACONDHZ01</a></p><p><b>status</b>: Busy</p><p><b>start</b>: 2025-09-03 02:30:35+0000</p><p><b>end</b>: 2025-09-03 03:30:35+0000</p></blockquote><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Schedule #ClinicSchedule</b></p><a name="DHOutpatientClinicAppointmentExample/ClinicSchedule"> </a><a name="hcDHOutpatientClinicAppointmentExample/ClinicSchedule"> </a><p><b>identifier</b>: SOFRACONDHZ01</p><p><b>active</b>: true</p><p><b>actor</b>: Dr Dotty McStuffins (Identifier: <a href="http://fhir.org.nz/ig/base/NamingSystem-hpiProvider.html" title="HPI providers">HPIProvider</a>/99ZZZX (use: official, ))</p></blockquote></div>
  </text>
  <contained>
    <Location>
      <id value="DHOClinicLocation"/>
      <meta>
        <profile value="http://hl7.org.nz/fhir/StructureDefinition/NzLocation"/>
      </meta>
      <identifier>
        <value value="4211-K01"/>
      </identifier>
      <name value="Dunedin Hospital Outpatients, Clinic K01"/>
      <partOf>
        <type value="Location"/>
        <identifier>
          <system value="https://standards.digital.health.nz/ns/hpi-facility-id"/>
          <value value="4211"/>
        </identifier>
        <display value="Dunedin Hospital"/>
      </partOf>
    </Location>
  </contained>
  <contained>
    <Slot>
      <id value="AppointmentSlot"/>
      <schedule>
        <reference value="#ClinicSchedule"/>
      </schedule>
      <status value="busy"/>
      <start value="2025-09-03T02:30:35Z"/>
      <end value="2025-09-03T03:30:35Z"/>
    </Slot>
  </contained>
  <contained>
    <Schedule>
      <id value="ClinicSchedule"/>
      <identifier>
        <value value="SOFRACONDHZ01"/>
      </identifier>
      <active value="true"/>
      <actor>
        <identifier>
          <use value="official"/>
          <system value="https://standards.digital.health.nz/ns/hpi-person-id"/>
          <value value="99ZZZX"/>
        </identifier>
        <display value="Dr Dotty McStuffins"/>
      </actor>
    </Schedule>
  </contained>
  <identifier>
    <value value="#fbdb8d66-1390-22c7-89a6-a9a75d65d3e6"/>
  </identifier>
  <status value="booked"/>
  <serviceCategory>
    <coding>
      <system value="http://nzhts.digital.health.nz/fhir/CodeSystem/nc-health-specialty-codes"/>
      <code value="S45"/>
      <display value="Orthopaedic Surgery"/>
    </coding>
  </serviceCategory>
  <serviceType>
    <coding>
      <code value="S45B"/>
      <display value="Fracture Clinic"/>
    </coding>
  </serviceType>
  <description value="DH Fracture Consultant"/>
  <start value="2025-09-03T02:30:35Z"/>
  <end value="2025-09-03T03:30:35Z"/>
  <slot>
    <reference value="#AppointmentSlot"/>
  </slot>
  <patientInstruction value="Bring all medications you are currently taking on your admission to hospital."/>
  <participant>
    <actor>
      <reference value="Patient/CareyCarrington"/>
      <display value="Carey Carrington"/>
    </actor>
    <required value="required"/>
    <status value="needs-action"/>
  </participant>
  <participant>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
        <code value="ATND"/>
        <display value="attender"/>
      </coding>
    </type>
    <actor>
      <identifier>
        <use value="official"/>
        <system value="https://standards.digital.health.nz/ns/hpi-person-id"/>
        <value value="99ZZZX"/>
      </identifier>
      <display value="Dr Dotty McStuffins"/>
    </actor>
    <required value="required"/>
    <status value="accepted"/>
  </participant>
  <participant>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
        <code value="CON"/>
        <display value="consultant"/>
      </coding>
    </type>
    <actor>
      <identifier>
        <use value="official"/>
        <system value="https://standards.digital.health.nz/ns/hpi-person-id"/>
        <value value="99ZZZX"/>
      </identifier>
      <display value="Dr Dotty McStuffins"/>
    </actor>
    <required value="required"/>
    <status value="accepted"/>
  </participant>
  <participant>
    <actor>
      <reference value="#DHOClinicLocation"/>
    </actor>
    <required value="required"/>
    <status value="accepted"/>
  </participant>
</Appointment>