https://github.com/ohcnetwork/care_notifications_be
Plug for CARE that sends SMS notifications to patients on booking
https://github.com/ohcnetwork/care_notifications_be
Last synced: about 10 hours ago
JSON representation
Plug for CARE that sends SMS notifications to patients on booking
- Host: GitHub
- URL: https://github.com/ohcnetwork/care_notifications_be
- Owner: ohcnetwork
- Created: 2026-05-17T21:26:29.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2026-05-19T17:35:40.000Z (22 days ago)
- Last Synced: 2026-05-23T06:42:39.059Z (19 days ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# care_booking_notifications_be
CARE plug that sends notifications to patients.
## Currently supports
1. Token bookings — confirm, reminder, cancel, reschedule.
## Install
Add to `plug_config.py`:
```python
booking_notifications = Plug(
name="booking_notifications",
package_name="git+https://github.com/ohcnetwork/care_notifications_be.git@main",
version="0.1.0",
configs={},
)
plugs = [booking_notifications]
```
Then `make build && make up`.
## Settings
| Key | Default | Description |
|---|---|---|
| `TOKEN_BOOKING_NOTIFICATIONS_ENABLED` | `True` | Master switch for all token booking notifications. |
| `BOOKING_REMINDER_LEAD_MINUTES` | `60` | Minutes before slot start to send the reminder. |
| `BOOKING_REMINDER_SWEEP_MINUTES` | `1` | How often the reminder sweep runs. |
| `BOOKING_NOTIFY_CONFIRMATION` | `True` | Send confirmation SMS. |
| `BOOKING_NOTIFY_REMINDER` | `True` | Send reminder SMS. |
| `BOOKING_NOTIFY_CANCEL` | `True` | Send cancellation SMS. |
| `BOOKING_NOTIFY_RESCHEDULED` | `True` | Send reschedule SMS. |
| `BOOKING_CONFIRMATION_SMS_TEXT` | `Hi {patient_name}, your appointment is confirmed for {slot_start:%a, %d %b %Y %H:%M}. - Care` | Confirmation SMS body. |
| `BOOKING_REMINDER_SMS_TEXT` | `Reminder: {patient_name}, your appointment is at {slot_start:%a, %d %b %Y %H:%M}. - Care` | Reminder SMS body. |
| `BOOKING_CANCEL_SMS_TEXT` | `Hi {patient_name}, your appointment for {slot_start:%a, %d %b %Y %H:%M} has been cancelled. - Care` | Cancel SMS body. |
| `BOOKING_RESCHEDULED_SMS_TEXT` | `Hi {patient_name}, your previous appointment has been rescheduled. - Care` | Reschedule SMS body. |
Message bodies are Python `str.format` templates. Available placeholders: `{patient_name}`, `{slot_start}` (a timezone-aware datetime; supports format specs like `{slot_start:%d %b %H:%M}`).