Scheduling

Give users the ability to schedule video-call-enabled appointments

📘

This guide assumes that you already set up the Nabla React Native SDK as described in the setup guide.

Make sure you also integrate the video call module so that users and providers can video call on appointments.

Set up the scheduling module

Add the dependency

Install the SDK by running:

yarn add @nabla/react-native-scheduling

or

npm install --save @nabla/react-native-scheduling

And then run pod install in your ios directory, in order to install the native dependencies.

Initialize

The next step is to set up the NablaVideoCallModule when you init the NablaClient:

await NablaVideoCallClient.initializeVideoCallModule();
await NablaSchedulingClient.initializeSchedulingModule();
await nablaClient.initialize("YOUR_API_KEY");

Use the scheduling feature

Make your organization ready

Before using the SDK to schedule appointments, make sure:

  • You specify consultation categories in your organization settings. Each category has a name, duration and associated providers.
  • At least one of the specified providers has availability. Each provider can specify their —single or recurrent— availabilities on the calendar tab.

Integrate the NablaAppointmentListView

The standalone NablaAppointmentListView component lists the scheduled and past appointments along with a CTA to schedule a new one.

Appointments starting in less than 10 minutes are considered imminent and cannot be canceled by patients anymore.

Imminent appointments will show a button to join the associated video call. Check the video call module.


Did this page help you?