Let patients cancel their own appointments from the portal #102

Openaokafor wants to merge 2 commits into main from feat/patient-cancel-appointment· opened yesterday
+36−1
aokafor commented yesterdayAuthor

What

Front desk spends a lot of time on the phone just to cancel bookings. This adds a "Cancel appointment" button on the appointment detail page so patients can do it themselves.

How

  • New cancel_appointment view, refuses cancellations less than 24h before the slot
  • Clinic gets the usual cancellation notification (notify_clinic_of_cancellation)
  • Button only shows for booked appointments

Testing

Booked and cancelled a few appointments locally as a test patient.

Closes #214

aokafor added 2 commits yesterday
Add cancel_appointment view and URL204708f
Show cancel button on appointment detail1f47076

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick