PackagesCanonicalsLogsProblems
    Packages
    ndhm.in.mirror@1.2.0-rc2
    https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan
{
  "description": null,
  "_filename": "StructureDefinition-CarePlan.json",
  "package_name": "ndhm.in.mirror",
  "date": "2020-08-17T08:03:30.9628095Z",
  "derivation": "constraint",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-08-17T15:20:34.271+05:30"
  },
  "publisher": null,
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "IN",
      "system": "urn:iso:std:iso:3166",
      "display": "India"
    } ]
  } ],
  "name": "CarePlan",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "CarePlan",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.2.0-rc2",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "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",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "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",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "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."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "CarePlan",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Healthcare plan for patient or group",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Request",
        "identity": "workflow"
      }, {
        "map": "Act[classCode=PCPR, moodCode=INT]",
        "identity": "rim"
      } ],
      "alias": [ "Care Team" ],
      "max": "*",
      "id": "CarePlan",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan"
      },
      "isSummary": false
    }, {
      "path": "CarePlan.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "max": "1",
      "id": "CarePlan.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.meta",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "CarePlan.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.implicitRules",
      "min": 0,
      "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.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "CarePlan.implicitRules",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "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
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "CarePlan.language",
      "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.text",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "CarePlan.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "CarePlan.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "CarePlan.contained",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.identifier",
      "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,
      "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.",
      "isModifier": false,
      "short": "External Ids for this plan",
      "mapping": [ {
        "map": "Request.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "PTH-3",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "CarePlan.identifier",
      "comment": "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.instantiatesCanonical",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Instantiates FHIR protocol or definition",
      "mapping": [ {
        "map": "Request.instantiatesCanonical",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "*",
      "id": "CarePlan.instantiatesCanonical",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.instantiatesCanonical"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.instantiatesUri",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Instantiates external protocol or definition",
      "mapping": [ {
        "map": "Request.instantiatesUri",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "*",
      "id": "CarePlan.instantiatesUri",
      "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.instantiatesUri"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.basedOn",
      "requirements": "Allows tracing of the care plan and tracking whether proposals/recommendations were acted upon.",
      "min": 0,
      "definition": "A care plan that is fulfilled in whole or in part by this care plan.",
      "isModifier": false,
      "short": "Fulfills CarePlan",
      "mapping": [ {
        "map": "Request.basedOn",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ],
      "alias": [ "fulfills" ],
      "max": "*",
      "id": "CarePlan.basedOn",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.basedOn"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.replaces",
      "requirements": "Allows tracing the continuation of a therapy or administrative process instantiated through multiple care plans.",
      "min": 0,
      "definition": "Completed or terminated care plan whose function is taken by this new care plan.",
      "isModifier": false,
      "short": "CarePlan replaced by this CarePlan",
      "mapping": [ {
        "map": "Request.replaces",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ],
      "alias": [ "supersedes" ],
      "max": "*",
      "id": "CarePlan.replaces",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.replaces"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.partOf",
      "min": 0,
      "definition": "A larger care plan of which this particular care plan is a component or step.",
      "isModifier": false,
      "short": "Part of referenced CarePlan",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ],
      "max": "*",
      "id": "CarePlan.partOf",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.partOf"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.status",
      "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
      "min": 1,
      "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
      "isModifier": true,
      "short": "draft | active | on-hold | revoked | completed | entered-in-error | unknown",
      "mapping": [ {
        "map": "Request.status {uses different ValueSet}",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "PTH-5",
        "identity": "v2"
      }, {
        "map": ".statusCode planned = new active = active completed = completed",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanStatus"
        } ],
        "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record."
      },
      "max": "1",
      "id": "CarePlan.status",
      "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CarePlan.status"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.intent",
      "requirements": "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.",
      "min": 1,
      "definition": "Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.",
      "isModifier": true,
      "short": "proposal | plan | order | option",
      "mapping": [ {
        "map": "Request.intent",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-intent|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanIntent"
        } ],
        "description": "Codes indicating the degree of authority/intentionality associated with a care plan."
      },
      "max": "1",
      "id": "CarePlan.intent",
      "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CarePlan.intent"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category",
      "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Type of plan",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-category",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanCategory"
        } ],
        "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."
      },
      "max": "*",
      "id": "CarePlan.category",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.category"
      },
      "isSummary": true
    }, {
      "path": "CarePlan.category.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "CarePlan.category.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.category.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.category.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "isModifier": false,
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "CarePlan.category.coding",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "CarePlan.category.coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "CarePlan.category.coding.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.category.coding.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.category.coding.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 0,
      "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
      "isModifier": false,
      "short": "Identity of the terminology system",
      "fixedUri": "http://snomed.info/sct",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "CarePlan.category.coding.system",
      "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "CarePlan.category.coding.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 1,
      "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
      "isModifier": false,
      "short": "Symbol in syntax defined by the system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "CarePlan.category.coding.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 1,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "CarePlan.category.coding.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "CarePlan.category.coding.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.category.text",
      "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
      "min": 0,
      "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
      "isModifier": false,
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "CarePlan.category.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.title",
      "min": 0,
      "definition": "Human-friendly name for the care plan.",
      "isModifier": false,
      "short": "Human-friendly name for the care plan",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "CarePlan.title",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.title"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.description",
      "requirements": "Provides more detail than conveyed by category.",
      "min": 0,
      "definition": "A description of the scope and nature of the plan.",
      "isModifier": false,
      "short": "Summary of nature of plan",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "CarePlan.description",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.description"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.subject",
      "min": 1,
      "definition": "Identifies the patient or group whose intended care is described by the plan.",
      "isModifier": false,
      "short": "Who the care plan is for",
      "mapping": [ {
        "map": "Request.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PAT].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Group", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient" ]
      } ],
      "mustSupport": true,
      "alias": [ "patient" ],
      "max": "1",
      "id": "CarePlan.subject",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CarePlan.subject"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.encounter",
      "min": 0,
      "definition": "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
      "isModifier": false,
      "short": "Encounter created as part of",
      "mapping": [ {
        "map": "Request.context",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": "Associated PV1",
        "identity": "v2"
      }, {
        "map": ".",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter" ]
      } ],
      "max": "1",
      "id": "CarePlan.encounter",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.encounter"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.period",
      "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
      "min": 0,
      "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
      "isModifier": false,
      "short": "Time period plan covers",
      "mapping": [ {
        "map": "Request.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.planned",
        "identity": "w5"
      }, {
        "map": "GOL-7 / GOL-8",
        "identity": "v2"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "alias": [ "timing" ],
      "max": "1",
      "id": "CarePlan.period",
      "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.created",
      "min": 0,
      "definition": "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
      "isModifier": false,
      "short": "Date record was first recorded",
      "mapping": [ {
        "map": "Request.authoredOn",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "alias": [ "authoredOn" ],
      "max": "1",
      "id": "CarePlan.created",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.created"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.author",
      "min": 0,
      "definition": "When populated, the author is responsible for the care plan.  The care plan is attributed to the author.",
      "isModifier": false,
      "short": "Who is the designated responsible party",
      "mapping": [ {
        "map": "Request.requester",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/CareTeam", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization" ]
      } ],
      "max": "1",
      "id": "CarePlan.author",
      "comment": "The author may also be a contributor.  For example, an organization can be an author, but not listed as a contributor.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.author"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.contributor",
      "min": 0,
      "definition": "Identifies the individual(s) or organization who provided the contents of the care plan.",
      "isModifier": false,
      "short": "Who provided the content of the care plan",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/CareTeam", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "CarePlan.contributor",
      "comment": "Collaborative care plans may have multiple contributors.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.contributor"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.careTeam",
      "requirements": "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
      "min": 0,
      "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
      "isModifier": false,
      "short": "Who's involved in plan?",
      "mapping": [ {
        "map": "Request.performer {similar but does not entail CareTeam}",
        "identity": "workflow"
      }, {
        "map": "FiveWs.actor",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/CareTeam" ]
      } ],
      "max": "*",
      "id": "CarePlan.careTeam",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.careTeam"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.addresses",
      "requirements": "Links plan to the conditions it manages.  The element can identify risks addressed by the plan as well as active conditions.  (The Condition resource can include things like \"at risk for hypertension\" or \"fall risk\".)  Also scopes plans - multiple plans may exist addressing different concerns.",
      "min": 0,
      "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
      "isModifier": false,
      "short": "Health issues this plan addresses",
      "mapping": [ {
        "map": "Request.reasonReference",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "PRB-4",
        "identity": "v2"
      }, {
        "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Condition" ]
      } ],
      "max": "*",
      "id": "CarePlan.addresses",
      "comment": "When the diagnosis is related to an allergy or intolerance, the Condition and AllergyIntolerance resources can both be used. However, to be actionable for decision support, using Condition alone is not sufficient as the allergy or intolerance condition needs to be represented as an AllergyIntolerance.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.addresses"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.supportingInfo",
      "requirements": "Identifies barriers and other considerations associated with the care plan.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Information considered as part of plan",
      "mapping": [ {
        "map": "Request.supportingInfo",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "CarePlan.supportingInfo",
      "comment": "Use \"concern\" to identify specific conditions addressed by the care plan.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.supportingInfo"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.goal",
      "requirements": "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
      "min": 0,
      "definition": "Describes the intended objective(s) of carrying out the care plan.",
      "isModifier": false,
      "short": "Desired outcome of plan",
      "mapping": [ {
        "map": "GOL.1",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode<=OBJ].",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Goal" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "CarePlan.goal",
      "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.goal"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "cpl-3",
        "human": "Provide a reference or detail, not both",
        "xpath": "not(exists(f:detail)) or not(exists(f:reference))",
        "severity": "error",
        "expression": "detail.empty() or reference.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity",
      "requirements": "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
      "min": 0,
      "definition": "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
      "isModifier": false,
      "short": "Action to occur as part of plan",
      "mapping": [ {
        "map": "{no mapping\nNOTE: This is a list of contained Request-Event tuples!}",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "CarePlan.activity",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity"
      },
      "isSummary": false
    }, {
      "path": "CarePlan.activity.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "CarePlan.activity.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.activity.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.activity.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.activity.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "CarePlan.activity.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.outcomeCodeableConcept",
      "min": 0,
      "definition": "Identifies the outcome at the point when the status of the activity is assessed.  For example, the outcome of an education activity could be patient understands (or not).",
      "isModifier": false,
      "short": "Results of the activity",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanActivityOutcome"
        } ],
        "description": "Identifies the results of the activity."
      },
      "max": "*",
      "id": "CarePlan.activity.outcomeCodeableConcept",
      "comment": "Note that this should not duplicate the activity status (e.g. completed or in progress).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.outcomeCodeableConcept"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.outcomeReference",
      "requirements": "Links plan to resulting actions.",
      "min": 0,
      "definition": "Details of the outcome or action resulting from the activity.  The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself.  The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).",
      "isModifier": false,
      "short": "Appointment, Encounter, Procedure, etc.",
      "mapping": [ {
        "map": "{Event that is outcome of Request in activity.reference}",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=FLFS].source",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "CarePlan.activity.outcomeReference",
      "comment": "The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.outcomeReference"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.progress",
      "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
      "min": 0,
      "definition": "Notes about the adherence/status/progress of the activity.",
      "isModifier": false,
      "short": "Comments about the activity status/progress",
      "mapping": [ {
        "map": "NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "CarePlan.activity.progress",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.progress"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.reference",
      "requirements": "Details in a form consistent with other applications and contexts of use.",
      "min": 0,
      "definition": "The details of the proposed activity represented in a specific resource.",
      "isModifier": false,
      "short": "Activity details defined in specific resource",
      "mapping": [ {
        "map": "{Request that resulted in Event in activity.actionResulting}",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP].target",
        "identity": "rim"
      } ],
      "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/RequestGroup" ]
      } ],
      "max": "1",
      "id": "CarePlan.activity.reference",
      "condition": [ "cpl-3" ],
      "comment": "Standard extension exists ([resource-pertainsToGoal](http://hl7.org/fhir/R4/extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference.  \rThe goal should be visible when the resource referenced by CarePlan.activity.reference 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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.reference"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail",
      "requirements": "Details in a simple form for generic care plan systems.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "In-line definition of activity",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail",
      "condition": [ "cpl-3" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail"
      },
      "isSummary": false
    }, {
      "path": "CarePlan.activity.detail.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "CarePlan.activity.detail.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.activity.detail.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "CarePlan.activity.detail.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "CarePlan.activity.detail.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "CarePlan.activity.detail.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.kind",
      "requirements": "May determine what types of extensions are permitted.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanActivityKind"
        } ],
        "description": "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity."
      },
      "max": "1",
      "id": "CarePlan.activity.detail.kind",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.kind"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.instantiatesCanonical",
      "requirements": "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Instantiates FHIR protocol or definition",
      "mapping": [ {
        "map": "Request.instantiatesCanonical",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "*",
      "id": "CarePlan.activity.detail.instantiatesCanonical",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.instantiatesCanonical"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.instantiatesUri",
      "requirements": "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Instantiates external protocol or definition",
      "mapping": [ {
        "map": "Request.instantiatesUri",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "*",
      "id": "CarePlan.activity.detail.instantiatesUri",
      "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.instantiatesUri"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.code",
      "requirements": "Allows matching performed to planned as well as validation against protocols.",
      "min": 0,
      "definition": "Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.",
      "isModifier": false,
      "short": "Detail type of activity",
      "mapping": [ {
        "map": "Request.code",
        "identity": "workflow"
      }, {
        "map": "OBR-4 / RXE-2 / RXO-1 / RXD-2",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanActivityType"
        } ],
        "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter."
      },
      "max": "1",
      "id": "CarePlan.activity.detail.code",
      "comment": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.reasonCode",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Why activity should be done or why activity was prohibited",
      "mapping": [ {
        "map": "Request.reasonCode",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanActivityReason"
        } ],
        "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."
      },
      "max": "*",
      "id": "CarePlan.activity.detail.reasonCode",
      "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.reasonCode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.reasonReference",
      "min": 0,
      "definition": "Indicates 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.",
      "isModifier": false,
      "short": "Why activity is needed",
      "mapping": [ {
        "map": "Request.reasonReference",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "Reference",
        "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" ]
      } ],
      "max": "*",
      "id": "CarePlan.activity.detail.reasonReference",
      "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.reasonReference"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.goal",
      "requirements": "So that participants know the link explicitly.",
      "min": 0,
      "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
      "isModifier": false,
      "short": "Goals this activity relates to",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode<=OBJ].",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Goal" ]
      } ],
      "max": "*",
      "id": "CarePlan.activity.detail.goal",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.goal"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.status",
      "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
      "min": 1,
      "definition": "Identifies what progress is being made for the specific activity.",
      "isModifier": true,
      "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled | stopped | unknown | entered-in-error",
      "mapping": [ {
        "map": "Request.status",
        "identity": "workflow"
      }, {
        "map": "ORC-5?",
        "identity": "v2"
      }, {
        "map": ".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanActivityStatus"
        } ],
        "description": "Codes that reflect the current state of a care plan activity within its overall life cycle."
      },
      "max": "1",
      "id": "CarePlan.activity.detail.status",
      "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CarePlan.activity.detail.status"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.statusReason",
      "min": 0,
      "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
      "isModifier": false,
      "short": "Reason for current status",
      "mapping": [ {
        "map": "Request.statusReason",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail.statusReason",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.statusReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.doNotPerform",
      "requirements": "Captures intention to not do something that may have been previously typical.",
      "min": 0,
      "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.",
      "isModifier": true,
      "short": "If true, activity is prohibiting action",
      "mapping": [ {
        "map": "Request.doNotPerform",
        "identity": "workflow"
      }, {
        "map": "actionNegationInd",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "meaningWhenMissing": "If missing indicates that the described activity is one that should be engaged in when following the plan.",
      "max": "1",
      "id": "CarePlan.activity.detail.doNotPerform",
      "comment": "This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.doNotPerform"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.scheduled[x]",
      "requirements": "Allows prompting for activities and detection of missed planned activities.",
      "min": 0,
      "definition": "The period, timing or frequency upon which the described activity is to occur.",
      "isModifier": false,
      "short": "When activity is to occur",
      "mapping": [ {
        "map": "Request.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "TQ1",
        "identity": "v2"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      }, {
        "code": "Period"
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail.scheduled[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.scheduled[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.location",
      "requirements": "Helps in planning of activity.",
      "min": 0,
      "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
      "isModifier": false,
      "short": "Where it should happen",
      "mapping": [ {
        "map": "OBR-24(???!!)",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=LOC].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Location" ]
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail.location",
      "comment": "May reference a specific clinical location or may identify a type of location.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.location"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.performer",
      "requirements": "Helps in planning of activity.",
      "min": 0,
      "definition": "Identifies who's expected to be involved in the activity.",
      "isModifier": false,
      "short": "Who will be responsible?",
      "mapping": [ {
        "map": "Request.performer",
        "identity": "workflow"
      }, {
        "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": "v2"
      }, {
        "map": ".participation[typeCode=PFM]",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "*",
      "id": "CarePlan.activity.detail.performer",
      "comment": "A performer MAY also be a participant in the care plan.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.activity.detail.performer"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.product[x]",
      "min": 0,
      "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
      "isModifier": false,
      "short": "What is to be administered/supplied",
      "mapping": [ {
        "map": "RXE-2 / RXO-1 / RXD-2",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PRD].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Medication", "http://hl7.org/fhir/StructureDefinition/Substance" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CarePlanProduct"
        } ],
        "description": "A product supplied or administered as part of a care plan activity."
      },
      "max": "1",
      "id": "CarePlan.activity.detail.product[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.product[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.dailyAmount",
      "requirements": "Allows rough dose checking.",
      "min": 0,
      "definition": "Identifies the quantity expected to be consumed in a given day.",
      "isModifier": false,
      "short": "How to consume/day?",
      "mapping": [ {
        "map": "RXO-23 / RXE-19 / RXD-12",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "alias": [ "daily dose" ],
      "max": "1",
      "id": "CarePlan.activity.detail.dailyAmount",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.dailyAmount"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.quantity",
      "min": 0,
      "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
      "isModifier": false,
      "short": "How much to administer/supply/consume",
      "mapping": [ {
        "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": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail.quantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.quantity"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.activity.detail.description",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Extra info describing activity to perform",
      "mapping": [ {
        "map": "NTE?",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "CarePlan.activity.detail.description",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CarePlan.activity.detail.description"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "CarePlan.note",
      "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
      "min": 0,
      "definition": "General notes about the care plan not covered elsewhere.",
      "isModifier": false,
      "short": "Comments about the plan",
      "mapping": [ {
        "map": "Request.note",
        "identity": "workflow"
      }, {
        "map": "NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "CarePlan.note",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CarePlan.note"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "32572f91-e271-47fd-87a0-fb0c4f55d5a4",
  "kind": "resource",
  "url": "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan",
  "version": "1.2",
  "differential": {
    "element": [ {
      "id": "CarePlan",
      "path": "CarePlan"
    }, {
      "id": "CarePlan.basedOn",
      "path": "CarePlan.basedOn",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ]
    }, {
      "id": "CarePlan.replaces",
      "path": "CarePlan.replaces",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ]
    }, {
      "id": "CarePlan.partOf",
      "path": "CarePlan.partOf",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/CarePlan" ]
      } ]
    }, {
      "id": "CarePlan.status",
      "path": "CarePlan.status",
      "mustSupport": true
    }, {
      "id": "CarePlan.intent",
      "path": "CarePlan.intent",
      "mustSupport": true
    }, {
      "id": "CarePlan.category.coding",
      "path": "CarePlan.category.coding",
      "mustSupport": true
    }, {
      "id": "CarePlan.category.coding.system",
      "path": "CarePlan.category.coding.system",
      "fixedUri": "http://snomed.info/sct"
    }, {
      "id": "CarePlan.category.coding.code",
      "min": 1,
      "path": "CarePlan.category.coding.code"
    }, {
      "id": "CarePlan.category.coding.display",
      "min": 1,
      "path": "CarePlan.category.coding.display",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ]
    }, {
      "id": "CarePlan.category.text",
      "path": "CarePlan.category.text",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "mustSupport": true
    }, {
      "id": "CarePlan.subject",
      "path": "CarePlan.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Group", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient" ]
      } ],
      "mustSupport": true
    }, {
      "id": "CarePlan.encounter",
      "path": "CarePlan.encounter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter" ]
      } ]
    }, {
      "id": "CarePlan.author",
      "path": "CarePlan.author",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/CareTeam", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization" ]
      } ]
    }, {
      "id": "CarePlan.contributor",
      "path": "CarePlan.contributor",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/CareTeam", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole", "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization" ]
      } ]
    }, {
      "id": "CarePlan.addresses",
      "path": "CarePlan.addresses",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Condition" ]
      } ]
    }, {
      "id": "CarePlan.goal",
      "path": "CarePlan.goal",
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan"
}