Push Notifications & SMS
Real-time alerts for medication reminders, task due dates, care plan updates, and escalations.
Supported Channels
- Push — Web Push via service worker (VAPID-based)
- SMS — Twilio integration for critical alerts
- In-App — Toast notifications within the UI
Data Model
- UserDevice — endpoint, p256dh, auth keys
- Notification — type, title, body, sentAt, read
API Endpoints
- POST /api/auth/devices — Register device for push
- POST /api/tasks/:caseId/:taskId/escalate — Trigger escalation alert
Reminder Service
Scheduled background jobs check upcoming tasks and medication schedules, sending push or SMS alerts at the appropriate times.