How yashashree737/veercare-sih2026 works
VEER CARE is a welfare decision-support product: role-based personnel, welfare, command and HR interfaces collect operational and wellbeing signals, generate risk predictions and insights, and support human-reviewed interventions and follow-up. The sampled API shows authentication, prediction assembly and persistence; the README documents the broader assessment and companion capabilities. Some route and frontend internals were not sampled, so their detailed wiring is not inferred.
Main entry points: main.py FastAPI Application · api.ts Frontend API Client · ml_routes.py Prediction API · database.py SQLAlchemy Database
Components 23
User Experience
- Role Dashboards
frontend/app/dashboard/page.tsx - Personnel View
frontend/app/personnel/[id]/page.tsx - Interventions
frontend/app/interventions/page.tsx - VEER Companion
frontend/components/VoiceAgent.tsx - Frontend API Client
frontend/lib/api.ts - Wellbeing and Cognitive Assessments
frontend/components/PeriodicTestView.tsx - Contextual Assessment
frontend/components/SituationalAssessmentChat.tsx
API and Access
- FastAPI Application
backend/main.py - Login and Access
backend/routes/auth_routes.py - Role APIs
backend/routes/commander.py - UI Bridge API
backend/routes/ui_bridge.py
Signals and Analysis
- Prediction API
backend/routes/ml_routes.py - Baseline and Features
backend/derive.py - Signal Encoding
backend/ml/datapipeline.py - Risk Inference
backend/ml/ml.py
Welfare Operations
- Welfare API
backend/routes/welfare.py - Human Review and Follow-up
backend/models/intervention.py
Persistence
- Personnel and Signal Records
backend/models - SQLAlchemy Database
backend/database.py - Prediction Records
backend/models/ml_prediction.py
Other components
- Personnel
- Welfare Officer
- Commander / HR
Connections 30
- Personnel → Role Dashboards: uses dashboards
- Welfare Officer → Role Dashboards: reviews welfare
- Commander / HR → Role Dashboards: views unit trends
- Personnel → Personnel View: views wellbeing
- Personnel → Wellbeing and Cognitive Assessments: completes assessments
- Personnel → VEER Companion: uses companion
- Role Dashboards → Frontend API Client: requests data
- Personnel View → Frontend API Client: requests data
- Interventions → Frontend API Client: requests actions
- Frontend API Client → FastAPI Application: calls API
- FastAPI Application → Login and Access: registers router
backend/main.py - FastAPI Application → UI Bridge API: registers router
backend/main.py - FastAPI Application → Role APIs: registers router
backend/main.py - FastAPI Application → Welfare API: registers router
backend/main.py - FastAPI Application → Prediction API: registers router
backend/main.py - Login and Access → SQLAlchemy Database: queries users
backend/routes/auth_routes.py - Role APIs → SQLAlchemy Database: queries role data
backend/routes/commander.py - Welfare API → SQLAlchemy Database: queries welfare data
backend/routes/welfare.py - Prediction API → Personnel and Signal Records: reads signal records
backend/routes/ml_routes.py - Personnel and Signal Records → SQLAlchemy Database: maps tables
backend/models/personnel.py - Prediction API → Baseline and Features: derives features
- Baseline and Features → Signal Encoding: produces features
backend/ml/datapipeline.py - Prediction API → Risk Inference: runs prediction
backend/routes/ml_routes.py - Risk Inference → Signal Encoding: processes inputs
backend/ml/ml.py - Prediction API → Prediction Records: persists prediction
backend/routes/ml_routes.py - Prediction Records → SQLAlchemy Database: maps prediction table
backend/models/ml_prediction.py - Welfare API → Human Review and Follow-up: manages interventions
backend/routes/welfare.py - Welfare Officer → Interventions: reviews actions
- Wellbeing and Cognitive Assessments → Frontend API Client: submits responses
- Contextual Assessment → Frontend API Client: requests assessment