ProviderService

interface ProviderService

Functions

getMaxLookaheadDays
Link copied to clipboard
abstract fun getMaxLookaheadDays(visitTypeShortName: VisitTypeShortName, ehrSystemName: String): DataObserver<Int>
Fetches the maximum number of days beyond Today that getProviderTimeslots can return results for.
getProvider
Link copied to clipboard
abstract fun getProvider(providerNationalId: String): DataObserver<Provider>
Fetches information about a specified health-care provider.
getProviderTimeslots
Link copied to clipboard
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.
getProviderTimeslotsWithShortName
Link copied to clipboard
abstract fun getProviderTimeslotsWithShortName(providerNationalId: String, visitTypeShortName: String, startDate: LocalDate = LocalDate.now(), endDate: LocalDate = LocalDate.now().plusDays(7)): DataObserver<ProviderTimeSlot>
Fetches upcoming available time slots for a given provider.
scheduleProviderVisit
Link copied to clipboard
abstract fun scheduleProviderVisit(paymentMethod: PaymentMethod, providerVisitInformation: ProviderVisitInformation, timeSlot: TimeSlot, ehrSystemName: String, patientDexCarePatient: DexCarePatient, actorDexCarePatient: DexCarePatient? = null): DataObserver<String>
Schedules a visit with a Provider.