How ymr12-m/ma3ak works
MA3ak is a patient-care platform for medication adherence, appointments, health measurements, and caregiver monitoring. Its main documented workflow is a dose reminder that can escalate from a patient alarm to a caregiver alert when a dose is missed or the patient does not respond. The graph includes the documented frontend capability areas and backend domain routes; frontend-to-API wiring is not established by the sampled evidence, so those links are omitted.
Main entry points: db.js MySQL · notify.js Notification delivery policy · push.js Web Push delivery · doses.js Dose records
Components 24
Patient and caregiver app
- Patient experience
frontend/js/components/PatientHome.jsx - Medication management
frontend/js/components/Medications.jsx - Dose alarm
frontend/js/components/Alarm.jsx - Appointments
frontend/js/components/Appointments.jsx - Health measurements
frontend/js/components/Vitals.jsx - Adherence history
frontend/js/components/Adherence.jsx - Notifications
frontend/js/components/Notifications.jsx - API client
frontend/js/api.js - Background alarm delivery
frontend/sw.js
Care and account API
- Authentication
backend/routes/auth.js - Patient and caregiver links
backend/routes/patients.js - Medication schedules
backend/routes/medications.js - Dose records
backend/routes/doses.js - Appointment records
backend/routes/appointments.js - Vital records
backend/routes/vitals.js - Notification records
backend/routes/notifications.js
Reminder and notification services
- Dose escalation scheduler
backend/scheduler.js - Notification delivery policy
backend/utils/notify.js - Web Push delivery
backend/utils/push.js
Persistence and access
- Patient access checks
backend/utils/access.js - MySQL
backend/db.js
Other components
- Patient
- Caregiver
- Browser push service
Connections 16
- Patient → Dose alarm: receives reminders
- Caregiver → Patient experience: monitors patient
- Dose escalation scheduler → Notification delivery policy: creates alerts
backend/scheduler.js - Dose records → Notification delivery policy: creates alerts
backend/routes/doses.js - Notification delivery policy → Web Push delivery: dispatches push
backend/utils/notify.js - Web Push delivery → Browser push service: sends notifications
backend/utils/push.js - Notification delivery policy → MySQL: stores notifications
backend/utils/notify.js - Web Push delivery → MySQL: reads subscriptions
backend/utils/push.js - Patient access checks → MySQL: checks links
backend/utils/access.js - Authentication → MySQL: reads and writes
backend/routes/auth.js - Patient and caregiver links → MySQL: reads and writes
backend/routes/patients.js - Medication schedules → MySQL: reads and writes
backend/routes/medications.js - Dose records → MySQL: reads and writes
backend/routes/doses.js - Appointment records → MySQL: reads and writes
backend/routes/appointments.js - Vital records → MySQL: reads and writes
backend/routes/vitals.js - Notification records → MySQL: reads and writes
backend/routes/notifications.js