Send SMS reminders the day before an appointment #1002

Openlfontaine wants to merge 2 commits into main from feat/sms-reminders· opened 3 days ago
+78−0
lfontaine commented 3 days agoAuthor

What

No-shows are around 11% across the group. This adds a send_reminders management command that texts patients about appointments in the next 24 hours. Ops will run it from cron every hour.

How

  • New nullable Appointment.reminder_sent_at so a patient is only reminded once
  • --dry-run prints the messages instead of sending
  • Uses the existing scheduling.sms.send_sms helper (Twilio)

Testing

Ran --dry-run against a copy of staging, messages look right.

lfontaine added 2 commits 3 days ago
Add reminder_sent_at to Appointmentaeb81ef
Add send_reminders management commandadb81d6

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