<Bundle xmlns="http://hl7.org/fhir">
  <id value="3a9f7c4e-2d1b-4e8f-9c6a-7b3e2f1d8a9c" />
  <meta>
    <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Bundle" />
  </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-MessageHeader" />
        </meta>
        <eventCoding>
          <system value="https://ehealthontario.ca/fhir/CodeSystem/message-event-code" />
          <code value="notify-add-service-record" />
        </eventCoding>
        <destination>
          <name value="RMS Target 2" />
          <endpoint value="http://rmstarget2.org/fhir/$process-message" />
        </destination>
        <author>
          <reference value="urn:uuid:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
        </author>
        <source>
          <endpoint value="http://rmssource2.org/fhir/$process-message" />
        </source>
        <focus>
          <reference value="urn:uuid:476d67dc-c2f8-4cb8-bce5-cf5c391234e1" />
        </focus>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:476d67dc-c2f8-4cb8-bce5-cf5c391234e1" />
    <resource>
      <ServiceRequest>
        <id value="476d67dc-c2f8-4cb8-bce5-cf5c391234e1" />
        <meta>
          <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest" />
        </meta>
        <identifier>
          <use value="official" />
          <system value="http://www.rmssource2.org/identifiers/ServiceRequest" />
          <value value="1pXCH7vWFaJG" />
        </identifier>
        <basedOn>
          <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033748" />
          <type value="ServiceRequest" />
        </basedOn>
        <status value="active" />
        <intent value="proposal" />
        <category>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="113091000" />
            <display value="Magnetic resonance imaging (procedure)" />
          </coding>
        </category>
        <priority value="routine" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="241601008" />
            <display value="Magnetic resonance imaging 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:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
        </requester>
        <performer>
          <reference value="urn:uuid:4f03e272-a2e9-43f6-99ff-e61a9bcc9f02" />
        </performer>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033748" />
    <resource>
      <ServiceRequest>
        <id value="ead2a7f7-b102-4a00-96de-d02042033748" />
        <meta>
          <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest" />
        </meta>
        <identifier>
          <use value="official" />
          <system value="http://www.rmssource2.org/identifiers/ServiceRequest" />
          <value value="7pXvJ1CHaFGW" />
        </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:7aaefa90-f5c9-45fd-8358-327b16c005d0" />
        </requester>
        <performer>
          <reference value="urn:uuid:4f03e272-a2e9-43f6-99ff-e61a9bcc9f02" />
        </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient" />
        </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://ehealthontario.ca/fhir/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>
      </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole" />
        </meta>
        <identifier>
          <use value="official" />
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="RRI" />
              <display value="Regional Registry ID" />
            </coding>
          </type>
          <system value="http://ehealthontario.ca/fhir/NamingSystem/id-ppr-epid" />
          <value value="7885" />
        </identifier>
        <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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner" />
        </meta>
        <identifier>
          <system value="http://performer-system-uri.ca" />
          <value value="188" />
        </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Organization" />
        </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" />
        <telecom>
          <system value="phone" />
          <value value="555-555-1212" />
          <use value="work" />
        </telecom>
      </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Location" />
        </meta>
        <identifier>
          <system value="http://performer-system-uri.ca" />
          <value value="loc-id" />
        </identifier>
        <status value="active" />
        <name value="Maple Hospital" />
        <description value="Description of location can go here" />
        <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:4f03e272-a2e9-43f6-99ff-e61a9bcc9f02" />
    <resource>
      <HealthcareService>
        <id value="4f03e272-a2e9-43f6-99ff-e61a9bcc9f02" />
        <meta>
          <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HealthcareService" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <h1>sample text</h1>
          </div>
        </text>
        <identifier>
          <system value="http://healthcareservice-system-uri.ca" />
          <value value="105" />
          <assigner>
            <display value="Diagnostic Imaging Provider" />
          </assigner>
        </identifier>
        <active value="true" />
        <type>
          <text value="MRI" />
        </type>
        <name value="Diagnostic Imaging Provider" />
        <comment value="Provides DI services to patients across Ontario." />
        <extraDetails value="X-ray is not offered at this clinic location." />
      </HealthcareService>
    </resource>
  </entry>
</Bundle>