---
schema_version: "1"
id: 5dd82343234897646a0dc965e0d5d84f835f2bceca2c39fb52fc11b59a7bbede
title: MedicalInsightGoalDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_medicalinsightgoaldef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_medicalinsightgoaldef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3db220bd5d5f7729d92ae0cfbe835769da94896c544b3df0d6735bb9598bfad9
description: Represents the goal needed to address the medical insight.
---
# MedicalInsightGoalDef

Represents the goal needed to address the medical insight.

![Important](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Supported Calls

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

## Fields

### GoalDefinitionId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The goal linked to the medical insight. This field is a relationship field.
- **Relationship Name**: GoalDefinition
- **Refers To**: GoalDefinition

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.
    
    If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.

### MedicalInsightId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The medical insight linked to the goal. This field is a relationship field.
- **Relationship Name**: MedicalInsight
- **Relationship Type**: Master-detail
- **Refers To**: MedicalInsight (the master object)

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the medical insight goal definition record.