2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Careplan-example-pregnancy.xml

Raw XML (canonical form)

Patient 1 for linking (id = "preg")

Raw XML

<CarePlan xmlns="http://hl7.org/fhir">
  <id value="preg"/>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <contained>
    <Condition>
      <id value="p1"/>
      <subject>
        <reference value="Patient/1"/>
        <display value="Eve Everywoman"/>
      </subject>
      <code>
        <text value="pregnancy"/>
      </code>
      <status value="confirmed"/>
    </Condition>
  </contained>
  <contained>
    <Practitioner>
      <id value="pr1"/>
      <name>
        <family value="Midwife"/>
        <given value="Mavis"/>
      </name>
      <practitionerRole>
        <specialty>
          <text value="Midwife"/>
        </specialty>
      </practitionerRole>
    </Practitioner>
  </contained>
  <contained>
    <Practitioner>
      <id value="pr2"/>
      <name>
        <family value="Obstetrician"/>
        <given value="Oscar"/>
      </name>
      <practitionerRole>
        <specialty>
          <text value="Obstetrician"/>
        </specialty>
      </practitionerRole>
    </Practitioner>
  </contained><!--    an extension to record the LMP, which is required at the plan level...    -->
  <extension url="http://example.org/DoNotUse/careplan#lmp">
    <valueDateTime value="2013-01-01"/>
  </extension>
  <patient>
    <reference value="Patient/1"/>
    <display value="Eve Everywoman"/>
  </patient>
  <status value="active"/>
  <period><!--    The likely duration of the pregnancy    -->
    <start value="2013-01-01"/>
    <end value="2013-10-01"/>
  </period>
  <concern>
    <reference value="#p1"/>
    <display value="pregnancy"/>
  </concern>
  <participant><!--    In New Zealand, there is a Lead Maternity Carer (LMC) - often a midwife    -->
    <role>
      <coding>
        <system value="mySys"/>
        <code value="lmc"/>
      </coding>
      <text value="Midwife"/>
    </role>
    <member><!--    This links to the clinician resource, so we get all the stuff related to that like
       address, contact etc...    -->
      <reference value="#pr1"/>
      <display value="Mavis Midwife"/>
    </member>
  </participant>
  <participant><!--    To indicate that there is an obstretian consultant involved in this case.    -->
    <role>
      <coding>
        <system value="mySys"/>
        <code value="obs"/>
      </coding>
      <text value="Obstretitian"/>
    </role>
    <member><!--    This links to the clinician resource, so we get all tha stuff related to that like
       address, contact etc...    -->
      <reference value="#pr2"/>
      <display value="Oscar Obstetrician"/>
    </member>
  </participant>
  <goal>
    <description value="Maintain a womans health throughout pregnancy and ensure a healthy child"/>
  </goal>
  <activity><!--    This will be the first antenatal encounter    --><!--    a link to further details about the first antenatal details    -->
    <extension url="http://example.org/DoNotUse/careplan#andetails">
      <valueUri value="http://orionhealth.com/fhir/careplan/1andetails"/>
    </extension>
    <status value="scheduled"/>
    <prohibited value="false"/>
    <simple>
      <category value="encounter"/>
      <code>
        <coding>
          <system value="mySystem"/>
          <code value="1an"/>
        </coding>
        <text value="First Antenatal encounter"/>
      </code>
      <scheduledTiming><!--    The encounter should occur between 14 feb and 28 feb    -->
        <event>
          <start value="2013-02-14"/>
          <end value="2013-02-28"/>
        </event>
      </scheduledTiming>
      <performer>
        <reference value="#pr1"/>
        <display value="Mavis Midwife"/>
      </performer>
      <details value="The first antenatal encounter. This is where a detailed physical examination is performed.
                   and the pregnanacy discussed with the mother-to-be."/>
    </simple>
  </activity><!--    This is a booked encounter with Mavis Midwife for the first antenatal checkup. 
        This entry is only made after the appointment (a planned encounter) has been made.
        Commented out for now because Encounter hasn't been defined yet
        &lt;actionTaken&gt;
            &lt;url value=&quot;xxx&quot;/&gt;
            &lt;display value=&quot;Appointment with Mavis midwife @12.30pm, 112 St albans
   Ave&quot;/&gt;
        &lt;/actionTaken&gt;   -->
  <activity>
    <status value="not-started"/>
    <prohibited value="false"/>
    <simple><!--    This will be the second antenatal encounter - 3 months after LMP. It is not yet scheduled.
          -->
      <category value="encounter"/>
      <code><!--    The code is just for an antenatal encounter. There are many of these, the first is
         special...    -->
        <coding>
          <system value="mySystem"/>
          <code value="an"/>
        </coding>
        <text value="Follow-up Antenatal encounter"/>
      </code>
      <scheduledTiming><!--    The encounter should occur between 1 march and 14 march    -->
        <event>
          <start value="2013-03-01"/>
          <end value="2013-03-14"/>
        </event>
      </scheduledTiming>
      <performer><!--    The performer is known, but the actual appointment is not yet made, hence there is
         no action element...    -->
        <reference value="#pr1"/>
        <display value="Mavis Midwife"/>
      </performer>
      <details value="The second antenatal encounter. Discuss any issues that arose from the first antenatal
       encounter"/>
    </simple>
  </activity><!--    
        There would be a number of other encounters to be scheduled here... 
        ...
        ...
    
       -->
  <activity>
    <status value="not-started"/>
    <prohibited value="false"/>
    <simple><!--    This will be the delivery. It is not yet scheduled.    -->
      <category value="encounter"/>
      <code>
        <coding>
          <system value="mySystem"/>
          <code value="del"/>
        </coding>
        <text value="Delivery"/>
      </code>
      <scheduledTiming><!--    The delivery should occur between 1 September and 14 September    -->
        <event>
          <start value="2013-09-01"/>
          <end value="2013-09-14"/>
        </event>
      </scheduledTiming><!--    Where the delivery is to occur... 
          Commented out for now because location resource isn't defined
        &lt;location&gt;
            &lt;url value=&quot;loc100&quot;/&gt;
            &lt;display value=&quot;St Albans delivery suite&quot;/&gt;
        &lt;/location&gt;   -->
      <performer><!--    The intention is that Maris will be performing the delivery...    -->
        <reference value="#pr1"/>
        <display value="Mavis Midwife"/>
      </performer>
      <details value="The delivery."/>
    </simple>
  </activity>
</CarePlan>

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.