<Bundle xmlns="http://hl7.org/fhir">
  <id value="9ec34754-6976-11ee-8c99-0242ac120002" />
  <meta>
    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Bundle|1.0.1" />
    <security>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason" />
      <code value="HTEST" />
    </security>
    <tag>
      <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-health-care-facility-id" />
      <code value="4999" />
    </tag>
  </meta>
  <identifier>
    <system value="http://clinicalsysystems.xyz.org/message-identifiers" />
    <value value="message-003" />
  </identifier>
  <type value="message" />
  <timestamp value="2023-03-11T14:30:00+01:00" />
  <entry>
    <fullUrl value="urn:uuid:efff2a5e-88ef-4545-8b58-57551ebf53f5" />
    <resource>
      <MessageHeader>
        <id value="efff2a5e-88ef-4545-8b58-57551ebf53f5" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-MessageHeader|1.0.1" />
        </meta>
        <eventCoding>
          <system value="http://ontariohealth.ca/fhir/CodeSystem/message-event-code" />
          <code value="case-cancelled" />
          <display value="An EventCode used by SERIS to submit Elective/Add-On Surgery case information when surgery is Cancelled" />
        </eventCoding>
        <source>
          <endpoint value="http://ohdomain.com/ehr/fhir" />
        </source>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:f9ec36d6-67f0-11ee-8c99-0242ac120002" />
    <resource>
      <Task>
        <id value="f9ec36d6-67f0-11ee-8c99-0242ac120002" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Task|1.0.1" />
        </meta>
        <basedOn>
          <reference value="urn:uuid:29bdbf9d-2417-4604-b8ca-930dfacd32be" />
        </basedOn>
        <basedOn>
          <reference value="urn:uuid:25fc7cad-b076-4090-a803-d53b2039e28d" />
        </basedOn>
        <status value="cancelled" />
        <businessStatus>
          <coding>
            <system value="http://ontariohealth.ca/fhir/CodeSystem/business-status" />
            <code value="cancelled" />
            <display value="Cancelled" />
          </coding>
        </businessStatus>
        <intent value="order" />
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:29bdbf9d-2417-4604-b8ca-930dfacd32be" />
    <resource>
      <Appointment>
        <id value="29bdbf9d-2417-4604-b8ca-930dfacd32be" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Appointment|1.0.1" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-cancellation-date">
          <valueDateTime value="2023-12-12T14:35:00Z" />
        </extension>
        <identifier>
          <system value="http://healthcare-clinic.xyz.com/appointment" />
          <value value="2-23-FJDFR-3E445789" />
        </identifier>
        <status value="cancelled" />
        <cancelationReason>
          <coding>
            <system value="http://ontariohealth.ca/fhir/CodeSystem/surgery-cancellation-reason" />
            <code value="bna" />
            <display value="Bed Not Available – No access to post-operative bed" />
          </coding>
          <text value="Cancelled per patient request" />
        </cancelationReason>
        <serviceCategory>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="310156009" />
            <display value="General surgical service" />
          </coding>
        </serviceCategory>
        <reasonReference>
          <reference value="urn:uuid:58a07d6e-ffca-46d7-9e5f-846058ef344c" />
        </reasonReference>
        <start value="2023-04-15T21:03:00+00:00" />
        <end value="2023-04-15T21:22:00+00:00" />
        <minutesDuration value="30" />
        <created value="2020-10-10" />
        <comment value="Notes (when this is initial scheduling of case)" />
        <participant>
          <actor>
            <reference value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
          </actor>
          <status value="accepted" />
        </participant>
        <participant>
          <actor>
            <identifier>
              <system value="https://enterprisehealth.com/location-identifiers" />
              <value value="4999" />
            </identifier>
          </actor>
          <status value="accepted" />
        </participant>
      </Appointment>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:334ec4c8-7932-4620-86fe-d6b33b3fc7e4" />
    <resource>
      <Observation>
        <id value="334ec4c8-7932-4620-86fe-d6b33b3fc7e4" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Observation|1.0.1" />
        </meta>
        <partOf>
          <reference value="urn:uuid:58a07d6e-ffca-46d7-9e5f-846058ef344c" />
        </partOf>
        <status value="cancelled" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="302132005" />
            <display value="American Society of Anaesthesiologists physical status class" />
          </coding>
        </code>
        <subject>
          <reference value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
        </subject>
        <valueCodeableConcept>
          <coding>
            <system value="http://ontariohealth.ca/fhir/CodeSystem/asa-physical-status" />
            <code value="ASA I" />
            <display value="A normal healthy patient" />
          </coding>
        </valueCodeableConcept>
      </Observation>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:58a07d6e-ffca-46d7-9e5f-846058ef344c" />
    <resource>
      <Procedure>
        <id value="58a07d6e-ffca-46d7-9e5f-846058ef344c" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Procedure|1.0.1" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-preadmissionscreening">
          <valueBoolean value="true" />
        </extension>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-surgicalchecklist">
          <valueBoolean value="true" />
        </extension>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-in-room">
          <valuePeriod>
            <start value="2023-04-15T20:50:00Z" />
            <end value="2023-04-15T21:30:00Z" />
          </valuePeriod>
        </extension>
        <status value="not-done" />
        <category>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="310156009" />
            <display value="General surgical service" />
          </coding>
        </category>
        <code>
          <coding>
            <system value="http://ontariohealth.ca/fhir/CodeSystem/WTIS-procedure-code" />
            <code value="W.GS.DCL" />
            <display value="General Surgery - Digestive System – Colorectal" />
          </coding>
          <text value="Procedure Description" />
        </code>
        <subject>
          <reference value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
        </subject>
        <performedPeriod>
          <start value="2023-04-15T21:03:00Z" />
          <end value="2023-04-15T21:22:00Z" />
        </performedPeriod>
        <performer>
          <actor>
            <reference value="urn:uuid:b0147d44-21cb-4d03-92d7-698844b8238e" />
          </actor>
        </performer>
        <location>
          <identifier>
            <system value="https://enterprisehealth.com/location-identifiers" />
            <value value="4999" />
          </identifier>
        </location>
        <complication>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="239160006" />
            <display value="Wound hematoma" />
          </coding>
        </complication>
        <note>
          <text value="Routine Appendectomy. Appendix was inflamed and in retro-caecal position" />
        </note>
      </Procedure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:f692eabf-95e7-4710-b002-7be658c8a0a7" />
    <resource>
      <MedicationAdministration>
        <id value="f692eabf-95e7-4710-b002-7be658c8a0a7" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-MedicationAdministration|1.0.1" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-anaesthesia-ready-time">
          <valueDateTime value="2023-04-15T21:00:00Z" />
        </extension>
        <partOf>
          <reference value="urn:uuid:58a07d6e-ffca-46d7-9e5f-846058ef344c" />
        </partOf>
        <status value="not-done" />
        <medicationCodeableConcept>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="386761002" />
          </coding>
        </medicationCodeableConcept>
        <subject>
          <reference value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
        </subject>
        <effectivePeriod>
          <start value="2023-04-15T20:55:00Z" />
          <end value="2023-04-15T21:25:00Z" />
        </effectivePeriod>
      </MedicationAdministration>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
    <resource>
      <Patient>
        <id value="5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Patient|1.0.1" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-race">
          <valueCodeableConcept>
            <coding>
              <system value="http://snomed.info/sct" />
              <code value="413581001" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/patient-genderIdentity">
          <valueCodeableConcept>
            <coding>
              <system value="http://snomed.info/sct" />
              <code value="33791000087105" />
              <display value="Identifies as nonbinary gender" />
            </coding>
            <text value="Non-Binary" />
          </valueCodeableConcept>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="JHN" />
            </coding>
          </type>
          <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" />
          <value value="1234567890" />
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MR" />
            </coding>
          </type>
          <system value="http://ontariohealth.ca/fhir/NamingSystem/id-example1-uri" />
          <value value="ABC12345" />
        </identifier>
        <name>
          <family value="Alcantara" />
          <given value="Xero" />
          <given value="D" />
        </name>
        <gender value="male" />
        <birthDate value="1972-11-12" />
        <address>
          <postalCode value="M8Y 2R3" />
        </address>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:b0147d44-21cb-4d03-92d7-698844b8238e" />
    <resource>
      <PractitionerRole>
        <id value="b0147d44-21cb-4d03-92d7-698844b8238e" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-practitionerrole|1.0.1" />
        </meta>
        <practitioner>
          <reference value="urn:uuid:c71f25a2-1dde-4191-a335-7a71105fada6" />
        </practitioner>
        <specialty>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="310161006" />
            <display value="Orthopedic service" />
          </coding>
        </specialty>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:25fc7cad-b076-4090-a803-d53b2039e28d" />
    <resource>
      <Encounter>
        <id value="25fc7cad-b076-4090-a803-d53b2039e28d" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Encounter|1.0.1" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-delay-reason">
          <valueCodeableConcept>
            <coding>
              <system value="http://ontariohealth.ca/fhir/CodeSystem/encounter-delay-reason" />
              <code value="coc" />
              <display value="Case Order Change" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-cancellation">
          <extension url="CancellationDate">
            <valueDateTime value="2023-12-11T14:35:00Z" />
          </extension>
          <extension url="CancellationReason">
            <valueCodeableConcept>
              <coding>
                <system value="http://ontariohealth.ca/fhir/CodeSystem/surgery-cancellation-reason" />
                <code value="sc-ec" />
                <display value="Schedule Change for Emergency Case" />
              </coding>
            </valueCodeableConcept>
          </extension>
        </extension>
        <status value="cancelled" />
        <class>
          <system value="http://ontariohealth.ca/fhir/CodeSystem/encounter-class" />
          <code value="sd" />
          <display value="Same Day Admit" />
        </class>
        <type>
          <coding>
            <system value="http://cihi.ca/fhir/CodeSystem/aac-admit-category" />
            <code value="U" />
            <display value="Urgent" />
          </coding>
        </type>
        <priority>
          <coding>
            <system value="http://ontariohealth.ca/fhir/CodeSystem/surgical-priority-classification" />
            <code value="P1A" />
            <display value="Access within 0-2 hours" />
          </coding>
        </priority>
        <subject>
          <reference value="urn:uuid:5350a3c4-109b-44db-a0b6-a59a28e0a19c" />
        </subject>
        <appointment>
          <reference value="urn:uuid:29bdbf9d-2417-4604-b8ca-930dfacd32be" />
        </appointment>
        <period>
          <start value="2023-11-12T09:27:00+10:00" />
        </period>
        <reasonReference>
          <reference value="urn:uuid:58a07d6e-ffca-46d7-9e5f-846058ef344c" />
        </reasonReference>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:c71f25a2-1dde-4191-a335-7a71105fada6" />
    <resource>
      <Practitioner>
        <id value="c71f25a2-1dde-4191-a335-7a71105fada6" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Practitioner|1.0.1" />
        </meta>
        <identifier>
          <system value="http://infoway-inforoute.ca/fhir/NamingSystem/ca-on-license-physician" />
          <value value="111789" />
        </identifier>
        <name>
          <text value="Akuada Kisu" />
          <family value="Kisu" />
          <given value="Akuada" />
        </name>
      </Practitioner>
    </resource>
  </entry>
</Bundle>