---
schema_version: "1"
id: 6515909b5db3d2bc62752369e84e46dc17e0dcdc8c866f896f008afa5ac4f784
title: AppointmentBookingInteropFhirAdapter 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_AppointmentBookingInteropFhirAdapter.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9f7b38e1450878a29ecc209491ad4b31486b26f05c91391ff588233486e1388d
description: Represents the global class that implements the AppointmentBookingInterop interface.Contains set of options to book a healthcare appointment with the external scheduling system. Contains set of options to cancel the booked appointment from the external scheduling system.Contains set of options to find available time slots for healthcare providers who match the patient’s needs.Contains set of options to retrieve the slot status.
---
# AppointmentBookingInteropFhirAdapter Class

Represents the global class that implements the AppointmentBookingInterop interface.

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

- **[AppointmentBookingInteropFhirAdapter Methods](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm#apex_healthcloudext_AppointmentBookingInteropFhirAdapter_methods)**

## AppointmentBookingInteropFhirAdapter Methods

The following are methods for AppointmentBookingInteropFhirAdapter.

- **[bookAppointment(request)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm#apex_healthcloudext_AppointmentBookingInteropFhirAdapter_bookAppointment)**  
    Contains set of options to book a healthcare appointment with the external scheduling system.
- **[cancelAppointment(request)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm#apex_healthcloudext_AppointmentBookingInteropFhirAdapter_cancelAppointment)**  
    Contains set of options to cancel the booked appointment from the external scheduling system.
- **[findSlots(request)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm#apex_healthcloudext_AppointmentBookingInteropFhirAdapter_findSlots)**  
    Contains set of options to find available time slots for healthcare providers who match the patient’s needs.
- **[getSlotStatus(request)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_AppointmentBookingInteropFhirAdapter.htm#apex_healthcloudext_AppointmentBookingInteropFhirAdapter_getSlotStatus)**  
    Contains set of options to retrieve the slot status.

### bookAppointment(request)

Contains set of options to book a healthcare appointment with the external scheduling system.

#### Signature

public healthcloudext.BookAppointmentResponse bookAppointment(healthcloudext.BookAppointmentRequest request)

#### Parameters

request

Type: [healthcloudext.BookAppointmentRequest](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_BookAppointmentRequest.htm#apex_class_healthcloudext_BookAppointmentRequest "Contains set of options to book a healthcare appointment.")

#### Return Value

Type: [healthcloudext.BookAppointmentResponse](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_BookAppointmentResponse.htm#apex_class_healthcloudext_BookAppointmentResponse "Represents the appointment booking details from the external scheduling system.")

### cancelAppointment(request)

Contains set of options to cancel the booked appointment from the external scheduling system.

#### Signature

public healthcloudext.CancelAppointmentResponse cancelAppointment(healthcloudext.CancelAppointmentRequest request)

#### Parameters

request

Type: [healthcloudext.CancelAppointmentRequest](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_CancelAppointmentRequest.htm#apex_class_healthcloudext_CancelAppointmentRequest "Contains set of options to cancel the booked appointment.")

#### Return Value

Type: [healthcloudext.CancelAppointmentResponse](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_CancelAppointmentResponse.htm#apex_class_healthcloudext_CancelAppointmentResponse "Represents the appointment cancellation details from the external scheduling system.")

### findSlots(request)

Contains set of options to find available time slots for healthcare providers who match the patient’s needs.

#### Signature

public Map<String,List<healthcloudext.Slot>> findSlots(healthcloudext.FindSlotsRequest request)

#### Parameters

request

Type: [healthcloudext.FindSlotsRequest](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_FindSlotsRequest.htm#apex_class_healthcloudext_FindSlotsRequest "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.")

#### Return Value

Type: Map<String,List<[healthcloudext.Slot](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_Slot.htm#apex_class_healthcloudext_Slot "Represents the time period slot details for the appointment.")\>>

### getSlotStatus(request)

Contains set of options to retrieve the slot status.

#### Signature

public healthcloudext.Slot getSlotStatus(healthcloudext.GetSlotStatusRequest request)

#### Parameters

request

Type: [healthcloudext.GetSlotStatusRequest](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_GetSlotStatusRequest.htm#apex_class_healthcloudext_GetSlotStatusRequest "Contains set of options to retrieve the slot status.")

#### Return Value

Type: [healthcloudext.Slot](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_healthcloudext_Slot.htm#apex_class_healthcloudext_Slot "Represents the time period slot details for the appointment.")