<Bundle xmlns="http://hl7.org/fhir">
  <id value="417b728f-6d63-8271-5f87-2b84a7f727b1" />
  <meta>
    <profile value="http://ehealthontario.ca/fhir/StructureDefinition/eReferralBundle|1.1.0" />
  </meta>
  <identifier>
    <system value="http://ex-erec-identifier-system.org" />
    <value value="4177b6d8-63f2-4717-814b-8288a84ff727" />
  </identifier>
  <type value="message" />
  <timestamp value="2024-10-24T00:00:00+00:00" />
  <entry>
    <fullUrl value="urn:uuid:926e2bbf-4bb3-4cfa-a14e-5e0fd0f7edf3" />
    <resource>
      <MessageHeader>
        <id value="926e2bbf-4bb3-4cfa-a14e-5e0fd0f7edf3" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-MessageHeader|1.1.0" />
        </meta>
        <eventCoding>
          <system value="https://ehealthontario.ca/fhir/CodeSystem/message-event-code" />
          <code value="notify-update-process-request" />
        </eventCoding>
        <destination>
          <name value="RMS Source" />
          <endpoint value="http://rmstarget.org/fhir/$process-message" />
        </destination>
        <author>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
          <display value="Dr. Abby Smith" />
        </author>
        <source>
          <endpoint value="http://rmssource.org/fhir/$process-message" />
        </source>
        <focus>
          <reference value="urn:uuid:4f1d3ed6-0d64-11ed-861d-0242ac120002" />
        </focus>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:4f1d3ed6-0d64-11ed-861d-0242ac120002" />
    <resource>
      <Task>
        <id value="4f1d3ed6-0d64-11ed-861d-0242ac120002" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Task|1.1.0" />
        </meta>
        <identifier>
          <system value="http://example-identifier-system-uri.ca" />
          <value value="serviceRequest-id" />
        </identifier>
        <basedOn>
          <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
        </basedOn>
        <status value="accepted" />
        <businessStatus>
          <coding>
            <system value="https://ehealthontario.ca/fhir/CodeSystem/task-business-status" />
            <code value="RI" />
            <display value="Ready for Intake" />
          </coding>
          <text value="Raedy for Intake" />
        </businessStatus>
        <intent value="proposal" />
        <code>
          <coding>
            <system value="https://ehealthontario.ca/fhir/CodeSystem/task-code" />
            <code value="process-request" />
          </coding>
          <text value="Process Request" />
        </code>
        <authoredOn value="2020-10-09T18:40:36Z" />
        <lastModified value="2020-10-09T18:40:36Z" />
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
    <resource>
      <ServiceRequest>
        <id value="ead2a7f7-b102-4a00-96de-d02042033749" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-ServiceRequest|1.1.0" />
        </meta>
        <identifier>
          <system value="http://example-identifier-system-uri.ca" />
          <value value="serviceRequest-id" />
        </identifier>
        <status value="active" />
        <intent value="proposal" />
        <category>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="77477000" />
            <display value="Computed tomography (procedure)" />
          </coding>
        </category>
        <priority value="routine" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="303653007" />
            <display value="Computed tomography of head (procedure)" />
          </coding>
        </code>
        <subject>
          <reference value="urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b" />
        </subject>
        <authoredOn value="2024-10-24" />
        <requester>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
          <display value="Dr. Abby Smith" />
        </requester>
        <performer>
          <reference value="urn:uuid:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
          <identifier>
            <system value="http://healthcareservice-system-uri.ca" />
            <value value="service-id" />
          </identifier>
        </performer>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b" />
    <resource>
      <Patient>
        <id value="4e826c7d-3709-484f-9ff0-ed1d13d8353b" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Patient|1.1.0" />
        </meta>
        <identifier>
          <extension url="http://ehealthontario.ca/fhir/StructureDefinition/ext-id-health-card-version-code">
            <valueString value="EX" />
          </extension>
          <use value="official" />
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="JHN" />
            </coding>
            <text value="Ontario, Canada Personal Health Number" />
          </type>
          <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" />
          <value value="1445589654" />
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MR" />
            </coding>
            <text value="The Hospital" />
          </type>
          <system value="http://ehealthontario.ca/fhir/NamingSystem/id-example1-uri" />
          <value value="ABC12345" />
        </identifier>
        <active value="true" />
        <name>
          <family value="Tanev" />
          <given value="John" />
        </name>
        <telecom>
          <system value="phone" />
          <value value="1 (111) 222 4444" />
          <rank value="1" />
        </telecom>
        <telecom>
          <system value="email" />
          <value value="johntanev@example.com" />
          <rank value="2" />
        </telecom>
        <gender value="male" />
        <birthDate value="1980-10-01" />
        <address>
          <use value="home" />
          <type value="physical" />
          <line value="123 Any Street" />
          <city value="Waterloo" />
          <state value="ON" />
          <postalCode value="N2L 3G1" />
        </address>
        <contact>
          <relationship>
            <coding>
              <system value="http://fhir.infoway-inforoute.ca/io/CA-eReC/CodeSystem/patient-contact-relationship" />
              <code value="EC" />
              <display value="Emergency Contact" />
            </coding>
            <text value="Emergency Contact" />
          </relationship>
          <name>
            <family value="McContact" />
            <given value="David" />
          </name>
          <telecom>
            <system value="phone" />
            <value value="(555) 555 1212" />
            <rank value="1" />
          </telecom>
          <address>
            <line value="50 Water St." />
            <city value="Waterloo" />
            <state value="ON" />
            <postalCode value="N2L 3G2" />
          </address>
        </contact>
        <communication>
          <language>
            <coding>
              <system value="urn:ietf:bcp:47" />
              <code value="en" />
              <display value="English" />
            </coding>
            <text value="english" />
          </language>
        </communication>
        <generalPractitioner>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
        </generalPractitioner>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
    <resource>
      <PractitionerRole>
        <id value="32f22305-2e70-4099-929c-5c0d5123168e" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole|1.1.0" />
        </meta>
        <active value="true" />
        <practitioner>
          <reference value="urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6" />
        </practitioner>
        <organization>
          <reference value="urn:uuid:cd6741d1-8f6e-47ac-b73b-dfc7b1d4ed9b" />
        </organization>
        <code>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/practitioner-role" />
            <code value="doctor" />
            <display value="Doctor" />
          </coding>
        </code>
        <specialty>
          <coding>
            <system value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension" />
            <code value="394802001" />
            <display value="General medicine" />
          </coding>
        </specialty>
        <location>
          <reference value="urn:uuid:8d32678f-ef77-4247-89e3-4fdf4bd16e10" />
        </location>
        <telecom>
          <system value="phone" />
          <value value="555-555-3447" />
          <use value="work" />
          <rank value="1" />
        </telecom>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6" />
    <resource>
      <Practitioner>
        <id value="1505ac3a-9774-49cd-890b-ed12dbb0d4d6" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner|1.1.0" />
        </meta>
        <identifier>
          <system value="http://first-provider-system-uri.ca" />
          <value value="practitioner-id" />
        </identifier>
        <name>
          <use value="official" />
          <text value="Abby Smith" />
          <family value="Smith" />
          <given value="Abby" />
        </name>
        <gender value="female" />
        <birthDate value="1979-02-26" />
        <qualification>
          <code>
            <coding>
              <system value="https://fhir.infoway-inforoute.ca/CodeSystem/scptype" />
              <code value="MD" />
              <display value="Medical Doctor" />
            </coding>
          </code>
        </qualification>
        <communication>
          <coding>
            <system value="urn:ietf:bcp:47" />
            <code value="en" />
            <display value="English" />
          </coding>
          <text value="English" />
        </communication>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:cd6741d1-8f6e-47ac-b73b-dfc7b1d4ed9b" />
    <resource>
      <Organization>
        <id value="cd6741d1-8f6e-47ac-b73b-dfc7b1d4ed9b" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization|1.1.0" />
        </meta>
        <active value="true" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/organization-type" />
            <code value="prov" />
            <display value="Healthcare Provider" />
          </coding>
        </type>
        <name value="Fictional Custodian Organization" />
        <telecom>
          <system value="phone" />
          <value value="(555) 987-1234" />
          <use value="work" />
          <rank value="1" />
        </telecom>
        <telecom>
          <system value="fax" />
          <value value="(555) 987-1234" />
          <use value="work" />
          <rank value="1" />
        </telecom>
        <address>
          <use value="work" />
          <type value="physical" />
          <line value="279 Yonge St" />
          <city value="Barrie" />
          <state value="ON" />
          <postalCode value="M5B 1N8" />
          <country value="CAN" />
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:8d32678f-ef77-4247-89e3-4fdf4bd16e10" />
    <resource>
      <Location>
        <id value="8d32678f-ef77-4247-89e3-4fdf4bd16e10" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location|1.1.0" />
        </meta>
        <identifier>
          <system value="http://third-system-uri.ca" />
          <value value="location-id" />
        </identifier>
        <status value="active" />
        <name value="Fictional Custodian Organization" />
        <telecom>
          <system value="phone" />
          <value value="555-555-3448" />
        </telecom>
        <address>
          <type value="physical" />
          <line value="279 Yonge St" />
          <city value="toronto" />
          <state value="ON" />
          <postalCode value="M5B 1N8" />
          <country value="CAN" />
        </address>
      </Location>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
    <resource>
      <PractitionerRole>
        <id value="7aaefa90-f5c9-45fd-8358-327b16c005d0" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole|1.1.0" />
        </meta>
        <active value="true" />
        <practitioner>
          <reference value="urn:uuid:3d10be50-522b-4dd2-b741-8c7396888cf5" />
        </practitioner>
        <organization>
          <reference value="urn:uuid:b8d7d68b-3f0e-4ba3-938b-67cc019ab589" />
        </organization>
        <code>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/practitioner-role" />
            <code value="doctor" />
            <display value="Doctor" />
          </coding>
          <text value="Doctor" />
        </code>
        <specialty>
          <coding>
            <system value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension" />
            <code value="394591006" />
            <display value="Neurology" />
          </coding>
          <text value="Neurology" />
        </specialty>
        <location>
          <reference value="urn:uuid:31294119-fcbc-48b2-9d8d-eb5fa27e6caf" />
        </location>
        <telecom>
          <system value="phone" />
          <value value="555-555-1212" />
          <use value="work" />
        </telecom>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:3d10be50-522b-4dd2-b741-8c7396888cf5" />
    <resource>
      <Practitioner>
        <id value="3d10be50-522b-4dd2-b741-8c7396888cf5" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner|1.1.0" />
        </meta>
        <identifier>
          <system value="http://performer-system-uri.ca" />
          <value value="performer-id" />
        </identifier>
        <name>
          <use value="official" />
          <text value="Elizabeth Virtue" />
          <family value="Virtue" />
          <given value="Elizabeth" />
        </name>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:b8d7d68b-3f0e-4ba3-938b-67cc019ab589" />
    <resource>
      <Organization>
        <id value="b8d7d68b-3f0e-4ba3-938b-67cc019ab589" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization|1.1.0" />
        </meta>
        <active value="true" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/organization-type" />
            <code value="prov" />
            <display value="Healthcare Provider" />
          </coding>
          <text value="Healthcare Provider" />
        </type>
        <name value="Fictional Provider Organization" />
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:31294119-fcbc-48b2-9d8d-eb5fa27e6caf" />
    <resource>
      <Location>
        <id value="31294119-fcbc-48b2-9d8d-eb5fa27e6caf" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location|1.1.0" />
        </meta>
        <identifier>
          <system value="http://performer-system-uri.ca" />
          <value value="loc-id" />
        </identifier>
        <status value="active" />
        <name value="Maple Hospital" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
            <code value="NEUR" />
            <display value="Neurology clinic" />
          </coding>
          <text value="Neurology clinic" />
        </type>
        <telecom>
          <system value="phone" />
          <value value="555-555-1212" />
        </telecom>
        <address>
          <text value="1000 Toronto St, Toronto, ON N1H 2P3, Canada" />
          <city value="Toronto" />
          <postalCode value="N1H 2P3" />
          <country value="CAN" />
        </address>
      </Location>
    </resource>
  </entry>
</Bundle>