### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/CarePlan.json
### ----------------------------------------------------
### -- Chunk 11 of 14
 false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PAT].role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "CarePlan.encounter",
      "path" : "CarePlan.encounter",
      "short" : "Encounter created as part of",
      "definition" : "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
      "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.encounter",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "Associated PV1"
      },
      {
        "identity" : "rim",
        "map" : "."
      }]
    },
    {
      "id" : "CarePlan.period",
      "path" : "CarePlan.period",
      "short" : "Time period plan covers",
      "definition" : "Indicates when the plan did (or is intended to) come into effect and end.",
      "comment" : "Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition).",
      "requirements" : "Allows tracking what plan(s) are in effect at a particular time.",
      "alias" : ["timing"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.period",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "v2",
        "map" : "GOL-7 / GOL-8"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "CarePlan.created",
      "path" : "CarePlan.created",
      "short" : "Date record was first recorded",
      "definition" : "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
      "alias" : ["authoredOn"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.created",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.authoredOn"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].time"
      }]
    },
    {
      "id" : "CarePlan.author",
      "path" : "CarePlan.author",
      "short" : "Who is the designated responsible party",
      "definition" : "When populated, the author is responsible for the care plan.  The care plan is attributed to the author.",
      "comment" : "The author may also be a contributor.  For example, an organization can be an author, but not listed as a contributor.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.author",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.requester"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      }]
    },
    {
      "id" : "CarePlan.contributor",
      "path" : "CarePlan.contributor",
      "short" : "Who provided the content of the care plan",
      "definition" : "Identifies the individual(s) or organization who provided the contents of the care plan.",
      "comment" : "Collaborative care plans may have multiple contributors.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.contributor",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "id" : "CarePlan.careTeam",
      "path" : "CarePlan.careTeam",
      "short" : "Who's involved in plan?",
      "definition" : "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
      "requirements" : "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.careTeam",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CareTeam"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer {similar but does not entail CareTeam}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      }]
    },
    {
      "id" : "CarePlan.addresses",
      "path" : "CarePlan.addresses",
      "short" : "Health issues this plan addresses",
      "definition" : "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
      "comment" : "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.",
      "requirements" : "Links plan to the conditions it manages.  The element can identify risks addressed by the plan as well as active conditions.  (The Condition resource can include things like \"at risk for hypertension\" or \"fall risk\".)  Also scopes plans - multiple plans may exist addressing different concerns.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.addresses",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "PRB-4"
      },
      {
        "identity" : "rim",
        "map" : ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
      }]
    },
    {
      "id" : "CarePlan.supportingInfo",
      "path" : "CarePlan.supportingInfo",
      "short" : "Information considered as part of plan",
      "definition" : "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include comorbidities, recent procedures, limitations, recent assessments, etc.",
      "comment" : "Use \"concern\" to identify specific conditions addressed by the care plan.",
      "requirements" : "Identifies barriers and other considerations associated with the care plan.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.supportingInfo",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.supportingInfo"
      }]
    },
    {
      "id" : "CarePlan.goal",
      "path" : "CarePlan.goal",
      "short" : "Desired outcome of plan",
      "definition" : "Describes the intended objective(s) of carrying out the care plan.",
      "comment" : "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
      "requirements" : "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.goal",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Goal"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "GOL.1"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode<=OBJ]."
      }]
    },
    {
      "id" : "CarePlan.activity",
      "path" : "CarePlan.activity",
      "short" : "Action to occur as part of plan",
      "definition" : "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
      "requirements" : "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      },
      {
        "key" : "cpl-3",
        "severity" : "error",
        "human" : "Provide a reference or detail, not both",
        "expression" : "detail.empty() or reference.empty()",
        "xpath" : "not(exists(f:detail)) or not(exists(f:reference))"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{no mapping\nNOTE: This is a list of contained Request-Event tuples!}"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    },
    {
      "id" : "CarePlan.activity.id",
      "path" : "CarePlan.activity.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.extension",
      "path" : "CarePlan.activity.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.modifierExtension",
      "path" : "CarePlan.activity.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "CarePlan.activity.outcomeCodeableConcept",
      "path" : "CarePlan.activity.outcomeCodeableConcept",
      "short" : "Results of the activity",
      "definition" : "Identifies the outcome at the point when the status of the activity is assessed.  For example, the outcome of an education activity could be patient understands (or not).",
      "comment" : "Note that this should not duplicate the activity status (e.g. completed or in progress).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.outcomeCodeableConcept",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityOutcome"
        }],
        "strength" : "example",
        "description" : "Identifies the results of the activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome"
      }
    },
    {
      "id" : "CarePlan.activity.outcomeReference",
      "path" : "CarePlan.activity.outcomeReference",
      "short" : "Appointment, Encounter, Procedure, etc.",
      "definition" : "Details of the outcome or action resulting from the activity.  The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself.  The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).",
      "comment" : "The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 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.",
      "requirements" : "Links plan to resulting actions.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.outcomeReference",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Event that is outcome of Request in activity.reference}"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=FLFS].source"
      }]
    },
    {
      "id" : "CarePlan.activity.progress",
      "path" : "CarePlan.activity.progress",
      "short" : "Comments about the activity status/progress",
      "definition" : "Notes about the adherence/status/progress of the activity.",
      "comment" : "This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description.",
      "requirements" : "Can be used to capture information about adherence, progress, concerns, etc.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.progress",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Annotation"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "NTE?"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
      }]
    },
    {
      "id" : "CarePlan.activity.reference",
      "path" : "CarePlan.activity.reference",
      "short" : "Activity details defined in specific resource",
      "definition" : "The details of the proposed activity represented in a specific resource.",
      "comment" : "Standard extension exists ([resource-pertainsToGoal](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.",
      "requirements" : "Details in a form consistent with other applications and contexts of use.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.reference",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Appointment",
        "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"]
      }],
      "condition" : ["cpl-3"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{Request that resulted in Event in activity.actionResulting}"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    },
    {
      "id" : "CarePlan.activity.detail",
      "path" : "CarePlan.activity.detail",
      "short" : "In-line definition of activity",
      "definition" : "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
      "requirements" : "Details in a simple form for generic care plan systems.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.detail",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "condition" : ["cpl-3"],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.id",
      "path" : "CarePlan.activity.detail.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.extension",
      "path" : "CarePlan.activity.detail.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.modifierExtension",
      "path" : "CarePlan.activity.detail.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.kind",
      "path" : "CarePlan.activity.detail.kind",
      "short" : "Kind of resource",
      "definition" : "A description of the kind of resource the in-line definition of a care plan activity is representing.  The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference.  For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.",
      "requirements" : "May determine what types of extensions are permitted.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.detail.kind",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityKind"
        }],
        "strength" : "required",
        "description" : "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.instantiatesCanonical",
      "path" : "CarePlan.activity.detail.instantiatesCanonical",
      "short" : "Instantiates FHIR protocol or definition",
      "definition" : "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.detail.instantiatesCanonical",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "http://hl7.org/fhir/StructureDefinition/Measure",
        "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesCanonical"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.instantiatesUri",
      "path" : "CarePlan.activity.detail.instantiatesUri",
      "short" : "Instantiates external protocol or definition",
      "definition" : "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
      "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
      "requirements" : "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "CarePlan.activity.detail.instantiatesUri",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "CarePlan.activity.detail.code",
      "path" : "CarePlan.activity.detail.code",
      "short" : "Detail type of activity",
      "definition" : "Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.",
      "comment" : "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
      "requirements" : "Allows matching performed to planned as well as validation against protocols.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "CarePlan.activity.detail.code",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CarePlanActivityType"
        }],
        "strength" : "example",
        "