Electronic Medical Records System (EMR) using PHP with Source Code


Greetings from Malawi the warm heart of Africa, I have decided to share this complete project which can be used at a hospital or clinic and even someone can find it useful to learn PHP, JAVASCRIPT because this system does a lot of things javascript and PHP covers. The system is an electronic medical record (EMR) which means it performs the following functions.


This Electronic Medical Records System is a PHP Project that manages the records of a certain clinic. This project stores the list of Patients, Drugs, Diagnoses, and other relevant data for the clinics/hospitals. The system records the patient's Examination information, Laboratory Results, and Prescriptions. This EMR System has a pleasant user interface and user-friendly functionalities. The system contains the following features.


  • Patient Registration and Searching
  • Patient diagnosis
  • Drug prescription
  • Lab results in entry and verification
  • Treatment payments
  • Drug dispersing
  • Drug entry
  • Adding a User and Assigning Roles
  • Track User System Activities
  • Print Reports

To test or run this project, kindly follow the instructions below. A detailed User Guide will be also provided in the system.

How to Run Requirements:

  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the downloaded source code file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming "clinic".
  6. Import the provided SQL file. The file is known as "clinic.sql" located inside the "import_database" folder.
  7. Browse the Electronic Medical Records (EMR) System in a browser. i.e. http://localhost/clinic
  8. Click the "User Guide" button in the Login Page to get the user guide document.

User Login Credential

Username: test@clinic.com
Password: 1234554321


Steps to get started with using the system

I hope this EMR System in PHP will help you with what you are looking for and hope that you will learn something with this project that is useful for your future projects.

If you have any question regarding this project or anything find me on www.patrickmvuma.com and if you have a website that you own and you would love to know how many people visit your website per day use my web application on this address https://websitelistener.com

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byJayakumar (not verified)on Tue, 08/06/2019 - 20:00

Hi Your project not working This is the error Warning: Cannot modify header information - headers already sent by (output started at can you resolve this ?

Add new comment