<CarePlan xmlns="http://hl7.org/fhir">
  <id value="core-examples-CarePlan-example8" />
  <meta>
    <versionId value="3" />
    <lastUpdated value="2016-09-08T11:58:18.738+00:00" />
  </meta>
  <text>
    <status value="additional" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>  Represents the flow of a patient within a practice. The plan is created when
        they arrive and represents the 'care' of the patient over the course of that encounter.
        They first see the nurse for basic observations (BP, pulse, temp) then the doctor for
        the consultation and finally the nurse again for a tetanus immunization. As the plan is
        updated (e.g. a new activity added), different versions of the plan exist, and workflow timings
        for reporting can be gained by examining the plan history. This example is the version after
        seeing the doctor, and waiting for the nurse.The plan can either be created 'ad hoc' and modified as
        the parient progresses, or start with a standard template (which can, of course, be altered to suit the patient.</p>
    </div>
  </text>
  <contained>
    <Condition>
      <id value="p1" />
      <patient>
        <reference value="Patient/100" />
        <display value="Peter James Chalmers" />
      </patient>
      <code>
        <text value="Overseas encounter" />
      </code>
      <verificationStatus value="confirmed" />
    </Condition>
  </contained>
  <contained>
    <Goal>
      <id value="goal" />
      <subject>
        <reference value="Patient/100" />
        <display value="Peter James Chalmers" />
      </subject>
      <description value="Complete consultation" />
      <status value="planned" />
    </Goal>
  </contained>
  <subject>
    <reference value="Patient/100" />
    <display value="Peter James Chalmers" />
  </subject>
  <status value="active" />
  <period>
    <start value="2013-01-01T10:30:00+00:00" />
  </period>
  <addresses>
    <reference value="#p1" />
    <display value="obesity" />
  </addresses>
  <participant id="part1">
    <role>
      <coding>
        <system value="http://example.org/local" />
        <code value="nur" />
      </coding>
      <text value="nurse" />
    </role>
    <member>
      <reference value="Practitioner/13" />
      <display value="Nurse Nancy" />
    </member>
  </participant>
  <participant id="part2">
    <role>
      <coding>
        <system value="http://example.org/local" />
        <code value="doc" />
      </coding>
      <text value="doctor" />
    </role>
    <member>
      <reference value="Practitioner/14" />
      <display value="Doctor Dave" />
    </member>
  </participant>
  <goal>
    <reference value="#goal" />
  </goal>
  <activity>
    <actionResulting>
      <reference value="Encounter/example" />
    </actionResulting>
    <detail>
      <category>
        <coding>
          <system value="http://hl7.org/fhir/care-plan-activity-category" />
          <code value="encounter" />
        </coding>
      </category>
      <code>
        <coding>
          <system value="http://example.org/local" />
          <code value="nursecon" />
        </coding>
        <text value="Nurse Consultation" />
      </code>
      <status value="completed" />
      <prohibited value="false" />
      <scheduledPeriod>
        <start value="2013-01-01T10:38:00+00:00" />
        <end value="2013-01-01T10:50:00+00:00" />
      </scheduledPeriod>
      <performer>
        <reference value="Practitioner/13" />
        <display value="Nurse Nancy" />
      </performer>
    </detail>
  </activity>
  <activity>
    <detail>
      <category>
        <coding>
          <system value="http://hl7.org/fhir/care-plan-activity-category" />
          <code value="encounter" />
        </coding>
      </category>
      <code>
        <coding>
          <system value="http://example.org/local" />
          <code value="doccon" />
        </coding>
        <text value="Doctor Consultation" />
      </code>
      <status value="scheduled" />
      <prohibited value="false" />
      <performer>
        <reference value="Practitioner/14" />
        <display value="Doctor Dave" />
      </performer>
    </detail>
  </activity>
</CarePlan>