DSTU2 Ballot Source

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

Careplan.profile.json

Raw JSON (canonical form)

StructureDefinition for careplan

{
  "resourceType": "StructureDefinition",
  "id": "CarePlan",
  "meta": {
    "lastUpdated": "2015-04-03T14:24:32.000+11:00"
  },
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "name": "CarePlan",
  "publisher": "HL7 FHIR Project (Patient Care)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
        }
      ]
    }
  ],
  "description": "Base StructureDefinition for CarePlan Resource",
  "status": "draft",
  "date": "2015-04-03T14:24:32+11:00",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    }
  ],
  "type": "resource",
  "abstract": true,
  "snapshot": {
    "element": [
      {
        "path": "CarePlan",
        "short": "Healthcare plan for patient",
        "definition": "Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.",
        "alias": [
          "Care Team"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act[classCode=PCPR, moodCode=INT]"
          }
        ]
      },
      {
        "path": "CarePlan.id",
        "short": "Logical id of this artefact",
        "definition": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "path": "CarePlan.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "path": "CarePlan.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true
      },
      {
        "path": "CarePlan.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "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\n\nNot all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "Language",
          "strength": "required",
          "description": "A human language",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "CarePlan.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "CarePlan.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.identifier",
        "short": "External Ids for this plan",
        "definition": "This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "requirements": "Need to allow connection to a wider workflow.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "CarePlan.patient",
        "short": "Who care plan is for",
        "definition": "Identifies the patient/subject whose intended care is described by the plan.",
        "requirements": "Care plans are associated with the patient the plan is for.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3-patient ID list"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PAT].role[classCode=PAT]"
          }
        ]
      },
      {
        "path": "CarePlan.status",
        "short": "planned | active | completed",
        "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.",
        "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "name": "CarePlanStatus",
          "strength": "required",
          "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PTH-5-pathway life cycle status"
          },
          {
            "identity": "rim",
            "map": ".statusCode\nplanned = new\nactive = active\ncompleted = completed"
          }
        ]
      },
      {
        "path": "CarePlan.period",
        "short": "Time period plan covers",
        "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
        "comments": "Any activities scheduled as part of the plan should be constrained to the specified period.",
        "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "GOL-7-goal established date/time / GOL-8-expected goal achieve date/time"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "CarePlan.author",
        "short": "Who is responsible for plan",
        "definition": "Identifies the individual(s) or ogranization who is responsible for the content of the care plan.",
        "comments": "Collaborative care plans may have multiple authors.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "isSummary": true
      },
      {
        "path": "CarePlan.modified",
        "short": "When last updated",
        "definition": "Identifies the most recent date on which the plan has been revised.",
        "requirements": "Indicates how current the plan is.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PTH-6-change pathway life cycle status date/time"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          }
        ]
      },
      {
        "path": "CarePlan.category",
        "short": "Type of plan",
        "definition": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans.  E.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", etc.",
        "comments": "There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
        "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "CarePlanCategory",
          "strength": "required",
          "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."
        }
      },
      {
        "path": "CarePlan.concern",
        "short": "Health issues this plan addresses",
        "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
        "requirements": "Links plan to the conditions it manages.  Also scopes plans - multiple plans may exist addressing different concerns.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-4-Problem instance ID"
          },
          {
            "identity": "rim",
            "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "CarePlan.support",
        "short": "Information considered as part of plan",
        "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc.",
        "comments": "Use \"concern\" to identify specific conditions addressed by the care plan.",
        "requirements": "Identifies barriers and other considerations associated with the care plan.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "path": "CarePlan.participant",
        "short": "Who's involved in plan?",
        "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
        "requirements": "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
        "alias": [
          "Care Team"
        ],
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "v2",
            "map": "REL (REL.4 is always the Patient) ( or PRT?)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "path": "CarePlan.participant.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.participant.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.participant.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.participant.role",
        "short": "Type of involvement",
        "definition": "Indicates specific responsibility of an individual within the care plan.  E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
        "comments": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care plan.  General relationships should be handled as properties of the Patient resource directly.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanParticipantRole",
          "strength": "required",
          "description": "Indicates specific responsibility of an individual within the care plan.  E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc."
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "REL.2 (or PRT-4-participation?)"
          },
          {
            "identity": "rim",
            "map": ".functionCode"
          }
        ]
      },
      {
        "path": "CarePlan.participant.member",
        "short": "Who is involved",
        "definition": "The specific person or organization who is participating/expected to participate in the care plan.",
        "comments": "Patient only needs to be listed if they have a role other than \"subject of care\".",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "REL.5 (or PRT-5-participation person : ( PRV-4 e {provider participations} ) / PRT-5-participation person : ( PRV-4 e {non-provider person participations} ) / PRT-5-participation person : ( PRV-4 = (patient non-subject of care) ) / PRT-8-participation organization?)"
          },
          {
            "identity": "rim",
            "map": ".role"
          }
        ]
      },
      {
        "path": "CarePlan.goal",
        "short": "Desired outcome of plan",
        "definition": "Describes the intended objective(s) of carrying out the Care Plan.",
        "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
        "requirements": "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "GOL.1"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "path": "CarePlan.activity",
        "short": "Action to occur as part of plan",
        "definition": "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
        "requirements": "Allows systems to prompt for performance of planned activities, validate plans against best practice.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.activity.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.activity.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.activity.actionResulting",
        "short": "Appointments, orders, etc.",
        "definition": "Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc.",
        "requirements": "Links plan to resulting actions.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=FLFS].source"
          }
        ]
      },
      {
        "path": "CarePlan.activity.notes",
        "short": "Comments about the activity",
        "definition": "Notes about the execution of the activity.",
        "comments": "Doesn't describe the activity - that goes in details.",
        "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      },
      {
        "path": "CarePlan.activity.reference",
        "short": "Activity details defined in specific resource",
        "definition": "The details of the proposed activity represented in a specific resource.",
        "requirements": "Details in a form consistent with other applications and contexts of use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Appointment"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/MedicationPrescription"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Order"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Supply"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
          }
        ],
        "condition": [
          "cpl-3"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail",
        "short": "In-line definition of activity",
        "definition": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
        "requirements": "Details in a simple form for generic care plan systems.",
        "min": 0,
        "max": "1",
        "condition": [
          "cpl-3"
        ],
        "constraint": [
          {
            "key": "cpl-1",
            "name": "dose for food or drug",
            "severity": "error",
            "human": "DailyDose can only be specified if activity category is drug or food",
            "xpath": "(f:category/@value=('drug','diet')) = exists(f:dailyAmount)"
          },
          {
            "key": "cpl-2",
            "name": "quantity for supply",
            "severity": "error",
            "human": "Quantity can only be specified if activity category is supply",
            "xpath": "(f:category/@value=('supply')) = exists(f:quantity)"
          },
          {
            "key": "cpl-3",
            "name": "details by reference, or simple details",
            "severity": "error",
            "human": "Only provide a detail reference, or a simple detail summary",
            "xpath": "not(exists(f:detail)) or not(exists(f:simple))"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.category",
        "short": "diet | drug | encounter | observation | procedure | supply | other",
        "definition": "High-level categorization of the type of activity in a care plan.",
        "requirements": "May determine what types of extensions are permitted.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "CarePlanActivityCategory",
          "strength": "required",
          "description": "High-level categorization of the type of activity in a care plan.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-activity-category"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.code",
        "short": "Detail type of activity",
        "definition": "Detailed description of the type of planned activity.  E.g. What lab test, what procedure, what kind of encounter.",
        "comments": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
        "requirements": "Allows matching performed to planned as well as validation against protocols.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanActivityType",
          "strength": "required",
          "description": "Detailed description of the type of activity.  E.g. What lab test, what procedure, what kind of encounter."
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-4-universal service ID / RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.reason[x]",
        "short": "Why activity should be done",
        "definition": "Provides the health condition(s) or other rationale that drove the inclusion of this particular activity as part of the plan.",
        "comments": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "binding": {
          "name": "CarePlanActivityReason",
          "strength": "required",
          "description": "Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as \"general wellness\", prohylaxis, surgical preparation, etc."
        }
      },
      {
        "path": "CarePlan.activity.detail.goal",
        "short": "Goals this activity relates to",
        "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
        "requirements": "So that participants know the link explicitly.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.status",
        "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
        "definition": "Identifies what progress is being made for the specific activity.",
        "comments": "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.",
        "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "binding": {
          "name": "CarePlanActivityStatus",
          "strength": "required",
          "description": "Indicates where the activity is at in its overall life cycle",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-activity-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-5-order status?"
          },
          {
            "identity": "rim",
            "map": ".statusCode\nnot-started = new\nscheduled = not-started (and fulfillment relationship to appointent)\nin-progress = active\non-hold = suspended\ncompleted = completed\ncancelled = aborted"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.statusReason",
        "short": "Reason for current status",
        "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "comments": "Will generally not be present it status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanActivityStatusReason",
          "strength": "required",
          "description": "Describes why the current activity has the status it does.  E.g. \"Recovering from injury\" as a reason for non-started or on-hold, \"Patient does not enjoy activity\" as a reason for cancelling a planned activity"
        }
      },
      {
        "path": "CarePlan.activity.detail.prohibited",
        "short": "Do NOT do",
        "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
        "requirements": "Captures intention to not do something that may have been previously typical.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "actionNegationInd"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.scheduled[x]",
        "short": "When activity is to occur",
        "definition": "The period, timing or frequency upon which the described activity is to occur.",
        "requirements": "Allows prompting for activities and detection of missed planned activities.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Timing"
          },
          {
            "code": "Period"
          },
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "TQ1"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.location",
        "short": "Where it should happen",
        "definition": "Identifies the facility where the activity will occur.  E.g. home, hospital, specific clinic, etc.",
        "comments": "May reference a specific clinical location or may just identify a type of location.",
        "requirements": "Helps in planning of activity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-24-diagnostic service section ID (???!!)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=LOC].role"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.performer",
        "short": "Who will be responsible?",
        "definition": "Identifies who's expected to be involved in the activity.",
        "comments": "A performer MAY also be a participant in the care plan.",
        "requirements": "Helps in planning of activity.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "PRT-5-participation person : ( PRV-4 e {provider participations} ) / PRT-5-participation person : ( PRV-4 e {non-provider person participations} ) / PRT-5-participation person : ( PRV-4 = (patient non-subject of care) ) / PRT-8-participation organization"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.product",
        "short": "What is to be administered/supplied",
        "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Medication"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PRD].role"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.dailyAmount",
        "short": "How to consume/day?",
        "definition": "Identifies the quantity expected to be consumed in a given day.",
        "requirements": "Allows rough dose checking.",
        "alias": [
          "daily dose"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "condition": [
          "cpl-1"
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-23-total daily dose / RXE-19-total daily dose / RXD-12-total daily dose"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.quantity",
        "short": "How much to administer/supply/consume",
        "definition": "Identifies the quantity expected to be supplied, addministered or consumed by the subject.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "condition": [
          "cpl-2"
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-11-requested dispense amount / RXE-10-dispense amount / RXD-4-actual dispense amount / RXG-5-give amount-minumum / RXA-6-administered amount /  TQ1-2.1-quantity.quantity  *and*  RXO-12-requested dispense units /  RXE-11-dispense units / RXD-5-actual dispense units / RXG-7-give units / RXA-7-administered units / TQ1-2.2-quantity.units"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.note",
        "short": "Extra info on activity occurrence",
        "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "CarePlan.notes",
        "short": "Comments about the plan",
        "definition": "General notes about the care plan not covered elsewhere.",
        "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "CarePlan",
        "short": "Healthcare plan for patient",
        "definition": "Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.",
        "alias": [
          "Care Team"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act[classCode=PCPR, moodCode=INT]"
          }
        ]
      },
      {
        "path": "CarePlan.identifier",
        "short": "External Ids for this plan",
        "definition": "This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "requirements": "Need to allow connection to a wider workflow.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "CarePlan.patient",
        "short": "Who care plan is for",
        "definition": "Identifies the patient/subject whose intended care is described by the plan.",
        "requirements": "Care plans are associated with the patient the plan is for.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3-patient ID list"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PAT].role[classCode=PAT]"
          }
        ]
      },
      {
        "path": "CarePlan.status",
        "short": "planned | active | completed",
        "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.",
        "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "name": "CarePlanStatus",
          "strength": "required",
          "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PTH-5-pathway life cycle status"
          },
          {
            "identity": "rim",
            "map": ".statusCode\nplanned = new\nactive = active\ncompleted = completed"
          }
        ]
      },
      {
        "path": "CarePlan.period",
        "short": "Time period plan covers",
        "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
        "comments": "Any activities scheduled as part of the plan should be constrained to the specified period.",
        "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "GOL-7-goal established date/time / GOL-8-expected goal achieve date/time"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "CarePlan.author",
        "short": "Who is responsible for plan",
        "definition": "Identifies the individual(s) or ogranization who is responsible for the content of the care plan.",
        "comments": "Collaborative care plans may have multiple authors.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "isSummary": true
      },
      {
        "path": "CarePlan.modified",
        "short": "When last updated",
        "definition": "Identifies the most recent date on which the plan has been revised.",
        "requirements": "Indicates how current the plan is.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PTH-6-change pathway life cycle status date/time"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          }
        ]
      },
      {
        "path": "CarePlan.category",
        "short": "Type of plan",
        "definition": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans.  E.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", etc.",
        "comments": "There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
        "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "CarePlanCategory",
          "strength": "required",
          "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."
        }
      },
      {
        "path": "CarePlan.concern",
        "short": "Health issues this plan addresses",
        "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
        "requirements": "Links plan to the conditions it manages.  Also scopes plans - multiple plans may exist addressing different concerns.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-4-Problem instance ID"
          },
          {
            "identity": "rim",
            "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "CarePlan.support",
        "short": "Information considered as part of plan",
        "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc.",
        "comments": "Use \"concern\" to identify specific conditions addressed by the care plan.",
        "requirements": "Identifies barriers and other considerations associated with the care plan.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "path": "CarePlan.participant",
        "short": "Who's involved in plan?",
        "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
        "requirements": "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
        "alias": [
          "Care Team"
        ],
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "v2",
            "map": "REL (REL.4 is always the Patient) ( or PRT?)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "path": "CarePlan.participant.role",
        "short": "Type of involvement",
        "definition": "Indicates specific responsibility of an individual within the care plan.  E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
        "comments": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care plan.  General relationships should be handled as properties of the Patient resource directly.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanParticipantRole",
          "strength": "required",
          "description": "Indicates specific responsibility of an individual within the care plan.  E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc."
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "REL.2 (or PRT-4-participation?)"
          },
          {
            "identity": "rim",
            "map": ".functionCode"
          }
        ]
      },
      {
        "path": "CarePlan.participant.member",
        "short": "Who is involved",
        "definition": "The specific person or organization who is participating/expected to participate in the care plan.",
        "comments": "Patient only needs to be listed if they have a role other than \"subject of care\".",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "REL.5 (or PRT-5-participation person : ( PRV-4 e {provider participations} ) / PRT-5-participation person : ( PRV-4 e {non-provider person participations} ) / PRT-5-participation person : ( PRV-4 = (patient non-subject of care) ) / PRT-8-participation organization?)"
          },
          {
            "identity": "rim",
            "map": ".role"
          }
        ]
      },
      {
        "path": "CarePlan.goal",
        "short": "Desired outcome of plan",
        "definition": "Describes the intended objective(s) of carrying out the Care Plan.",
        "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
        "requirements": "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "GOL.1"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "path": "CarePlan.activity",
        "short": "Action to occur as part of plan",
        "definition": "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
        "requirements": "Allows systems to prompt for performance of planned activities, validate plans against best practice.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.actionResulting",
        "short": "Appointments, orders, etc.",
        "definition": "Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc.",
        "requirements": "Links plan to resulting actions.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=FLFS].source"
          }
        ]
      },
      {
        "path": "CarePlan.activity.notes",
        "short": "Comments about the activity",
        "definition": "Notes about the execution of the activity.",
        "comments": "Doesn't describe the activity - that goes in details.",
        "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      },
      {
        "path": "CarePlan.activity.reference",
        "short": "Activity details defined in specific resource",
        "definition": "The details of the proposed activity represented in a specific resource.",
        "requirements": "Details in a form consistent with other applications and contexts of use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Appointment"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/MedicationPrescription"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Order"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Supply"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
          }
        ],
        "condition": [
          "cpl-3"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail",
        "short": "In-line definition of activity",
        "definition": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
        "requirements": "Details in a simple form for generic care plan systems.",
        "min": 0,
        "max": "1",
        "condition": [
          "cpl-3"
        ],
        "constraint": [
          {
            "key": "cpl-1",
            "name": "dose for food or drug",
            "severity": "error",
            "human": "DailyDose can only be specified if activity category is drug or food",
            "xpath": "(f:category/@value=('drug','diet')) = exists(f:dailyAmount)"
          },
          {
            "key": "cpl-2",
            "name": "quantity for supply",
            "severity": "error",
            "human": "Quantity can only be specified if activity category is supply",
            "xpath": "(f:category/@value=('supply')) = exists(f:quantity)"
          },
          {
            "key": "cpl-3",
            "name": "details by reference, or simple details",
            "severity": "error",
            "human": "Only provide a detail reference, or a simple detail summary",
            "xpath": "not(exists(f:detail)) or not(exists(f:simple))"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.category",
        "short": "diet | drug | encounter | observation | procedure | supply | other",
        "definition": "High-level categorization of the type of activity in a care plan.",
        "requirements": "May determine what types of extensions are permitted.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "CarePlanActivityCategory",
          "strength": "required",
          "description": "High-level categorization of the type of activity in a care plan.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-activity-category"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.code",
        "short": "Detail type of activity",
        "definition": "Detailed description of the type of planned activity.  E.g. What lab test, what procedure, what kind of encounter.",
        "comments": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
        "requirements": "Allows matching performed to planned as well as validation against protocols.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanActivityType",
          "strength": "required",
          "description": "Detailed description of the type of activity.  E.g. What lab test, what procedure, what kind of encounter."
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-4-universal service ID / RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.reason[x]",
        "short": "Why activity should be done",
        "definition": "Provides the health condition(s) or other rationale that drove the inclusion of this particular activity as part of the plan.",
        "comments": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "binding": {
          "name": "CarePlanActivityReason",
          "strength": "required",
          "description": "Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as \"general wellness\", prohylaxis, surgical preparation, etc."
        }
      },
      {
        "path": "CarePlan.activity.detail.goal",
        "short": "Goals this activity relates to",
        "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
        "requirements": "So that participants know the link explicitly.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Goal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode<=OBJ]."
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.status",
        "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
        "definition": "Identifies what progress is being made for the specific activity.",
        "comments": "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.",
        "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "binding": {
          "name": "CarePlanActivityStatus",
          "strength": "required",
          "description": "Indicates where the activity is at in its overall life cycle",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/care-plan-activity-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-5-order status?"
          },
          {
            "identity": "rim",
            "map": ".statusCode\nnot-started = new\nscheduled = not-started (and fulfillment relationship to appointent)\nin-progress = active\non-hold = suspended\ncompleted = completed\ncancelled = aborted"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.statusReason",
        "short": "Reason for current status",
        "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "comments": "Will generally not be present it status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "CarePlanActivityStatusReason",
          "strength": "required",
          "description": "Describes why the current activity has the status it does.  E.g. \"Recovering from injury\" as a reason for non-started or on-hold, \"Patient does not enjoy activity\" as a reason for cancelling a planned activity"
        }
      },
      {
        "path": "CarePlan.activity.detail.prohibited",
        "short": "Do NOT do",
        "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
        "requirements": "Captures intention to not do something that may have been previously typical.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "actionNegationInd"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.scheduled[x]",
        "short": "When activity is to occur",
        "definition": "The period, timing or frequency upon which the described activity is to occur.",
        "requirements": "Allows prompting for activities and detection of missed planned activities.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Timing"
          },
          {
            "code": "Period"
          },
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "TQ1"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.location",
        "short": "Where it should happen",
        "definition": "Identifies the facility where the activity will occur.  E.g. home, hospital, specific clinic, etc.",
        "comments": "May reference a specific clinical location or may just identify a type of location.",
        "requirements": "Helps in planning of activity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-24-diagnostic service section ID (???!!)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=LOC].role"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.performer",
        "short": "Who will be responsible?",
        "definition": "Identifies who's expected to be involved in the activity.",
        "comments": "A performer MAY also be a participant in the care plan.",
        "requirements": "Helps in planning of activity.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "PRT-5-participation person : ( PRV-4 e {provider participations} ) / PRT-5-participation person : ( PRV-4 e {non-provider person participations} ) / PRT-5-participation person : ( PRV-4 = (patient non-subject of care) ) / PRT-8-participation organization"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.product",
        "short": "What is to be administered/supplied",
        "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Medication"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PRD].role"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.dailyAmount",
        "short": "How to consume/day?",
        "definition": "Identifies the quantity expected to be consumed in a given day.",
        "requirements": "Allows rough dose checking.",
        "alias": [
          "daily dose"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "condition": [
          "cpl-1"
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-23-total daily dose / RXE-19-total daily dose / RXD-12-total daily dose"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.quantity",
        "short": "How much to administer/supply/consume",
        "definition": "Identifies the quantity expected to be supplied, addministered or consumed by the subject.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "condition": [
          "cpl-2"
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-11-requested dispense amount / RXE-10-dispense amount / RXD-4-actual dispense amount / RXG-5-give amount-minumum / RXA-6-administered amount /  TQ1-2.1-quantity.quantity  *and*  RXO-12-requested dispense units /  RXE-11-dispense units / RXD-5-actual dispense units / RXG-7-give units / RXA-7-administered units / TQ1-2.2-quantity.units"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
          }
        ]
      },
      {
        "path": "CarePlan.activity.detail.note",
        "short": "Extra info on activity occurrence",
        "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "CarePlan.notes",
        "short": "Comments about the plan",
        "definition": "General notes about the care plan not covered elsewhere.",
        "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE?"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      }
    ]
  }
}

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