Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Example StructureDefinition/CarePlan (JSON)

Patient Care Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Encounter, Patient, Practitioner, RelatedPerson

Raw JSON (canonical form + also see JSON Format Specification)

StructureDefinition for careplan

{
  "resourceType" : "StructureDefinition",
  "id" : "CarePlan",
  "meta" : {
    "lastUpdated" : "2022-09-07T10:58:29.429+10:00"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div>!-- Snipped for Brevity --></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString" : "Clinical.Care Provision"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode" : "patient"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "pc"
  }],
  "url" : "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "version" : "5.0.0-ballot",
  "name" : "CarePlan",
  "status" : "draft",
  "experimental" : false,
  "date" : "2022-09-07T10:58:29+10:00",
  "publisher" : "Health Level Seven International (Patient Care)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  },
  {
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/patientcare/index.cfm"
    }]
  }],
  "description" : "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
  "fhirVersion" : "5.0.0-ballot",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "CarePlan",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation" : "specialization",
  "snapshot" : {
    "element" : [{
      "id" : "CarePlan",
      "path" : "CarePlan",
      "short" : "Healthcare plan for patient or group",
      "definition" : "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
      "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" : "http://hl7.org/fhir/StructureDefinition/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 or SHALL refer to the containing resource",
        "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
        "xpath" : "not(exists(for $contained in f:contained return $contained[not(exists(parent::*/descendant::f:reference/@value=concat('#', $contained/*/f:id/@value)) or exists(descendant::f:reference[@value='#']))]))",
        "source" : "http://hl7.org/fhir/StructureDefinition/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" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "key" : "dom-5",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
        "expression" : "contained.meta.security.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        }],
        "key" : "dom-6",
        "severity" : "warning",
        "human" : "A resource should have narrative for robust management",
        "expression" : "text.`div`.exists()",
        "xpath" : "exists(f:text/h:div)",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : 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"
      }]
    },
    {
      "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" : "Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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 might 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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.implicitRules",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "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" : "preferred",
        "description" : "IETF language tag",
        "valueSet" : "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 can 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 a 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 information is added later.",
      "alias" : ["narrative",
      "html",
      "xhtml",
      "display"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.text",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Narrative"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Act.text?"
      }]
    },
    {
      "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, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.",
      "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. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.",
      "alias" : ["inline resources",
      "anonymous resources",
      "contained resources"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.contained",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Resource"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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. 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 can 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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "CarePlan.identifier",
      "path" : "CarePlan.identifier",
      "short" : "External Ids for this plan",
      "definition" : "Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
      "comment" : "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
      "requirements" : "Allows identification of the care plan as it is known by various participating systems and in a way that remains consistent across servers.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "PTH-3"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "CarePlan.instantiatesCanonical",
      "path" : "CarePlan.instantiatesCanonical",
      "short" : "Instantiates FHIR protocol or definition",
      "definition" : "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.instantiatesCanonical",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "http://hl7.org/fhir/StructureDefinition/Measure",
        "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesCanonical"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.instantiatesUri",
      "path" : "CarePlan.instantiatesUri",
      "short" : "Instantiates external protocol or definition",
      "definition" : "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
      "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.instantiatesUri",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "uri"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.basedOn",
      "path" : "CarePlan.basedOn",
      "short" : "Fulfills CarePlan",
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "CarePlan.status",
      "path" : "CarePlan.status",
      "short" : "draft | active | on-hold | revoked | completed | entered-in-error | 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.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the plan as not currently valid.",
      "requirements" : "Allows clinicians to determine whether the plan is actionable or not.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.status",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanStatus"
        }],
        "strength" : "required",
        "description" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/request-status|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.status {uses different ValueSet}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "v2",
        "map" : "PTH-5"
      },
      {
        "identity" : "rim",
        "map" : ".statusCode planned = new active = active completed = completed"
      }]
    },
    {
      "id" : "CarePlan.intent",
      "path" : "CarePlan.intent",
      "short" : "proposal | plan | order | option | directive",
      "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.\nThis element is expected to be immutable. E.g. A \"proposal\" instance should never change to be a \"plan\" instance or \"order\" instance. Instead, a new instance 'basedOn' the prior instance should be created with the new 'intent' value.",
      "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request\"",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanIntent"
        }],
        "strength" : "required",
        "description" : "Codes indicating the degree of authority/intentionality associated with a care plan.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-intent|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.intent"
      }]
    },
    {
      "id" : "CarePlan.category",
      "path" : "CarePlan.category",
      "short" : "Type of plan",
      "definition" : "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.",
      "comment" : "There may be multiple axes of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
      "requirements" : "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.category",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-category"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      }]
    },
    {
      "id" : "CarePlan.title",
      "path" : "CarePlan.title",
      "short" : "Human-friendly name for the care plan",
      "definition" : "Human-friendly name for the care plan.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.title",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      }]
    },
    {
      "id" : "CarePlan.subject",
      "path" : "CarePlan.subject",
      "short" : "Who the care plan is for",
      "definition" : "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/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PAT].role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "CarePlan.encounter",
      "path" : "CarePlan.encounter",
      "short" : "The Encounter during which this CarePlan was created",
      "definition" : "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
      "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.encounter",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "Associated PV1"
      },
      {
        "identity" : "rim",
        "map" : "."
      }]
    },
    {
      "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "v2",
        "map" : "GOL-7 / GOL-8"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "CarePlan.created",
      "path" : "CarePlan.created",
      "short" : "Date record was first recorded",
      "definition" : "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
      "alias" : ["authoredOn"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.created",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.authoredOn"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].time"
      }]
    },
    {
      "id" : "CarePlan.custodian",
      "path" : "CarePlan.custodian",
      "short" : "Who is the designated responsible party",
      "definition" : "When populated, the custodian is responsible for the care plan. The care plan is attributed to the custodian.",
      "comment" : "The custodian might or might not be a contributor.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.custodian",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.requester"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      }]
    },
    {
      "id" : "CarePlan.contributor",
      "path" : "CarePlan.contributor",
      "short" : "Who provided the content of the care plan",
      "definition" : "Identifies the individual(s), organization or device who provided the contents of the care plan.",
      "comment" : "Collaborative care plans may have multiple contributors.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.contributor",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer {similar but does not entail CareTeam}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.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.",
      "comment" : "Use CarePlan.addresses.concept when a code sufficiently describes the concern (e.g. condition, problem, diagnosis, risk). Use CarePlan.addresses.reference when referencing a resource, which allows more information to be conveyed, such as onset date. CarePlan.addresses.concept and CarePlan.addresses.reference are not meant to be duplicative. For a single concern, either CarePlan.addresses.concept or CarePlan.addresses.reference can be used. CarePlan.addresses.concept may be a summary code, or CarePlan.addresses.reference may be used to reference a very precise definition of the concern using Condition. Both CarePlan.addresses.concept and CarePlan.addresses.reference can be used if they are describing different concerns for the care plan.",
      "requirements" : "The element can identify risks addressed by the plan as well as concerns.  Also scopes plans - multiple plans may exist addressing different concerns.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.addresses",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanAddresses"
        }],
        "strength" : "example",
        "description" : "Codes that describe the health issues this plan addresses.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "PRB-4"
      },
      {
        "identity" : "rim",
        "map" : ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
      }]
    },
    {
      "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 comorbidities, recent procedures, limitations, recent assessments, etc.",
      "comment" : "Use \"concern\" to identify specific conditions addressed by the care plan.  supportingInfo can be used to convey one or more Advance Directives or Medical Treatment Consent Directives by referencing Consent or any other request resource with intent = directive.",
      "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"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "GOL.1"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode<=OBJ]."
      }]
    },
    {
      "id" : "CarePlan.activity",
      "path" : "CarePlan.activity",
      "short" : "Action to occur or has occurred as part of plan",
      "definition" : "Identifies an action that has occurred or is a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring that has occurred, 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" : "cpl-3",
        "severity" : "error",
        "human" : "Provide a plannedActivityReference or plannedActivityDetail, not both",
        "expression" : "plannedActivityDetail.empty() or plannedActivityReference.empty()",
        "xpath" : "not(exists(f:plannedActivityDetail)) or not(exists(f:plannedActivityReference))",
        "source" : "http://hl7.org/fhir/StructureDefinition/CarePlan"
      },
      {
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{no mapping\nNOTE: 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" : "Unique id for inter-element referencing",
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "string"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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. 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 can 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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.modifierExtension",
      "path" : "CarePlan.activity.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "CarePlan.activity.performedActivity",
      "path" : "CarePlan.activity.performedActivity",
      "short" : "Results of the activity (concept, or Appointment, Encounter, Procedure, etc)",
      "definition" : "Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource).",
      "comment" : "Note that this should not duplicate the activity status (e.g. completed or in progress). The activity performed is independent of the outcome of the related goal(s). For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to exercise, then the activity performed could be amount and intensity of exercise performed 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.performedActivity",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityPerformed"
        }],
        "strength" : "example",
        "description" : "Identifies the results of the activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-performed"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Event that is outcome of Request in activity.plannedActivityReference}"
      },
      {
        "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "NTE?"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityReference",
      "path" : "CarePlan.activity.plannedActivityReference",
      "short" : "Activity that is intended to be part of the care plan",
      "definition" : "The details of the proposed activity represented in a specific resource.",
      "comment" : "Standard extension exists ([resource-pertainsToGoal](extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.plannedActivityReference.  \nThe goal should be visible when the resource referenced by CarePlan.activity.plannedActivityReference is viewed independently 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.plannedActivityReference",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Appointment",
        "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
        "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
        "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
        "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
        "http://hl7.org/fhir/StructureDefinition/Task",
        "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
        "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
        "http://hl7.org/fhir/StructureDefinition/RequestOrchestration",
        "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]
      }],
      "condition" : ["cpl-3"],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Request that resulted in Event in activity.performedActivity}"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail",
      "path" : "CarePlan.activity.plannedActivityDetail",
      "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.plannedActivityDetail",
        "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() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.id",
      "path" : "CarePlan.activity.plannedActivityDetail.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "string"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.extension",
      "path" : "CarePlan.activity.plannedActivityDetail.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. 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 can 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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.modifierExtension",
      "path" : "CarePlan.activity.plannedActivityDetail.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.kind",
      "path" : "CarePlan.activity.plannedActivityDetail.kind",
      "short" : "Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription",
      "definition" : "A description of the kind of resource the in-line definition of a care plan activity is representing.  The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference.  For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.",
      "requirements" : "May determine what types of extensions are permitted.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.plannedActivityDetail.kind",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityKind"
        }],
        "strength" : "required",
        "description" : "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.instantiatesCanonical",
      "path" : "CarePlan.activity.plannedActivityDetail.instantiatesCanonical",
      "short" : "Instantiates FHIR protocol or definition",
      "definition" : "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.plannedActivityDetail.instantiatesCanonical",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "http://hl7.org/fhir/StructureDefinition/Measure",
        "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesCanonical"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.instantiatesUri",
      "path" : "CarePlan.activity.plannedActivityDetail.instantiatesUri",
      "short" : "Instantiates external protocol or definition",
      "definition" : "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.plannedActivityDetail.instantiatesUri",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "uri"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.code",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.code",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-code"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.code"
      },
      {
        "identity" : "v2",
        "map" : "OBR-4 / RXE-2 / RXO-1 / RXD-2"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.reason",
      "path" : "CarePlan.activity.plannedActivityDetail.reason",
      "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 - either a coded concept, or another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.",
      "comment" : "This could be a diagnosis code.  If a full condition record exists, us reason.reference instead. 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.plannedActivityDetail.reason",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.goal",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.goal",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Goal"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode<=OBJ]."
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.status",
      "path" : "CarePlan.activity.plannedActivityDetail.status",
      "short" : "not-started | scheduled | in-progress | on-hold | completed | cancelled | stopped | unknown | entered-in-error",
      "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.  \nThe 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.plannedActivityDetail.status",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid",
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityStatus"
        }],
        "strength" : "required",
        "description" : "Codes that reflect the current state of a care plan activity within its overall life cycle.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-status|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.status"
      },
      {
        "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.plannedActivityDetail.statusReason",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.statusReason",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityStatusReason"
        }],
        "strength" : "example",
        "description" : "Codes that describe the reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-status-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.statusReason"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.doNotPerform",
      "path" : "CarePlan.activity.plannedActivityDetail.doNotPerform",
      "short" : "If true, activity is prohibiting action",
      "definition" : "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.  If false, or missing, 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.plannedActivityDetail.doNotPerform",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "If missing indicates that the described activity is one that should be engaged in when following the plan.",
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur.",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.doNotPerform"
      },
      {
        "identity" : "rim",
        "map" : "actionNegationInd"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.scheduled[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.scheduled[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Timing"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "v2",
        "map" : "TQ1"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.location",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.location",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityLocation"
        }],
        "strength" : "extensible",
        "description" : "A location type where services are delivered.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "OBR-24(???!!)"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=LOC].role"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.reported[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.reported[x]",
      "short" : "Reported rather than primary record",
      "definition" : "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record.  It may also indicate the source of the report.",
      "requirements" : "Reported data may have different rules on editing and may be visually distinguished from primary data.",
      "alias" : ["informer"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.plannedActivityDetail.reported[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reported[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.source"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=RPT].role"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.performer",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.performer",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer"
      },
      {
        "identity" : "v2",
        "map" : "PRT-5 : ( PRV-4 = (provider participations)); PRT-5 : ( PRV-4 = (non-provider person participations )) ; PRT-5 : ( PRV-4 = (patient non-subject of care) ) ; PRT-8"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.product[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.product[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "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.plannedActivityDetail.dailyAmount",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.dailyAmount",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "RXO-23 / RXE-19 / RXD-12"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.quantity",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.quantity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.plannedActivityDetail.description",
      "path" : "CarePlan.activity.plannedActivityDetail.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.plannedActivityDetail.description",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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" : "Healthcare plan for patient or group",
      "definition" : "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
      "alias" : ["Care Team"],
      "min" : 0,
      "max" : "*",
      "mustSupport" : false,
      "isModifier" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request"
      },
      {
        "identity" : "rim",
        "map" : "Act[classCode=PCPR, moodCode=INT]"
      },
      {
        "identity" : "w5",
        "map" : "clinical.careprovision"
      }]
    },
    {
      "id" : "CarePlan.identifier",
      "path" : "CarePlan.identifier",
      "short" : "External Ids for this plan",
      "definition" : "Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
      "comment" : "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
      "requirements" : "Allows identification of the care plan as it is known by various participating systems and in a way that remains consistent across servers.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "PTH-3"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "CarePlan.instantiatesCanonical",
      "path" : "CarePlan.instantiatesCanonical",
      "short" : "Instantiates FHIR protocol or definition",
      "definition" : "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "http://hl7.org/fhir/StructureDefinition/Measure",
        "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesCanonical"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.instantiatesUri",
      "path" : "CarePlan.instantiatesUri",
      "short" : "Instantiates external protocol or definition",
      "definition" : "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
      "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "uri"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.basedOn",
      "path" : "CarePlan.basedOn",
      "short" : "Fulfills CarePlan",
      "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" : "*",
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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" : "*",
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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" : "*",
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "CarePlan.status",
      "path" : "CarePlan.status",
      "short" : "draft | active | on-hold | revoked | completed | entered-in-error | 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.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the plan as not currently valid.",
      "requirements" : "Allows clinicians to determine whether the plan is actionable or not.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanStatus"
        }],
        "strength" : "required",
        "description" : "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/request-status|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.status {uses different ValueSet}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "v2",
        "map" : "PTH-5"
      },
      {
        "identity" : "rim",
        "map" : ".statusCode planned = new active = active completed = completed"
      }]
    },
    {
      "id" : "CarePlan.intent",
      "path" : "CarePlan.intent",
      "short" : "proposal | plan | order | option | directive",
      "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.\nThis element is expected to be immutable. E.g. A \"proposal\" instance should never change to be a \"plan\" instance or \"order\" instance. Instead, a new instance 'basedOn' the prior instance should be created with the new 'intent' value.",
      "requirements" : "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request\"",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanIntent"
        }],
        "strength" : "required",
        "description" : "Codes indicating the degree of authority/intentionality associated with a care plan.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-intent|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.intent"
      }]
    },
    {
      "id" : "CarePlan.category",
      "path" : "CarePlan.category",
      "short" : "Type of plan",
      "definition" : "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.",
      "comment" : "There may be multiple axes of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
      "requirements" : "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-category"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      }]
    },
    {
      "id" : "CarePlan.title",
      "path" : "CarePlan.title",
      "short" : "Human-friendly name for the care plan",
      "definition" : "Human-friendly name for the care plan.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "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",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      }]
    },
    {
      "id" : "CarePlan.subject",
      "path" : "CarePlan.subject",
      "short" : "Who the care plan is for",
      "definition" : "Identifies the patient or group whose intended care is described by the plan.",
      "alias" : ["patient"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PAT].role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "CarePlan.encounter",
      "path" : "CarePlan.encounter",
      "short" : "The Encounter during which this CarePlan was created",
      "definition" : "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
      "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "Associated PV1"
      },
      {
        "identity" : "rim",
        "map" : "."
      }]
    },
    {
      "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",
      "type" : [{
        "code" : "Period"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "v2",
        "map" : "GOL-7 / GOL-8"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "CarePlan.created",
      "path" : "CarePlan.created",
      "short" : "Date record was first recorded",
      "definition" : "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
      "alias" : ["authoredOn"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.authoredOn"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].time"
      }]
    },
    {
      "id" : "CarePlan.custodian",
      "path" : "CarePlan.custodian",
      "short" : "Who is the designated responsible party",
      "definition" : "When populated, the custodian is responsible for the care plan. The care plan is attributed to the custodian.",
      "comment" : "The custodian might or might not be a contributor.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.requester"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      }]
    },
    {
      "id" : "CarePlan.contributor",
      "path" : "CarePlan.contributor",
      "short" : "Who provided the content of the care plan",
      "definition" : "Identifies the individual(s), organization or device who provided the contents of the care plan.",
      "comment" : "Collaborative care plans may have multiple contributors.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer {similar but does not entail CareTeam}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.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.",
      "comment" : "Use CarePlan.addresses.concept when a code sufficiently describes the concern (e.g. condition, problem, diagnosis, risk). Use CarePlan.addresses.reference when referencing a resource, which allows more information to be conveyed, such as onset date. CarePlan.addresses.concept and CarePlan.addresses.reference are not meant to be duplicative. For a single concern, either CarePlan.addresses.concept or CarePlan.addresses.reference can be used. CarePlan.addresses.concept may be a summary code, or CarePlan.addresses.reference may be used to reference a very precise definition of the concern using Condition. Both CarePlan.addresses.concept and CarePlan.addresses.reference can be used if they are describing different concerns for the care plan.",
      "requirements" : "The element can identify risks addressed by the plan as well as concerns.  Also scopes plans - multiple plans may exist addressing different concerns.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanAddresses"
        }],
        "strength" : "example",
        "description" : "Codes that describe the health issues this plan addresses.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "PRB-4"
      },
      {
        "identity" : "rim",
        "map" : ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
      }]
    },
    {
      "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 comorbidities, recent procedures, limitations, recent assessments, etc.",
      "comment" : "Use \"concern\" to identify specific conditions addressed by the care plan.  supportingInfo can be used to convey one or more Advance Directives or Medical Treatment Consent Directives by referencing Consent or any other request resource with intent = directive.",
      "requirements" : "Identifies barriers and other considerations associated with the care plan.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Goal"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "GOL.1"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode<=OBJ]."
      }]
    },
    {
      "id" : "CarePlan.activity",
      "path" : "CarePlan.activity",
      "short" : "Action to occur or has occurred as part of plan",
      "definition" : "Identifies an action that has occurred or is a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring that has occurred, education etc.",
      "requirements" : "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "cpl-3",
        "severity" : "error",
        "human" : "Provide a plannedActivityReference or plannedActivityDetail, not both",
        "expression" : "plannedActivityDetail.empty() or plannedActivityReference.empty()",
        "xpath" : "not(exists(f:plannedActivityDetail)) or not(exists(f:plannedActivityReference))",
        "source" : "http://hl7.org/fhir/StructureDefinition/CarePlan"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{no mapping\nNOTE: This is a list of contained Request-Event tuples!}"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    },
    {
      "id" : "CarePlan.activity.performedActivity",
      "path" : "CarePlan.activity.performedActivity",
      "short" : "Results of the activity (concept, or Appointment, Encounter, Procedure, etc)",
      "definition" : "Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource).",
      "comment" : "Note that this should not duplicate the activity status (e.g. completed or in progress). The activity performed is independent of the outcome of the related goal(s). For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to exercise, then the activity performed could be amount and intensity of exercise performed whereas the goal outcome is an observation for the actual body weight measured.",
      "requirements" : "Links plan to resulting actions.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityPerformed"
        }],
        "strength" : "example",
        "description" : "Identifies the results of the activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-performed"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Event that is outcome of Request in activity.plannedActivityReference}"
      },
      {
        "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" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "NTE?"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityReference",
      "path" : "CarePlan.activity.plannedActivityReference",
      "short" : "Activity that is intended to be part of the care plan",
      "definition" : "The details of the proposed activity represented in a specific resource.",
      "comment" : "Standard extension exists ([resource-pertainsToGoal](extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.plannedActivityReference.  \nThe goal should be visible when the resource referenced by CarePlan.activity.plannedActivityReference is viewed independently 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",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Appointment",
        "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
        "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
        "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
        "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
        "http://hl7.org/fhir/StructureDefinition/Task",
        "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
        "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
        "http://hl7.org/fhir/StructureDefinition/RequestOrchestration",
        "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]
      }],
      "condition" : ["cpl-3"],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Request that resulted in Event in activity.performedActivity}"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail",
      "path" : "CarePlan.activity.plannedActivityDetail",
      "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",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "condition" : ["cpl-3"],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.kind",
      "path" : "CarePlan.activity.plannedActivityDetail.kind",
      "short" : "Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription",
      "definition" : "A description of the kind of resource the in-line definition of a care plan activity is representing.  The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference.  For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.",
      "requirements" : "May determine what types of extensions are permitted.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityKind"
        }],
        "strength" : "required",
        "description" : "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.instantiatesCanonical",
      "path" : "CarePlan.activity.plannedActivityDetail.instantiatesCanonical",
      "short" : "Instantiates FHIR protocol or definition",
      "definition" : "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "http://hl7.org/fhir/StructureDefinition/Measure",
        "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesCanonical"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.instantiatesUri",
      "path" : "CarePlan.activity.plannedActivityDetail.instantiatesUri",
      "short" : "Instantiates external protocol or definition",
      "definition" : "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "uri"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.code",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-code"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.code"
      },
      {
        "identity" : "v2",
        "map" : "OBR-4 / RXE-2 / RXO-1 / RXD-2"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.reason",
      "path" : "CarePlan.activity.plannedActivityDetail.reason",
      "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 - either a coded concept, or another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.",
      "comment" : "This could be a diagnosis code.  If a full condition record exists, us reason.reference instead. Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.goal",
      "path" : "CarePlan.activity.plannedActivityDetail.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" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Goal"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode<=OBJ]."
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.status",
      "path" : "CarePlan.activity.plannedActivityDetail.status",
      "short" : "not-started | scheduled | in-progress | on-hold | completed | cancelled | stopped | unknown | entered-in-error",
      "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.  \nThe 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",
      "type" : [{
        "code" : "code"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid",
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityStatus"
        }],
        "strength" : "required",
        "description" : "Codes that reflect the current state of a care plan activity within its overall life cycle.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-status|5.0.0-ballot"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.status"
      },
      {
        "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.plannedActivityDetail.statusReason",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityStatusReason"
        }],
        "strength" : "example",
        "description" : "Codes that describe the reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-status-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.statusReason"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.doNotPerform",
      "path" : "CarePlan.activity.plannedActivityDetail.doNotPerform",
      "short" : "If true, activity is prohibiting action",
      "definition" : "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.  If false, or missing, 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",
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "If missing indicates that the described activity is one that should be engaged in when following the plan.",
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur.",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.doNotPerform"
      },
      {
        "identity" : "rim",
        "map" : "actionNegationInd"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.scheduled[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "Timing"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "v2",
        "map" : "TQ1"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.location",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "CodeableReference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityLocation"
        }],
        "strength" : "extensible",
        "description" : "A location type where services are delivered.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "OBR-24(???!!)"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=LOC].role"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.reported[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.reported[x]",
      "short" : "Reported rather than primary record",
      "definition" : "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record.  It may also indicate the source of the report.",
      "requirements" : "Reported data may have different rules on editing and may be visually distinguished from primary data.",
      "alias" : ["informer"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reported[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.source"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=RPT].role"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.performer",
      "path" : "CarePlan.activity.plannedActivityDetail.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" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer"
      },
      {
        "identity" : "v2",
        "map" : "PRT-5 : ( PRV-4 = (provider participations)); PRT-5 : ( PRV-4 = (non-provider person participations )) ; PRT-5 : ( PRV-4 = (patient non-subject of care) ) ; PRT-8"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.product[x]",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.",
        "valueSet" : "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.plannedActivityDetail.dailyAmount",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "RXO-23 / RXE-19 / RXD-12"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
      }]
    },
    {
      "id" : "CarePlan.activity.plannedActivityDetail.quantity",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "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.plannedActivityDetail.description",
      "path" : "CarePlan.activity.plannedActivityDetail.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",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "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" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.note"
      },
      {
        "identity" : "v2",
        "map" : "NTE?"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
      }]
    }]
  }
}

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