PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r2.r5@0.1.0
    http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail
{
  "description": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
  "_filename": "StructureDefinition-ext-R2-CarePlan.act.detail.json",
  "package_name": "hl7.fhir.uv.xver-r2.r5",
  "date": "2026-03-17T21:02:03.8104715+00:00",
  "derivation": "constraint",
  "publisher": "FHIR Infrastructure",
  "fhirVersion": "5.0.0",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "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).",
  "name": "ExtensionCarePlan_Activity_Detail",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "Extension",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "DSTU2: In-line definition of activity (new)",
  "package_version": "0.1.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/package-source",
    "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/version-specific-use",
    "extension": [ {
      "url": "startFhirVersion",
      "valueCode": "5.0"
    }, {
      "url": "endFhirVersion",
      "valueCode": "5.0"
    } ]
  }, {
    "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"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
      "isModifier": false,
      "short": "DSTU2: In-line definition of activity (new)",
      "max": "1",
      "id": "Extension",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension"
      }
    }, {
      "path": "Extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Extension.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.category` (new:CodeableConcept)",
      "isModifier": false,
      "short": "DSTU2: diet | drug | encounter | observation | procedure | supply | other (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "category",
      "max": "1",
      "id": "Extension.extension:category",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:category.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:category.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "category",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:category.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "High-level categorization of the type of activity in a care plan.",
      "isModifier": false,
      "short": "diet | drug | encounter | observation | procedure | supply | other",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-category-for-R5|0.1.0",
        "description": "High-level categorization of the type of activity in a care plan."
      },
      "max": "1",
      "id": "Extension.extension:category.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.code` (new:CodeableConcept)",
      "isModifier": false,
      "short": "DSTU2: Detail type of activity (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "code",
      "max": "1",
      "id": "Extension.extension:code",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:code.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:code.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "code",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:code.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.",
      "isModifier": false,
      "short": "Detail type of activity",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Extension.extension:code.value[x]",
      "condition": [ "ext-1" ],
      "comment": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.reasonCode` (new:CodeableConcept)",
      "isModifier": false,
      "short": "DSTU2: Why activity should be done (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "reasonCode",
      "max": "*",
      "id": "Extension.extension:reasonCode",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reasonCode.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:reasonCode.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "reasonCode",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reasonCode.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
      "isModifier": false,
      "short": "Why activity should be done",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Extension.extension:reasonCode.value[x]",
      "condition": [ "ext-1" ],
      "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.reasonReference` (new:Reference(Condition))",
      "isModifier": false,
      "short": "DSTU2: Condition triggering need for activity (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "reasonReference",
      "max": "*",
      "id": "Extension.extension:reasonReference",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reasonReference.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:reasonReference.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "reasonReference",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reasonReference.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
      "isModifier": false,
      "short": "Condition triggering need for activity",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:reasonReference.value[x]",
      "condition": [ "ext-1" ],
      "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.goal` (new:Reference(Goal))",
      "isModifier": false,
      "short": "DSTU2: Goals this activity relates to (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "goal",
      "max": "*",
      "id": "Extension.extension: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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:goal.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:goal.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "goal",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:goal.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
      "isModifier": false,
      "short": "Goals this activity relates to",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:goal.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.status` (new:code)",
      "isModifier": false,
      "short": "DSTU2: not-started | scheduled | in-progress | on-hold | completed | cancelled (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "status",
      "max": "1",
      "id": "Extension.extension:status",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:status.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:status.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "status",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:status.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies what progress is being made for the specific activity.",
      "isModifier": false,
      "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-status-for-R5|0.1.0",
        "description": "Indicates where the activity is at in its overall life cycle."
      },
      "max": "1",
      "id": "Extension.extension:status.value[x]",
      "condition": [ "ext-1" ],
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.statusReason` (new:CodeableConcept)",
      "isModifier": false,
      "short": "DSTU2: Reason for current status (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "statusReason",
      "max": "1",
      "id": "Extension.extension:statusReason",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:statusReason.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:statusReason.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "statusReason",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:statusReason.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
      "isModifier": false,
      "short": "Reason for current status",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-goal-status-reason-for-R5|0.1.0",
        "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."
      },
      "max": "1",
      "id": "Extension.extension:statusReason.value[x]",
      "condition": [ "ext-1" ],
      "comment": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.prohibited` (new:boolean)",
      "isModifier": false,
      "short": "DSTU2: Do NOT do (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "prohibited",
      "max": "1",
      "id": "Extension.extension:prohibited",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:prohibited.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:prohibited.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "prohibited",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:prohibited.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 1,
      "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
      "isModifier": false,
      "short": "Do NOT do",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Extension.extension:prohibited.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.scheduled[x]` (new:Period, string, Timing)",
      "isModifier": false,
      "short": "DSTU2: When activity is to occur (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "scheduled",
      "max": "1",
      "id": "Extension.extension:scheduled",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:scheduled.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:scheduled.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "scheduled",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:scheduled.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "The period, timing or frequency upon which the described activity is to occur.",
      "isModifier": false,
      "short": "When activity is to occur",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      }, {
        "code": "Period"
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "Extension.extension:scheduled.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.location` (new:Reference(Location))",
      "isModifier": false,
      "short": "DSTU2: Where it should happen (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "location",
      "max": "1",
      "id": "Extension.extension: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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:location.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:location.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "location",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:location.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
      "isModifier": false,
      "short": "Where it should happen",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:location.value[x]",
      "condition": [ "ext-1" ],
      "comment": "May reference a specific clinical location or may identify a type of location.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.performer` (new:Reference(Practitioner,Organization,RelatedPerson,Patient))",
      "isModifier": false,
      "short": "DSTU2: Who will be responsible? (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "performer",
      "max": "*",
      "id": "Extension.extension:performer",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:performer.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:performer.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "performer",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:performer.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies who's expected to be involved in the activity.",
      "isModifier": false,
      "short": "Who will be responsible?",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:performer.value[x]",
      "condition": [ "ext-1" ],
      "comment": "A performer MAY also be a participant in the care plan.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.product[x]` (new:CodeableConcept, Reference(Medication,Substance))",
      "isModifier": false,
      "short": "DSTU2: What is to be administered/supplied (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "product",
      "max": "1",
      "id": "Extension.extension:product",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:product.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:product.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "product",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:product.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
      "isModifier": false,
      "short": "What is to be administered/supplied",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:product.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.dailyAmount` (new:Quantity[SimpleQuantity])",
      "isModifier": false,
      "short": "DSTU2: How to consume/day? (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "dailyAmount",
      "max": "1",
      "id": "Extension.extension:dailyAmount",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:dailyAmount.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:dailyAmount.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "dailyAmount",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:dailyAmount.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies the quantity expected to be consumed in a given day.",
      "isModifier": false,
      "short": "How to consume/day?",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0" ]
      } ],
      "max": "1",
      "id": "Extension.extension:dailyAmount.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.quantity` (new:Quantity[SimpleQuantity])",
      "isModifier": false,
      "short": "DSTU2: How much to administer/supply/consume (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "quantity",
      "max": "1",
      "id": "Extension.extension:quantity",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:quantity.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:quantity.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "quantity",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:quantity.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
      "isModifier": false,
      "short": "How much to administer/supply/consume",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0" ]
      } ],
      "max": "1",
      "id": "Extension.extension:quantity.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.description` (new:string)",
      "isModifier": false,
      "short": "DSTU2: Extra info describing activity to perform (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "description",
      "max": "1",
      "id": "Extension.extension:description",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:description.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:description.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "description",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:description.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
      "isModifier": false,
      "short": "Extra info describing activity to perform",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Extension.extension:description.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "path": "Extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Extension.value[x]",
      "min": 0,
      "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).",
      "isModifier": false,
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "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"
      } ],
      "max": "0",
      "id": "Extension.value[x]",
      "condition": [ "ext-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "5.0.0"
    } ]
  },
  "status": "active",
  "id": "eedaabfa-3ba6-47fc-b0f6-65556567eefc",
  "kind": "complex-type",
  "url": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail",
  "context": [ {
    "type": "element",
    "expression": "CarePlan.activity"
  } ],
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "path": "Extension",
      "min": 0,
      "definition": "DSTU2: `CarePlan.activity.detail` (new:BackboneElement)",
      "isModifier": false,
      "short": "DSTU2: In-line definition of activity (new)",
      "max": "1",
      "id": "Extension",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension"
      }
    }, {
      "id": "Extension.extension",
      "max": "*",
      "min": 1,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      },
      "path": "Extension.extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.category` (new:CodeableConcept)",
      "short": "DSTU2: diet | drug | encounter | observation | procedure | supply | other (new)",
      "sliceName": "category",
      "max": "1",
      "id": "Extension.extension:category",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:category.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "category"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "High-level categorization of the type of activity in a care plan.",
      "short": "diet | drug | encounter | observation | procedure | supply | other",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-category-for-R5|0.1.0",
        "description": "High-level categorization of the type of activity in a care plan."
      },
      "max": "1",
      "id": "Extension.extension:category.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.code` (new:CodeableConcept)",
      "short": "DSTU2: Detail type of activity (new)",
      "sliceName": "code",
      "max": "1",
      "id": "Extension.extension:code",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:code.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "code"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.",
      "short": "Detail type of activity",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Extension.extension:code.value[x]",
      "comment": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.reasonCode` (new:CodeableConcept)",
      "short": "DSTU2: Why activity should be done (new)",
      "sliceName": "reasonCode",
      "max": "*",
      "id": "Extension.extension:reasonCode",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:reasonCode.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "reasonCode"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
      "short": "Why activity should be done",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Extension.extension:reasonCode.value[x]",
      "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.reasonReference` (new:Reference(Condition))",
      "short": "DSTU2: Condition triggering need for activity (new)",
      "sliceName": "reasonReference",
      "max": "*",
      "id": "Extension.extension:reasonReference",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:reasonReference.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "reasonReference"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
      "short": "Condition triggering need for activity",
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:reasonReference.value[x]",
      "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.goal` (new:Reference(Goal))",
      "short": "DSTU2: Goals this activity relates to (new)",
      "sliceName": "goal",
      "max": "*",
      "id": "Extension.extension: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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:goal.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "goal"
    }, {
      "id": "Extension.extension:goal.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "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" ]
      } ],
      "short": "Goals this activity relates to",
      "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.status` (new:code)",
      "short": "DSTU2: not-started | scheduled | in-progress | on-hold | completed | cancelled (new)",
      "sliceName": "status",
      "max": "1",
      "id": "Extension.extension:status",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:status.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "status"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies what progress is being made for the specific activity.",
      "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-care-plan-activity-status-for-R5|0.1.0",
        "description": "Indicates where the activity is at in its overall life cycle."
      },
      "max": "1",
      "id": "Extension.extension:status.value[x]",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.statusReason` (new:CodeableConcept)",
      "short": "DSTU2: Reason for current status (new)",
      "sliceName": "statusReason",
      "max": "1",
      "id": "Extension.extension:statusReason",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:statusReason.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "statusReason"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
      "short": "Reason for current status",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/uv/xver/ValueSet/R2-goal-status-reason-for-R5|0.1.0",
        "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."
      },
      "max": "1",
      "id": "Extension.extension:statusReason.value[x]",
      "comment": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.prohibited` (new:boolean)",
      "short": "DSTU2: Do NOT do (new)",
      "sliceName": "prohibited",
      "max": "1",
      "id": "Extension.extension:prohibited",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:prohibited.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "prohibited"
    }, {
      "id": "Extension.extension:prohibited.value[x]",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "boolean"
      } ],
      "short": "Do NOT do",
      "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.scheduled[x]` (new:Period, string, Timing)",
      "short": "DSTU2: When activity is to occur (new)",
      "sliceName": "scheduled",
      "max": "1",
      "id": "Extension.extension:scheduled",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:scheduled.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "scheduled"
    }, {
      "id": "Extension.extension:scheduled.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "Timing"
      }, {
        "code": "Period"
      }, {
        "code": "string"
      } ],
      "short": "When activity is to occur",
      "definition": "The period, timing or frequency upon which the described activity is to occur."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.location` (new:Reference(Location))",
      "short": "DSTU2: Where it should happen (new)",
      "sliceName": "location",
      "max": "1",
      "id": "Extension.extension: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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:location.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "location"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
      "short": "Where it should happen",
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:location.value[x]",
      "comment": "May reference a specific clinical location or may identify a type of location.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.performer` (new:Reference(Practitioner,Organization,RelatedPerson,Patient))",
      "short": "DSTU2: Who will be responsible? (new)",
      "sliceName": "performer",
      "max": "*",
      "id": "Extension.extension:performer",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:performer.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "performer"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "Identifies who's expected to be involved in the activity.",
      "short": "Who will be responsible?",
      "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" ]
      } ],
      "max": "1",
      "id": "Extension.extension:performer.value[x]",
      "comment": "A performer MAY also be a participant in the care plan.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.product[x]` (new:CodeableConcept, Reference(Medication,Substance))",
      "short": "DSTU2: What is to be administered/supplied (new)",
      "sliceName": "product",
      "max": "1",
      "id": "Extension.extension:product",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:product.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "product"
    }, {
      "id": "Extension.extension:product.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "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" ]
      } ],
      "short": "What is to be administered/supplied",
      "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.dailyAmount` (new:Quantity[SimpleQuantity])",
      "short": "DSTU2: How to consume/day? (new)",
      "sliceName": "dailyAmount",
      "max": "1",
      "id": "Extension.extension:dailyAmount",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:dailyAmount.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "dailyAmount"
    }, {
      "id": "Extension.extension:dailyAmount.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0" ]
      } ],
      "short": "How to consume/day?",
      "definition": "Identifies the quantity expected to be consumed in a given day."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.quantity` (new:Quantity[SimpleQuantity])",
      "short": "DSTU2: How much to administer/supply/consume (new)",
      "sliceName": "quantity",
      "max": "1",
      "id": "Extension.extension:quantity",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:quantity.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "quantity"
    }, {
      "id": "Extension.extension:quantity.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0" ]
      } ],
      "short": "How much to administer/supply/consume",
      "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject."
    }, {
      "path": "Extension.extension",
      "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,
      "definition": "DSTU2: `CarePlan.activity.detail.description` (new:string)",
      "short": "DSTU2: Extra info describing activity to perform (new)",
      "sliceName": "description",
      "max": "1",
      "id": "Extension.extension:description",
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:description.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "description"
    }, {
      "id": "Extension.extension:description.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "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."
    }, {
      "id": "Extension.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.url",
      "fixedUri": "http://hl7.org/fhir/1.0/StructureDefinition/extension-CarePlan.activity.detail"
    }, {
      "id": "Extension.value[x]",
      "max": "0",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.value[x]"
    } ]
  },
  "contact": [ {
    "name": "FHIR Infrastructure",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0"
}