scheduleProviderVisit

abstract fun scheduleProviderVisit(paymentMethod: PaymentMethod, providerVisitInformation: ProviderVisitInformation, timeSlot: TimeSlot, ehrSystemName: String, patientDexCarePatient: DexCarePatient, actorDexCarePatient: DexCarePatient? = null): DataObserver<String>

Schedules a visit with a Provider.

Return

The newly scheduled visit's id.

See also

Parameters

paymentMethod

A PaymentMethod object containing the patient's payment information

providerVisitInformation

A ProviderVisitInformation object containing additional details required to schedule the retail appointment.

timeSlot

A TimeSlot that the user is requesting to schedule the appointment in. TimeSlots are returned by getProviderTimeslotsWithShortName.

ehrSystemName

The EHR system the appointment will be scheduled in. This can be determined based on the TimeSlot's getEhrSystemName() method.

patientDexCarePatient

A DexCarePatient object containing demographics information about the patient.

actorDexCarePatient

Optional, a DexCarePatient object containing information about a parent or app user who's booking the visit for someone else. This is only used when ProviderVisitInformation.patientDeclaration is org.dexcare.services.models.PatientDeclaration.Other.

Throws

Returned when one of the following required properties are empty string:

This error is additionally returned when: