getProviderTimeslots

abstract fun getProviderTimeslots(providerNationalId: String, visitTypeId: String, startDate: LocalDate = LocalDate.now(), endDate: LocalDate = LocalDate.now().plusDays(7)): DataObserver<ProviderTimeSlot>

Fetches upcoming available time slots for a given provider.

Return

A ProviderTimeSlot containing information about available time slots for the given date range.

Parameters

providerNationalId

The national identifier of the provider to retrieve information about. This identifier should be retrieved from a source external to DexCare, specific to your health system.

visitTypeId

The id of the visit type to fetch upcoming time slots for. See ProviderVisitType.

startDate

The start date for the range of time slots to return. Note:startDate must be at least Today. This parameter defaults to Today.

endDate

The end date for the range of time slots to return. Note:endDate must be >= startDate. This parameter defaults to Today + 7 days ahead. endDate must also be no further in the future than the amount of days returned by getMaxLookaheadDays.

Throws

When providerNationalId or visitTypeId are empty string

When startDate is before today, or endDate is before startDate.