How vishalm029/health_help works
Project type and purpose
• From the README and file‐tree, this is a full-stack web application (“Healthcare Management Platform”) built in Flask (Python).
• Core features: disease prediction via ML models, online appointment booking, medical record storage.
File structure
• Top-level files:
• app.py – main Flask application entry point
• db/medilab.sql – database schema/data
• flask_session/ – server-side session store
• Data/ – CSV data and pickle files for training and loading ML models
• DiseasePrediction.ipynb – Jupyter notebook for model development
• README.md – project overview
• Directories:
• Templates/ – Jinja2 HTML templates (views) for all user flows (patient, doctor, shared header/footer)
• Static/ – front-end assets (css/, js/, fonts/, img/)
• Pattern: classic MVC/MVT (Model-View-Controller / Model-View-Template)
• Deployment hints: uses Flask’s builtin server, Python dependencies (in README “npm install” looks misplaced but likely “pip install”), no separate microservices.
README for additional insights
• Stack: Python/Flask backend, SQLite (or MySQL) database, client renders static assets plus dynamic HTML via Jinja2.
• ML integration: two pre-trained models (KNN, Random Forest) loaded at runtime.
1. Client (Web Browser)
2. Web Server / Application Layer (Flask app.py)
3. Template Engine (Jinja2 + Templates/)
4. Static‐Assets Server (Static/)
5. Machine Learning Engine (Data/ models + loading code)
6. Database (db/medilab.sql)
7. Session Store (flask_session/)
• Client → HTTP request → Flask app
• Flask app → selects Template → Jinja2 → renders HTML → Client
• Client fetches CSS/JS/img from Static/
• For disease prediction: Flask app invokes ML engine → loads pickle → returns prediction → inject into template
• For appointments & records: Flask app performs CRUD → Database
• Flask app reads/writes session data → Session Store
c. Architectural patterns & design principles:
• MVC/MVT: clear separation of views (Templates), controllers (Flask routes in app.py), models (DB layer + ML models)
• Single-process, monolithic server but logical separation of concerns
d. Key technologies/frameworks:
• Flask (Python)
• Jinja2
• SQLite/MySQL (via db/medilab.sql)
• Server-side sessions (flask_session)
• Machine Learning: scikit-learn KNN and Random Forest (pickle files)
• Frontend: HTML5, CSS3, JavaScript (custom.js), FontAwesome