US Core Implementation Guide STU 2

This page is part of the US Core (v2.0.0: STU2) based on FHIR R3. 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

Formats: Narrative, XML, JSON, Turtle

Download Raw json

{
  "resourceType" : "StructureDefinition",
  "id" : "us-core-careplan",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/STU3/help16.png" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan" title="The US Core CarePlan Profile is based upon the core FHIR CarePlan Resource and created to meet the 2015 Edition Common Clinical Data Set 'Assessment and Plan of Treatment requirements.">CarePlan</a><a name="CarePlan"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.4">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.4">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">US Core CarePlan Profile</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.text">text</a><a name="CarePlan.text"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.4" href="http://hl7.org/fhir/STU3/datatypes.html#Narrative">Narrative</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.text.status" title="generated | additional.">status</a><a name="CarePlan.text.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.4">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.4">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.4" href="http://hl7.org/fhir/STU3/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Binding: </span><a href="ValueSet-us-core-narrative-status.html">Narrative Status</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.status">status</a><a name="CarePlan.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.4">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.4">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.4" href="http://hl7.org/fhir/STU3/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/fhir/STU3/valueset-care-plan-status.html">CarePlanStatus</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.intent">intent</a><a name="CarePlan.intent"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.4">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.4">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.4" href="http://hl7.org/fhir/STU3/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/fhir/STU3/valueset-care-plan-intent.html">CarePlanIntent</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.category" title="Type of plan.">category</a><a name="CarePlan.category"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span><span style="padding-left: 3px; padding-right: 3px; color: black; background-color: white" title="This element has or is affected by some invariants">I</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.4" href="http://hl7.org/fhir/STU3/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">us-core-1: </span>Must have a category of 'assess-plan' and a code system 'http://hl7.org/fhir/us/core/CodeSystem/careplan-category'<br/></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-us-core-careplan-definitions.html#CarePlan.subject" title="Who care plan is for.">subject</a><a name="CarePlan.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.4">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.4">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/references.html">Reference</a>(<a href="StructureDefinition-us-core-patient.html">US Core Patient Profile</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/STU3/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/STU3/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>"
  },
  "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan",
  "version" : "2.0.0",
  "name" : "US Core CarePlan Profile",
  "status" : "draft",
  "date" : "2016-08-01T00:00:00+10:00",
  "publisher" : "HL7 US Realm Steering Committee",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.healthit.gov"
        }
      ]
    }
  ],
  "description" : "Defines constraints and extensions on the CarePlan resource for the minimal set of data to query and retrieve a patient's Care Plan.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US",
          "display" : "United States of America"
        }
      ]
    }
  ],
  "fhirVersion" : "3.0.1",
  "mapping" : [
    {
      "identity" : "argonaut-dq-dstu2",
      "uri" : "http://unknown.org/Argonaut-DQ-DSTU2",
      "name" : "Argonaut-DQ-DSTU2"
    },
    {
      "identity" : "workflow",
      "uri" : "http://hl7.org/fhir/workflow",
      "name" : "Workflow Mapping"
    },
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM Mapping"
    },
    {
      "identity" : "w5",
      "uri" : "http://hl7.org/fhir/w5",
      "name" : "W5 Mapping"
    },
    {
      "identity" : "v2",
      "uri" : "http://hl7.org/v2",
      "name" : "HL7 v2 Mapping"
    }
  ],
  "kind" : "resource",
  "abstract" : false,
  "type" : "CarePlan",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation" : "constraint",
  "snapshot" : {
    "element" : [
      {
        "id" : "CarePlan",
        "path" : "CarePlan",
        "short" : "US Core CarePlan Profile",
        "definition" : "The US Core CarePlan Profile is based upon the core FHIR CarePlan Resource and created to meet the 2015 Edition Common Clinical Data Set 'Assessment and Plan of Treatment requirements.",
        "alias" : [
          "Care Team"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan",
          "min" : 0,
          "max" : "*"
        },
        "constraint" : [
          {
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "DomainResource"
          },
          {
            "key" : "dom-1",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain any narrative",
            "expression" : "contained.text.empty()",
            "xpath" : "not(parent::f:contained and f:text)",
            "source" : "DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
            "expression" : "contained.where(('#'+id in %resource.descendants().reference).not()).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
            "source" : "DomainResource"
          }
        ],
        "mustSupport" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Request"
          },
          {
            "identity" : "rim",
            "map" : "Act[classCode=PCPR, moodCode=INT]"
          },
          {
            "identity" : "w5",
            "map" : "clinical.careprovision"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan"
          }
        ]
      },
      {
        "id" : "CarePlan.id",
        "path" : "CarePlan.id",
        "short" : "Logical id of this artifact",
        "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comment" : "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" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "CarePlan.meta",
        "path" : "CarePlan.meta",
        "short" : "Metadata about the resource",
        "definition" : "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" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.meta",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Meta"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "CarePlan.implicitRules",
        "path" : "CarePlan.implicitRules",
        "short" : "A set of rules under which this content was created",
        "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comment" : "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. 

This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.implicitRules",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          }
        ],
        "isModifier" : true,
        "isSummary" : true
      },
      {
        "id" : "CarePlan.language",
        "path" : "CarePlan.language",
        "short" : "Language of the resource content",
        "definition" : "The base language in which the resource is written.",
        "comment" : "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" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.language",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference" : {
                "reference" : "http://hl7.org/fhir/ValueSet/all-languages"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }
          ],
          "strength" : "extensible",
          "description" : "A human language.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/languages"
          }
        }
      },
      {
        "id" : "CarePlan.text",
        "path" : "CarePlan.text",
        "short" : "Text summary of the resource, for human interpretation",
        "definition" : "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 "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comment" : "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 "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.",
        "alias" : [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "DomainResource.text",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Narrative"
          }
        ],
        "condition" : [
          "dom-1"
        ],
        "mustSupport" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Act.text?"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.text"
          }
        ]
      },
      {
        "id" : "CarePlan.text.id",
        "path" : "CarePlan.text.id",
        "representation" : [
          "xmlAttr"
        ],
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.text.extension",
        "path" : "CarePlan.text.extension",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "url"
            }
          ],
          "description" : "Extensions are always sliced by (at least) url",
          "rules" : "open"
        },
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.text.status",
        "path" : "CarePlan.text.status",
        "short" : "generated | extensions | additional | empty",
        "definition" : "generated | additional.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Narrative.status",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Constrained value set of narrative statuses.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/us/core/ValueSet/us-core-narrative-status"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.text.status"
          }
        ]
      },
      {
        "id" : "CarePlan.text.div",
        "path" : "CarePlan.text.div",
        "short" : "Limited xhtml content",
        "definition" : "The actual narrative content, a stripped down version of XHTML.",
        "comment" : "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, <a> 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" : 1,
        "max" : "1",
        "base" : {
          "path" : "Narrative.div",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "xhtml"
          }
        ],
        "constraint" : [
          {
            "key" : "txt-1",
            "severity" : "error",
            "human" : "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, <a> elements (either name or href), images and internally contained style attributes",
            "expression" : "htmlchecks()",
            "xpath" : "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])"
          },
          {
            "key" : "txt-2",
            "severity" : "error",
            "human" : "The narrative SHALL have some non-whitespace content",
            "expression" : "htmlchecks()",
            "xpath" : "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.contained",
        "path" : "CarePlan.contained",
        "short" : "Contained, inline Resources",
        "definition" : "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.",
        "comment" : "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" : [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.contained",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Resource"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.extension",
        "path" : "CarePlan.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.modifierExtension",
        "path" : "CarePlan.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.identifier",
        "path" : "CarePlan.identifier",
        "short" : "External Ids for this plan",
        "definition" : "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" : "Need to allow connection to a wider workflow.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.identifier",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Identifier"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.identifier"
          },
          {
            "identity" : "v2",
            "map" : "PTH-3"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          },
          {
            "identity" : "w5",
            "map" : "id"
          }
        ]
      },
      {
        "id" : "CarePlan.definition",
        "path" : "CarePlan.definition",
        "short" : "Protocol or definition",
        "definition" : "Identifies the protocol, questionnaire, guideline or other specification the care plan should be conducted in accordance with.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.definition",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Questionnaire"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.definition"
          }
        ]
      },
      {
        "id" : "CarePlan.basedOn",
        "path" : "CarePlan.basedOn",
        "short" : "Fulfills care plan",
        "definition" : "A care plan that is fulfilled in whole or in part by this care plan.",
        "requirements" : "Allows tracing of the care plan and tracking whether proposals/recommendations were acted upon.",
        "alias" : [
          "fulfills"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.basedOn",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.basedOn"
          }
        ]
      },
      {
        "id" : "CarePlan.replaces",
        "path" : "CarePlan.replaces",
        "short" : "CarePlan replaced by this CarePlan",
        "definition" : "Completed or terminated care plan whose function is taken by this new care plan.",
        "comment" : "The replacement could be because the initial care plan was immediately rejected (due to an issue) or because the previous care plan was completed, but the need for the action described by the care plan remains ongoing.",
        "requirements" : "Allows tracing the continuation of a therapy or administrative process instantiated through multiple care plans.",
        "alias" : [
          "supersedes"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.replaces",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.replaces"
          }
        ]
      },
      {
        "id" : "CarePlan.partOf",
        "path" : "CarePlan.partOf",
        "short" : "Part of referenced CarePlan",
        "definition" : "A larger care plan of which this particular care plan is a component or step.",
        "comment" : "Each care plan is an independent request, such that having a care plan be part of another care plan can cause issues with cascading statuses.  As such, this element is still being discussed.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.partOf",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "CarePlan.status",
        "path" : "CarePlan.status",
        "short" : "draft | active | suspended | completed | entered-in-error | cancelled | unknown",
        "definition" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
        "comment" : "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't know the current state of the care plan.

This element is labeled as a modifier because the status contains the code entered-in-error] that marks the plan as not currently valid.",
        "requirements" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.status",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "isModifier" : true,
        "isSummary" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-status"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.status (uses different ValueSet)"
          },
          {
            "identity" : "v2",
            "map" : "PTH-5"
          },
          {
            "identity" : "rim",
            "map" : ".statusCode planned = new active = active completed = completed"
          },
          {
            "identity" : "w5",
            "map" : "status"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.status"
          }
        ]
      },
      {
        "id" : "CarePlan.intent",
        "path" : "CarePlan.intent",
        "short" : "proposal | plan | order | option",
        "definition" : "Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.",
        "comment" : "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
        "requirements" : "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.intent",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "isModifier" : true,
        "isSummary" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Codes indicating the degree of authority/intentionality associated with a care plan",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-intent"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.intent"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "NA (new element in STU3)"
          }
        ]
      },
      {
        "id" : "CarePlan.category",
        "path" : "CarePlan.category",
        "short" : "Type of plan",
        "definition" : "Type of plan.",
        "comment" : "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" : "Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.",
        "min" : 1,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.category",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "constraint" : [
          {
            "key" : "us-core-1",
            "severity" : "error",
            "human" : "Must have a category of 'assess-plan' and a code system 'http://hl7.org/fhir/us/core/CodeSystem/careplan-category'",
            "expression" : "where(coding.system='http://hl7.org/fhir/us/core/CodeSystem/careplan-category' and coding.code='assess-plan').exists()",
            "xpath" : "exists(f:coding/code[@value='assess-plan']) and exists(f:coding/system[@value='http://hl7.org/fhir/us/core/CodeSystem/careplan-category'])"
          }
        ],
        "mustSupport" : true,
        "isSummary" : true,
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanCategory"
            }
          ],
          "strength" : "example",
          "description" : "Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-category"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.supportingInfo"
          },
          {
            "identity" : "w5",
            "map" : "class"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.category"
          }
        ]
      },
      {
        "id" : "CarePlan.title",
        "path" : "CarePlan.title",
        "short" : "Human-friendly name for the CarePlan",
        "definition" : "Human-friendly name for the CarePlan.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.title",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "CarePlan.description",
        "path" : "CarePlan.description",
        "short" : "Summary of nature of plan",
        "definition" : "A description of the scope and nature of the plan.",
        "requirements" : "Provides more detail than conveyed by category.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.description",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "w5",
            "map" : "what"
          }
        ]
      },
      {
        "id" : "CarePlan.subject",
        "path" : "CarePlan.subject",
        "short" : "Who care plan is for",
        "definition" : "Who care plan is for.",
        "requirements" : "Identifies the patient or group whose intended care is described by the plan.",
        "alias" : [
          "patient"
        ],
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.subject",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
          }
        ],
        "mustSupport" : true,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.subject"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PAT].role[classCode=PAT]"
          },
          {
            "identity" : "w5",
            "map" : "who.focus"
          },
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.subject"
          }
        ]
      },
      {
        "id" : "CarePlan.context",
        "path" : "CarePlan.context",
        "short" : "Created in context of",
        "definition" : "Identifies the original context in which this particular CarePlan was created.",
        "comment" : "Activities conducted as a result of the care plan may well occur as part of other encounters/episodes.",
        "alias" : [
          "encounter"
        ],
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.context",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.context"
          },
          {
            "identity" : "v2",
            "map" : "Associated PV1"
          },
          {
            "identity" : "rim",
            "map" : "."
          },
          {
            "identity" : "w5",
            "map" : "context"
          }
        ]
      },
      {
        "id" : "CarePlan.period",
        "path" : "CarePlan.period",
        "short" : "Time period plan covers",
        "definition" : "Indicates when the plan did (or is intended to) come into effect and end.",
        "comment" : "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" : "Allows tracking what plan(s) are in effect at a particular time.",
        "alias" : [
          "timing"
        ],
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.period",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Period"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.occurrencePeriod"
          },
          {
            "identity" : "v2",
            "map" : "GOL-7 / GOL-8"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "w5",
            "map" : "when.init"
          }
        ]
      },
      {
        "id" : "CarePlan.author",
        "path" : "CarePlan.author",
        "short" : "Who is responsible for contents of the plan",
        "definition" : "Identifies the individual(s) or ogranization who is responsible for the content of the care plan.",
        "comment" : "Collaborative care plans may have multiple authors.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.author",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CareTeam"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.requester.agent (if only one author)"
          },
          {
            "identity" : "w5",
            "map" : "who.source"
          }
        ]
      },
      {
        "id" : "CarePlan.careTeam",
        "path" : "CarePlan.careTeam",
        "short" : "Who's involved in plan?",
        "definition" : "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
        "requirements" : "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.careTeam",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CareTeam"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.performer (similar but does not entail CareTeam)"
          },
          {
            "identity" : "w5",
            "map" : "who.actor"
          }
        ]
      },
      {
        "id" : "CarePlan.addresses",
        "path" : "CarePlan.addresses",
        "short" : "Health issues this plan addresses",
        "definition" : "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
        "requirements" : "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 "at risk for hypertension" or "fall risk".)  Also scopes plans - multiple plans may exist addressing different concerns.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.addresses",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.reasonReference"
          },
          {
            "identity" : "v2",
            "map" : "PRB-4"
          },
          {
            "identity" : "rim",
            "map" : ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
          },
          {
            "identity" : "w5",
            "map" : "why"
          }
        ]
      },
      {
        "id" : "CarePlan.supportingInfo",
        "path" : "CarePlan.supportingInfo",
        "short" : "Information considered as part of plan",
        "definition" : "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc.",
        "comment" : "Use "concern" to identify specific conditions addressed by the care plan.",
        "requirements" : "Identifies barriers and other considerations associated with the care plan.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.supportingInfo",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.supportingInfo"
          }
        ]
      },
      {
        "id" : "CarePlan.goal",
        "path" : "CarePlan.goal",
        "short" : "Desired outcome of plan",
        "definition" : "Describes the intended objective(s) of carrying out the care plan.",
        "comment" : "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
        "requirements" : "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.goal",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "GOL.1"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "id" : "CarePlan.activity",
        "path" : "CarePlan.activity",
        "short" : "Action to occur as part of plan",
        "definition" : "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" : "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() | (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "Element"
          },
          {
            "key" : "cpl-3",
            "severity" : "error",
            "human" : "Provide a reference or detail, not both",
            "expression" : "detail.empty() or reference.empty()",
            "xpath" : "not(exists(f:detail)) or not(exists(f:reference))"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "no mapping
NOTE: This is a list of contained Request-Event tuples!"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.id",
        "path" : "CarePlan.activity.id",
        "representation" : [
          "xmlAttr"
        ],
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.extension",
        "path" : "CarePlan.activity.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.modifierExtension",
        "path" : "CarePlan.activity.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.outcomeCodeableConcept",
        "path" : "CarePlan.activity.outcomeCodeableConcept",
        "short" : "Results of the activity",
        "definition" : "Identifies the outcome at the point when the status of the activity is assessed.  For example, the outcome of an education activity could be patient understands (or not).",
        "comment" : "Note that this should not duplicate the activity status (e.g. completed or in progress).",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.outcomeCodeableConcept",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanActivityOutcome"
            }
          ],
          "strength" : "example",
          "description" : "Identifies the results of the activity",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome"
          }
        }
      },
      {
        "id" : "CarePlan.activity.outcomeReference",
        "path" : "CarePlan.activity.outcomeReference",
        "short" : "Appointment, Encounter, Procedure, etc.",
        "definition" : "Details of the outcome or action resulting from the activity.  The reference to an "event" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself.  The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).",
        "comment" : "The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 lb and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.",
        "requirements" : "Links plan to resulting actions.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.outcomeReference",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Event that is outcome of Request in activity.reference"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=FLFS].source"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.progress",
        "path" : "CarePlan.activity.progress",
        "short" : "Comments about the activity status/progress",
        "definition" : "Notes about the adherence/status/progress of the activity.",
        "comment" : "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" : "Can be used to capture information about adherence, progress, concerns, etc.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.progress",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Annotation"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Event.status (Annotation instead of CodableConcept)"
          },
          {
            "identity" : "v2",
            "map" : "NTE?"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.reference",
        "path" : "CarePlan.activity.reference",
        "short" : "Activity details defined in specific resource",
        "definition" : "The details of the proposed activity represented in a specific resource.",
        "comment" : "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 "basedOn" element.  i.e. Requests that are part of a CarePlan are not "based on" the CarePlan.",
        "requirements" : "Details in a form consistent with other applications and contexts of use.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.reference",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Appointment"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/DeviceRequest"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Task"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/RequestGroup"
          }
        ],
        "condition" : [
          "cpl-3"
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request that resulted in Event in activity.actionResulting"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail",
        "path" : "CarePlan.activity.detail",
        "short" : "In-line definition of activity",
        "definition" : "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
        "requirements" : "Details in a simple form for generic care plan systems.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "condition" : [
          "cpl-3"
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() | (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "Element"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.id",
        "path" : "CarePlan.activity.detail.id",
        "representation" : [
          "xmlAttr"
        ],
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.extension",
        "path" : "CarePlan.activity.detail.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.modifierExtension",
        "path" : "CarePlan.activity.detail.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comment" : "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" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.category",
        "path" : "CarePlan.activity.detail.category",
        "short" : "diet | drug | encounter | observation | procedure | supply | other",
        "definition" : "High-level categorization of the type of activity in a care plan.",
        "requirements" : "May determine what types of extensions are permitted.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.category",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanActivityCategory"
            }
          ],
          "strength" : "example",
          "description" : "High-level categorization of the type of activity in a care plan.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-activity-category"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.supportingInformation"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.definition",
        "path" : "CarePlan.activity.detail.definition",
        "short" : "Protocol or definition",
        "definition" : "Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.",
        "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.definition",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Questionnaire"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.definition"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.code",
        "path" : "CarePlan.activity.detail.code",
        "short" : "Detail type of activity",
        "definition" : "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.",
        "comment" : "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use "prohibited" instead.",
        "requirements" : "Allows matching performed to planned as well as validation against protocols.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.code",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanActivityType"
            }
          ],
          "strength" : "example",
          "description" : "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-activity"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.code"
          },
          {
            "identity" : "v2",
            "map" : "OBR-4 / RXE-2 / RXO-1  / RXD-2"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.reasonCode",
        "path" : "CarePlan.activity.detail.reasonCode",
        "short" : "Why activity should be done or why activity was prohibited",
        "definition" : "Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.",
        "comment" : "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.detail.reasonCode",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanActivityReason"
            }
          ],
          "strength" : "example",
          "description" : "Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as "general wellness", prophylaxis, surgical preparation, etc.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/activity-reason"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.reasonCode"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.reasonReference",
        "path" : "CarePlan.activity.detail.reasonReference",
        "short" : "Condition triggering need for activity",
        "definition" : "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
        "comment" : "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.detail.reasonReference",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.reasonReference"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.goal",
        "path" : "CarePlan.activity.detail.goal",
        "short" : "Goals this activity relates to",
        "definition" : "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
        "requirements" : "So that participants know the link explicitly.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.detail.goal",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.goal"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.status",
        "path" : "CarePlan.activity.detail.status",
        "short" : "not-started | scheduled | in-progress | on-hold | completed | cancelled | unknown",
        "definition" : "Identifies what progress is being made for the specific activity.",
        "comment" : "Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that "status" 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't know the current state of the activity.",
        "requirements" : "Indicates progress against the plan, whether the activity is still relevant for the plan.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.status",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "isModifier" : true,
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanActivityStatus"
            }
          ],
          "strength" : "required",
          "description" : "Indicates where the activity is at in its overall life cycle.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-activity-status"
          }
        },
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.status (uses different ValueSet)"
          },
          {
            "identity" : "v2",
            "map" : "ORC-5?"
          },
          {
            "identity" : "rim",
            "map" : ".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.statusReason",
        "path" : "CarePlan.activity.detail.statusReason",
        "short" : "Reason for current status",
        "definition" : "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "comment" : "Will generally not be present if status is "complete".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.statusReason",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.prohibited",
        "path" : "CarePlan.activity.detail.prohibited",
        "short" : "Do NOT do",
        "definition" : "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.",
        "comment" : "This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.",
        "requirements" : "Captures intention to not do something that may have been previously typical.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.prohibited",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "boolean"
          }
        ],
        "defaultValueBoolean" : false,
        "isModifier" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "actionNegationInd"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.scheduled[x]",
        "path" : "CarePlan.activity.detail.scheduled[x]",
        "short" : "When activity is to occur",
        "definition" : "The period, timing or frequency upon which the described activity is to occur.",
        "requirements" : "Allows prompting for activities and detection of missed planned activities.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.scheduled[x]",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Timing"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "string"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.occurrence"
          },
          {
            "identity" : "v2",
            "map" : "TQ1"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.location",
        "path" : "CarePlan.activity.detail.location",
        "short" : "Where it should happen",
        "definition" : "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
        "comment" : "May reference a specific clinical location or may identify a type of location.",
        "requirements" : "Helps in planning of activity.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.location",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ],
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "OBR-24(???!!)"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=LOC].role"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.performer",
        "path" : "CarePlan.activity.detail.performer",
        "short" : "Who will be responsible?",
        "definition" : "Identifies who's expected to be involved in the activity.",
        "comment" : "A performer MAY also be a participant in the care plan.",
        "requirements" : "Helps in planning of activity.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.activity.detail.performer",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/CareTeam"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.performer"
          },
          {
            "identity" : "v2",
            "map" : "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"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.product[x]",
        "path" : "CarePlan.activity.detail.product[x]",
        "short" : "What is to be administered/supplied",
        "definition" : "Identifies the food, drug or other product to be consumed or supplied in the activity.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.product[x]",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Medication"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CarePlanProduct"
            }
          ],
          "strength" : "example",
          "description" : "A product supplied or administered as part of a care plan activity.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/medication-codes"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXE-2 / RXO-1 / RXD-2"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRD].role"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.dailyAmount",
        "path" : "CarePlan.activity.detail.dailyAmount",
        "short" : "How to consume/day?",
        "definition" : "Identifies the quantity expected to be consumed in a given day.",
        "requirements" : "Allows rough dose checking.",
        "alias" : [
          "daily dose"
        ],
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.dailyAmount",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Quantity",
            "profile" : "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXO-23 / RXE-19 / RXD-12"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.quantity",
        "path" : "CarePlan.activity.detail.quantity",
        "short" : "How much to administer/supply/consume",
        "definition" : "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.quantity",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Quantity",
            "profile" : "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "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"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
          }
        ]
      },
      {
        "id" : "CarePlan.activity.detail.description",
        "path" : "CarePlan.activity.detail.description",
        "short" : "Extra info describing activity to perform",
        "definition" : "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" : 0,
        "max" : "1",
        "base" : {
          "path" : "CarePlan.activity.detail.description",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.note"
          },
          {
            "identity" : "v2",
            "map" : "NTE?"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          }
        ]
      },
      {
        "id" : "CarePlan.note",
        "path" : "CarePlan.note",
        "short" : "Comments about the plan",
        "definition" : "General notes about the care plan not covered elsewhere.",
        "requirements" : "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "CarePlan.note",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Annotation"
          }
        ],
        "mapping" : [
          {
            "identity" : "workflow",
            "map" : "Request.note"
          },
          {
            "identity" : "v2",
            "map" : "NTE?"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value"
          }
        ]
      }
    ]
  },
  "differential" : {
    "element" : [
      {
        "id" : "CarePlan",
        "path" : "CarePlan",
        "short" : "US Core CarePlan Profile",
        "definition" : "The US Core CarePlan Profile is based upon the core FHIR CarePlan Resource and created to meet the 2015 Edition Common Clinical Data Set 'Assessment and Plan of Treatment requirements.",
        "mustSupport" : false,
        "isModifier" : false,
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan"
          }
        ]
      },
      {
        "id" : "CarePlan.text",
        "path" : "CarePlan.text",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Narrative"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.text"
          }
        ]
      },
      {
        "id" : "CarePlan.text.status",
        "path" : "CarePlan.text.status",
        "definition" : "generated | additional.",
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "binding" : {
          "strength" : "required",
          "description" : "Constrained value set of narrative statuses.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/us/core/ValueSet/us-core-narrative-status"
          }
        },
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.text.status"
          }
        ]
      },
      {
        "id" : "CarePlan.status",
        "path" : "CarePlan.status",
        "requirements" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "binding" : {
          "strength" : "required",
          "description" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-status"
          }
        },
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.status"
          }
        ]
      },
      {
        "id" : "CarePlan.intent",
        "path" : "CarePlan.intent",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "code"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "binding" : {
          "strength" : "required",
          "description" : "Codes indicating the degree of authority/intentionality associated with a care plan",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/care-plan-intent"
          }
        },
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "NA (new element in STU3)"
          }
        ]
      },
      {
        "id" : "CarePlan.category",
        "path" : "CarePlan.category",
        "definition" : "Type of plan.",
        "requirements" : "Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.",
        "min" : 1,
        "max" : "*",
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "constraint" : [
          {
            "key" : "us-core-1",
            "severity" : "error",
            "human" : "Must have a category of 'assess-plan' and a code system 'http://hl7.org/fhir/us/core/CodeSystem/careplan-category'",
            "expression" : "where(coding.system='http://hl7.org/fhir/us/core/CodeSystem/careplan-category' and coding.code='assess-plan').exists()",
            "xpath" : "exists(f:coding/code[@value='assess-plan']) and exists(f:coding/system[@value='http://hl7.org/fhir/us/core/CodeSystem/careplan-category'])"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.category"
          }
        ]
      },
      {
        "id" : "CarePlan.subject",
        "path" : "CarePlan.subject",
        "definition" : "Who care plan is for.",
        "requirements" : "Identifies the patient or group whose intended care is described by the plan.",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
          }
        ],
        "mustSupport" : true,
        "isModifier" : false,
        "mapping" : [
          {
            "identity" : "argonaut-dq-dstu2",
            "map" : "CarePlan.subject"
          }
        ]
      }
    ]
  }
}