---
schema_version: "1"
id: 02ad3798ba30e895fb0d88b08ede2cfbce404420ee79cf3ea4b9401922069f3f
title: CarePlanActivity
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_icm_careplanactivity.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_icm_careplanactivity.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 619a7fdb89d89a621b46694ad05b5abebfa1653bb6715fa65a7727595fe0fb8a
description: Represents an activity that’s part of a care plan. This object is a child of CarePlan. This object is available in API version 56.0 and later.
---
# CarePlanActivity

Represents an activity that’s part of a care plan. This object is a child of CarePlan. This object is available in API version 56.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### ActivityCodeId

- **Type**: Polymorphic lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system-defined code that represents an standardized activity in a care plan.
- **Relationship Name**: ActivityCode
- **Relationship Type**: Lookup
- **Refers To**:
    - CodeSet
    - CodeSetBundle

### ActivityTimingId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Represent schedule following which the activity is meant to be performed. This information includes period during which the activity recurs and the frequency with which it recurs during that period.
- **Relationship Name**: ActivityTiming
- **Refers To**: ActivityTiming

### ActivityType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the type of the activity.
- **Possible values**:
    - Appointment
    - Communication Request
    - Device Request
    - Medication Request
    - Medication Statement
    - Nutrition Order
    - Service Request
    - Task
    - Vision Prescription

### AdministeredProductCodeId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system-defined code that represents the product administered as part of the activity.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: AdministeredProductCode
- **Relationship Type**: Lookup
- **Refers To**: CodeSet, CodeSetBundle

### AdministeredProductId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The medication that’s administered as part of the activity.
- **Relationship Name**: AdministeredProduct
- **Refers To**: Medication

### CarePlanId

- **Type**: Master-detail
- **Properties**: Create, Filter, Group, Sort
- **Description**: The parent care plan that the activity is a part of.
    
    This field is a relationship field.
- **Relationship Name**: CarePlan
- **Relationship Type**: Lookup
- **Refers To**: CarePlan

### DailyDoseQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The amount of medication administered daily as part of the activity.

### DailyDoseUnitId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The unit for DailyDoseQuantity
- **Relationship Name**: DailyDoseUnit
- **Relationship Type**: Lookup
- **Refers To**: UnitOfMeasure

### Description

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The description for the activity.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The date and time when the record was last referenced.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The date and time when the record was last viewed.

### LocationId

- **Type**: Polymorphic Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The location where the activity was performed. This could be a healthcare facility, or even the patient or member’s home.
- **Relationship Name**: Location
- **Relationship Type**: Lookup
- **Refers To**:
    - HealthcareFacility
    - Location

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the record.

### OwnerId

- **Type**: Lookup
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The owner of the record.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### ProhibitedActivity

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Indicates whether the recorded activity is a prohibited activity. For instance, creating a CarePlanActivity record for Smoking and setting the ProhibitedActivity field to true to indicate that smoking is prohibited in the care plan.
- **Possible values**:
    - Default
    - False
    - True

### ReferenceRecordId

- **Type**: Polymorphic Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References a clinical record that represents the activity. For instance, a medication statement to represent an activity that administers medication as part of the care plan.
- **Relationship Name**: LookupRecord
- **Refers To**:
    - ClinicalServiceRequest
    - MedicationRequest
    - MedicationStatement

### ReferenceTaskId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References a task record that represents the activity.
- **Relationship Name**: ReferenceTask
- **Relationship Type**: Lookup
- **Refers To**: Task

### ScheduleDescription

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The schedule for the activity represent as plain text.

### ScheduledPeriodEndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The scheduled date and time when the activity ends.

### ScheduledPeriodStartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The scheduled date and time when the activity begins.

### Status

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The status of the activity.
- **Possible values**:
    - Cancelled
    - Completed
    - Entered-In-Error
    - In Progress
    - Not Started
    - On Hold
    - Scheduled
    - Stopped
    - Unknown

### StatusReasonCodeId

- **Type**: Polymorphic Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system-defined code that represents the reason for the activity’s status.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: StatusReasonCode
- **Relationship Type**: Lookup
- **Refers To**:
    - CodeSet
    - CodeSetBundle

### SuppliedQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The total quantity of medication that is meant to be administered as part of the activity during the course of its full period.

### SuppliedQuantityUnitId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The unit for SuppliedQuantityUnitId.
    
    This field is a relationship field.
- **Relationship Name**: SuppliedQuantityUnit
- **Relationship Type**: Lookup
- **Refers To**: UnitOfMeasure

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[CarePlanActivityFeed](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[CarePlanActivityHistory](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[CarePlanActivityOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[CarePlanActivityShare](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.