---
schema_version: "1"
id: eec80d9ddc1bd81637dddb18eab74ff2eb8e53e4b73dd679da792f80b779bbb3
title: ProgramRecommendationRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_programrecommendationrule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_programrecommendationrule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3d70291cfe3017799d0de9506bbc2c90f81cad993c1de126cc9ee0f54a451014
description: Represents the eligibility criteria and recommendation for a program. This object is available in API version 61.0 and later.
---
# ProgramRecommendationRule

Represents the eligibility criteria and recommendation for a program. This object is available in API version 61.0 and later.

## Supported Calls

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

## Fields

### Country

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The country where the program is eligible for implementation.

### HasActiveCommercialIns

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether this program has an active commercial insurance.
- **Default value**: false

### IsInclusionRule

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether it's an inclusion rule (true) or an exclusion rule (false).
- **Default value**: false

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

### MaximumAge

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The maximum age for enrolling in the program.

### MinimumAge

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The minimum age for enrolling in the program.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the program recommendation rule.

### ProgramId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The program associated with the program recommendation rule. This field is a relationship field.
- **Relationship Name**: Program
- **Relationship Type**: Master-detail
- **Refers To**: Program (the master object)

### ProgramType

- **Type**: picklist
- **Properties**: Filter, Group, Nillable, Restricted picklist, Sort
- **Description**: The type of program associated with the program recommendation rule.
- **Possible values**:
    - Copay
    - Patient Assistance Program
    - Quick Start

### RecommendedProgramPriority

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The recommended priority of the program.

### RuleType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Indicates the type of rule.
- **Possible values**:
    - Eligibility
    - Recommendation