How rasool-muhiddin/care_path works
Axon is a care-coordination product: patients, doctors, and engineers work around a therapeutic device. The principal workflow is case management and device assignment, followed by treatment-session and attack tracking, with role-based chat and push notifications supporting care. The README also names app updates and a Flutter client, but the client source is absent from this tree. Edges between unsampled API handlers and domain services are omitted; dashed edges indicate the documented but unverified client/API interaction.
Main entry points: cases/models.py Cases and attacks · treatments/models.py Treatment sessions · chat/models.py Messages · devices/models.py Clinics and devices
Components 20
REST API
- Account API
accounts/views.py - Case API
cases/views.py - Device API
devices/views.py - Treatment API
treatments/views.py - Chat API
chat/views.py
Care records
- Accounts and roles
accounts/models.py - Cases and attacks
cases/models.py - Treatment sessions
treatments/models.py
Device operations
- Clinics and devices
devices/models.py
Communication
- Messages
chat/models.py - Voice-note storage
chat/voice.py - Push service
notifications/services.py - Device tokens
notifications/models.py - Firebase messaging
notifications/firebase.py
Client and updates
- Flutter app
- App updates API
app_updates/views.py - App update records
app_updates/models.py
Other components
- Patient
- Doctor / engineer
- PostgreSQL
Connections 28
- Patient → Flutter app: uses
- Doctor / engineer → Flutter app: uses
- Flutter app → Account API: requests
- Flutter app → Case API: manages cases
- Flutter app → Device API: manages devices
- Flutter app → Treatment API: records sessions
- Flutter app → Chat API: sends messages
- Flutter app → App updates API: checks updates
- Case API → Cases and attacks: manages
- Device API → Clinics and devices: manages
- Treatment API → Treatment sessions: manages
- Chat API → Messages: manages
- Account API → Accounts and roles: manages
- Cases and attacks → Clinics and devices: references device
cases/models.py - Treatment sessions → Cases and attacks: references case
treatments/models.py - Treatment sessions → Clinics and devices: references device
treatments/models.py - Messages → Cases and attacks: belongs to case
chat/models.py - Messages → Voice-note storage: stores voice notes
chat/models.py - Push service → Device tokens: reads tokens
notifications/services.py - Push service → Firebase messaging: sends multicast
notifications/services.py - App updates API → App update records: serves update data
- Accounts and roles → PostgreSQL: persists
- Cases and attacks → PostgreSQL: persists
- Clinics and devices → PostgreSQL: persists
- Treatment sessions → PostgreSQL: persists
- Messages → PostgreSQL: persists
- Device tokens → PostgreSQL: persists
- App update records → PostgreSQL: persists