Scheduling

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

📘

This guide assumes that you already set up the Nabla Android 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 dependency

Add the following line to your build.gradle:

implementation 'com.nabla.nabla-android:scheduling:1.0.0-alpha12'

Initialize

Then add the NablaSchedulingModule to the list of modules when you init the NablaClient:

class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()

        NablaClient.initialize(
            modules = listOf(
                NablaVideoCallModule(),
                NablaSchedulingModule(),
            )
        )
    }
}

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 AppointmentsFragment

The standalone AppointmentsFragment lists the past and upcoming 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.

Schedule a new appointment

Patients can schedule a new appointment on the BookAppointmentActivity that can either be opened programmatically from your own app's code using BookAppointmentActivity.newIntent(..) or by clicking on the CTA in AppointmentsFragment.

They will be invited to choose a category, then an available time slot, and finally confirm and schedule.


Did this page help you?