Hospital Management System in C# with Full Source Code


Hospital Management System in C# with Full Source Code

The Hospital Management System is an automated system that is developed using C# and SQL Server. The main purpose of this Hospital Management System is to help hospital staff in managing the patient details, staff details and medical records. This is a user friendly system that anyone who uses it won’t find any difficulty in dealing with it.

About the Hospital Management System

In this Hospital Management System, the admin has to log in first through a log in system by providing the username and password. Then, he can now register a patient by entering personal details such as Name, Gender, Address, Age, Status, Disease, Room Number and Price. The admin can also view the Patient’s Checkout by entering the Patient’s Id that contains the Patient Name, Gender, Date In-Out, Building, Room Number, Type, Status, Medicine Price and Total Bill. This Hospital Management System has features such as add room information and staff details. So, if they want to look for a room in the hospital the admin will simply enter the building number, room type, status and price. While in managing staff details, the admin can view it by entering the staff Name, Gender, Position, Contact Details and salary.

These are the following features of the Hospital Management System in C#

  • Patient Registration
  • Patient Information
  • Manage Payments
  • Manage Rooms
  • Manage Staff
  • View Discharge

Download and install the following system requirements:

How to setup the Hospital Management System in C# with Full Source Code

  1. Download the zip file.
  2. Extract the downloaded zip file (HospitalManagementSystemCSharp)
  3. Open the SQL Server Management Studio
  4. Connect as a Windows Authentication
  5. Right click the database
  6. Click Attach Click
  7. Add and find the database (hospital.mdf) inside the HospitalManagementSystemCSharp folder
  8. Click ok

How to run the Hospital Management System

  1. Open the folder HospitalManagementSystemCSharp and click HospitalManagementSystemCSharp.sln to open the system.
  2. Click the Server
  3. Click Connect to Database
  4. Add Connection
  5. Change the connection to Microsoft SQL Server
  6. Choose you server name And select the database name that you attach in the SQL Server Management Studio
  7. Click ok
  8. After that, press F5 to run the system

Accessing admin accounts

Username: admin
Password: pass

This Hospital Management System in C# with Full Source Code is for educational purposes only. You can download it as a reference and expand your knowledge in making a system. You can freely modify it, according to your desire.

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 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.


Add new comment