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

<EpisodeOfCare xmlns="http://hl7.org/fhir">
  <id value="EpisodeOfCareExamplePG"/>
  <meta>
    <lastUpdated value="2024-01-01T12:00:00Z"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: EpisodeOfCare EpisodeOfCareExamplePG</b></p><a name="EpisodeOfCareExamplePG"> </a><a name="hcEpisodeOfCareExamplePG"> </a><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">Last updated: 2024-01-01 12:00:00+0000</p></div><p><b>status</b>: Finished</p><blockquote><p><b>statusHistory</b></p><p><b>status</b>: Active</p><p><b>period</b>: 2024-01-01 --&gt; (ongoing)</p></blockquote><blockquote><p><b>statusHistory</b></p><p><b>status</b>: Finished</p><p><b>period</b>: 2024-01-01 --&gt; 2024-01-15</p></blockquote><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/episodeofcare-type cacp}">Community-based aged care</span></p><h3>Diagnoses</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Condition</b></td><td><b>Role</b></td></tr><tr><td style="display: none">*</td><td><a href="Condition-PregnancyConditionExample.html">Pregnancy Diagnosis</a></td><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/diagnosis-role AD}">Admission diagnosis</span></td></tr></table><p><b>patient</b>: <a href="Patient-BHAClientExample.html">Emma Jones</a></p><p><b>managingOrganization</b>: <a href="Organization-BHAOrganizationExample.html">Community Health Clinic</a></p><p><b>period</b>: 2024-01-01 --&gt; 2024-01-15</p></div>
  </text>
  <status value="finished"/>
  <statusHistory>
    <status value="active"/>
    <period>
      <start value="2024-01-01"/>
    </period>
  </statusHistory>
  <statusHistory>
    <status value="finished"/>
    <period>
      <start value="2024-01-01"/>
      <end value="2024-01-15"/>
    </period>
  </statusHistory>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/episodeofcare-type"/>
      <code value="cacp"/>
    </coding>
  </type>
  <diagnosis>
    <condition>
      <reference value="Condition/PregnancyConditionExample"/>
      <display value="Pregnancy Diagnosis"/>
    </condition>
    <role>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/diagnosis-role"/>
        <code value="AD"/>
      </coding>
    </role>
  </diagnosis>
  <patient>
    <reference value="Patient/BHAClientExample"/>
    <display value="Emma Jones"/>
  </patient>
  <managingOrganization>
    <reference value="Organization/BHAOrganizationExample"/>
    <identifier>
      <system value="http://hl7.org/fhir/sid/us-npi"/>
      <value value="1234567893"/>
    </identifier>
    <display value="Community Health Clinic"/>
  </managingOrganization>
  <period>
    <start value="2024-01-01"/>
    <end value="2024-01-15"/>
  </period>
</EpisodeOfCare>