---
schema_version: "1"
id: 26e80fe681d6de0d71a9154acc9fbe19b0b5462fc7a3c536a22690eede261bad
title: AllergyIntolerance
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/hc_r4_api_objects_AllergyIntolerance.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/hc_r4_api_objects_AllergyIntolerance.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 39b57a323233c7ce38b9c246525733bc23526bc524b71d75e503f594a48059f5
description: Represents a clinical assessment of a patient’s allergy or intolerance. This object is available in API version 51.0 and later.
---
# AllergyIntolerance

Represents a clinical assessment of a patient’s allergy or intolerance. 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()

## Additional Information for AllergyIntolerance in Other Objects

In addition to creating a record using these fields, you can add more details to your AllergyIntolerance record by creating records in certain other objects, and referencing your AllergyIntolerance record as the parent record. Here’s the list of objects you can relate to AllergyIntolerance in this way, the type of information they add, and the field they use to reference AllergyIntolerance.

| Object | Type of Information | Reference Field |
| --- | --- | --- |
| PatientMedicalReaction | Specifies the information about the patient’s adverse reaction linked to the allergy or intolerance. | ParentId |
| Identifier | Associates an identifier value to the allergy intolerance. | ParentRecordId |

## Fields

### AssertionSourceId

- **Type**: Polymorphic reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Represents the person who asserted the information about the allergy or intolerance.
- **Example**: The patient or the provider who assessed the patient’s condition.
- **Referenced Objects**:
    - Account
    - HealthcareProvider

### Category

- **Type**: multipicklist
- **Properties**: Create, Filter, Nillable, Update
- **Description**: Specifies the categories the allergy or intolerance belongs to.
- **Possible values**:
    - Biologic
    - Environment
    - Food
    - Medication

### ClinicalEncounterId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The encounter where the allergy or intolerance was asserted.
- **Example**: The encounter record for a patient’s ER visit after a bee sting.

### CodeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system-defined code that represents the allergy or intolerance.

### LastOccurrenceDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date of the last occurrence of the allergy or intolerance.
- **Example**: 1993-11-09T21:45:00.384Z

### LastReferencedDate

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

### LastViewedDate

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

### Name

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

### OnsetEndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The end of the estimated onset period.
- **Example**: 1993-11-09T23:50:00.384Z

### OnsetStartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The onset date of the allergy intolerance or the estimated start date of the allergy intolerance's onset.
- **Example**: 1993-11-09T21:45:00.384Z

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The owner of the allergy intolerance record. Available in API version 56.0 and later. This is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**:
    - Group
    - User

### PatientId

- **Type**: Master-detail reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The patient who has the allergy or intolerance.
- **Referenced Objects**:
    - Account

### RecordCreationDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The time the record for the allergy or intolerance was created.

### RecordCreatorId

- **Type**: Polymorphic reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The person who created the record for the allergy or intolerance.
- **Referenced Objects**:
    - Account
    - HealthcareProvider

### Severity

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the severity of the allergy or intolerance.
- **Possible values**:
    - High
    - Low
    - Unable to assess

### SourceSystem

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The source system from where the record was brought into Salesforce.

### SourceSystemIdentifier

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The identifier of the record in its source system.

### SourceSystemModified

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time when the record was last modified in its source system.

### Status

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the status of the allergy or intolerance.
- **Possible values**:
    - Active
    - Inactive
    - Resolved

### Type

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies whether the record is about an allergy or an intolerance.
- **Possible values**:
    - Allergy
    - Intolerance

### VerificationStatus

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies whether the allergy or intolerance has been verified.
- **Possible values**:
    - Confirmed
    - Entered in error
    - Refuted
    - Unconfirmed

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

[AllergyIntoleranceChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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 58.0)

Change events are available for the object.

[AllergyIntoleranceOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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.") (API version 56.0)

Sharing rules are available for the object.

[AllergyIntoleranceShare](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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.") (API version 56.0)

Sharing is available for the object.