startVirtualVisit

abstract fun startVirtualVisit(activity: FragmentActivity, registerPushNotification: RegisterPushNotification?, paymentMethod: PaymentMethod, virtualVisitInformation: VirtualVisitInformation, catchmentArea: CatchmentArea, patientDexCarePatient: DexCarePatient, actorDexCarePatient: DexCarePatient? = null, practiceId: String): DataObserver<Pair<String, Intent>>

Provides an api to schedule a virtual visit. This method returns a unique id for the visit, and an intent which should be used to start the SDK's virtual visit activity and listen for results.

Return

Pair<VisitId, IntentForResults>

See also

Parameters

activity

A FragmentActivity that can be used for the SDK to check for required permissions.

registerPushNotification

A RegisterPushNotification object used to register the Android device for push notifications during the virtual visit. Optional, but highly recommended to be used.

paymentMethod

A PaymentMethod object containing the patient's payment information

virtualVisitInformation

A VirtualVisitInformation object containing additional details required to schedule the virtual visit.

catchmentArea

A CatchmentArea that can be retrieved from org.dexcare.services.patient.PatientService.getCatchmentArea. Alternatively, if your health system has a single EHR system, the CatchmentArea's values should be already known and can be hardcoded.

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 VirtualVisitInformation.patientDeclaration is org.dexcare.services.models.PatientDeclaration.Other.

practiceId

The unique id of the practice in which the visit will be created.

Throws

abstract fun startVirtualVisit(fragment: Fragment, registerPushNotification: RegisterPushNotification?, paymentMethod: PaymentMethod, virtualVisitInformation: VirtualVisitInformation, catchmentArea: CatchmentArea, patientDexCarePatient: DexCarePatient, actorDexCarePatient: DexCarePatient? = null, practiceId: String): DataObserver<Pair<String, Intent>>

Provides an api to schedule a virtual visit. This method returns a unique id for the visit, and an intent which should be used to start the SDK's virtual visit activity and listen for results.

Return

Pair<VisitId, IntentForResults>

See also

Parameters

fragment

A Fragment that can be used for the SDK to check for required permissions.

registerPushNotification

A RegisterPushNotification object used to register the Android device for push notifications during the virtual visit. Optional, but highly recommended to be used.

paymentMethod

A PaymentMethod object containing the patient's payment information

virtualVisitInformation

A VirtualVisitInformation object containing additional details required to schedule the virtual visit.

catchmentArea

A CatchmentArea that can be retrieved from org.dexcare.services.patient.PatientService.getCatchmentArea. Alternatively, if your health system has a single EHR system, the CatchmentArea's values should be already known and can be hardcoded.

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 VirtualVisitInformation.patientDeclaration is org.dexcare.services.models.PatientDeclaration.Other.

practiceId

The unique id of the practice in which the visit will be created.

Throws