Hospital Management System using Python Django and MySQL

php gurukul
3 min readJul 22, 2024

--

Hospital Management System using Python Django and MySQL is web based application.The project Hospital Management system includes registration of patients, storing their details into the system. The software has the facility to give a unique id for every patient and stores the details of every patient.

Project Modules

Hospital Management System is web application for hospital which manages doctors and patients. In this project, we use Python with Django framework and MySQL database.

Click: https://phpgurukul.com/hospital-management-system-using-python-django-and-mysql/

The entire project mainly consists of 3 modules, which are

  • Admin module
  • User module (patient)
  • Doctor module

Admin module:

  1. Dashboard: In this section, admin can view the Total Registered Doctors and Total Specializations.
  2. Doctors List: In this section, admin can view doctor’s profile, their appointments and manage their patient list.
  3. Reg Users: In this section, admin can view users detail (who take online appointment) and also have right to delete irrelevant user.
  4. Patients: In this section, admin can view patient’s details.
  5. Appointment History: In this section, admin can view appointment history.
  6. Search Doctor: In this section, admin can search doctor details by their name and mobile number.
  7. Doctor Reg Reports: In this section, admin can view reports of doctor in particular periods.
  8. Webpage Page: In this section, admin can update the website page details.
  9. Patient Search: In this section, admin can search patient with the help of patient name and mobile number.

Admin can also change his/her own password and profile.

User module (patient):

  1. Dashboard: This is welcome page of user.
  2. Book Appointment: In this section, Patient can book his/her appointment.
  3. Appointment History: In this section, Patients can see his/her own appointment history.

User can update his/her profile, change the password and recover the password

Doctor module:

  1. Dashboard: In this section, doctor can view total appointment, new appointment, approved appointment, cancelled appointment and total patient added by them.
  2. Appointment: In this section, Doctor can see patient’s appointment status.
  3. Patients: In this section, doctor can manage patients (Add/Update).
  4. Search: Search has below sections:
  5. Search Patient: In this section, doctor can search patient with the help of patient name and mobile number.
  6. Search Appointment: In this section, doctor can search User(patient) with the help of name and mobile number.
  7. Report: Report has below sections:
  8. Appointment Report: In this section, doctor can generate between dates report of appointment which is take by registered users (patients).
  9. Patient Report: In this section, doctor can generate between dates reports of patients which doctors add.

Doctor can also update his profile, change the password and recover the password.

How to run the Hospital Management system Django Python

1. Download the zip file

2. Extract the file, copy hms folder, and paste it on the desktop

3. Open MySQL Create a database hmspythondb then import the SQL File available in the SQL File Folder (For MySQL we used XAMPP server)

4. Open PyCharm and click on the terminal

5. Navigate the project folder using the cd command

cd project_path

For ex: cd C:\Users\ANUJ\OneDrive\Desktop\hms\

6. Now Navigate to the hospital folder

cd hospital

7. Run the Project using the following command

python manage.py runserver

PHP Gurukul

Welcome to PHPGurukul. We are a web development team striving our best to provide you with an unusual experience with PHP. Some technologies never fade, and PHP is one of them. From the time it has been introduced, the demand for PHP Projects and PHP developers is growing since 1994. We are here to make your PHP journey more exciting and useful.

Website : https://phpgurukul.com

--

--