Skip to main content

Cancel Appointment


Use Cancel Appointment to start cancellation from the appointment details screen.



This screen includes:

#ElementDescription
1Appointment headerDisplays the doctor name and reference number.
2Appointment tabsProvides access to Details, Charges, and Documents.
3Appointment informationDisplays date, time, visit type, location, doctor, and specialty.
4Patient detailsDisplays patient information and medical issue status.
5Cancel appointment actionOpens the cancellation flow.
6Update payment actionOpens payment update for the appointment.

Workflow

  1. Open the appointment details screen.
  2. Select Cancel appointment.
  3. Load the Decline appointment screen.
  4. Select a cancellation reason when required.
  5. Submit the cancellation request.
  6. Refresh the appointment state.

Validations

ScenarioApp behaviorSDK output
Session invalidBlock requeststate = unauthenticated
Appointment missingDisplay error stateerror = appointment_required
Cancellation unavailableHide or disable cancellation actioncancellation = unavailable
Cancellation reason missingDisable confirmationvalidation = reason_required
Cancellation succeedsRefresh appointment stateappointment = cancelled
Request rejectedDisplay error statestatus = 405

Actions

ScenarioApp behaviorSDK output
Cancel appointment selectedLoad cancellation flowPUT /api/v3/appointments/{appointment-id}/cancel
Cancellation reason selectedUpdate selected reasonPATCH /api/v3/appointments/{appointment-id}/cancel/change-reason
Cancellation confirmedSubmit cancellation requestPOST /api/v3/appointments/{appointment-id}/cancel
Update payment selectedOpen payment update flownavigation = update_payment
Back selectedReturn to previous screennavigation = back

Endpoint Resources

Cancel Appointment

PUT 

v3/appointments/{appointment-id}/cancel

Returns the cancellation flow for the selected appointment.

Update Reason

PATCH 

v3/appointments/{appointment-id}/cancel/change-reason

Updates the selected cancellation reason.

Confirm Cancellation

POST 

v3/appointments/{appointment-id}/cancel

Cancels the selected appointment.