Hospital Management System Using Python and Django is a web-based healthcare application designed to digitally manage important hospital activities. Developed using Python, Django, HTML and CSS with an SQLite3 database, the system provides separate roles for Admin, Doctor and Patient to manage hospital operations, appointments, patient records and billing.
The application centralizes hospital management tasks such as doctor management, patient admission, appointment scheduling and invoice generation. Built using Django's MVT architecture, the project demonstrates role-based access control, CRUD operations, database management and PDF invoice generation in a practical healthcare application.
Key Features
- Admin Authentication: Admin users can create an account and securely log in to access hospital management functionality.
- Doctor Management: Administrators can review doctor job applications, approve or reject applications and manage doctor profiles.
- Patient Management: Admins can manage patient admissions, approve or reject admission requests, assign doctors and discharge patients after treatment.
- Appointment Management: Administrators can view patient appointment requests and approve, reject or manage appointments.
- PDF Invoice Generation: Admins can generate and download detailed PDF invoices containing medicine costs, room charges, doctor fees and other hospital expenses.
- Doctor Job Applications: Doctors can apply for employment through the system, with their accounts becoming active after administrator approval.
- Assigned Patient Records: Doctors can view information about patients assigned to them, including symptoms, names and contact information.
- Discharged Patient Records: Doctors can access a list of discharged patients to review completed treatments and medical history.
- Doctor Appointment Management: Doctors can view appointments booked by the administrator and manage completed consultations.
- Patient Account Creation: Patients can create accounts for hospital admission, with login access activated after administrator approval.
- Doctor Information: Patients can view details about their assigned doctor, including specialization, contact number and address.
- Online Appointment Booking: Patients can request appointments with doctors through the system.
- Appointment Status: Patients can check whether their appointment request is pending or confirmed.
- Patient Invoice Access: After discharge, patients can view and download their hospital invoice in PDF format with a complete breakdown of charges.
Technology Stack
| Component |
Technology |
| Programming Language |
Python |
| Backend Framework |
Django |
| Frontend |
HTML, CSS |
| Database |
SQLite3 |
| Architecture |
Django MVT |
| PDF Generation |
xhtml2pdf |
Watch Project Demo
Watch the project walkthrough and setup tutorial on our YouTube channel.
▶ Watch on YouTube – Decode It
More Details and Full Documentation
For complete project details, source code and setup information, visit the official project page.
🔗 View Full Project Details – UpdateGadh
- Install Python 3.7.6 and add Python to PATH
- Install Visual Studio Code and the Python extension
- Extract the project ZIP file
- Open the project folder in VS Code
- Open the terminal and move to the project directory
- Run: pip install -r requirements.txt
- Apply migrations using:
python manage.py makemigrations
python manage.py migrate
- Create an admin using:
python manage.py createsuperuser
- Run the project using:
python manage.py runserver
- Open the local Django server in your browser
Stuck while running it? Chat with us on WhatsApp for free installation help.
No reviews yet. Be the first to review this project.