How raymondtian12/vital-pilot-senior-design works
VitalPilot is a chronic-condition monitoring platform: patients record health readings, the backend assesses them and tracks patterns, and patients and care teams can review alerts, reports, and provider information. The graph covers the documented mobile-to-backend workflow and major AI, reporting, and portal capabilities. Evidence is limited to the README and the supplied excerpts and SOURCE INDEX; links to unsampled subsystems are included only where the index or README supports them.
Main entry points: app.py FastAPI application · db.py MySQL connection · metrics.py Metric routes · notifications.py Alerts and notifications
Components 24
Patient and provider clients
- Mobile app
vitalpilot/frontend/mobile/src/app/(tabs)/metrics.tsx - Web dashboard
vitalpilot/frontend/web/app/dashboard/page.tsx - Web API client
vitalpilot/frontend/web/app/services/api.ts - Web chatbot
vitalpilot/frontend/web/app/chatbot/page.tsx - Web navigation
vitalpilot/frontend/web/app/components/Navbar.tsx
API and identity
- FastAPI application
backend/app.py - Authentication routes
backend/routers/auth.py - Session security
backend/security.py - User model
backend/models/User.py
Clinical monitoring
- Metric routes
backend/routers/metrics.py - Reading assessments
backend/metric_assessments.py - Threshold evaluator
backend/engine/clinical_evaluator.py - Temporal evaluation
backend/engine/temporal_engine.py - Metric history
backend/routers/metric_history.py - Alerts and notifications
backend/notifications.py
Care and insights
- Chatbot routes
backend/routers/chatbot.py - Report routes
backend/routers/reports.py - Report generation
backend/report_generator.py - Provider and patient portal
backend/routers/portal.py - Doctor directory
backend/routers/doctors.py - Follow-up guidance
backend/suggested_follow_up.py
Persistence and AI
- Gemini model client
backend/llm.py - MySQL connection
backend/db.py
Other components
- Patient
Connections 30
- Patient → Mobile app: records readings
README.md - Mobile app → FastAPI application: sends requests
README.md - Web dashboard → Web API client: uses API
vitalpilot/frontend/web/app/dashboard/page.tsx - Web chatbot → Web API client: uses API
vitalpilot/frontend/web/app/chatbot/page.tsx - Web API client → FastAPI application: calls backend
README.md - Web navigation → Web dashboard: navigates
- FastAPI application → Authentication routes: mounts routes
backend/app.py - FastAPI application → Metric routes: mounts routes
backend/app.py - Authentication routes → Session security: issues sessions
backend/routers/auth.py - Session security → User model: loads user
backend/security.py - User model → MySQL connection: reads and writes
backend/models/User.py - Metric routes → Reading assessments: saves assessment
backend/routers/metrics.py - Metric routes → Alerts and notifications: notifies reading
backend/routers/metrics.py - Metric routes → Temporal evaluation: checks patterns
backend/routers/metrics.py - Reading assessments → Threshold evaluator: classifies readings
- Metric routes → MySQL connection: stores readings
backend/routers/metrics.py - Metric history → MySQL connection: reads history
backend/routers/metric_history.py - Metric history → Follow-up guidance: gets guidance
backend/routers/metric_history.py - Alerts and notifications → Temporal evaluation: evaluates patterns
backend/notifications.py - Alerts and notifications → MySQL connection: stores alerts
- FastAPI application → Chatbot routes: mounts routes
backend/app.py - Chatbot routes → Gemini model client: requests response
backend/routers/chatbot.py - Chatbot routes → Metric history: uses metric context
backend/routers/chatbot.py - FastAPI application → Report routes: mounts routes
backend/app.py - Report routes → Report generation: builds reports
backend/routers/reports.py - Report generation → Gemini model client: generates summaries
backend/report_generator.py - FastAPI application → Provider and patient portal: mounts routes
backend/app.py - FastAPI application → Doctor directory: mounts routes
backend/app.py - Provider and patient portal → MySQL connection: reads care records
backend/routers/portal.py - Doctor directory → MySQL connection: searches providers