---
schema_version: "1"
id: 2d404b6fe870fca13ab8fe48eeee5a9e9326026b3c0c1b7b3349465b81da5ba4
title: ClinicalServiceRequestDetail
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_ClinicalServiceRequestDetail.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/hc_r4_api_objects_ClinicalServiceRequestDetail.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f2d0371c4f02af43858b2b4cab1b78453481e7bf7f290ed6eab743fa3163e66c
description: Associates records from different objects to a clinical service request record to add more information to it. This is a multi-object junction object. This object is available in API version 51.0 and later.
---
# ClinicalServiceRequestDetail

Associates records from different objects to a clinical service request record to add more information to it. This is a multi-object junction object. 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

### ClinicalServiceRequestId

- **Type**: Master-detail reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: References the parent service request record.
- **Referenced Objects**:
    - ClinicalServiceRequest

### DetailCodeId

- **Type**: Polymorphic reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References a code set or code set bundle that adds information to a clinical service request record.
- **Referenced Objects**:
    - CodeSet
    - CodeSetBundle

### DetailRecordId

- **Type**: Polymorphic reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References a record that adds information to a clinical service request record.
- **Referenced Objects**:
    - ClinicalServiceRequest
    - MedicationRequest
    - HealthcareFacility
    - CareObservation
    - HealthCondition
    - DiagnosticSummary
    - Specimen

### DetailType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the relation between the service request and the detail record.
- **Possible values**:
    - Based On
    - Body Site
    - Reason Reference
    - Request Facility
    - Specimen

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user viewed this record.

### Name

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

## Usage

ClinicalServiceRequestDetail records add additional information to ClinicalServiceRequest records. This information may be of the following types, referencing the following types of records:

- Based On: Clinical service requests or medication requests
- Body Site: Code sets or code set bundles
- Reason Reference: Health conditions, care observations, or diagnostic summaries
- Request Facility: Healthcare facilities, code sets, or code set bundles

The records providing this additional information is selected using either the DetailCodeId or DetailRecordId fields, and then the type of information is specified using the DetailType field. This information is then connected to the clinical service request record it belongs to using the ClinicalServiceRequestId field.

One record of ClinicalServiceRequestDetail can specify only one type and piece of information. If multiple detail types or detail instances are required in the parent clinical service request record, multiple records of ClinicalServiceRequestDetail are required.

## Associated Objects

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

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

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

[ClinicalServiceRequestDetailChangeEvent](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 61.0)

Change events are available for the object.