---
schema_version: "1"
id: 8efa5e0ea1f59931d600035251531978e9e86b6eb3c6ebef54e3e492729470e1
title: FindSlotsRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9f994f6928152b013c170bbb8ea9e7617abccd6a93e770f2aa0279c483d38a67
description: Contains set of options to find available time slots for providers who match the patient’s needs. This class extends the AppointmentBase class and inherits its properties.Represents the start of date range for slots in ISO 8601 format, for example, 2021-02-26T21:24:31.000Z.Represents the end of date range for slots in ISO 8601 format, for example , 2021-02-25T18:24:31.000Z. In the default Apex class, if the property is set to True, gets a provider's next 160 available slots for appointment scheduling. If set to False, gets the next 500 available slots of providers in general. Represents a patient's AccountId.
---
# FindSlotsRequest Class

Contains set of options to find available time slots for providers who match the patient’s needs. This class extends the AppointmentBase class and inherits its properties.

## Namespace

[healthcloudext](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_healthcloudext.htm "The HealthCloudExt namespace provides an interface and classes for Health Cloud to integrate with a source electronic health records (EHR) system.")

- **[FindSlotsRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_healthcloudext_FindSlotsRequest_properties)**

## FindSlotsRequest Properties

The following are properties for FindSlotsRequest.

- **[slotRangeEnd](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_healthcloudext_FindSlotsRequest_slotRangeEnd)**  
    Represents the start of date range for slots in ISO 8601 format, for example, 2021-02-26T21:24:31.000Z.
- **[slotRangeStart](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_healthcloudext_FindSlotsRequest_slotRangeStart)**  
    Represents the end of date range for slots in ISO 8601 format, for example , 2021-02-25T18:24:31.000Z.
- **[isNextAvailSlot](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_healthcloudext_FindSlotsRequest_isNextAvailSlot)**  
    In the default Apex class, if the property is set to True, gets a provider's next 160 available slots for appointment scheduling. If set to False, gets the next 500 available slots of providers in general.
- **[patientId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_healthcloudext_FindSlotsRequest_patientId)**  
    Represents a patient's AccountId.

### slotRangeEnd

Represents the start of date range for slots in ISO 8601 format, for example, 2021-02-26T21:24:31.000Z.

#### Signature

public String slotRangeEnd {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

### slotRangeStart

Represents the end of date range for slots in ISO 8601 format, for example , 2021-02-25T18:24:31.000Z.

#### Signature

public String slotRangeStart {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

### isNextAvailSlot

In the default Apex class, if the property is set to True, gets a provider's next 160 available slots for appointment scheduling. If set to False, gets the next 500 available slots of providers in general.

#### Signature

public Boolean isNextAvailSlot {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_boolean.htm)

### patientId

Represents a patient's AccountId.

#### Signature

public Boolean patientId {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)