<Bundle xmlns="http://hl7.org/fhir">
    <id value="doc-bundle-example-001" />
    <meta>
        <lastUpdated value="2021-05-28T22:12:21Z" />
        <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-document-Bundle" />
    </meta>
    <identifier>
        <system value="urn:oid:2.16.840.1.113883.3.239.23.18.10" />
        <value value="27074671-3" />
    </identifier>
    <type value="document" />
    <timestamp value="2021-05-28T22:12:21Z" />
    <entry>
        <fullUrl value="urn:uuid:180f219f-97a8-486d-99d9-ed631fe4fc57" />
        <resource>
            <Composition>
                <id value="180f219f-97a8-486d-99d9-ed631fe4fc57" />
                <meta>
                    <lastUpdated value="2021-05-28T22:12:21Z" />
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Composition" />
                </meta>
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 180f219f-97a8-486d-99d9-ed631fe4fc57</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>type</b>: Discharge Summary from Responsible Clinician <span>(Details : {LOINC code '28655-9' = 'Physician attending Discharge summary)</span></p><p><b>encounter</b>: <a>[base]/Encounter/doc-example</a></p><p><b>date</b>: 01/02/2021 12:30:02 PM</p><p><b>author</b>: <a>Doctor Dave</a></p><p><b>title</b>: Discharge Summary</p><p><b>confidentiality</b>: N</p></div>
                </text>
                <identifier>
                    <system value="urn:oid:2.16.840.1.113883.3.239.23.10.102.8" />
                    <value value="123456" />
                </identifier>
                <status value="final" />
                <type>
                    <coding>
                        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type">
                            <valueCoding>
                                <system value="http://ontariohealth.ca/fhir/CodeSystem/accdr-document-code-type" />
                                <code value="local" />
                                <display value="Local code" />
                            </valueCoding>
                        </extension>
                        <system value="urn:oid:2.16.840.1.113883.3.239.23.10.102.8" />
                        <code value="5_" />
                        <display value="DISCHARGE SUMMARY" />
                    </coding>
                    <coding>
                        <extension url="http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type">
                            <valueCoding>
                                <system value="http://ontariohealth.ca/fhir/CodeSystem/accdr-document-code-type" />
                                <code value="provincial" />
                                <display value="Provincial code" />
                            </valueCoding>
                        </extension>
                        <system value="http://loinc.org" />
                        <code value="18842-5" />
                        <display value="Discharge Summary" />
                    </coding>
                </type>
                <subject>
                    <reference value="urn:uuid:efdbe1ce-1b5a-40bd-a6a1-68160ebb4c09" />
                    <display value="Eve Everywoman" />
                </subject>
                <encounter>
                    <reference value="urn:uuid:9d074a84-a021-4c9e-9ff6-02650dc7985a" />
                </encounter>
                <date value="2021-02-01T12:30:02Z" />
                <author>
                    <reference value="urn:uuid:618fdf59-4adb-457e-bdd7-45fbec1314fa" />
                </author>
                <title value="Discharge Summary" />
                <confidentiality value="N" />
                <custodian>
                    <reference value="urn:uuid:6dda4680-6412-4c1c-aaa9-c98e587661c9" />
                </custodian>
                <section>
                    <title value="Reason for admission" />
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <code value="29299-5" />
                            <display value="Reason for visit Narrative" />
                        </coding>
                    </code>
                    <text>
                        <status value="additional" />
                        <div xmlns="http://www.w3.org/1999/xhtml">

              <table>

                <thead>

                  <tr>

                    <td>Details</td>

                    <td/>

                  </tr>

                </thead>

                <tbody>

                  <tr>

                    <td>Acute Asthmatic attack. Was wheezing for days prior to admission.</td>

                    <td/>

                  </tr>

                </tbody>

              </table>

            </div>
                    </text>
                </section>
                <section>
                    <title value="Medications on Discharge" />
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <code value="10183-2" />
                            <display value="Hospital discharge medications Narrative" />
                        </coding>
                    </code>
                    <text>
                        <status value="additional" />
                        <div xmlns="http://www.w3.org/1999/xhtml">

  <p> Medication prescription: Ventolin Inhaler <br/> Instruction: Use two sprays twice daily <br/> Additional Instruction: Shake Well </p>        </div>
                    </text>
                </section>
                <section>
                    <title value="Known allergies" />
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <code value="48765-2" />
                            <display value="Allergies and adverse reactions Document" />
                        </coding>
                    </code>
                    <text>
                        <status value="additional" />
                        <div xmlns="http://www.w3.org/1999/xhtml">

              <table>

                <thead>

                  <tr>

                    <td>Allergen</td>

                    <td>Reaction</td>

                  </tr>

                </thead>

                <tbody>

                  <tr>

                    <td>Doxycycline</td>

                    <td>Hives</td>

                  </tr>

                </tbody>

              </table>

            </div>
                    </text>
                </section>
            </Composition>
        </resource>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:618fdf59-4adb-457e-bdd7-45fbec1314fa" />
        <resource>
            <PractitionerRole>
                <id value="618fdf59-4adb-457e-bdd7-45fbec1314fa" />
                <meta>
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-PractitionerRole" />
                </meta>
                <practitioner>
                    <reference value="urn:uuid:38acd262-088f-4290-8d81-1c42964949a6" />
                </practitioner>
                <organization>
                    <reference value="urn:uuid:6dda4680-6412-4c1c-aaa9-c98e587661c9" />
                </organization>
            </PractitionerRole>
        </resource>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:38acd262-088f-4290-8d81-1c42964949a6" />
        <resource>
            <Practitioner>
                <id value="example" />
                <meta>
                    <lastUpdated value="2013-05-05T16:13:03Z" />
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Practitioner" />
                </meta>
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml">

            <p>Dr Adam Careful</p>

          </div>
                </text>
                <identifier>
                    <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician" />
                    <value value="12345" />
                </identifier>
                <name>
                    <family value="Careful" />
                    <given value="Adam" />
                    <prefix value="Dr" />
                </name>
            </Practitioner>
        </resource>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:efdbe1ce-1b5a-40bd-a6a1-68160ebb4c09" />
        <resource>
            <Patient>
                <id value="testpatient" />
                <meta>
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient" />
                </meta>
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml">

            <h1>Eve Everywoman</h1>

          </div>
                </text>
                <identifier>
                    <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="6132001123" />
                </identifier>
                <identifier>
                    <type>
                        <coding>
                            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
                            <code value="MR" />
                        </coding>
                        <text value="Brantford General" />
                    </type>
                    <system value="http://ehealthontario.ca/fhir/NamingSystem/id-example1-uri" />
                    <value value="WSD00038991" />
                </identifier>
                <active value="true" />
                <name>
                    <text value="Eve Everywoman" />
                    <family value="Everywoman1" />
                    <given value="Eve" />
                </name>
                <telecom>
                    <system value="phone" />
                    <value value="555-555-2003" />
                    <use value="work" />
                </telecom>
                <gender value="female" />
                <birthDate value="1955-01-06" />
                <address>
                    <use value="home" />
                    <line value="2222 Home Street" />
                </address>
            </Patient>
        </resource>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:9d074a84-a021-4c9e-9ff6-02650dc7985a" />
        <resource>
            <Encounter>
                <id value="9d074a84-a021-4c9e-9ff6-02650dc7985a" />
                <meta>
                    <lastUpdated value="2013-05-05T16:13:03Z" />
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter" />
                </meta>
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml"> Urgent inpatient encounter for Acute Asthmatic attack. Patient was discharged home  </div>
                </text>
                <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.840.1.113883.3.239.23.42.121" />
                    <value value="S100" />
                </identifier>
                <status value="finished" />
                <class>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
                    <code value="IMP" />
                    <display value="inpatient encounter" />
                </class>
                <type>
                    <coding>
                        <system value="http://cihi.ca/fhir/CodeSystem/aac-admit-category" />
                        <code value="U" />
                        <display value="Urgent/emergent" />
                    </coding>
                </type>
                <subject>
                    <reference value="urn:uuid:efdbe1ce-1b5a-40bd-a6a1-68160ebb4c09" />
                </subject>
                <period>
                    <start value="2013-01-20T12:30:02Z" />
                    <end value="2013-02-01T12:30:02Z" />
                </period>
                <location>
                    <location>
                        <reference value="urn:uuid:924ba94d-9fdf-44a4-960d-22930bdf9c00" />
                        <display value="building 2, room 3, bed 201" />
                    </location>
                    <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="urn:uuid:924ba94d-9fdf-44a4-960d-22930bdf9c00" />
        <resource>
            <Location>
                <id value="location1" />
                <meta>
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Location" />
                </meta>
                <name value="Main Street Facility" />
                <managingOrganization>
                    <reference value="urn:uuid:6dda4680-6412-4c1c-aaa9-c98e587661c9" />
                </managingOrganization>
            </Location>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:6dda4680-6412-4c1c-aaa9-c98e587661c9" />
        <resource>
            <Organization>
                <id value="test-organization" />
                <meta>
                    <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Organization" />
                </meta>
                <identifier>
                    <system value="urn:ietf:rfc:3986" />
                    <value value="urn:oid:2.16.840.1.113883.3.239.23.4" />
                </identifier>
                <name value="Test Organization" />
            </Organization>
        </resource>
    </entry>
</Bundle>