Skip to main content

Appointment Scheduled


Use Appointment Scheduled to confirm that the selected appointment offer is approved.

The modal displays the scheduled doctor, appointment time, location, and price.



This screen includes:

#ElementDescription
1Modal titleDisplays Appointment scheduled.
2Close actionDismisses the modal.
3Doctor nameDisplays the scheduled doctor name.
4Appointment date and timeDisplays the scheduled appointment date, time, and time zone.
5Appointment locationDisplays the appointment address and distance from the user.
6Appointment priceDisplays the appointment fee.
7Close buttonCloses the modal and returns the user to the appointment list.

Workflow

  1. Select an appointment offer.
  2. Select Confirm.
  3. Submit the appointment approval request.
  4. Display the Appointment scheduled modal after success.
  5. Show the doctor name, appointment time, location, and price.
  6. Close the modal from Close or the close action.

Validations

ScenarioApp BehaviorSDK Output
Appointment offer is selectedEnables the confirmation action.state = selected
Appointment offer is not selectedKeeps the confirmation action unavailable.state = invalid
Approval request succeedsDisplays the scheduled appointment modal.status = success
Approval request failsDisplays an error state and preserves the offer list.state = error
Scheduled appointment data is availableDisplays appointment details in the modal.appointment = scheduled
Scheduled appointment data is unavailableDisplays an error state.error = missing_appointment_data

Actions

ScenarioApp BehaviorSDK Output
Appointment offer selectedUpdates the selected offer state.offer = selected
Confirm selectedSends the appointment approval request.PUT /api/v3/appointments/{appointment-id}/approve/success
Approval succeedsOpens the Appointment scheduled modal.modal = appointment_scheduled
Approval failsKeeps the user on the offer selection screen.state = error
Close action selectedDismisses the modal.state = dismissed
Close button selectedCloses the modal and returns to the appointment list.navigation = appointment_list

Endpoint Resources

Appointment Scheduled

PUT 

v3/appointments/{appointment-id}/approve/success

Displays success screen when appointment offer was approved.