The CliniXpert (Hospital Management System) is a web application designed to facilitate the management of hospital operations, including patient registration, doctor management, appointment scheduling, and administrative tasks. Built using Flask and MySQL, this application provides a user-friendly interface for both administrators and patients.
-
Admin Features:
- Admin login and dashboard
- Manage patients (view, edit, delete)
- Manage doctors (view, add, delete)
- Manage appointments (view, update status)
-
User Features:
- User registration and login
- View and manage personal appointments
- Book new appointments with doctors
- Backend: Flask (Python)
- Database: MySQL
- Frontend: HTML, CSS
- Libraries: Flask, mysql-connector-python
- Python
- MySQL Server
- pip (Python package installer)
-
Clone the Repository: bash git clone https://github.com/Momeena12/hospital-management-system.git cd hospital-management-system
-
Create a Virtual Environment: bash python -m venv venv source venv/bin/activate # On Windows use
venv\Scripts\activate -
Install Required Packages: bash pip install -r requirements.txt
-
Set Up the Database:
-
Create a new database in MySQL: sql CREATE DATABASE HMSystem;
-
Run the SQL scripts provided in
MYSQLsqlconnector.session.sqlto create tables and insert sample data.
-
-
Configure Database Connection:
- Update the
config.pyfile with your MySQL credentials: python db_config = { 'host': 'localhost', 'port': 3306, 'user': 'your_username', 'password': 'your_password', 'database': 'HMSystem' }
- Update the
-
Run the Application: bash python app.py
- Open your web browser and navigate to
http://127.0.0.1:5000.
- Open your web browser and navigate to
- Admin Login: Access the admin dashboard to manage patients, doctors, and appointments.
- User Registration: New users can register and log in to book and manage their appointments.
hospital-management-system/ Here’s the file structure formatted as a bullet list for your GitHub README:
- hospital-management-system/
app.py- Main application fileconfig.py- Database configurationrequirements.txt- Python dependenciesMYSQLsqlconnector.session.sql- SQL scripts for database setup- templates/ - HTML templates
add_doctor.htmladmin_dashboard.htmladmin_doctors.htmladmin_patients.htmladmin_appointments.htmlbook_appointment.htmledit_patient.htmlhome.htmllogin_admin.htmllogin_user.htmlregister_user.htmluser_appointments.htmluser_dashboard.html
- static/ - Static files (CSS, images)
style.css- images/
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
- Thanks to the Flask community for their support and documentation.
- Special thanks to the contributors who helped improve this project.
For any Queries reach out to us at momeenaa03@gmail.com