How rutikbajad/heathcare-dashboard works
This is a healthcare records and clinical-management web application with a browser UI and Flask backend. The main user workflow is sign-in, then role- and page-authorized access to patient records, appointments, disease references, and analytics; users can also search records and submit heart-risk assessments. The sampled backend shows account/session checks and MongoDB operations, while the frontend excerpt shows API requests and UI features. Backend and model internals are only partially sampled, so some subsystem boundaries and links remain unverified.
Main entry points: main.js Portal interface · app.py Accounts and access · preprocessing.py Feature preprocessing · heart_model.pkl Heart model artifact
Components 16
Web client
- Portal interface
frontend/src/main.js - Charts
frontend/src/main.js
Application backend
- Accounts and access
backend/app.py - Patient records
backend/app.py - Appointments
backend/app.py - Disease records
backend/app.py - Staff and users
backend/app.py - Analytics metrics
backend/app.py
Clinical data
- MongoDB
- Health datasets
data/diabetes.csv - Heart dataset
data/heart.csv
Search and risk
- Record search
backend/app.py - Risk assessments
backend/app.py - Feature preprocessing
ml/preprocessing.py - Heart model artifact
ml/heart_model.pkl
Other components
- Healthcare user
Connections 17
- Healthcare user → Portal interface: uses
frontend/src/main.js - Portal interface → Accounts and access: requests API
- Portal interface → Patient records: requests API
- Portal interface → Appointments: requests API
- Portal interface → Disease records: requests API
- Portal interface → Record search: posts search
frontend/src/main.js - Portal interface → Risk assessments: submits assessment
- Portal interface → Charts: renders charts
frontend/src/main.js - Accounts and access → MongoDB: reads sessions
backend/app.py - Accounts and access → MongoDB: reads accounts
backend/app.py - Patient records → MongoDB: writes patients
backend/app.py - Appointments → MongoDB: writes appointments
backend/app.py - Disease records → MongoDB: checks diseases
backend/app.py - Analytics metrics → MongoDB: reads metrics
backend/app.py - Record search → MongoDB: searches records
- Risk assessments → MongoDB: stores assessments
- Feature preprocessing → Heart model artifact: prepares features