This is a Command-Line Interface (CLI) based Hospital Management System developed in Python with MySQL as the backend. It is designed to simulate real-world hospital operations such as managing patients, doctors, appointments, billing, and more — with role-based access for Admin, Receptionist, and Doctor.
- Admin
- Receptionist
- Doctor
- Add new patients and doctors
- View doctor list
- Book appointments
- Generate consultation bills
- View today's appointments
- Add patients
- View doctor list
- Book appointments
- Generate bills
- View today's appointments
- View doctor list (can be extended to include diagnosis, reports, etc.)
- Language: Python 3
- Database: MySQL
- Interface: CLI (Command Line)
- Modular Structure: Each feature is broken into separate Python modules
├── main.py # Entry point with login menu
├── db_config.py # MySQL connection setup
├── admin_Login.py # Admin login + menu
├── receptionist_Login.py # Receptionist login + menu
├── doctor_login.py # Doctor login + menu
├── patient.py # Patient registration logic
├── doctor.py # Doctor registration + listing
├── appointment.py # Appointment booking logic
├── billing.py # Billing generation
├── reports.py # Today's appointment report
├── models/ # (Optional: where you store SQL procedures or scripts)
└── hospital.sql # (You can include a sample DB schema file here)
- Python 3.x
- MySQL server running with a database named
hospital - Required stored procedures in MySQL:
AddDoctorAddPatient
- Python modules:
Install using:
pip install mysql-connector-python