<Bundle xmlns="http://hl7.org/fhir">
  <id value="fdaad443-c117-436a-8665-77943dcb3e89" />
  <meta>
    <profile value="http://ehealthontario.ca/fhir/StructureDefinition/eReferralBundle|1.0.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:bb532b33-eaf5-4c5e-b8f4-11b96b44fcc3" />
    <resource>
      <MessageHeader>
        <id value="bb532b33-eaf5-4c5e-b8f4-11b96b44fcc3" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-MessageHeader|1.0.1" />
        </meta>
        <extension url="http://ehealthontario.ca/fhir/StructureDefinition/ext-routing-options">
          <valueCodeableConcept>
            <coding>
              <system value="http://ehealthontario.ca/fhir/CodeSystem/ereferral-source-types" />
              <code value="DR" />
              <display value="Referral Source Type - Primary Care Provider" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <eventCoding>
          <system value="https://ehealthontario.ca/fhir/CodeSystem/message-event-code" />
          <code value="send-communication-from-requester" />
        </eventCoding>
        <destination>
          <name value="RMS Target" />
          <endpoint value="http://rmstarget.org/fhir/$process-message" />
        </destination>
        <author>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
          <display value="Dr. Elizabeth Virtue" />
        </author>
        <source>
          <endpoint value="http://rmssource.org/fhir/$process-message" />
        </source>
        <focus>
          <reference value="urn:uuid:a768de33-87b6-4e5f-b22f-fcf87178fb60" />
        </focus>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:a768de33-87b6-4e5f-b22f-fcf87178fb60" />
    <resource>
      <Communication>
        <id value="a768de33-87b6-4e5f-b22f-fcf87178fb60" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Communication|1.0.0" />
        </meta>
        <basedOn>
          <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
        </basedOn>
        <inResponseTo>
          <reference value="urn:uuid:bfa40e96-cf3a-40b8-8a60-5fcfc3ea8e03" />
        </inResponseTo>
        <status value="completed" />
        <category>
          <coding>
            <system value="https://ehealthontario.ca/fhir/CodeSystem/communication-category" />
            <code value="gen" />
            <display value="General Communication" />
          </coding>
          <text value="General Communication" />
        </category>
        <subject>
          <identifier>
            <system value="http://first-patient-system-uri.ca" />
            <value value="1445589654" />
          </identifier>
        </subject>
        <sent value="2024-10-26T00:00:00Z" />
        <sender>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
        </sender>
        <payload>
          <contentString value="An updated Referral that includes the requested clinical information will be sent shortly." />
        </payload>
      </Communication>
    </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.0.1" />
        </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:5c8926df-537c-4a71-b183-e30d15b05312" />
          <identifier>
            <system value="http://healthcareservice-system-uri.ca" />
            <value value="service-id" />
          </identifier>
        </performer>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:bfa40e96-cf3a-40b8-8a60-5fcfc3ea8e03" />
    <resource>
      <Communication>
        <id value="bfa40e96-cf3a-40b8-8a60-5fcfc3ea8e03" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Communication|1.0.0" />
        </meta>
        <basedOn>
          <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
        </basedOn>
        <status value="completed" />
        <category>
          <coding>
            <system value="https://ehealthontario.ca/fhir/CodeSystem/communication-category" />
            <code value="rfi" />
            <display value="Request for Information" />
          </coding>
          <text value="Request for Information" />
        </category>
        <subject>
          <identifier>
            <system value="http://first-patient-system-uri.ca" />
            <value value="1445589654" />
          </identifier>
        </subject>
        <sent value="2024-10-26T00:00:00Z" />
        <sender>
          <reference value="urn:uuid:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
        </sender>
        <payload>
          <contentString value="Please share a copy of the referral form or patient summary to fully assist in the clinical triage of this case." />
        </payload>
      </Communication>
    </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.0.1" />
        </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" />
              <display value="Jurisdictional Health Number" />
            </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" />
              <display value="Medical record number" />
            </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: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.0.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.0.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.0.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.0.1" />
        </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>
  <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.0.0" />
        </meta>
        <active value="true" />
        <practitioner>
          <reference value="urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6" />
        </practitioner>
        <organization>
          <reference value="urn:uuid:f3315d20-22c4-4d02-a2f5-62a6c11a1ef0" />
        </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.0.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" />
            </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:f3315d20-22c4-4d02-a2f5-62a6c11a1ef0" />
    <resource>
      <Organization>
        <id value="f3315d20-22c4-4d02-a2f5-62a6c11a1ef0" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization|1.0.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="2" />
        </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.0.1" />
        </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:5c8926df-537c-4a71-b183-e30d15b05312" />
    <resource>
      <HealthcareService>
        <id value="5c8926df-537c-4a71-b183-e30d15b05312" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-HealthcareService|1.0.1" />
        </meta>
        <identifier>
          <system value="http://healthcareservice-system-uri.ca" />
          <value value="service-id" />
        </identifier>
        <active value="true" />
        <type>
          <text value="CT" />
        </type>
        <name value="Diagnostic Imaging Clinic" />
      </HealthcareService>
    </resource>
  </entry>
</Bundle>