<Bundle xmlns="http://hl7.org/fhir">
  <id value="5ce06df5-e5e6-49a9-b0b7-09fb2af35c9b" />
  <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="add-service-request" />
        </eventCoding>
        <destination>
          <endpoint value="http://rmstarget.org/fhir/$process-message" />
        </destination>
        <author>
          <reference value="urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e" />
        </author>
        <source>
          <endpoint value="https://requester-system-uri" />
        </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest" />
        </meta>
        <identifier>
          <use value="official" />
          <system value="http://www.rmssource.org/identifiers/ServiceRequest" />
          <value value="7pXvJ1CHaFGW" />
        </identifier>
        <status value="active" />
        <intent value="proposal" />
        <category>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="3457005" />
            <display value="Patient referral" />
          </coding>
        </category>
        <category>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="394802001" />
            <display value="General medicine" />
          </coding>
        </category>
        <priority value="routine" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="394584008" />
            <display value="Gastroenterology" />
          </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" />
        </requester>
        <performer>
          <reference value="urn:uuid:4f03e272-a2e9-43f6-99ff-e61a9bcc9f02" />
        </performer>
        <reasonCode>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="84642008" />
            <display value="Chronic regurgitation (finding)" />
          </coding>
          <text value="Chronic regurgitation (finding)" />
        </reasonCode>
        <supportingInfo>
          <reference value="urn:uuid:10f1e449-5f01-4983-b6ab-8e6593e94971" />
          <type value="DocumentReference" />
        </supportingInfo>
        <note>
          <text value="Patient has a transportation risk factor that should be considered with booking" />
        </note>
      </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HCNV-code-EXT">
            <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>
        <name>
          <family value="Gray" />
          <given value="Clara" />
        </name>
        <telecom>
          <system value="phone" />
          <value value="555 555 5555" />
          <use value="home" />
        </telecom>
        <telecom>
          <system value="email" />
          <value value="ClaraGray@example.com" />
          <rank value="2" />
        </telecom>
        <gender value="female" />
        <birthDate value="1980-10-01" />
        <address>
          <use value="home" />
          <type value="physical" />
          <text value="1171 King St S, Waterloo, ON, N2J 1P9, CAN" />
          <line value="1171 King St S" />
          <city value="Waterloo" />
          <state value="ON" />
          <postalCode value="N2J 1P9" />
          <country value="CAN" />
        </address>
      </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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole" />
        </meta>
        <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://snomed.info/sct" />
            <code value="309343006" />
            <display value="Physician" />
          </coding>
        </code>
        <specialty>
          <coding>
            <system value="http://snomed.info/sct" />
            <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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner" />
        </meta>
        <identifier>
          <use value="official" />
          <type>
            <coding>
              <system value="http://first-provider-system-uri.ca" />
              <code value="LN" />
              <display value="License Number" />
            </coding>
          </type>
          <system value="http://infoway-inforoute.ca/fhir/NamingSystem/ca-on-license-physician" />
          <value value="1234" />
        </identifier>
        <identifier>
          <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-ohip-billing-id" />
          <value value="44444" />
        </identifier>
        <name>
          <use value="official" />
          <text value="Howard Allan" />
          <family value="Allan" />
          <given value="Howard" />
        </name>
      </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://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>
        </type>
        <name value="Fictional Custodian Organization" />
        <telecom>
          <system value="phone" />
          <value value="5555557777" />
          <use value="work" />
          <rank value="1" />
        </telecom>
        <telecom>
          <system value="fax" />
          <value value="5559871234" />
          <use value="work" />
          <rank value="2" />
        </telecom>
        <address>
          <use value="work" />
          <type value="physical" />
          <line value="500 Paisley St" />
          <city value="Guelph" />
          <state value="ON" />
          <postalCode value="N1H 2P3" />
          <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://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Location" />
        </meta>
        <identifier>
          <system value="http://third-system-uri.ca" />
          <value value="location-id" />
        </identifier>
        <status value="active" />
        <name value="Fictional Custodian Organization" />
        <description value="Description of location can go here" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
            <code value="PC" />
            <display value="Primary care clinic" />
          </coding>
          <text value="Primary care clinic" />
        </type>
        <telecom>
          <system value="phone" />
          <value value="555-555-1212" />
        </telecom>
        <address>
          <type value="physical" />
          <text value="500 Paisley St, Guelph, ON, N1H 2P3, CAN" />
          <line value="500 Paisley St" />
          <city value="Guelph" />
          <state value="ON" />
          <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" />
        </identifier>
        <active value="true" />
        <type>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="394584008" />
            <display value="Gastroenterology" />
          </coding>
          <text value="Gastroenterology" />
        </type>
        <name value="Gastroenterology Intake Centre" />
      </HealthcareService>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:10f1e449-5f01-4983-b6ab-8e6593e94971" />
    <resource>
      <DocumentReference>
        <id value="10f1e449-5f01-4983-b6ab-8e6593e94971" />
        <meta>
          <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-DocumentReference" />
        </meta>
        <masterIdentifier>
          <system value="urn:oid:2.16.840.1.113883.4.642" />
          <value value="202412140500" />
        </masterIdentifier>
        <identifier>
          <use value="official" />
          <system value="http://ontariohealth.ca/fhir/NamingSystem/pccg-document-id" />
          <value value="d16ff960-fe9f-4096-a69a-cb3e54c342e1" />
        </identifier>
        <status value="current" />
        <type>
          <coding>
            <system value="http://loinc.org" />
            <code value="60591-5" />
            <display value="Patient summary Document" />
          </coding>
          <text value="Patient summary Document" />
        </type>
        <subject>
          <reference value="urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b" />
          <type value="Patient" />
        </subject>
        <date value="2024-10-27T00:00:00+00:00" />
        <author>
          <reference value="urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6" />
          <type value="Practitioner" />
        </author>
        <content>
          <attachment>
            <url value="https://api-sandbox.awsstagingotn.ca/hubapidocuments/files/ulKSRR49ZYLVR95W8B-B67l-Pf8xqOVCWpl4cWZRlejlZ44wOMqaJ9HL2_XUpphwA39ADMhUhEqsV0DwEyjVYacpKI-IAbgdqRJ_p5CxBaKAOJ7H9O0y4PYI6ScIrOwllbvBDC1-jxsqmryxA6RQ7w?hubtoken=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCIsImxhYmVscyI6IntcbiAgXCJsYWJlbE5hbWVcIjogXCJBRDY3QjgwOVwiLFxuICBcImxhYmVsQ3JlYXRvclwiOiBcInBjY2dcIlxufSIsImV4cCI6MTc3NTA2MTY1MH0.Nys9n6PoBOXe63BwgaeQynCIK7L3q1BssBkyZ4MKucxvrA-cPSR4o3wwqecSu8trSOXnSqdpKEfnKxk_01KgsA" />
            <size value="244940" />
            <title value="aoe.pdf" />
            <creation value="2025-04-17T15:44:26Z" />
          </attachment>
        </content>
        <context>
          <related>
            <reference value="urn:uuid:ead2a7f7-b102-4a00-96de-d02042033749" />
            <type value="ServiceRequest" />
          </related>
        </context>
      </DocumentReference>
    </resource>
  </entry>
</Bundle>