---
schema_version: "1"
id: 22610df63fe54466dc49ca5ac98c2d97a0ae64a4271cebfb8660defdad15fd4a
title: CareEpisodeDetail
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_careepisodedetail.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_icm_careepisodedetail.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fdb14241cc4e98eddb3aa82d2e00aad3cb124bfa26e6d83a4b43a25a9c0b6e6a
description: Represents additional information associated with a CareEpisode record. This information may be the referral requests that an episode of care started from or the diagnoses that the episode of care is meant to address. This object is available in API version 57.0 and later.
---
# CareEpisodeDetail

Represents additional information associated with a CareEpisode record. This information may be the referral requests that an episode of care started from or the diagnoses that the episode of care is meant to address. This object is available in API version 57.0 and later.

## Supported Calls

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

## Fields

### CareEpisodeId

- **Type**: Master-detail
- **Properties**: Create, Filter, Group, Sort
- **Description**: The parent care episode that the detail is associated to.
    
    This field is a relationship field.
- **Relationship Name**: CareEpisode
- **Refers To**: CareEpisode

### DetailRecordId

- **Type**: Polymorphic lookup
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The detail record that associates additional information to the parent care episode.
- **Relationship Name**: DetailRecord
- **Refers To**:
    - ClinicalServiceRequest (For referral requests)
    - HealthCondition (For diagnoses)

### DetailType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies the type of detail represented in the record.
- **Possible values**:
    - diagnosis—Diagnosis
    - referralRequest—Referral Request

### 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.

### Name

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

### OwnerId

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

### Rank

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: When the detail type is a diagnosis, specifies the rank of the recorded diagnosis in the set of diagnoses that’s part of the episode of care.

### RoleCodeId

- **Type**: Polymorphic lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: When the detail type is a diagnosis, specifies the role of the recorded diagnoses in the episode of care. This value is a system-defined code.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: RoleCode
- **Relationship Type**: Lookup
- **Refers To**:
    - CodeSet
    - CodeSetBundle

## 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.

[CareEpisodeDetailFeed](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.

[CareEpisodeDetailHistory](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.

[CareEpisodeDetailShare](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.