Hospital Management System In PHP

Project Name : Hospital Management System (Free Download)

Technology Implemented : Apache Server

Language Used                   :  PHP 5.62 (Developed in Core PHP)

Database                              :  My SQL

User Interface Design       :  HTML, AJAX,JQUERY,JAVASCRIPT

Web Browser                      :  Mozilla, Google Chrome, IE8,OPERA

Software                               :    XAMPP Server

Demo video——————————-

View Demo Installation Guide

Hospital Management System is a web application for the hospital which manages doctors and patients. In this project, we use PHP and MySQL database.
The entire project mainly consists of 3 modules, which are

  • Admin module
  • User module
  • Doctor module

 
Admin module:

  1. Dashboard: In this section, admin can view the Patients, Doctors, Appointments and New queries.
  2. Doctors: In this section, admin can add doctor’s specialization and mange doctors (Add/Update).
  3. 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. Contact us Queries: In this section, admin can view queries which are send by users.
  7. Doctor Session Logs: In this section, admin can see login and logout time of doctor.
  8. User Session Logs: In this section, admin can see login and logout time of user.
  9. Reports: In this section, admin can view reports of patients in particular periods.
  10. 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.
User module (patient):

  1. Dashboard: In this section, patients can view the his/her profile, Appointments and Book Appointment.
  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.
  4. Medical 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 his/her own profile and online appointments.
  2. Appointment History: In this section, Doctor can see patient’s appointment history.
  3. Patients: In this section, doctor can manage patients (Add/Update).
  4. Search: In this section, doctor can search patient with the help of patient name and mobile number.

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

How to run the Hospital Management System (HMS) Project

1. Download the zip file
2. Extract the file and copy hospital folder
3.Paste inside root directory(for xampp xampp/htdocs, for wamp wamp/www, for lamp var/www/html)
4. Open PHPMyAdmin (http://localhost/phpmyadmin)
5. Create a database with name hms
6. Import hms.sql file(given inside the zip package in SQL file folder)
7.Run the script http://localhost/hospital (frontend)
Login Details
Login Details for admin : admin/Test@12345
Login Details for Patient: test@gmail.com/Test@123
Login Details for Doctor: test@demo.com/Test@123

Disclaimer : This project is not for Commercial use.

Download Source Code(Hospital Management System)
Size: 14.0 MB
Version: V 4.0

Purchase Project Report

Purchase Project  Report in Rs 199 / $3

Leave A Reply

Your email address will not be published.

800 Comments
  1. raghavendra says

    sir login id password of doctor

    1. Anuj Kumar says

      Login Details for Doctor:
      Username: test@demo.com
      Password: Test@123

  2. sudheer says

    i am very very
    thankful to you sir .your projects are very use full to us for learning and implement for new projects

  3. Sajjad Khan says

    Dear Sir, I need project code on Hospital Management system.

    1. Anuj Kumar says

      The project is free. You can find the download in the bottom of the post

  4. Abdullah says

    is there apis available to fetch data

    1. Anuj Kumar says

      No

  5. Nick says

    Hey! thanks for the project. I just wanna know how can I fix the problem that if one patient have booked appointment at a particular time & date, then no other patient can book that doctor for that date & time

    1. Anuj Kumar says

      I will consider this feature in the next version.

  6. Yash says

    Sir, How to edit the Hospital Adress

  7. Hilal Ah says

    Good evening sir!
    How can we edit the “Hospital Address” and “Homepage images” in the project.

    1. Anuj Kumar says

      Yes, you can change.

      1. Tabasum says

        Sir, I changed the hospital address in the contact.php and replaced the images with my own images too .But it is not getting updated at the homepage.
        Sir, please help me to overcome it.

        1. Anuj Kumar says

          Press ctrlF5

  8. Muhammad Abid Mughal says

    Sir admin ! how to Add patient ?

    1. Anuj Kumar says

      Admin can’t add patient. The doctor can add the patient only.

  9. Franky says

    Is this open source good sir? Can I use this as a template for our thesis?

    1. Anuj Kumar says

      Yes, you can use it.

  10. Hammad says

    Failed to connect to MySQL: Unknown database ‘hms’ how to solve this error?

    1. Anuj Kumar says

      create a database hms then import SQL file available inside the package.

  11. waqar says

    Run the script http://localhost/hospital is giving me error

    1. Anuj Kumar says

      Share your error at phpgurukulteam@gmail.com

  12. Nkanu Nkanu Okpa says

    Good day sir, trust you’re doing great. Please sir, I have done all that you instructed us to do, but is only admin table that is created after importing the hms.sql. Please, help sir. Because I have done it severally yet is still the admin table that is being created. No doctor and patient table. Thank you sir.

    1. Anuj Kumar says

      Are you getting any error ?

      1. Nkanu Nkanu Okpa says

        Yes sir. Here is the error message. #1293 – Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

        1. Anuj Kumar says

          Update your MySQL version use 5.6 or above version.

  13. Rogers says

    You r Awesome bro!

  14. Mohammad Adil says

    I want update header logo , footer logo , footer address footer mobile No from a page admin can manage this.

    1. Anuj Kumar says

      This feature not available in this project

  15. Shoaib says

    Where to find the queries which are executed

    1. Anuj Kumar says

      Hospital/hms here you can find all coding part

      1. Abou says

        Hi i would love you to guide me in this field am very sharp and learn quick also so please
        And i have seen this work done am so impressed its outstanding

  16. Yaa ya says

    data not show out..

    1. Anuj Kumar says

      In which module

  17. sobnaz says

    are thereany triggers used?
    if yes where to find them exactly?

    1. Anuj Kumar says

      Triggered not used in this project.

  18. Hanee says

    Patients user name and password
    Doctors User name and password
    And will it work with Xampp 5.6.3 version

  19. Swati says

    Hlo sir Iam Swati and my project is orphanage management system. And I need code for front end ,so can plz provide the src code for this project sir?plz sir help me sir….

    1. Anuj Kumar says

      Sorry, not available.

  20. aruna says

    i am pg student my project name hospital management system with your project to me need some modules.and without dashboard please remove dash board .to me need modules purchase details,product detail,stock details, print bill.so create the project and upload .

    1. Anuj Kumar says

      Sorry, these features not available.

  21. Sarmand says

    good project but need some additional things like report and invoice we can add more thinks rooms and…… thank you for this nice project…..

    1. Anuj Kumar says

      I will add these features soon.

  22. Maxy says

    Good day,
    How to add new patient please?

    1. Anuj Kumar says

      A patient can register himself.

  23. pranay says

    sir, i need to know how to Import hms.sql file(given inside the zip package in SQL file folder). please help me how to import

    1. Anuj Kumar says

      Open PHPMyAdmin (http://localhost/phpmyadmin)
      Create a database with name hms
      Import hms.sql file

  24. Pratima says

    Sir, I need to know information on main.js and form-element.js files present in the assets/js directory that available in this HMS project. Do we have to download this library from the web or we have to code by ourselves?

    1. Anuj Kumar says

      Downloaded from web

  25. Pratima says

    Sir, I want to know what is [assets, master, and vendor] folders in HMS project. Were they downloaded packages to support this project? If yes from where we can download.

    1. Anuj Kumar says

      These are support file of the templates

  26. David says

    Please may you give me the steps you followed and how you became perfect in PHP programming. I am a Ghanaian and I want to be like you

    1. Anuj Kumar says

      Start from basics of the PHP.

  27. roce says

    Hello sir !! Thank you very much for your perfect project, except that I have a problem I can not add a patient after filling the form, it is not found in the database … I need your help

    1. Anuj Kumar says

      Ok. I will check this issue and fix it.

  28. Bhargob Boah says

    I can’t add doctors. Please help me. It doesn’t show any errors, but it doesn’t add doctors. Please help.

    1. Anuj Kumar says

      Can you share the error at phpgurukulofficial@gmail.com?

  29. Heidi Hed says

    Hello, seems Book Appointment for user doesn’t work no ?

    1. Anuj Kumar says

      Share your error at phpgurukulofficial@phpgurukul.com

      1. Mukisa Bonface says

        hello sir, i like the project but have problem on registration. after registration of the patient, then try to log in it rejects then when i view the database i realized its not posting on the database please help

        1. Anuj Kumar says

          are you getting any error?

          1. Uku says

            Thank you for sharing. This project is a good start to understand how it works. Installed on OS X Catalina.

  30. Anirudh Bhardwaj says

    Hello Sir, i am a college student. i have to upload this project and present it on a website. But after uploading, it shows error “Failed to connect to MySQL: No such file or directory”. So what should i do now? Please help me..

    1. Anuj Kumar says

      Follow the instructions properly

      1. Anirudh Bhardwaj says

        Sir project is working fine on localhost through xampp. But on online server it is showing that error

        1. cedrick says

          Hi Anirudh,
          My name Cedrick, I can help if Anuj will allow me. Anyway, I’m assuming you must be using an online free host server, if that the case, they normally add extract characters to your database name, eg. if your database name is hms, the host server will change it to 245hms something like that. So check inside you config/ folder look for database.php make the correct changes, also go to config.php change the $config[‘base_url’] = ”; to your host server ip address or url

  31. Anirudh Bhardwaj says

    Sir I am a college student. I have to upload this project and present it through a website. But after uploading to online database, it shows error “Failed to connect to MySQL: No such file or directory”. So what should i do now? Please Help me..

  32. lalita kanashe says

    hello sir i am lalita kanashe plz sir help me. final year ki student hu or me ek website bna rhi hu but mujhe kuchh samjh me ni aarha h sir pls help event management ki website bna rhi hu i dont know about it more information so i want to your help. plz sir i hope that you will help me

    1. Anuj Kumar says

      what help you need. Share details at phpgurukulofficial@gmail.com

  33. Vibhu says

    Patient module not login error

    1. Anuj Kumar says

      Can you share the error?

  34. Basheer says

    Hlw brother Anuj, i wanted to use you project on school so i have been trying to decrypt the DOCTORS password inoder i could change a few things but it has not been successful. am asking for your help if you can please. THANKS.

    1. Anuj Kumar says

      Password is encrypted with MD5. You can decrypt the password.

      1. soumya says

        how to decrypt the passsword??

        1. Anuj Kumar says

          Using MD5

  35. rizwan ansari says

    can i get vehice service management project

    1. Anuj Kumar says

      Right now not available.

  36. abrar hussain says

    we can use it online server

  37. saqib says

    need documentation for this project

    1. Anuj Kumar says

      Documentation is paid. You can purchase from here —https://products.phpgurukul.com/product/hospital-management-system-report/

  38. Rasika says

    sir could you please send me the Complete project to my mail.

    1. Anuj Kumar says

      Download link given above you can download from there.

  39. Revathi says

    I need this project will you please send me to my mail I’d

    1. Anuj Kumar says

      You can download from website

  40. tonye says

    Good day Sir, i need the database

    1. Anuj Kumar says

      Database given inside the package

      1. brix says

        their is no database in the package sir 🙁

        1. Anuj Kumar says

          Database available inside SQL File folder

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy