<?xml version="1.0" encoding="UTF-8"?>

<Bundle xmlns="http://hl7.org/fhir">
  <id value="HIMS-Investigations-Bundle"/>
  <type value="transaction"/>
  <entry>
    <fullUrl value="Observation/RandomBloodSugarExample"/>
    <resource>
      <Observation>
        <id value="RandomBloodSugarExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/random-blood-sugar"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Observation</b><a name="RandomBloodSugarExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Observation &quot;RandomBloodSugarExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-random-blood-sugar.html">Random Blood Sugar Observation</a></p></div><p><b>status</b>: final</p><p><b>code</b>: Glucose <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://loinc.org/">LOINC</a>#15074-8)</span></p><p><b>subject</b>: <a href="#Patient_HIMSPatientExample">See above (Patient/HIMSPatientExample)</a></p><p><b>encounter</b>: <a href="#Encounter_TargetFacilityEncounterExample">See above (Encounter/TargetFacilityEncounterExample)</a></p><p><b>effective</b>: 2022-11-30</p><p><b>performer</b>: </p><ul><li><a href="Organization-OrganizationExample.html">Organization/OrganizationExample</a> &quot;Some Health Facility&quot;</li><li><a href="#Practitioner_GeneralPractitionerExample">See above (Practitioner/GeneralPractitionerExample)</a></li></ul><p><b>value</b>: 6.3 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></p><p><b>interpretation</b>: High <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-v3-ObservationInterpretation.html">ObservationInterpretation</a>#H)</span></p><h3>ReferenceRanges</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Low</b></td><td><b>High</b></td><td><b>Type</b></td></tr><tr><td style="display: none">*</td><td>3.1 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></td><td>6.2 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></td><td>Type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-referencerange-meaning.html">Observation Reference Range Meaning Codes</a>#type)</span></td></tr></table></div>
        </text>
        <status value="final"/>
        <code>
          <coding>
            <system value="http://loinc.org"/>
            <code value="15074-8"/>
          </coding>
          <text value="Glucose"/>
        </code>
        <subject>
          <reference value="Patient/HIMSPatientExample"/>
        </subject>
        <encounter>
          <reference value="Encounter/TargetFacilityEncounterExample"/>
        </encounter>
        <effectiveDateTime value="2022-11-30"/>
        <performer>
          <reference value="Organization/OrganizationExample"/>
        </performer>
        <performer>
          <reference value="Practitioner/GeneralPractitionerExample"/>
        </performer>
        <valueQuantity>
          <value value="6.3"/>
          <unit value="mmol/l"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="mmol/l"/>
        </valueQuantity>
        <interpretation>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
            <code value="H"/>
          </coding>
        </interpretation>
        <referenceRange>
          <low>
            <value value="3.1"/>
            <unit value="mmol/l"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mmol/l"/>
          </low>
          <high>
            <value value="6.2"/>
            <unit value="mmol/l"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mmol/l"/>
          </high>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/referencerange-meaning"/>
              <code value="type"/>
            </coding>
          </type>
        </referenceRange>
      </Observation>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Observation/RandomBloodSugarExample"/>
    </request>
  </entry>
  <entry>
    <fullUrl value="Observation/FastingBloodSugarExample"/>
    <resource>
      <Observation>
        <id value="FastingBloodSugarExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/fasting-blood-sugar"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Observation</b><a name="FastingBloodSugarExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Observation &quot;FastingBloodSugarExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-fasting-blood-sugar.html">Fasting Blood Sugar Observation</a></p></div><p><b>status</b>: final</p><p><b>code</b>: Fasting glucose <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://loinc.org/">LOINC</a>#76629-5)</span></p><p><b>subject</b>: <a href="#Patient_HIMSPatientExample">See above (Patient/HIMSPatientExample)</a></p><p><b>encounter</b>: <a href="#Encounter_TargetFacilityEncounterExample">See above (Encounter/TargetFacilityEncounterExample)</a></p><p><b>effective</b>: 2022-11-30</p><p><b>performer</b>: </p><ul><li><a href="Organization-OrganizationExample.html">Organization/OrganizationExample</a> &quot;Some Health Facility&quot;</li><li><a href="#Practitioner_GeneralPractitionerExample">See above (Practitioner/GeneralPractitionerExample)</a></li></ul><p><b>value</b>: 5.4 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></p><p><b>interpretation</b>: Normal <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-v3-ObservationInterpretation.html">ObservationInterpretation</a>#N)</span></p><h3>ReferenceRanges</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Low</b></td><td><b>High</b></td><td><b>Type</b></td></tr><tr><td style="display: none">*</td><td>3.9 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></td><td>5.6 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></td><td>Type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-referencerange-meaning.html">Observation Reference Range Meaning Codes</a>#type)</span></td></tr></table></div>
        </text>
        <status value="final"/>
        <code>
          <coding>
            <system value="http://loinc.org"/>
            <code value="76629-5"/>
          </coding>
          <text value="Fasting glucose"/>
        </code>
        <subject>
          <reference value="Patient/HIMSPatientExample"/>
        </subject>
        <encounter>
          <reference value="Encounter/TargetFacilityEncounterExample"/>
        </encounter>
        <effectiveDateTime value="2022-11-30"/>
        <performer>
          <reference value="Organization/OrganizationExample"/>
        </performer>
        <performer>
          <reference value="Practitioner/GeneralPractitionerExample"/>
        </performer>
        <valueQuantity>
          <value value="5.4"/>
          <unit value="mmol/l"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="mmol/l"/>
        </valueQuantity>
        <interpretation>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
            <code value="N"/>
          </coding>
        </interpretation>
        <referenceRange>
          <low>
            <value value="3.9"/>
            <unit value="mmol/l"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mmol/l"/>
          </low>
          <high>
            <value value="5.6"/>
            <unit value="mmol/l"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mmol/l"/>
          </high>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/referencerange-meaning"/>
              <code value="type"/>
            </coding>
          </type>
        </referenceRange>
      </Observation>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Observation/FastingBloodSugarExample"/>
    </request>
  </entry>
  <entry>
    <fullUrl value="Patient/HIMSPatientExample"/>
    <resource>
      <Patient>
        <id value="HIMSPatientExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/hims-patient"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Patient</b><a name="HIMSPatientExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Patient &quot;HIMSPatientExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-hims-patient.html">HIMS Patient</a></p></div><p><b>identifier</b>: Personal Health Number: personal health number, Passport number: Passport-1, Passport number: Passport-2, Driver's license number: Drivers license-1, Driver's license number: Drivers license-2, National identity number: National identity number-1, National identity number: National identity number-2, Senior Citizen Number: Senior citizen number-1, Senior Citizen Number: Senior citizen number-2</p><p><b>name</b>: Mr. Mike John Smith (OFFICIAL)</p><p><b>telecom</b>: <a href="tel:+27829999999">+27829999999</a>, <a href="mailto:someone@something.com">someone@something.com</a>, <a href="mailto:someone2@something.com">someone2@something.com</a></p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1983-05-22</p><p><b>address</b>: 177 Nawala Road Nugegoda Colombo 32350 Sri Lanka </p></div>
        </text>
        <identifier>
          <type>
            <coding>
              <system value="http://openhie.org/fhir/sri-lanka/CodeSystem/cs-identifier-types"/>
              <code value="PHN"/>
            </coding>
            <text value="Personal Health Number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/phn"/>
          <value value="personal health number"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="PPN"/>
            </coding>
            <text value="Passport number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/passport"/>
          <value value="Passport-1"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="PPN"/>
            </coding>
            <text value="Passport number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/passport"/>
          <value value="Passport-2"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="DL"/>
            </coding>
            <text value="Driver's license number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/drivers"/>
          <value value="Drivers license-1"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="DL"/>
            </coding>
            <text value="Driver's license number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/drivers"/>
          <value value="Drivers license-2"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="NNLKA"/>
            </coding>
            <text value="National identity number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/nic"/>
          <value value="National identity number-1"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="NNLKA"/>
            </coding>
            <text value="National identity number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/nic"/>
          <value value="National identity number-2"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://openhie.org/fhir/sri-lanka/CodeSystem/cs-identifier-types"/>
              <code value="SCN"/>
            </coding>
            <text value="Senior Citizen Number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/scn"/>
          <value value="Senior citizen number-1"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://openhie.org/fhir/sri-lanka/CodeSystem/cs-identifier-types"/>
              <code value="SCN"/>
            </coding>
            <text value="Senior Citizen Number"/>
          </type>
          <system value="http://openhie.org/fhir/sri-lanka/identifier/scn"/>
          <value value="Senior citizen number-2"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Smith"/>
          <given value="Mr."/>
          <given value="Mike"/>
          <given value="John"/>
        </name>
        <telecom>
          <system value="phone"/>
          <value value="+27829999999"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="someone@something.com"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="someone2@something.com"/>
        </telecom>
        <gender value="male"/>
        <birthDate value="1983-05-22"/>
        <address>
          <type value="postal"/>
          <line value="177"/>
          <line value="Nawala Road"/>
          <city value="Nugegoda"/>
          <district value="Ampara"/>
          <state value="Colombo"/>
          <postalCode value="32350"/>
          <country value="Sri Lanka"/>
        </address>
      </Patient>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Patient/HIMSPatientExample"/>
    </request>
  </entry>
  <entry>
    <fullUrl value="Encounter/TargetFacilityEncounterExample"/>
    <resource>
      <Encounter>
        <id value="TargetFacilityEncounterExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/target-facility-encounter"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Encounter</b><a name="TargetFacilityEncounterExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Encounter &quot;TargetFacilityEncounterExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-target-facility-encounter.html">Target Facility Encounter</a></p></div><p><b>status</b>: finished</p><p><b>class</b>: ambulatory (Details: http://terminology.hl7.org/CodeSystem/v3-ActCode code AMB = 'ambulatory', stated as 'null')</p><p><b>subject</b>: <a href="#Patient_HIMSPatientExample">See above (Patient/HIMSPatientExample)</a></p><h3>Participants</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Individual</b></td></tr><tr><td style="display: none">*</td><td><a href="#Practitioner_GeneralPractitionerExample">See above (Practitioner/GeneralPractitionerExample)</a></td></tr></table><p><b>period</b>: 2022-12-01 --&gt; 2023-01-20</p><p><b>reasonCode</b>: 140004 <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#140004)</span></p><h3>Locations</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Location</b></td></tr><tr><td style="display: none">*</td><td><a href="Location-ProvidersLocationExample.html">Location/ProvidersLocationExample</a> &quot;Name for the location&quot;</td></tr></table></div>
        </text>
        <status value="finished"/>
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
          <code value="AMB"/>
        </class>
        <subject>
          <reference value="Patient/HIMSPatientExample"/>
        </subject>
        <participant>
          <individual>
            <reference value="Practitioner/GeneralPractitionerExample"/>
          </individual>
        </participant>
        <period>
          <start value="2022-12-01"/>
          <end value="2023-01-20"/>
        </period>
        <reasonCode>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="140004"/>
          </coding>
        </reasonCode>
        <location>
          <location>
            <reference value="Location/ProvidersLocationExample"/>
          </location>
        </location>
      </Encounter>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Encounter/TargetFacilityEncounterExample"/>
    </request>
  </entry>
  <entry>
    <fullUrl value="Practitioner/GeneralPractitionerExample"/>
    <resource>
      <Practitioner>
        <id value="GeneralPractitionerExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/practitioner"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Practitioner</b><a name="GeneralPractitionerExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Practitioner &quot;GeneralPractitionerExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-practitioner.html">Practitioner</a></p></div><p><b>name</b>: Tom Junes Smith </p><p><b>telecom</b>: ph: 27537652509(WORK), <a href="mailto:someone@something.org">someone@something.org</a></p></div>
        </text>
        <name>
          <family value="Smith"/>
          <given value="Tom"/>
          <given value="Junes"/>
          <prefix value="Dr"/>
        </name>
        <telecom>
          <system value="phone"/>
          <value value="27537652509"/>
          <use value="work"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="someone@something.org"/>
          <use value="home"/>
        </telecom>
      </Practitioner>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Practitioner/GeneralPractitionerExample"/>
    </request>
  </entry>
  <entry>
    <fullUrl value="Observation/TotalCholesterolExample"/>
    <resource>
      <Observation>
        <id value="TotalCholesterolExample"/>
        <meta>
          <profile value="http://openhie.org/fhir/sri-lanka/StructureDefinition/total-cholesterol"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Observation</b><a name="TotalCholesterolExample"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Observation &quot;TotalCholesterolExample&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-total-cholesterol.html">Total Cholesterol Observation</a></p></div><p><b>status</b>: final</p><p><b>code</b>: Cholesterol <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://loinc.org/">LOINC</a>#2093-3)</span></p><p><b>subject</b>: <a href="#Patient_HIMSPatientExample">See above (Patient/HIMSPatientExample)</a></p><p><b>encounter</b>: <a href="#Encounter_TargetFacilityEncounterExample">See above (Encounter/TargetFacilityEncounterExample)</a></p><p><b>effective</b>: 2022-11-30</p><p><b>performer</b>: </p><ul><li><a href="Organization-OrganizationExample.html">Organization/OrganizationExample</a> &quot;Some Health Facility&quot;</li><li><a href="#Practitioner_GeneralPractitionerExample">See above (Practitioner/GeneralPractitionerExample)</a></li></ul><p><b>value</b>: 6.3 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></p><p><b>interpretation</b>: High <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-v3-ObservationInterpretation.html">ObservationInterpretation</a>#H)</span></p><h3>ReferenceRanges</h3><table class="grid"><tr><td style="display: none">-</td><td><b>High</b></td><td><b>Type</b></td></tr><tr><td style="display: none">*</td><td>5 mmol/l<span style="background: LightGoldenRodYellow"> (Details: UCUM code mmol/l = 'mmol/l')</span></td><td>Type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-referencerange-meaning.html">Observation Reference Range Meaning Codes</a>#type)</span></td></tr></table></div>
        </text>
        <status value="final"/>
        <code>
          <coding>
            <system value="http://loinc.org"/>
            <code value="2093-3"/>
          </coding>
          <text value="Cholesterol"/>
        </code>
        <subject>
          <reference value="Patient/HIMSPatientExample"/>
        </subject>
        <encounter>
          <reference value="Encounter/TargetFacilityEncounterExample"/>
        </encounter>
        <effectiveDateTime value="2022-11-30"/>
        <performer>
          <reference value="Organization/OrganizationExample"/>
        </performer>
        <performer>
          <reference value="Practitioner/GeneralPractitionerExample"/>
        </performer>
        <valueQuantity>
          <value value="6.3"/>
          <unit value="mmol/l"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="mmol/l"/>
        </valueQuantity>
        <interpretation>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
            <code value="H"/>
          </coding>
        </interpretation>
        <referenceRange>
          <high>
            <value value="5"/>
            <unit value="mmol/l"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mmol/l"/>
          </high>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/referencerange-meaning"/>
              <code value="type"/>
            </coding>
          </type>
        </referenceRange>
      </Observation>
    </resource>
    <request>
      <method value="PUT"/>
      <url value="Observation/TotalCholesterolExample"/>
    </request>
  </entry>
</Bundle>