---
schema_version: "1"
id: e2e8d43989348e8a9bc436fa21d3162a8522eaa50a459dfef89d4aaaf4de710b
title: HealthCareDiagnosis
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_healthcarediagnosis.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_healthcarediagnosis.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6e8741b25cec141862e057b81ceffcb9f25b5e70a83da1c818b990bdc94d25a8
description: Represents information related to industry-standard healthcare diagnosis codes. Before the Spring ’21 release, the Healthcare Procedure and Healthcare Diagnosis objects stored codes specifically related to procedures and diagnoses. These codes were used for prior-authorization requests and approval processes. Since the Spring’21 release, Health Cloud uses the Code Set and Code Set Bundle objects for this purpose instead.
---
# HealthCareDiagnosis

Represents information related to industry-standard healthcare diagnosis codes. Before the Spring ’21 release, the Healthcare Procedure and Healthcare Diagnosis objects stored codes specifically related to procedures and diagnoses. These codes were used for prior-authorization requests and approval processes. Since the Spring’21 release, Health Cloud uses the Code Set and Code Set Bundle objects for this purpose instead.

## Example

The Code Set and Code Set Bundle objects improve on the old objects by adding support for terminology system information. This added support comes in the form of the Source System and Version fields.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

Objects, flows, and apps that previously used Healthcare Diagnosis and Healthcare Procedure have been or will be extended to support the use of Code Set and Code Set Bundle. Healthcare Diagnosis and Healthcare Procedure are to be gradually phased out with future releases.

## Supported Calls

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

## Fields

| Field Name | Details |
| --- | --- |
| Category | 
Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort, Update

Description

Indicates the category for this diagnosis such as newborn, pediatric, maternity, or adult.





 |
| Code | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Industry-standard diagnosis code.





 |
| CodeDescription | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Description of the diagnosis code.





 |
| CodeType | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort, Update

Description

Type of diagnosis code represented in the record such as ICD-9 or ICD-10.





 |
| EffectiveDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Start date for the code.





 |
| EndDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

End date for the code.





 |
| Gender | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort, Update

Description

Indicates whether this diagnosis is for males, females, or all genders.





 |
| IsActive | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether the diagnosis code is available for use.





 |
| IsComplicationOrComorbidity | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether this diagnosis is used to represent a complication or comorbidity.





 |
| IsHospitalAcquiredCondition | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether this diagnosis represents a condition acquired while in the hospital.





 |
| IsMajorComplicationOrComorbidity | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether this diagnosis is used to represent a major complication or comorbidity.





 |
| IsPresentOnAdmissionExempt | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether diagnosis code is exempt from the diagnosis present on admission requirement.





 |
| IsPrimaryDiagnosis | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether diagnosis code can be used as primary diagnosis only, or can be used in any diagnosis sequence.





 |
| IsUnacceptablePrincipalDxIpAdmit | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether diagnosis code is an unacceptable principal diagnosis for inpatient admission per Medicare Code Edits.





 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the code that displays in search and lookup fields. Salesforce recommends using the code along with the description to populate this field. For example, use <Code>: <Description> or <Code>-<Description> such as (E08.37X9 - Diabetes mellitus due to underlying condition).





 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the user who owns this record.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |

## Associated Objects

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

[HealthCareDiagnosisChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "HTML (New Window)") (API version 60.0)

Change events are available for the object.

[HealthCareDiagnosisHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "HTML (New Window)")

History is available for tracked fields of the object.

[HealthCareDiagnosisOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "HTML (New Window)")

Sharing rules are available for the object.

[HealthCareDiagnosisShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "HTML (New Window)")

Sharing is available for the object.