A full-stack web application for managing patient records, doctor assignments, room allocation, and treatment history.
The Hospital Patient Management Dashboard is a Flask-based web application that streamlines hospital record management through separate interfaces for patients and administrators.
Patients can securely register, log in, and view their assigned doctor, room information, admission details, and treatment history. Administrators can manage hospital resources by adding doctors, rooms, and treatment records through a dedicated admin portal.
The application uses Flask for the backend, MySQL for persistent data storage, and a lightweight HTML/CSS/JavaScript frontend to provide a responsive and intuitive user experience.
- Two-step patient authentication
- New patient registration
- Secure login using name and phone number
- View assigned doctor details
- View room allocation
- Access treatment history
- View admission details
- Delete patient account
- Logout functionality
- Add new doctors
- Add hospital rooms
- Record patient treatments
- Manage hospital information through dedicated forms
- RESTful API endpoints using Flask
- CRUD operations with MySQL
- Cross-Origin Resource Sharing (CORS) support
- Dynamic data retrieval
- Secure database interaction using MySQL Connector
| Technology | Purpose |
|---|---|
| Python | Backend |
| Flask | REST API & Server |
| MySQL | Database |
| HTML5 | Frontend |
| CSS3 | Styling |
| JavaScript | Client-side Logic |
| Flask-CORS | Cross-origin communication |
| MySQL Connector | Database connectivity |
Patient_dashboard/
│
├── app.py # Flask backend
│
├── static/
│ ├── index.html # Patient Portal
│ ├── admin.html # Admin Portal
│ └── styles.css # Styling
│
└── README.md
-
Enter name and phone number
-
System verifies whether the patient exists
-
Existing patients are directed to their dashboard
-
New patients complete registration
-
Dashboard displays:
- Doctor information
- Room details
- Admission date
- Treatment history
- Open Admin Portal
- Add doctors
- Add hospital rooms
- Record treatments
- Patient dashboard updates automatically from the database
The project uses a relational MySQL database containing entities such as:
- Patient
- Doctor
- Room
- Treatment
The backend performs SQL queries to retrieve and update information in real time.
Clone the repository
git clone https://github.com/yourusername/Patient_dashboard.gitInstall dependencies
pip install flask
pip install flask-cors
pip install mysql-connector-pythonConfigure MySQL credentials inside app.py.
Run the application
python app.pyVisit
http://127.0.0.1:5000
This project demonstrates:
- Full-stack web development
- REST API development
- Database design and SQL integration
- CRUD operations
- Role-based application architecture
- Client-server communication
- Backend development using Flask
- Password-based authentication
- JWT authentication
- Appointment scheduling
- Prescription management
- Medical report uploads
- Search and filter functionality
- Responsive mobile interface
- Docker deployment
- Cloud database integration
- Analytics dashboard for hospital administrators