How jagannatha-dev/healthcare-ai works
Healthcare AI is a Flask-based symptom-to-disease decision-support application. The documented user journey runs from account access and symptom selection through ML prediction, disease-specific recommendations, and result review; history and PDF reporting persist or export completed predictions. Separate branches provide chatbot answers, profile tools, and administration. The tree and excerpts support the main entry points and service responsibilities, while wiring inside unsampled routes is represented only where documented or visible.
Main entry points: app.py Flask application · db.py Database access · prediction.py Prediction route · predict.py Disease classifier
Components 23
Web application
- Flask application
app.py - Chat interface
static/js/chatbot.js
Prediction and guidance
- Prediction route
routes/prediction.py - Disease classifier
ml/predict.py - Symptom vocabulary
dataset/symptoms_master.py - Model datasets
dataset/Training.csv - Recommendation service
services/recommendation_service.py - Healthcare CSVs
dataset - Prediction results
templates/prediction_result.html - Chatbot route
routes/chatbot.py - Chatbot service
services/chatbot_service.py
Accounts and records
- Authentication
routes/auth.py - History routes
routes/history.py - History service
services/history_service.py - PDF reports
services/pdf_service.py - Profile routes
routes/profile.py - Profile service
services/profile_service.py - Database access
db.py - Oracle database
Administration
- Admin panel
routes/admin.py
Other components
- User
- Administrator
- Web browser
Connections 28
- User → Web browser: uses
- Web browser → Flask application: sends requests
- Flask application → Authentication: registers routes
- Flask application → Prediction route: registers routes
- Flask application → Admin panel: registers routes
- Authentication → Database access: queries
- Prediction route → Disease classifier: predicts symptoms
- Prediction route → Recommendation service: retrieves guidance
- Disease classifier → Symptom vocabulary: uses vocabulary
- Disease classifier → Model datasets: trained from
- Recommendation service → Healthcare CSVs: reads
- Prediction route → Prediction results: renders result
- Web browser → Chat interface: asks questions
- Chat interface → Chatbot route: posts message
- Chatbot route → Chatbot service: gets reply
- Chatbot service → Healthcare CSVs: looks up information
- Flask application → History routes: serves history
- History routes → History service: retrieves records
- History service → Database access: reads and writes
- Flask application → Profile routes: serves profile
- Profile routes → Profile service: manages profile
- Profile service → Database access: reads and writes
- Flask application → PDF reports: generates report
- PDF reports → Web browser: returns PDF
- Administrator → Web browser: manages system
- Admin panel → Database access: manages records
- Admin panel → Healthcare CSVs: updates CSVs
- Database access → Oracle database: connects