<Bundle xmlns="http://hl7.org/fhir">
  <id value="ExampleDocumentBundle" />
  <meta>
    <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-bundle-document" />
  </meta>
  <identifier>
    <system value="urn:oid:2.16.124.10.101.1.70.1" />
    <value value="BUNDLE123" />
  </identifier>
  <type value="document" />
  <timestamp value="2025-01-05T13:00:00Z" />
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Composition/707e07be-03f8-40c9-851a-94d6a3aac211" />
    <resource>
      <Composition>
        <id value="707e07be-03f8-40c9-851a-94d6a3aac211" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-composition-document" />
        </meta>
        <extension url="http://ontariohealth.ca/fhir/ehr/StructureDefinition/ext-recipient">
          <valueReference>
            <identifier>
              <system value="urn:oid:2.16.124.10.101.1.70.1" />
              <value value="DR98765" />
            </identifier>
          </valueReference>
        </extension>
        <identifier>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="ABC123" />
        </identifier>
        <status value="final" />
        <type>
          <coding>
            <system value="http://loinc.org" />
            <code value="11488-4" />
            <display value="Consult note" />
          </coding>
        </type>
        <category>
          <coding>
            <system value="http://loinc.org" />
            <code value="LP183503-4" />
            <display value="Case report" />
          </coding>
        </category>
        <subject>
          <reference value="Patient/4b22675f-0747-4152-842a-a6ce87451083" />
        </subject>
        <encounter>
          <reference value="Encounter/7e1075b0-9c31-4e07-8aa7-ab0effa6b06e" />
        </encounter>
        <date value="2025-01-05T13:00:00Z" />
        <author>
          <reference value="PractitionerRole/655e68f6-bbf2-4e65-828b-affbcbe9d116" />
        </author>
        <title value="Consultation Note" />
        <custodian>
          <reference value="Organization/bd5648e0-3e5c-4414-95a9-fbdad630eddf" />
        </custodian>
        <event>
          <period>
            <start value="2025-01-05T13:00:00Z" />
            <end value="2025-01-05T14:00:00Z" />
          </period>
          <detail>
            <reference value="ServiceRequest/fafcbc3a-5202-4439-bed0-c1efa1829d07" />
          </detail>
        </event>
        <section id="1">
          <code>
            <coding>
              <system value="http://loinc.org" />
              <code value="51847-2" />
              <display value="Evaluation + Plan note" />
            </coding>
          </code>
          <text>
            <status value="additional" />
            <div xmlns="http://www.w3.org/1999/xhtml">The full textual content of the report</div>
          </text>
          <entry>
            <reference value="Binary/3a22204d-d91e-4f24-8df2-b76114156828" />
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Patient/4b22675f-0747-4152-842a-a6ce87451083" />
    <resource>
      <Patient>
        <id value="4b22675f-0747-4152-842a-a6ce87451083" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-patient" />
        </meta>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MR" />
            </coding>
          </type>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="12345" />
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="JHN" />
            </coding>
          </type>
          <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" />
          <value value="1234567890" />
        </identifier>
        <name>
          <family value="Smith" />
          <given value="John" />
        </name>
        <telecom>
          <system value="phone" />
          <value value="555-555-1234" />
          <use value="mobile" />
        </telecom>
        <gender value="male" />
        <birthDate value="1990-01-01" />
        <address>
          <line value="123 Main St" />
          <city value="Toronto" />
          <state value="ON" />
          <postalCode value="M5V 1A1" />
          <country value="CA" />
        </address>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Encounter/7e1075b0-9c31-4e07-8aa7-ab0effa6b06e" />
    <resource>
      <Encounter>
        <id value="7e1075b0-9c31-4e07-8aa7-ab0effa6b06e" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-encounter" />
        </meta>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="VN" />
              <display value="Visit number" />
            </coding>
          </type>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="VISIT123" />
        </identifier>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
          <display value="ambulatory" />
        </class>
        <type>
          <coding>
            <system value="http://cihi.ca/fhir/CodeSystem/aac-admit-category" />
            <code value="L" />
            <display value="Scheduled/elective" />
          </coding>
        </type>
        <subject>
          <reference value="Patient/4b22675f-0747-4152-842a-a6ce87451083" />
        </subject>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="ATND" />
              <display value="attender" />
            </coding>
          </type>
          <individual>
            <reference value="Practitioner/3e9c03cd-2048-4a9c-ab6c-5d02e079119d" />
          </individual>
        </participant>
        <period>
          <start value="2025-01-05T13:00:00Z" />
          <end value="2025-01-05T14:00:00Z" />
        </period>
        <diagnosis>
          <condition>
            <reference value="Condition/a9877e33-7a06-41d9-8b63-30f405a737de" />
          </condition>
        </diagnosis>
        <location>
          <location>
            <reference value="Location/c511eeb0-16af-4bc6-9e90-f13133eed393" />
          </location>
          <status value="completed" />
          <physicalType>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/location-physical-type" />
              <code value="si" />
              <display value="Site" />
            </coding>
          </physicalType>
        </location>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Condition/a9877e33-7a06-41d9-8b63-30f405a737de" />
    <resource>
      <Condition>
        <id value="a9877e33-7a06-41d9-8b63-30f405a737de" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-condition" />
        </meta>
        <code>
          <coding>
            <system value="http://hl7.org/fhir/sid/icd-10-ca" />
            <code value="J45.901" />
            <display value="Asthma" />
          </coding>
        </code>
        <subject>
          <reference value="Patient/4b22675f-0747-4152-842a-a6ce87451083" />
        </subject>
      </Condition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Location/c511eeb0-16af-4bc6-9e90-f13133eed393" />
    <resource>
      <Location>
        <id value="c511eeb0-16af-4bc6-9e90-f13133eed393" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-location" />
        </meta>
        <identifier>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="CLINIC1" />
        </identifier>
        <name value="Main Clinic" />
        <managingOrganization>
          <reference value="Organization/bd5648e0-3e5c-4414-95a9-fbdad630eddf" />
        </managingOrganization>
      </Location>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Organization/bd5648e0-3e5c-4414-95a9-fbdad630eddf" />
    <resource>
      <Organization>
        <id value="bd5648e0-3e5c-4414-95a9-fbdad630eddf" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-organization" />
        </meta>
        <identifier>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="ORG123" />
        </identifier>
        <name value="Example Hospital" />
        <telecom>
          <system value="phone" />
          <value value="555-555-5555" />
        </telecom>
        <address>
          <line value="456 Hospital Ave" />
          <city value="Toronto" />
          <state value="ON" />
          <postalCode value="M5V 1B1" />
          <country value="CA" />
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Practitioner/3e9c03cd-2048-4a9c-ab6c-5d02e079119d" />
    <resource>
      <Practitioner>
        <id value="3e9c03cd-2048-4a9c-ab6c-5d02e079119d" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitioner" />
        </meta>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MD" />
              <display value="Medical License number" />
            </coding>
          </type>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="DR123" />
        </identifier>
        <name>
          <family value="Jones" />
          <given value="Robert" />
          <prefix value="Dr" />
        </name>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/PractitionerRole/655e68f6-bbf2-4e65-828b-affbcbe9d116" />
    <resource>
      <PractitionerRole>
        <id value="655e68f6-bbf2-4e65-828b-affbcbe9d116" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitionerRole" />
        </meta>
        <practitioner>
          <reference value="Practitioner/3e9c03cd-2048-4a9c-ab6c-5d02e079119d" />
        </practitioner>
        <organization>
          <reference value="Organization/bd5648e0-3e5c-4414-95a9-fbdad630eddf" />
        </organization>
        <location>
          <reference value="Location/c511eeb0-16af-4bc6-9e90-f13133eed393" />
        </location>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/ServiceRequest/fafcbc3a-5202-4439-bed0-c1efa1829d07" />
    <resource>
      <ServiceRequest>
        <id value="fafcbc3a-5202-4439-bed0-c1efa1829d07" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-serviceRequest" />
        </meta>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="PLAC" />
              <display value="Placer Identifier" />
            </coding>
          </type>
          <system value="urn:oid:2.16.124.10.101.1.70.1" />
          <value value="PLAC01234" />
        </identifier>
        <status value="completed" />
        <intent value="filler-order" />
        <subject>
          <reference value="Patient/4b22675f-0747-4152-842a-a6ce87451083" />
        </subject>
        <requester>
          <reference value="PractitionerRole/655e68f6-bbf2-4e65-828b-affbcbe9d116" />
        </requester>
        <reasonReference>
          <reference value="Condition/a9877e33-7a06-41d9-8b63-30f405a737de" />
        </reasonReference>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://ontariohealth.ca/fhir/Binary/3a22204d-d91e-4f24-8df2-b76114156828" />
    <resource>
      <Binary>
        <id value="3a22204d-d91e-4f24-8df2-b76114156828" />
        <meta>
          <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-binary" />
        </meta>
        <contentType value="application/pdf" />
        <data>
          <extension url="http://ontariohealth.ca/fhir/ehr/StructureDefinition/ext-attachment-metadata">
            <extension url="fileId">
              <valueString value="D4A0E158-FC1A-41C2-A0C7-66EF6A8A9695" />
            </extension>
            <extension url="downloadURL">
              <valueUrl value="http://api.ontariohealth.ca/hubapidocuments/documents/ocre/qRIDIhDHekme_UpJMhzFhAPDxe1Zd7r1yZnAMzUr3sdAnUCdWIpdTH8-3EeG9YXrotqp2QvdpRkGb_rJ-ySaQ" />
            </extension>
            <extension url="jwtToken">
              <valueString value="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30" />
            </extension>
          </extension>
        </data>
      </Binary>
    </resource>
  </entry>
</Bundle>