<Bundle xmlns="http://hl7.org/fhir">
  <id value="8f7287b6-63d8-4717-828b-417a84f2f727" />
  <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-service-request" />
        </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. Abby Smith" />
        </author>
        <source>
          <endpoint value="http://rmssource.org/fhir/$process-message" />
        </source>
        <focus>
          <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
        </focus>
      </MessageHeader>
    </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: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:93584625-9dde-40b7-8313-9c00ac26cc93" />
    <resource>
      <DocumentReference>
        <id value="93584625-9dde-40b7-8313-9c00ac26cc93" />
        <meta>
          <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-DocumentReference|1.1.0" />
        </meta>
        <identifier>
          <system value="http://localhost:8080/svc/fhir/v1/NamingSystem/id-attachment-reference" />
          <value value="2440a55e-9c53-4925-8843-4ba670e1cb32" />
        </identifier>
        <status value="current" />
        <date value="2020-10-09T00:00:00+00:00" />
        <content>
          <attachment>
            <contentType value="application/pdf" />
            <url value="https://www.mcguffey.k12.pa.us/Downloads/Bingo%20Card.pdf" />
            <size value="11065" />
            <title value="Bingo%20Card.pdf" />
            <creation value="2020-09-09T00:00:00Z" />
          </attachment>
        </content>
        <context>
          <related>
            <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
          </related>
        </context>
      </DocumentReference>
    </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: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.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: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.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="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.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: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.1.0" />
        </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>