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.
What
No-shows are around 11% across the group. This adds a
send_remindersmanagement command that texts patients about appointments in the next 24 hours. Ops will run it from cron every hour.How
Appointment.reminder_sent_atso a patient is only reminded once--dry-runprints the messages instead of sendingscheduling.sms.send_smshelper (Twilio)Testing
Ran
--dry-runagainst a copy of staging, messages look right.