FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.xver-r2.r5
Resource TypeStructureDefinition
IdStructureDefinition-ext-R2-CarePlan.act.detail.json
FHIR VersionR5
Sourcehttp://hl7.org/fhir/uv/xver-r2.r5/0.1.0/StructureDefinition-ext-R2-CarePlan.act.detail.html
URLhttp://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail
Version0.1.0
Statusactive
Date2026-03-17T21:02:03.8104715+00:00
NameExtensionCarePlan_Activity_Detail
TitleDSTU2: In-line definition of activity (new)
Realmuv
Authorityhl7
DescriptionDSTU2: `CarePlan.activity.detail` (new:BackboneElement)
PurposeThis extension is part of the cross-version definitions generated to enable use of the element `CarePlan.activity.detail` as defined in FHIR DSTU2 in FHIR R5. The source element is defined as: `CarePlan.activity.detail` 0..1 `BackboneElement` Across FHIR versions, the element set has been mapped as: * DSTU2: `CarePlan.activity.detail` 0..1 `BackboneElement` * STU3: `CarePlan.activity.detail` 0..1 `BackboneElement` * R4: `CarePlan.activity.detail` 0..1 `BackboneElement` * R4B: `CarePlan.activity.detail` 0..1 `BackboneElement` Following are the generation technical comments: Element `CarePlan.activity.detail` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`. Element `CarePlan.activity.detail` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).
TypeExtension
Kindcomplex-type

Resources that use this resource

ConceptMap
hl7.fhir.uv.xver-r2.r5#0.1.0R2-CarePlan-element-map-to-R5Cross-version mapping for FHIR DSTU2 CarePlan to FHIR R5 CarePlan

Resources that this resource uses

StructureDefinition
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-ConditionCross-version Profile for DSTU2.Condition for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-GoalCross-version Profile for DSTU2.Goal for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-LocationCross-version Profile for DSTU2.Location for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-MedicationCross-version Profile for DSTU2.Medication for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-OrganizationCross-version Profile for DSTU2.Organization for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-PatientCross-version Profile for DSTU2.Patient for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-Practitioner-for-PractitionerRoleCross-version Profile for DSTU2.Practitioner for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-RelatedPersonCross-version Profile for DSTU2.RelatedPerson for use in FHIR R4B
hl7.fhir.uv.xver-r2.r4b#0.1.0profile-SubstanceCross-version Profile for DSTU2.Substance for use in FHIR R4B
ValueSet
hl7.fhir.uv.xver-r2.r5#0.1.0R2-care-plan-activity-category-for-R5Cross-version ValueSet DSTU2.CarePlanActivityCategory for use in FHIR R5
hl7.fhir.uv.xver-r2.r5#0.1.0R2-care-plan-activity-status-for-R5Cross-version ValueSet DSTU2.CarePlanActivityStatus for use in FHIR R5
hl7.fhir.uv.xver-r2.r5#0.1.0R2-goal-status-reason-for-R5Cross-version ValueSet DSTU2.GoalStatusReason for use in FHIR R5

Examples of Use for Extension

No extension usage examples found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition ext-R2-CarePlan.act.detail

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..1Extension(5.0.0)DSTU2: In-line definition of activity (new)
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
.... extension:category 0..1ExtensionDSTU2: diet | drug | encounter | observation | procedure | supply | other (new)
..... url 1..1uri"category"
..... value[x] 0..1CodeableConceptdiet | drug | encounter | observation | procedure | supply | other
Binding: R2CarePlanActivityCategoryForR5 (0.1.0) (example): High-level categorization of the type of activity in a care plan.
.... extension:code 0..1ExtensionDSTU2: Detail type of activity (new)
..... url 1..1uri"code"
..... value[x] 0..1CodeableConceptDetail type of activity
.... extension:reasonCode 0..*ExtensionDSTU2: Why activity should be done (new)
..... url 1..1uri"reasonCode"
..... value[x] 0..1CodeableConceptWhy activity should be done
.... extension:reasonReference 0..*ExtensionDSTU2: Condition triggering need for activity (new)
..... url 1..1uri"reasonReference"
..... value[x] 0..1Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition)Condition triggering need for activity
.... extension:goal 0..*ExtensionDSTU2: Goals this activity relates to (new)
..... url 1..1uri"goal"
..... value[x] 0..1Reference(Cross-version Profile for DSTU2.Goal for use in FHIR R5(0.1.0) | Goal)Goals this activity relates to
.... extension:status 0..1ExtensionDSTU2: not-started | scheduled | in-progress | on-hold | completed | cancelled (new)
..... url 1..1uri"status"
..... value[x] 0..1codenot-started | scheduled | in-progress | on-hold | completed | cancelled
Binding: R2CarePlanActivityStatusForR5 (0.1.0) (required): Indicates where the activity is at in its overall life cycle.
.... extension:statusReason 0..1ExtensionDSTU2: Reason for current status (new)
..... url 1..1uri"statusReason"
..... value[x] 0..1CodeableConceptReason for current status
Binding: R2GoalStatusReasonForR5 (0.1.0) (example): 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.
.... extension:prohibited 1..1ExtensionDSTU2: Do NOT do (new)
..... url 1..1uri"prohibited"
..... value[x] 1..1booleanDo NOT do
.... extension:scheduled 0..1ExtensionDSTU2: When activity is to occur (new)
..... url 1..1uri"scheduled"
..... value[x] 0..1When activity is to occur
...... valueTimingTiming
...... valuePeriodPeriod
...... valueStringstring
.... extension:location 0..1ExtensionDSTU2: Where it should happen (new)
..... url 1..1uri"location"
..... value[x] 0..1Reference(Cross-version Profile for DSTU2.Location for use in FHIR R5(0.1.0) | Location)Where it should happen
.... extension:performer 0..*ExtensionDSTU2: Who will be responsible? (new)
..... url 1..1uri"performer"
..... value[x] 0..1Reference(Cross-version Profile for DSTU2.Practitioner for use in FHIR R5(0.1.0) | PractitionerRole | Cross-version Profile for DSTU2.Organization for use in FHIR R5(0.1.0) | Organization | Cross-version Profile for DSTU2.RelatedPerson for use in FHIR R5(0.1.0) | RelatedPerson | Cross-version Profile for DSTU2.Patient for use in FHIR R5(0.1.0) | Patient)Who will be responsible?
.... extension:product 0..1ExtensionDSTU2: What is to be administered/supplied (new)
..... url 1..1uri"product"
..... value[x] 0..1What is to be administered/supplied
...... valueCodeableConceptCodeableConcept
...... valueReferenceReference(Cross-version Profile for DSTU2.Medication for use in FHIR R5(0.1.0) | Medication | Cross-version Profile for DSTU2.Substance for use in FHIR R5(0.1.0) | Substance)
.... extension:dailyAmount 0..1ExtensionDSTU2: How to consume/day? (new)
..... url 1..1uri"dailyAmount"
..... value[x] 0..1SimpleQuantity(5.0.0)How to consume/day?
.... extension:quantity 0..1ExtensionDSTU2: How much to administer/supply/consume (new)
..... url 1..1uri"quantity"
..... value[x] 0..1SimpleQuantity(5.0.0)How much to administer/supply/consume
.... extension:description 0..1ExtensionDSTU2: Extra info describing activity to perform (new)
..... url 1..1uri"description"
..... value[x] 0..1stringExtra info describing activity to perform
... url 1..1uri"http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail"
... value[x] 0..0Value of extension

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "ext-R2-CarePlan.act.detail",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "extension": [
        {
          "url": "packageId",
          "valueId": "hl7.fhir.uv.xver-r2.r5"
        },
        {
          "url": "version",
          "valueString": "0.1.0"
        },
        {
          "url": "uri",
          "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r2.r5"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/package-source"
    },
    {
      "extension": [
        {
          "url": "startFhirVersion",
          "valueCode": "5.0"
        },
        {
          "url": "endFhirVersion",
          "valueCode": "5.0"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/version-specific-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-bind"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r2.r5"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r2.r5"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail",
  "version": "0.1.0",
  "name": "ExtensionCarePlan_Activity_Detail",
  "title": "DSTU2: In-line definition of activity (new)",
  "status": "active",
  "experimental": false,
  "date": "2026-03-17T21:02:03.8104715+00:00",
  "publisher": "FHIR Infrastructure",
  "contact": [
    {
      "name": "FHIR Infrastructure",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "purpose": "This extension is part of the cross-version definitions generated to enable use of the\r\nelement `CarePlan.activity.detail` as defined in FHIR DSTU2\r\nin FHIR R5.\r\n\r\nThe source element is defined as:\r\n`CarePlan.activity.detail` 0..1 `BackboneElement`\r\n\r\nAcross FHIR versions, the element set has been mapped as:\r\n*  DSTU2: `CarePlan.activity.detail` 0..1 `BackboneElement`\n*  STU3: `CarePlan.activity.detail` 0..1 `BackboneElement`\n*  R4: `CarePlan.activity.detail` 0..1 `BackboneElement`\n*  R4B: `CarePlan.activity.detail` 0..1 `BackboneElement`\r\n\r\nFollowing are the generation technical comments:\r\nElement `CarePlan.activity.detail` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "CarePlan.activity"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
  "derivation": "constraint",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "5.0.0"
      }
    ],
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "DSTU2: In-line definition of activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
        "comment": "Element `CarePlan.activity.detail` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false
      },
      {
        "id": "Extension.id",
        "path": "Extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 1,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:category",
        "path": "Extension.extension",
        "sliceName": "category",
        "short": "DSTU2: diet | drug | encounter | observation | procedure | supply | other (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.category` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.category` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.category` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.category` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "May determine what types of extensions are permitted. Element `CarePlan.activity.detail.category` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.category` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.category` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:category.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:category.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:category.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "category",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:category.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "diet | drug | encounter | observation | procedure | supply | other",
        "definition": "High-level categorization of the type of activity in a care plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "example",
          "description": "High-level categorization of the type of activity in a care plan.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-category-for-R5|0.1.0"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:code",
        "path": "Extension.extension",
        "sliceName": "code",
        "short": "DSTU2: Detail type of activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.code` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.code` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.code` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.code` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nTends 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. Element `CarePlan.activity.detail.code` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.code` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.code` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:code.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:code.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:code.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "code",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:code.value[x]",
        "path": "Extension.extension.value[x]",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonCode",
        "path": "Extension.extension",
        "sliceName": "reasonCode",
        "short": "DSTU2: Why activity should be done (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.reasonCode` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.reasonCode` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonCode` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonCode` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nThis could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
        "requirements": "Element `CarePlan.activity.detail.reasonCode` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonCode` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonCode` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:reasonCode.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonCode.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonCode.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "reasonCode",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonCode.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Why activity should be done",
        "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
        "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonReference",
        "path": "Extension.extension",
        "sliceName": "reasonReference",
        "short": "DSTU2: Condition triggering need for activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.reasonReference` (new:Reference(Condition))",
        "comment": "Element `CarePlan.activity.detail.reasonReference` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonReference` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonReference` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nConditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "requirements": "Element `CarePlan.activity.detail.reasonReference` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonReference` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonReference` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:reasonReference.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonReference.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonReference.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "reasonReference",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonReference.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Condition triggering need for activity",
        "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
        "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Condition|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Condition|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:goal",
        "path": "Extension.extension",
        "sliceName": "goal",
        "short": "DSTU2: Goals this activity relates to (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.goal` (new:Reference(Goal))",
        "comment": "Element `CarePlan.activity.detail.goal` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.goal` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.goal` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "So that participants know the link explicitly. Element `CarePlan.activity.detail.goal` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.goal` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.goal` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:goal.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:goal.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:goal.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "goal",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:goal.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Goals this activity relates to",
        "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Goal|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Goal|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:status",
        "path": "Extension.extension",
        "sliceName": "status",
        "short": "DSTU2: not-started | scheduled | in-progress | on-hold | completed | cancelled (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.status` (new:code)",
        "comment": "Element `CarePlan.activity.detail.status` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.status` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.status` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nSome 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. Element `CarePlan.activity.detail.status` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.status` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.status` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:status.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:status.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:status.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "status",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:status.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
        "definition": "Identifies what progress is being made for the specific activity.",
        "comment": "Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that \"status\" is only as current as the plan was most recently updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "required",
          "description": "Indicates where the activity is at in its overall life cycle.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-status-for-R5|0.1.0"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:statusReason",
        "path": "Extension.extension",
        "sliceName": "statusReason",
        "short": "DSTU2: Reason for current status (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.statusReason` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.statusReason` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.statusReason` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.statusReason` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nWill generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "requirements": "Element `CarePlan.activity.detail.statusReason` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.statusReason` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.statusReason` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:statusReason.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:statusReason.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:statusReason.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "statusReason",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:statusReason.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Reason for current status",
        "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "comment": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "example",
          "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.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-goal-status-reason-for-R5|0.1.0"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:prohibited",
        "path": "Extension.extension",
        "sliceName": "prohibited",
        "short": "DSTU2: Do NOT do (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.prohibited` (new:boolean)",
        "comment": "Element `CarePlan.activity.detail.prohibited` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.prohibited` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.prohibited` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Captures intention to not do something that may have been previously typical. Element `CarePlan.activity.detail.prohibited` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.prohibited` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.prohibited` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:prohibited.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:prohibited.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:prohibited.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "prohibited",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:prohibited.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Do NOT do",
        "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:scheduled",
        "path": "Extension.extension",
        "sliceName": "scheduled",
        "short": "DSTU2: When activity is to occur (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.scheduled[x]` (new:Period, string, Timing)",
        "comment": "Element `CarePlan.activity.detail.scheduled[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.scheduled[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.scheduled[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Allows prompting for activities and detection of missed planned activities. Element `CarePlan.activity.detail.scheduled[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.scheduled[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.scheduled[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:scheduled.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:scheduled.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:scheduled.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "scheduled",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:scheduled.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "When activity is to occur",
        "definition": "The period, timing or frequency upon which the described activity is to occur.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Timing"
          },
          {
            "code": "Period"
          },
          {
            "code": "string"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:location",
        "path": "Extension.extension",
        "sliceName": "location",
        "short": "DSTU2: Where it should happen (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.location` (new:Reference(Location))",
        "comment": "Element `CarePlan.activity.detail.location` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.location` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.location` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nMay reference a specific clinical location or may identify a type of location.",
        "requirements": "Helps in planning of activity. Element `CarePlan.activity.detail.location` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.location` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.location` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:location.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:location.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:location.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "location",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:location.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Where it should happen",
        "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
        "comment": "May reference a specific clinical location or may identify a type of location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Location|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Location|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:performer",
        "path": "Extension.extension",
        "sliceName": "performer",
        "short": "DSTU2: Who will be responsible? (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.performer` (new:Reference(Practitioner,Organization,RelatedPerson,Patient))",
        "comment": "Element `CarePlan.activity.detail.performer` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.performer` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.performer` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nA performer MAY also be a participant in the care plan.",
        "requirements": "Helps in planning of activity. Element `CarePlan.activity.detail.performer` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.performer` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.performer` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:performer.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:performer.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:performer.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "performer",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:performer.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Who will be responsible?",
        "definition": "Identifies who's expected to be involved in the activity.",
        "comment": "A performer MAY also be a participant in the care plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Practitioner-for-PractitionerRole|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Organization|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Organization|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-RelatedPerson|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Patient|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:product",
        "path": "Extension.extension",
        "sliceName": "product",
        "short": "DSTU2: What is to be administered/supplied (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.product[x]` (new:CodeableConcept, Reference(Medication,Substance))",
        "comment": "Element `CarePlan.activity.detail.product[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.product[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.product[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.product[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.product[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.product[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:product.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:product.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:product.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "product",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:product.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "What is to be administered/supplied",
        "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Medication|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Medication|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Substance|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Substance|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:dailyAmount",
        "path": "Extension.extension",
        "sliceName": "dailyAmount",
        "short": "DSTU2: How to consume/day? (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.dailyAmount` (new:Quantity[SimpleQuantity])",
        "comment": "Element `CarePlan.activity.detail.dailyAmount` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.dailyAmount` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.dailyAmount` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Allows rough dose checking. Element `CarePlan.activity.detail.dailyAmount` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.dailyAmount` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.dailyAmount` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:dailyAmount.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:dailyAmount.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:dailyAmount.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "dailyAmount",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:dailyAmount.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "How to consume/day?",
        "definition": "Identifies the quantity expected to be consumed in a given day.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:quantity",
        "path": "Extension.extension",
        "sliceName": "quantity",
        "short": "DSTU2: How much to administer/supply/consume (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.quantity` (new:Quantity[SimpleQuantity])",
        "comment": "Element `CarePlan.activity.detail.quantity` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.quantity` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.quantity` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.quantity` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.quantity` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.quantity` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:quantity.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:quantity.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:quantity.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "quantity",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:quantity.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "How much to administer/supply/consume",
        "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0"
            ]
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:description",
        "path": "Extension.extension",
        "sliceName": "description",
        "short": "DSTU2: Extra info describing activity to perform (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.description` (new:string)",
        "comment": "Element `CarePlan.activity.detail.description` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.description` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.description` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.description` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.description` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.description` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.extension:description.id",
        "path": "Extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:description.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension:description.url",
        "path": "Extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "description",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.extension:description.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Extra info describing activity to perform",
        "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "canonical"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "integer64"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "url"
          },
          {
            "code": "uuid"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "CodeableReference"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "RatioRange"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "ContactDetail"
          },
          {
            "code": "DataRequirement"
          },
          {
            "code": "Expression"
          },
          {
            "code": "ParameterDefinition"
          },
          {
            "code": "RelatedArtifact"
          },
          {
            "code": "TriggerDefinition"
          },
          {
            "code": "UsageContext"
          },
          {
            "code": "Availability"
          },
          {
            "code": "ExtendedContactDetail"
          },
          {
            "code": "Dosage"
          },
          {
            "code": "Meta"
          }
        ],
        "condition": [
          "ext-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "DSTU2: In-line definition of activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
        "comment": "Element `CarePlan.activity.detail` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1,
        "max": "*",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:category",
        "path": "Extension.extension",
        "sliceName": "category",
        "short": "DSTU2: diet | drug | encounter | observation | procedure | supply | other (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.category` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.category` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.category` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.category` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "May determine what types of extensions are permitted. Element `CarePlan.activity.detail.category` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.category` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.category` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:category.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "category"
      },
      {
        "id": "Extension.extension:category.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "diet | drug | encounter | observation | procedure | supply | other",
        "definition": "High-level categorization of the type of activity in a care plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "High-level categorization of the type of activity in a care plan.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-category-for-R5|0.1.0"
        }
      },
      {
        "id": "Extension.extension:code",
        "path": "Extension.extension",
        "sliceName": "code",
        "short": "DSTU2: Detail type of activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.code` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.code` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.code` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.code` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nTends 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. Element `CarePlan.activity.detail.code` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.code` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.code` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:code.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "code"
      },
      {
        "id": "Extension.extension:code.value[x]",
        "path": "Extension.extension.value[x]",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonCode",
        "path": "Extension.extension",
        "sliceName": "reasonCode",
        "short": "DSTU2: Why activity should be done (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.reasonCode` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.reasonCode` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonCode` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonCode` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nThis could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
        "requirements": "Element `CarePlan.activity.detail.reasonCode` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonCode` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonCode` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:reasonCode.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "reasonCode"
      },
      {
        "id": "Extension.extension:reasonCode.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Why activity should be done",
        "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
        "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:reasonReference",
        "path": "Extension.extension",
        "sliceName": "reasonReference",
        "short": "DSTU2: Condition triggering need for activity (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.reasonReference` (new:Reference(Condition))",
        "comment": "Element `CarePlan.activity.detail.reasonReference` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonReference` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonReference` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nConditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "requirements": "Element `CarePlan.activity.detail.reasonReference` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.reasonReference` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.reasonReference` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:reasonReference.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "reasonReference"
      },
      {
        "id": "Extension.extension:reasonReference.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Condition triggering need for activity",
        "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
        "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Condition|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Condition|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:goal",
        "path": "Extension.extension",
        "sliceName": "goal",
        "short": "DSTU2: Goals this activity relates to (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.goal` (new:Reference(Goal))",
        "comment": "Element `CarePlan.activity.detail.goal` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.goal` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.goal` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "So that participants know the link explicitly. Element `CarePlan.activity.detail.goal` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.goal` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.goal` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:goal.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "goal"
      },
      {
        "id": "Extension.extension:goal.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Goals this activity relates to",
        "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Goal|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Goal|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:status",
        "path": "Extension.extension",
        "sliceName": "status",
        "short": "DSTU2: not-started | scheduled | in-progress | on-hold | completed | cancelled (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.status` (new:code)",
        "comment": "Element `CarePlan.activity.detail.status` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.status` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.status` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nSome 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. Element `CarePlan.activity.detail.status` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.status` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.status` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:status.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "status"
      },
      {
        "id": "Extension.extension:status.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
        "definition": "Identifies what progress is being made for the specific activity.",
        "comment": "Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that \"status\" is only as current as the plan was most recently updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Indicates where the activity is at in its overall life cycle.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-status-for-R5|0.1.0"
        }
      },
      {
        "id": "Extension.extension:statusReason",
        "path": "Extension.extension",
        "sliceName": "statusReason",
        "short": "DSTU2: Reason for current status (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.statusReason` (new:CodeableConcept)",
        "comment": "Element `CarePlan.activity.detail.statusReason` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.statusReason` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.statusReason` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nWill generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "requirements": "Element `CarePlan.activity.detail.statusReason` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.statusReason` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.statusReason` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:statusReason.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "statusReason"
      },
      {
        "id": "Extension.extension:statusReason.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Reason for current status",
        "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
        "comment": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "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.",
          "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-goal-status-reason-for-R5|0.1.0"
        }
      },
      {
        "id": "Extension.extension:prohibited",
        "path": "Extension.extension",
        "sliceName": "prohibited",
        "short": "DSTU2: Do NOT do (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.prohibited` (new:boolean)",
        "comment": "Element `CarePlan.activity.detail.prohibited` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.prohibited` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.prohibited` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Captures intention to not do something that may have been previously typical. Element `CarePlan.activity.detail.prohibited` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.prohibited` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.prohibited` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:prohibited.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "prohibited"
      },
      {
        "id": "Extension.extension:prohibited.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Do NOT do",
        "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Extension.extension:scheduled",
        "path": "Extension.extension",
        "sliceName": "scheduled",
        "short": "DSTU2: When activity is to occur (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.scheduled[x]` (new:Period, string, Timing)",
        "comment": "Element `CarePlan.activity.detail.scheduled[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.scheduled[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.scheduled[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Allows prompting for activities and detection of missed planned activities. Element `CarePlan.activity.detail.scheduled[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.scheduled[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.scheduled[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:scheduled.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "scheduled"
      },
      {
        "id": "Extension.extension:scheduled.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "When activity is to occur",
        "definition": "The period, timing or frequency upon which the described activity is to occur.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Timing"
          },
          {
            "code": "Period"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:location",
        "path": "Extension.extension",
        "sliceName": "location",
        "short": "DSTU2: Where it should happen (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.location` (new:Reference(Location))",
        "comment": "Element `CarePlan.activity.detail.location` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.location` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.location` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nMay reference a specific clinical location or may identify a type of location.",
        "requirements": "Helps in planning of activity. Element `CarePlan.activity.detail.location` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.location` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.location` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:location.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "location"
      },
      {
        "id": "Extension.extension:location.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Where it should happen",
        "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
        "comment": "May reference a specific clinical location or may identify a type of location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Location|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Location|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:performer",
        "path": "Extension.extension",
        "sliceName": "performer",
        "short": "DSTU2: Who will be responsible? (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.performer` (new:Reference(Practitioner,Organization,RelatedPerson,Patient))",
        "comment": "Element `CarePlan.activity.detail.performer` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.performer` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.performer` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).\nA performer MAY also be a participant in the care plan.",
        "requirements": "Helps in planning of activity. Element `CarePlan.activity.detail.performer` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.performer` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.performer` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:performer.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "performer"
      },
      {
        "id": "Extension.extension:performer.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Who will be responsible?",
        "definition": "Identifies who's expected to be involved in the activity.",
        "comment": "A performer MAY also be a participant in the care plan.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Practitioner-for-PractitionerRole|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Organization|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Organization|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-RelatedPerson|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Patient|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:product",
        "path": "Extension.extension",
        "sliceName": "product",
        "short": "DSTU2: What is to be administered/supplied (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.product[x]` (new:CodeableConcept, Reference(Medication,Substance))",
        "comment": "Element `CarePlan.activity.detail.product[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.product[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.product[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.product[x]` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.product[x]` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.product[x]` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:product.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "product"
      },
      {
        "id": "Extension.extension:product.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "What is to be administered/supplied",
        "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Medication|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Medication|5.0.0",
              "http://hl7.org/fhir/1.0/StructureDefinition/profile-Substance|0.1.0",
              "http://hl7.org/fhir/StructureDefinition/Substance|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:dailyAmount",
        "path": "Extension.extension",
        "sliceName": "dailyAmount",
        "short": "DSTU2: How to consume/day? (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.dailyAmount` (new:Quantity[SimpleQuantity])",
        "comment": "Element `CarePlan.activity.detail.dailyAmount` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.dailyAmount` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.dailyAmount` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Allows rough dose checking. Element `CarePlan.activity.detail.dailyAmount` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.dailyAmount` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.dailyAmount` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:dailyAmount.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "dailyAmount"
      },
      {
        "id": "Extension.extension:dailyAmount.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "How to consume/day?",
        "definition": "Identifies the quantity expected to be consumed in a given day.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:quantity",
        "path": "Extension.extension",
        "sliceName": "quantity",
        "short": "DSTU2: How much to administer/supply/consume (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.quantity` (new:Quantity[SimpleQuantity])",
        "comment": "Element `CarePlan.activity.detail.quantity` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.quantity` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.quantity` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.quantity` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.quantity` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.quantity` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:quantity.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "quantity"
      },
      {
        "id": "Extension.extension:quantity.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "How much to administer/supply/consume",
        "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:description",
        "path": "Extension.extension",
        "sliceName": "description",
        "short": "DSTU2: Extra info describing activity to perform (new)",
        "definition": "DSTU2: `CarePlan.activity.detail.description` (new:string)",
        "comment": "Element `CarePlan.activity.detail.description` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.description` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.description` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "requirements": "Element `CarePlan.activity.detail.description` is part of an existing definition because parent element `CarePlan.activity.detail` requires a cross-version extension.\nElement `CarePlan.activity.detail.description` has a context of CarePlan.activity based on following the parent source element upwards and mapping to `CarePlan`.\nElement `CarePlan.activity.detail.description` has no mapping targets in FHIR R5. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.extension",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Extension.extension:description.url",
        "path": "Extension.extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "description"
      },
      {
        "id": "Extension.extension:description.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Extra info describing activity to perform",
        "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "fixedUri": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        }
      }
    ]
  }
}