---
schema_version: "1"
id: 1a76656a8861c19182c772e9761ed94a3ad5305daeee2f1f5faa83ea60970396
title: PatientMedicalProcedureDetail
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_PatientMedicalProcedureDetail.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/hc_r4_api_objects_PatientMedicalProcedureDetail.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8ab774ceac6506138f1b8125e2a4b109afaf8a89f6c848ee2beaaf69cf489ce5
description: Associates records from different objects to a patient medical procedure record to add more information to the procedure record. This is a multi-object junction object. This object is available in API version 51.0 and later.
---
# PatientMedicalProcedureDetail

Associates records from different objects to a patient medical procedure record to add more information to the procedure record. 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

### 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 patient medical procedure 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 patient medical procedure record.
- **Referenced Objects**:
    - PatientMedicalProcedure
    - CareObservation
    - HealthCondition
    - ClinicalServiceRequest
    - CareRegisteredDevice

### DetailType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the type of information added to the patient medical procedure record.
- **Possible values**:
    - Based On
    - Body Site
    - Complication
    - Complication Detail
    - Follow Up
    - Part Of

### 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 system-generated name of the patient medical procedure detail record.

### PatientMedicalProcedureId

- **Type**: Master-detail reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The patient medical procedure to which details are being added.
- **Referenced Objects**:
    - PatientMedicalProcedure

## Usage

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

- Based On: Clinical service requests
- Body Site: Code sets or code set bundles
- Complication: Code sets or code set bundles
- Complication Detail: Health conditions
- Follow Up: Code sets or code set bundles
- Part Of: Patient medical procedures or clinical observations

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 patient medical procedure record it belongs to using the PatientMedicalProcedureId field.

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

## Associated Objects

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

[PatientMedicalProcedureDetailChangeEvent](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 62.0)

Change events are available for the object.

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

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