---
schema_version: "1"
id: f76c67c6380f4b80fec25d0f4e705517aed17ccb54001c0e354079164df748d8
title: ClinicalEncounterDiagnosis
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/hc_r4_api_objects_ClinicalEncounterDiagnosis.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/hc_r4_api_objects_ClinicalEncounterDiagnosis.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1425d521e33e2f262ab25a7c780c08e4fa1acbe4f99f69994a8d338e75bf43d9
description: Represents a diagnosis related to a clinical encounter. This object is a child object of ClinicalEncounter. This object is available in API version 51.0 and later.
---
# ClinicalEncounterDiagnosis

Represents a diagnosis related to a clinical encounter. This object is a child object of ClinicalEncounter. This object is available in API version 51.0 and later.

## Supported Calls

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

## Fields

### ClinicalEncounterId

- **Type**: Master-detail reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: References the parent clinical encounter record the diagnosis belongs to.
- **Referenced Objects**:
    - ClinicalEncounter

### DiagnosisId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: References the condition or procedure relevant to the encounter.
- **Referenced Objects**:
    - HealthCondition
    - PatientMedicalProcedure

### DiagnosisRank

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Specifies the rank of a particular diagnosis among multiple diagnoses for an encounter.

### LastReferencedDate

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

### LastViewedDate

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

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: A system-generated name for the ClinicalEncounterDiagnosis record.

### UsageTypeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system-defined code that represents the role the diagnosis plays in context of the encounter.
- **Referenced Objects**:
    - CodeSetBundle

## Usage

Once the diagnosis-related information is recorded in the ClinicalEncounterDiagnosis record, the parent ClinicalEncounter record is referenced using the ClinicalEncounterId field.

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[ClinicalEncounterDiagnosisChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_change_event.htm "A StandardObjectNameChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API Version 62.0)

Change events are available for the object.

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

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