US-Core CI Build

This page is part of the US Core (v0.0.0: STU1 Ballot 1) based on FHIR v1.8.0. The current version which supercedes this version is 5.0.1. For a full list of available versions, see the Directory of published versions

US Core CarePlan Profile


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="us-core-careplan"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan">http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan</a></p><p><b>name</b>: US Core CarePlan Profile</p><p><b>status</b>: DRAFT</p><p><b>date</b>: 01/08/2016</p><p><b>publisher</b>: Health Level Seven International (FHIR-Infrastructure)</p><p><b>contact</b>: </p><p><b>url</b>: <a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan">http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan</a></p><p><b>name</b>: US Core CarePlan Profile</p><p><b>status</b>: DRAFT</p><p><b>publisher</b>: Health Level Seven International (FHIR-Infrastructure)</p><p><b>contact</b>: </p><p><b>date</b>: 01/08/2016</p><blockquote><p><b>mapping</b></p><p><b>identity</b>: rim</p><p><b>uri</b>: <a href="http://hl7.org/v3">http://hl7.org/v3</a></p><p><b>name</b>: RIM Mapping</p></blockquote><blockquote><p><b>mapping</b></p><p><b>identity</b>: w5</p><p><b>uri</b>: <a href="http://hl7.org/fhir/w5">http://hl7.org/fhir/w5</a></p><p><b>name</b>: W5 Mapping</p></blockquote><blockquote><p><b>mapping</b></p><p><b>identity</b>: v2</p><p><b>uri</b>: <a href="http://hl7.org/v2">http://hl7.org/v2</a></p><p><b>name</b>: HL7 v2 Mapping</p></blockquote><p><b>kind</b>: RESOURCE</p><p><b>abstract</b>: false</p><p><b>type</b>: CarePlan</p><p><b>baseDefinition</b>: <a href="http://hl7.org/fhir/StructureDefinition/CarePlan">http://hl7.org/fhir/StructureDefinition/CarePlan</a></p><p><b>derivation</b>: CONSTRAINT</p><h3>Snapshots</h3><table class="grid"><tr><td>-</td><td><b>Element</b></td></tr><tr><td>*</td><td>todo-bundle</td></tr></table><h3>Differentials</h3><table class="grid"><tr><td>-</td><td><b>Element</b></td></tr><tr><td>*</td><td>todo-bundle</td></tr></table></div>
  </text>
  <url value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan"/>
  <name value="US Core CarePlan Profile"/>
  <status value="draft"/>
  <publisher value="Health Level Seven International (FHIR-Infrastructure)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.healthit.gov"/>
    </telecom>
  </contact>
  <date value="2016-08-01"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2 Mapping"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="CarePlan"/>
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="CarePlan:uscorecareplan">
      <path value="CarePlan"/>
      <sliceName value="USCoreCarePlan"/>
      <short value="US Core CarePlan Profile"/>
      <definition
                  value="The US Core CarePlan Profile is based upon the core FHIR CarePlan Resource and created to meet the 2015 Edition Common Clinical Data Set &#39;Assessment and Plan of Treatment requirements."/>
      <alias value="Care Team"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <constraint>
        <key value="dom-2"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
        <expression value="contained.contained.empty()"/>
        <xpath value="not(parent::f:contained and f:contained)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-4"/>
        <severity value="error"/>
        <human
               value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
        <expression
                    value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
        <xpath
               value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-3"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression
                    value="contained.where((&#39;#&#39;+id in %resource.descendants().reference).not()).empty()"/>
        <xpath
               value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat(&#39;#&#39;, $id))]))"/>
        <source value="DomainResource"/>
      </constraint>
      <mustSupport value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="Act[classCode=PCPR, moodCode=INT]"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.careprovision"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.id">
      <path value="CarePlan.id"/>
      <short value="Logical id of this artifact"/>
      <definition
                  value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
      <comments
                value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CarePlan:uscorecareplan.meta">
      <path value="CarePlan.meta"/>
      <short value="Metadata about the resource"/>
      <definition
                  value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CarePlan:uscorecareplan.implicitRules">
      <path value="CarePlan.implicitRules"/>
      <short value="A set of rules under which this content was created"/>
      <definition
                  value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/>
      <comments
                value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="CarePlan:uscorecareplan.language">
      <path value="CarePlan.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comments
                value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.text">
      <path value="CarePlan.text"/>
      <short value="Text summary of the resource, for human interpretation"/>
      <definition
                  value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
      <comments
                value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.text.id">
      <path value="CarePlan.text.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.text.extension">
      <path value="CarePlan.text.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.text.status">
      <path value="CarePlan.text.status"/>
      <short value="generated | extensions | additional | empty"/>
      <definition value="generated | additional."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Narrative.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description value="Constrained value set of narrative statuses."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/us/core/ValueSet/us-core-narrative-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.text.div">
      <path value="CarePlan.text.div"/>
      <short value="Limited xhtml content"/>
      <definition
                  value="The actual narrative content, a stripped down version of XHTML."/>
      <comments
                value="The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, &lt;a&gt; elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Narrative.div"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="xhtml"/>
      </type>
      <constraint>
        <key value="txt-1"/>
        <severity value="error"/>
        <human
               value="The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, &lt;a&gt; elements (either name or href), images and internally contained style attributes"/>
        <expression value="htmlchecks()"/>
        <xpath
               value="not(descendant-or-self::*[not(local-name(.)=(&#39;a&#39;, &#39;abbr&#39;, &#39;acronym&#39;, &#39;b&#39;, &#39;big&#39;, &#39;blockquote&#39;, &#39;br&#39;, &#39;caption&#39;, &#39;cite&#39;, &#39;code&#39;, &#39;col&#39;, &#39;colgroup&#39;, &#39;dd&#39;, &#39;dfn&#39;, &#39;div&#39;, &#39;dl&#39;, &#39;dt&#39;, &#39;em&#39;, &#39;h1&#39;, &#39;h2&#39;, &#39;h3&#39;, &#39;h4&#39;, &#39;h5&#39;, &#39;h6&#39;, &#39;hr&#39;, &#39;i&#39;, &#39;img&#39;, &#39;li&#39;, &#39;ol&#39;, &#39;p&#39;, &#39;pre&#39;, &#39;q&#39;, &#39;samp&#39;, &#39;small&#39;, &#39;span&#39;, &#39;strong&#39;, &#39;sub&#39;, &#39;sup&#39;, &#39;table&#39;, &#39;tbody&#39;, &#39;td&#39;, &#39;tfoot&#39;, &#39;th&#39;, &#39;thead&#39;, &#39;tr&#39;, &#39;tt&#39;, &#39;ul&#39;, &#39;var&#39;))]) and not(descendant-or-self::*/@*[not(name(.)=(&#39;abbr&#39;, &#39;accesskey&#39;, &#39;align&#39;, &#39;alt&#39;, &#39;axis&#39;, &#39;bgcolor&#39;, &#39;border&#39;, &#39;cellhalign&#39;, &#39;cellpadding&#39;, &#39;cellspacing&#39;, &#39;cellvalign&#39;, &#39;char&#39;, &#39;charoff&#39;, &#39;charset&#39;, &#39;cite&#39;, &#39;class&#39;, &#39;colspan&#39;, &#39;compact&#39;, &#39;coords&#39;, &#39;dir&#39;, &#39;frame&#39;, &#39;headers&#39;, &#39;height&#39;, &#39;href&#39;, &#39;hreflang&#39;, &#39;hspace&#39;, &#39;id&#39;, &#39;lang&#39;, &#39;longdesc&#39;, &#39;name&#39;, &#39;nowrap&#39;, &#39;rel&#39;, &#39;rev&#39;, &#39;rowspan&#39;, &#39;rules&#39;, &#39;scope&#39;, &#39;shape&#39;, &#39;span&#39;, &#39;src&#39;, &#39;start&#39;, &#39;style&#39;, &#39;summary&#39;, &#39;tabindex&#39;, &#39;title&#39;, &#39;type&#39;, &#39;valign&#39;, &#39;value&#39;, &#39;vspace&#39;, &#39;width&#39;))])"/>
      </constraint>
      <constraint>
        <key value="txt-2"/>
        <severity value="error"/>
        <human value="The narrative SHALL have some non-whitespace content"/>
        <expression value="htmlchecks()"/>
        <xpath
               value="descendant::text()[normalize-space(.)!=&#39;&#39;] or descendant::h:img[@src]"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.contained">
      <path value="CarePlan.contained"/>
      <short value="Contained, inline Resources"/>
      <definition
                  value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
      <comments
                value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.extension">
      <path value="CarePlan.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.modifierExtension">
      <path value="CarePlan.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.identifier">
      <path value="CarePlan.identifier"/>
      <short value="External Ids for this plan"/>
      <definition
                  value="This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)."/>
      <requirements value="Need to allow connection to a wider workflow."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.identifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="PTH-3"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.status">
      <path value="CarePlan.status"/>
      <short
             value="proposed | draft | active | suspended | completed | entered-in-error | cancelled | unknown"/>
      <definition
                  value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."/>
      <comments
                value="The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn&#39;t know the current state of the care plan."/>
      <requirements
                    value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/care-plan-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="PTH-5"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".statusCode planned = new active = active completed = completed"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.category">
      <path value="CarePlan.category"/>
      <short value="Type of plan"/>
      <definition value="Type of plan."/>
      <comments
                value="There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern."/>
      <requirements
                    value="Identifies what &quot;kind&quot; of plan this is to support differentiation between multiple co-existing plans; e.g. &quot;Home health&quot;, &quot;psychiatric&quot;, &quot;asthma&quot;, &quot;disease management&quot;, &quot;wellness plan&quot;, etc."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.category"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <patternCodeableConcept>
        <coding>
          <system
                  value="http://hl7.org/fhir/us/core/CodeSystem/careplan-category"/>
          <code value="assess-plan"/>
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="Identifies what &quot;kind&quot; of plan this is to support differentiation between multiple co-existing plans; e.g. &quot;Home health&quot;, &quot;psychiatric&quot;, &quot;asthma&quot;, &quot;disease management&quot;, etc."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/care-plan-category"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.category.id">
      <path value="CarePlan.category.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.category.extension">
      <path value="CarePlan.category.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.category.coding">
      <path value="CarePlan.category.coding"/>
      <short value="Code defined by a terminology system"/>
      <definition value="A reference to a code defined by a terminology system."/>
      <comments
                value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labelled as UserSelected = true."/>
      <requirements
                    value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CodeableConcept.coding"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="C*E.1-8, C*E.10-22"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="union(., ./translation)"/>
      </mapping>
      <mapping>
        <identity value="orim"/>
        <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.category.text">
      <path value="CarePlan.category.text"/>
      <short value="Plain text representation of the concept"/>
      <definition
                  value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
      <comments
                value="Very often the text is the same as a displayName of one of the codings."/>
      <requirements
                    value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CodeableConcept.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="C*E.9. But note many systems use C*E.2 for this"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
      </mapping>
      <mapping>
        <identity value="orim"/>
        <map
             value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.description">
      <path value="CarePlan.description"/>
      <short value="Summary of nature of plan"/>
      <definition value="A description of the scope and nature of the plan."/>
      <requirements value="Provides more detail than conveyed by category."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.subject">
      <path value="CarePlan.subject"/>
      <short value="Who care plan is for"/>
      <definition value="Who care plan is for."/>
      <requirements
                    value="Identifies the patient or group whose intended care is described by the plan."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.subject"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map value="PID-3"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=PAT].role[classCode=PAT]"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.context">
      <path value="CarePlan.context"/>
      <short value="Created in context of"/>
      <definition
                  value="Identifies the original context in which this particular CarePlan was created."/>
      <comments
                value="Activities conducted as a result of the care plan may well occur as part of other encounters/episodes."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.context"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="Associated PV1"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="."/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="context"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.period">
      <path value="CarePlan.period"/>
      <short value="Time period plan covers"/>
      <definition
                  value="Indicates when the plan did (or is intended to) come into effect and end."/>
      <comments
                value="Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition)."/>
      <requirements
                    value="Allows tracking what plan(s) are in effect at a particular time."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.period"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="GOL-7 / GOL-8"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.init"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.modified">
      <path value="CarePlan.modified"/>
      <short value="When last updated"/>
      <definition
                  value="Identifies the most recent date on which the plan has been revised."/>
      <requirements value="Indicates how current the plan is."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.modified"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="PTH-6"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=AUT].time"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.author">
      <path value="CarePlan.author"/>
      <short value="Who is responsible for contents of the plan"/>
      <definition
                  value="Identifies the individual(s) or ogranization who is responsible for the content of the care plan."/>
      <comments value="Collaborative care plans may have multiple authors."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.author"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.source"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.careTeam">
      <path value="CarePlan.careTeam"/>
      <short value="Who&#39;s involved in plan?"/>
      <definition
                  value="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan."/>
      <requirements
                    value="Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.careTeam"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
      </type>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.addresses">
      <path value="CarePlan.addresses"/>
      <short value="Health issues this plan addresses"/>
      <definition
                  value="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan."/>
      <requirements
                    value="Links plan to the conditions it manages.  The element can identify risks addressed by the plan as well as active conditions.  (The Condition resource can include things like &quot;at risk for hypertension&quot; or &quot;fall risk&quot;.)  Also scopes plans - multiple plans may exist addressing different concerns."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.addresses"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="PRB-4"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.support">
      <path value="CarePlan.support"/>
      <short value="Information considered as part of plan"/>
      <definition
                  value="Identifies portions of the patient&#39;s record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc."/>
      <comments
                value="Use &quot;concern&quot; to identify specific conditions addressed by the care plan."/>
      <requirements
                    value="Identifies barriers and other considerations associated with the care plan."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.support"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
    </element>
    <element id="CarePlan:uscorecareplan.definition">
      <path value="CarePlan.definition"/>
      <short value="Protocol or definition"/>
      <definition
                  value="Identifies the protocol, questionnaire, guideline or other specification the care plan should be conducted in accordance with."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.definition"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Questionnaire"/>
      </type>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan">
      <path value="CarePlan.relatedPlan"/>
      <short value="Plans related to this one"/>
      <definition
                  value="Identifies CarePlans with some sort of formal relationship to the current plan."/>
      <comments
                value="Relationships are uni-directional with the &quot;newer&quot; plan pointing to the older one."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.relatedPlan"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan.id">
      <path value="CarePlan.relatedPlan.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan.extension">
      <path value="CarePlan.relatedPlan.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan.modifierExtension">
      <path value="CarePlan.relatedPlan.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan.code">
      <path value="CarePlan.relatedPlan.code"/>
      <short value="includes | replaces | fulfills"/>
      <definition
                  value="Identifies the type of relationship this plan has to the target plan."/>
      <comments
                value="Read the relationship as &quot;this plan&quot; [relatedPlan.code] &quot;relatedPlan.plan&quot;; e.g. This plan includes Plan B.  Additional relationship types can be proposed for future releases or handled as extensions."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.relatedPlan.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <description
                     value="Codes identifying the types of relationships between two plans."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/care-plan-relationship"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.relatedPlan.plan">
      <path value="CarePlan.relatedPlan.plan"/>
      <short value="Plan relationship exists with"/>
      <definition
                  value="A reference to the plan to which a relationship is asserted."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.relatedPlan.plan"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan"/>
      </type>
    </element>
    <element id="CarePlan:uscorecareplan.goal">
      <path value="CarePlan.goal"/>
      <short value="Desired outcome of plan"/>
      <definition
                  value="Describes the intended objective(s) of carrying out the care plan."/>
      <comments
                value="Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline."/>
      <requirements
                    value="Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.goal"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="GOL.1"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode&lt;=OBJ]."/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity">
      <path value="CarePlan.activity"/>
      <short value="Action to occur as part of plan"/>
      <definition
                  value="Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc."/>
      <requirements
                    value="Allows systems to prompt for performance of planned activities, and validate plans against best practice."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <constraint>
        <key value="ctm-3"/>
        <severity value="error"/>
        <human value="Provide a reference or detail, not both"/>
        <expression value="detail.empty() or reference.empty()"/>
        <xpath value="not(exists(f:detail)) or not(exists(f:reference))"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode=COMP].target"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.id">
      <path value="CarePlan.activity.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.extension">
      <path value="CarePlan.activity.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.modifierExtension">
      <path value="CarePlan.activity.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.actionResulting">
      <path value="CarePlan.activity.actionResulting"/>
      <short value="Appointments, orders, etc."/>
      <definition
                  value="Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc."/>
      <requirements value="Links plan to resulting actions."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.actionResulting"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".inboundRelationship[typeCode=FLFS].source"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.outcome">
      <path value="CarePlan.activity.outcome"/>
      <short value="Results of the activity"/>
      <definition value="Results of the careplan activity."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.outcome"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description value="Identifies the results of the activity"/>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.activity.progress">
      <path value="CarePlan.activity.progress"/>
      <short value="Comments about the activity status/progress"/>
      <definition
                  value="Notes about the adherence/status/progress of the activity."/>
      <comments
                value="This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description."/>
      <requirements
                    value="Can be used to capture information about adherence, progress, concerns, etc."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.progress"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Annotation"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="NTE?"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.reference">
      <path value="CarePlan.activity.reference"/>
      <short value="Activity details defined in specific resource"/>
      <definition
                  value="The details of the proposed activity represented in a specific resource."/>
      <comments
                value="Standard extension exists ([goal-pertainstogoal](extension-goal-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference.   The goal should be visible when the resource referenced by CarePlan.activity.reference is viewed indepedently from the CarePlan.  Requests that are pointed to by a CarePlan using this element should *not* point to this CarePlan using the &quot;basedOn&quot; element.  i.e. Requests that are part of a CarePlan are not &quot;based on&quot; the CarePlan."/>
      <requirements
                    value="Details in a form consistent with other applications and contexts of use."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.reference"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/DiagnosticRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/NutritionRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/ProcessRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/ReferralRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/VisionPrescription"/>
      </type>
      <condition value="ctm-3"/>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode=COMP].target"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail">
      <path value="CarePlan.activity.detail"/>
      <short value="In-line definition of activity"/>
      <definition
                  value="A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn&#39;t know about specific resources such as procedure etc."/>
      <requirements
                    value="Details in a simple form for generic care plan systems."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="ctm-3"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map
             value=".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.id">
      <path value="CarePlan.activity.detail.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.extension">
      <path value="CarePlan.activity.detail.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.modifierExtension">
      <path value="CarePlan.activity.detail.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.category">
      <path value="CarePlan.activity.detail.category"/>
      <short
             value="diet | drug | encounter | observation | procedure | supply | other"/>
      <definition
                  value="High-level categorization of the type of activity in a care plan."/>
      <requirements
                    value="May determine what types of extensions are permitted."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="High-level categorization of the type of activity in a care plan."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/care-plan-activity-category"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map
             value=".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.definition">
      <path value="CarePlan.activity.detail.definition"/>
      <short value="Protocol or definition"/>
      <definition
                  value="Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with."/>
      <requirements
                    value="Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.definition"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Questionnaire"/>
      </type>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.code">
      <path value="CarePlan.activity.detail.code"/>
      <short value="Detail type of activity"/>
      <definition
                  value="Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter."/>
      <comments
                value="Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use &quot;prohibited&quot; instead."/>
      <requirements
                    value="Allows matching performed to planned as well as validation against protocols."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/care-plan-activity"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="OBR-4 / RXE-2 / RXO-1  / RXD-2"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.reasonCode">
      <path value="CarePlan.activity.detail.reasonCode"/>
      <short value="Why activity should be done or why activity was prohibited"/>
      <definition
                  value="Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited."/>
      <comments
                value="This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.detail.reasonCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as &quot;general wellness&quot;, prophylaxis, surgical preparation, etc."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/activity-reason"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.reasonReference">
      <path value="CarePlan.activity.detail.reasonReference"/>
      <short value="Condition triggering need for activity"/>
      <definition
                  value="Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan."/>
      <comments
                value="Conditions can be identified at the activity level that are not identified as reasons for the overall plan."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.detail.reasonReference"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      </type>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.goal">
      <path value="CarePlan.activity.detail.goal"/>
      <short value="Goals this activity relates to"/>
      <definition
                  value="Internal reference that identifies the goals that this activity is intended to contribute towards meeting."/>
      <requirements value="So that participants know the link explicitly."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.detail.goal"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode&lt;=OBJ]."/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.status">
      <path value="CarePlan.activity.detail.status"/>
      <short
             value="not-started | scheduled | in-progress | on-hold | completed | cancelled | unknown"/>
      <definition
                  value="Identifies what progress is being made for the specific activity."/>
      <comments
                value="Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that &quot;status&quot; is only as current as the plan was most recently updated.   The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn&#39;t know the current state of the activity."/>
      <requirements
                    value="Indicates progress against the plan, whether the activity is still relevant for the plan."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Indicates where the activity is at in its overall life cycle."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/care-plan-activity-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="ORC-5?"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.statusReason">
      <path value="CarePlan.activity.detail.statusReason"/>
      <short value="Reason for current status"/>
      <definition
                  value="Provides reason why the activity isn&#39;t yet started, is on hold, was cancelled, etc."/>
      <comments
                value="Will generally not be present if status is &quot;complete&quot;.  Be sure to prompt to update this (or at least remove the existing value) if the status is changed."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.statusReason"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="Describes why the current activity has the status it does; e.g. &quot;Recovering from injury&quot; as a reason for non-started or on-hold, &quot;Patient does not enjoy activity&quot; as a reason for cancelling a planned activity."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/goal-status-reason"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.prohibited">
      <path value="CarePlan.activity.detail.prohibited"/>
      <short value="Do NOT do"/>
      <definition
                  value="If true, indicates that the described activity is one that must NOT be engaged in when following the plan.  If false, indicates that the described activity is one that should be engaged in when following the plan."/>
      <requirements
                    value="Captures intention to not do something that may have been previously typical."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.prohibited"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="false"/>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="actionNegationInd"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.scheduled[x]">
      <path value="CarePlan.activity.detail.scheduled[x]"/>
      <short value="When activity is to occur"/>
      <definition
                  value="The period, timing or frequency upon which the described activity is to occur."/>
      <requirements
                    value="Allows prompting for activities and detection of missed planned activities."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.scheduled[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Timing"/>
      </type>
      <type>
        <code value="Period"/>
      </type>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="TQ1"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.location">
      <path value="CarePlan.activity.detail.location"/>
      <short value="Where it should happen"/>
      <definition
                  value="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc."/>
      <comments
                value="May reference a specific clinical location or may identify a type of location."/>
      <requirements value="Helps in planning of activity."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.location"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="OBR-24(???!!)"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=LOC].role"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.performer">
      <path value="CarePlan.activity.detail.performer"/>
      <short value="Who will be responsible?"/>
      <definition
                  value="Identifies who&#39;s expected to be involved in the activity."/>
      <comments value="A performer MAY also be a participant in the care plan."/>
      <requirements value="Helps in planning of activity."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CarePlan.activity.detail.performer"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map
             value="PRT-5 : ( PRV-4 e {provider participations} ) / PRT-5 : ( PRV-4 e {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=PFM]"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.product[x]">
      <path value="CarePlan.activity.detail.product[x]"/>
      <short value="What is to be administered/supplied"/>
      <definition
                  value="Identifies the food, drug or other product to be consumed or supplied in the activity."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.product[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Medication"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="A product supplied or administered as part of a care plan activity."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/medication-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RXE-2 / RXO-1 / RXD-2"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=PRD].role"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.dailyAmount">
      <path value="CarePlan.activity.detail.dailyAmount"/>
      <short value="How to consume/day?"/>
      <definition
                  value="Identifies the quantity expected to be consumed in a given day."/>
      <requirements value="Allows rough dose checking."/>
      <alias value="daily dose"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.dailyAmount"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="RXO-23 / RXE-19 / RXD-12"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.quantity">
      <path value="CarePlan.activity.detail.quantity"/>
      <short value="How much to administer/supply/consume"/>
      <definition
                  value="Identifies the quantity expected to be supplied, administered or consumed by the subject."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.quantity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map
             value="RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 /  TQ1-2.1  *and*  RXO-12 /  RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.activity.detail.description">
      <path value="CarePlan.activity.detail.description"/>
      <short value="Extra info describing activity to perform"/>
      <definition
                  value="This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.activity.detail.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="NTE?"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="CarePlan:uscorecareplan.note">
      <path value="CarePlan.note"/>
      <short value="Comments about the plan"/>
      <definition
                  value="General notes about the care plan not covered elsewhere."/>
      <requirements
                    value="Used to capture information that applies to the plan as a whole that doesn&#39;t fit into discrete elements."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CarePlan.note"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Annotation"/>
      </type>
      <mapping>
        <identity value="v2"/>
        <map value="NTE?"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map
             value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value"/>
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="CarePlan:uscorecareplan">
      <path value="CarePlan"/>
      <sliceName value="USCoreCarePlan"/>
      <short value="US Core CarePlan Profile"/>
      <definition
                  value="The US Core CarePlan Profile is based upon the core FHIR CarePlan Resource and created to meet the 2015 Edition Common Clinical Data Set &#39;Assessment and Plan of Treatment requirements."/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="CarePlan:uscorecareplan.text">
      <path value="CarePlan.text"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Narrative"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="CarePlan:uscorecareplan.text.status">
      <path value="CarePlan.text.status"/>
      <definition value="generated | additional."/>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description value="Constrained value set of narrative statuses."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/us/core/ValueSet/us-core-narrative-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.status">
      <path value="CarePlan.status"/>
      <requirements
                    value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/care-plan-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CarePlan:uscorecareplan.category">
      <path value="CarePlan.category"/>
      <definition value="Type of plan."/>
      <requirements
                    value="Identifies what &quot;kind&quot; of plan this is to support differentiation between multiple co-existing plans; e.g. &quot;Home health&quot;, &quot;psychiatric&quot;, &quot;asthma&quot;, &quot;disease management&quot;, &quot;wellness plan&quot;, etc."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <patternCodeableConcept>
        <coding>
          <system
                  value="http://hl7.org/fhir/us/core/CodeSystem/careplan-category"/>
          <code value="assess-plan"/>
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="CarePlan:uscorecareplan.category.system">
      <path value="CarePlan.category.coding.system"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="CarePlan:uscorecareplan.category.system.code">
      <path value="CarePlan.category.coding.code"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="CarePlan:uscorecareplan.subject">
      <path value="CarePlan.subject"/>
      <definition value="Who care plan is for."/>
      <requirements
                    value="Identifies the patient or group whose intended care is described by the plan."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
  </differential>
</StructureDefinition>