How prachimishra01/carevoice-edge_project works
CareVoice Edge is a mobile patient-monitoring and caregiver platform backed by a FastAPI API and MongoDB-compatible persistence. The documented user workflow spans reminders and voice confirmation, vitals and activity monitoring, and emergency escalation. The supplied tree contains backend code and platform launchers but no Flutter application source, so mobile screens and their internal behavior are represented only at the documented client boundary. Several route-to-service links are not visible in the excerpts and are marked unverified.
Main entry points: __init__.py API v1 router · database.py Database adapter · emergency_service.py Emergency service · reminder_service.py Reminder service
Components 25
Patient and caregiver app
- Flutter mobile app
FastAPI endpoints
- FastAPI application
backend/app/main.py - API v1 router
backend/app/routes/__init__.py - Caretaker profile
backend/app/routes/auth.py - Patient management
backend/app/routes/patients.py - Reminder endpoints
backend/app/routes/reminders.py - Activity endpoints
backend/app/routes/activities.py - Vitals endpoints
backend/app/routes/health_data.py - Emergency endpoints
backend/app/routes/emergency.py - Alert endpoints
backend/app/routes/alerts.py - Analytics endpoints
backend/app/routes/analytics.py - Live status endpoint
backend/app/routes/live_status.py
Care domain services
- Patient service
backend/app/services/patient_service.py - Reminder service
backend/app/services/reminder_service.py - Activity service
backend/app/services/activity_service.py - Vitals service
backend/app/services/health_data_service.py - Emergency service
backend/app/services/emergency_service.py - Analytics service
backend/app/services/analytics_service.py - Live status service
backend/app/services/live_status_service.py
Persistence and data contracts
- Database adapter
backend/app/database.py - MongoDB or memory mock
- API schemas
backend/app/schemas/reminder.py - Emergency schema
backend/app/schemas/emergency.py - Live status schema
backend/app/schemas/live_status.py
Other components
- Patient or caregiver
Connections 33
- Patient or caregiver → Flutter mobile app: uses
- Flutter mobile app → FastAPI application: sends REST requests
- FastAPI application → API v1 router: registers routes
backend/app/main.py - FastAPI application → Database adapter: starts and closes
backend/app/main.py - API v1 router → Caretaker profile: registers
backend/app/routes/__init__.py - API v1 router → Patient management: registers
backend/app/routes/__init__.py - API v1 router → Reminder endpoints: registers
backend/app/routes/__init__.py - API v1 router → Activity endpoints: registers
backend/app/routes/__init__.py - API v1 router → Vitals endpoints: registers
backend/app/routes/__init__.py - API v1 router → Emergency endpoints: registers
backend/app/routes/__init__.py - API v1 router → Alert endpoints: registers
backend/app/routes/__init__.py - API v1 router → Analytics endpoints: registers
backend/app/routes/__init__.py - API v1 router → Live status endpoint: registers
backend/app/routes/__init__.py - Caretaker profile → Database adapter: reads user
backend/app/routes/auth.py - Reminder endpoints → Reminder service: delegates
- Patient management → Patient service: delegates
- Activity endpoints → Activity service: delegates
- Vitals endpoints → Vitals service: delegates
- Emergency endpoints → Emergency service: delegates
- Alert endpoints → Emergency service: delegates
- Analytics endpoints → Analytics service: delegates
- Live status endpoint → Live status service: delegates
- Reminder service → Database adapter: reads and writes
backend/app/services/reminder_service.py - Activity service → Database adapter: reads and writes
backend/app/services/activity_service.py - Vitals service → Database adapter: reads and writes
backend/app/services/health_data_service.py - Emergency service → Database adapter: reads and writes
backend/app/services/emergency_service.py - Live status service → Database adapter: reads status data
backend/app/services/live_status_service.py - Database adapter → MongoDB or memory mock: connects or falls back
backend/app/database.py - Reminder service → API schemas: uses contracts
backend/app/services/reminder_service.py - Emergency service → Emergency schema: uses contracts
backend/app/services/emergency_service.py - Live status service → Live status schema: builds response
backend/app/services/live_status_service.py - Reminder service → Activity service: logs activity
- Emergency service → Activity endpoints: records alert activity