How sonalipandey2007/psychological-assistance-well-being-system works
PAWS is a Flask backend for victim check-ins, distress screening, case tracking, and role-based officer and counsellor workflows. Victims submit check-ins; the victim routes gather history, invoke analysis, and persist scores and alerts. Staff routes retrieve risk and case information and record follow-up. The sampled source supports these route-to-analysis and route-to-database relationships; several route excerpts are partial, and the README is empty, so unsampled behavior is not inferred.
Main entry points: app.py Flask application · db.py Database access · auth.py Authentication · victim.py Victim workflows
Components 14
API and access
- Flask application
app.py - Authentication
routes/auth.py - Protected routes
routes/protected.py
Victim screening
- Victim workflows
routes/victim.py - Distress engine
ai/distress_engine.py - Text analysis
ai/nlp_analysis.py - Engagement analysis
ai/behaviour_analysis.py
Case tracking
- Case tracking
routes/case.py
Staff workflows
- Officer workflows
routes/officer.py - Counsellor workflows
routes/counsellor.py
Persistence
- Database access
database/db.py - MySQL database
Other components
- Victim
- Officer or counsellor
Connections 21
- Victim → Flask application: submits requests
- Officer or counsellor → Flask application: submits requests
- Flask application → Victim workflows: registers
- Flask application → Case tracking: registers
- Flask application → Authentication: registers
- Flask application → Protected routes: registers
- Flask application → Officer workflows: registers
- Flask application → Counsellor workflows: registers
- Victim workflows → Authentication: uses guards
- Officer workflows → Authentication: uses guards
- Counsellor workflows → Authentication: uses guards
- Authentication → Database access: queries users
- Victim workflows → Distress engine: analyzes check-in
- Distress engine → Text analysis: analyzes text
- Distress engine → Engagement analysis: scores engagement
- Victim workflows → Database access: reads and writes
- Case tracking → Database access: reads and writes
- Officer workflows → Database access: queries records
- Counsellor workflows → Database access: reads and updates
- Protected routes → Database access: database access
- Database access → MySQL database: connects