VirtualService

interface VirtualService

Types

Companion
Link copied to clipboard
object Companion

Functions

cancelVirtualVisit
Link copied to clipboard
abstract fun cancelVirtualVisit(visitId: String): DataObserver<Unit>
Provides an api to cancel an existing virtual visit
createVirtualVisit
Link copied to clipboard
abstract fun createVirtualVisit(fragment: Fragment, patient: Patient, virtualVisitDetails: VirtualVisitDetails, paymentMethod: PaymentMethod, virtualActor: VirtualActor? = null, registerPushNotification: RegisterPushNotification? = null): DataObserver<Triple<VirtualVisitTypeName, String, Intent>>
Creates a new virtual visit.
abstract fun createVirtualVisit(activity: FragmentActivity, patient: Patient, virtualVisitDetails: VirtualVisitDetails, paymentMethod: PaymentMethod, virtualActor: VirtualActor? = null, registerPushNotification: RegisterPushNotification? = null): DataObserver<Triple<VirtualVisitTypeName, String, Intent>>
Creates a new virtual visit.
createVirtualVisitWithPatientActor
Link copied to clipboard
abstract fun createVirtualVisitWithPatientActor(fragment: Fragment, patient: Patient, virtualVisitDetails: VirtualVisitDetails, paymentMethod: PaymentMethod, virtualActor: Patient? = null, registerPushNotification: RegisterPushNotification? = null): DataObserver<Triple<VirtualVisitTypeName, String, Intent>>
  • Deprecated in favor of using []Patient] information instead of a []VirtualActor]

Creates a new virtual visit.
abstract fun createVirtualVisitWithPatientActor(activity: FragmentActivity, patient: Patient, virtualVisitDetails: VirtualVisitDetails, paymentMethod: PaymentMethod, virtualActor: Patient? = null, registerPushNotification: RegisterPushNotification? = null): DataObserver<Triple<VirtualVisitTypeName, String, Intent>>
Creates a new virtual visit.
getAssignmentQualifiers
Link copied to clipboard
abstract fun getAssignmentQualifiers(): DataObserver<List<VirtualVisitAssignmentQualifier>>
Fetches the supported VirtualVisitAssignmentQualifier values that can be used to schedule a virtual visit.
getEstimatedWaitTime
Link copied to clipboard
abstract fun getEstimatedWaitTime(visitId: String): DataObserver<WaitTime>
Gets an estimated wait time for a visit.
getModalities
Link copied to clipboard
abstract fun getModalities(): DataObserver<List<VirtualVisitModality>>
Fetches the supported VirtualVisitModality values
getVideoCallStatistics
Link copied to clipboard
abstract fun getVideoCallStatistics(): VideoCallStatistics?
Gets the statistics report from the OpenTok (Vonage) SDK from a virtual visit.
getVirtualVisitStatus
Link copied to clipboard
abstract fun getVirtualVisitStatus(visitId: String): DataObserver<VisitStatus>
Fetches the latest status for a virtual visit
getWaitTimeAvailability
Link copied to clipboard
abstract fun getWaitTimeAvailability(regionCodes: List<String>? = null, assignmentQualifiers: List<VirtualVisitAssignmentQualifier>? = null, visitTypeNames: List<VirtualVisitTypeName>? = null, practiceId: String? = null, homeMarket: String? = null): DataObserver<List<WaitTimeAvailability>>
Fetches the wait times and availabilities for all regions within all practices.
postFeedback
Link copied to clipboard
abstract fun postFeedback(feedbacks: List<VirtualFeedback>): DataObserver<Unit>
Used to collect user feedback about the most recent virtual visit.
resumeVirtualVisit
Link copied to clipboard
abstract fun resumeVirtualVisit(visitId: String, fragment: Fragment, registerPushNotification: RegisterPushNotification?, dexCarePatient: DexCarePatient): DataObserver<Intent>
Provides an api to reconnect to an existing virtual visit.
abstract fun resumeVirtualVisit(visitId: String, activity: FragmentActivity, registerPushNotification: RegisterPushNotification?, dexCarePatient: DexCarePatient): DataObserver<Intent>
Provides an api to reconnect to an existing virtual visit.
showPermissionDialog
Link copied to clipboard
abstract fun showPermissionDialog(context: Context, onDismissClicked: () -> Unit? = null): Dialog
Displays a Material dialog requesting the user to open the Settings app and allow the permissions required for Virtual Visits.

Properties

virtualEventListener
Link copied to clipboard
abstract var virtualEventListener: VirtualEventListener?
An optionally specified implementation of VirtualEventListener that allows for listening to various events within the virtual visit experience.