Hospital Management System
Hospital Management System
Introduction:
The project Hospital Management system includes registration of patients, storing their details
into the system, and also computerized billing in the pharmacy, and labs. The software has the
facility to give a unique id for every patient and stores the details of every patient and the staff
automatically. It includes a search facility to know the current status of each room. User can
search availability of a doctor and the details of a patient using the id.
The Hospital Management System can be entered using a username and password. It is
accessible either by an administrator or receptionist. Only they can add data into the database.
The data can be retrieved easily. The interface is very user-friendly. The data are well protected
for personal use and makes the data processing very fast.
Hospital Management System is powerful, flexible, and easy to use and is designed and
developed to deliver real conceivable benefits to hospitals.
Hospital Management System is designed for multispeciality hospitals, to cover a wide range of
hospital administration and management processes. It is an integrated end-to-end Hospital
Management System that provides relevant information across the hospital
to support effective decision making for patient care, hospital administration and critical financial
accounting, in a seamless flow.
Hospital Management System is a software product suite designed to improve the quality and
management of hospital management in the areas of clinical process analysis and activity-based
costing. Hospital Management System enables you to develop your organization and improve its
effectiveness and quality of work. Managing the key processes efficiently is critical to the
success of the hospital helps you manage your processes
Problem Introduction:
The information is very difficult to retrieve and to find particular information like- E.g. - To find
out about the patient’s history, the user has to go through various registers. This results in in
convenienceand wastage of time.
The information generated by various transactions takes time and efforts to be stored at right
place.
Various changes to information like patient details or immunization details of child are difficult
to make as paper work is involved.
Manual calculations are error prone and take a lot of time this may result in incorrect
information. For example calculation of patient’s bill based on various treatments.
Goals
1-User friendly
2-Simple fast
3-Low cost and effective
4-It deals with the collection of patient’s information
5- Diagnosis
Objective:-
1. Define hospital
3. Generating bills.
6. Keeping information about various diseases and medicines available to cure them.
These are the various jobs that need to be done in a Hospital by the operational staff and Doctors.
All these works are done on papers
Scope of the Project:-
7. Information about Patients is done by just writing the Patients name, age and gender.
Whenever the Patient comes up his information is stored freshly.
8. Bills are generated by recording price for each facility provided to Patient on a separate sheet
and at last they all are summed up.
10. Immunization records of children are maintained in pre-formatted sheets, which are kept in a
file.
11. Information about various diseases is not kept as any document. Doctors themselves do this
job by remembering various medicines.
All this work is done manually by the receptionist and other operational staff and lot of
papers are needed to be handled and taken care of. Doctors have to remember various
medicines available for diagnosis and sometimes miss better alternatives as they can’t
Theory:
Software Development Life Cycle (SDLC) is a framework that describes the
activities performed at each stage of a software development project. The steps
given below describe implementation of proposed system:
Hospitals currently use a manual system for the management and maintainance of critical information. The
current system requires numerous paper forms, with data stores spread through out the hospital management
infrastructure. Often information is incomplete or does not follow management standards. Forms are often lost
in transit between departments requiring a comprehensive auditing process to ensure that no vital information is
lost. Multiple copies of the same information exist in the hospital and may lead to inconsistencies in data in
various data stores.
PROPOSED SYSTEM:
The Hospital Management System is designed for any hospital to replace their existing manual paper based
system. The new system is to control the information of patients. Room availability, staff and operating room
schedules and patient invoices. These services are to be provided in an efficient, cost effective manner, with the
goal of reducing the time and resources currently required for such tasks .
FEASIBILITY STUDY
The feasibility of the project is analysed in this phase and business proposal is put forth with a very general plan
for the project and some cost estimates. During system analysis the feasibility study of the proposed system is to
be carried out. This is to ensure that the proposed system is not a burden to the company. For feasibility
analysis, some understanding of the major requirements for the system is essential.
Economic Feasibility
This study is carried out to check the economic impact will have on the system will have on the organization.
The amount of fund that the company can pour into the research and development of the system is limited. The
expenditures must be justified. Thus the developed system as well within the budget and this was achieved
because most of the technologies used are freely available. Only the customised products have to be purchased.
Technical Feasibility
This study is carried out to check the technical feasibility, that is,the technical requirements of the system. Any system
developed must not have a high demand on the available available technical resources. This will lead to high demands
being placed on the client. The developed system must have a modest requirement, as only minimal or null changes for
the implementing this system.
Operational Feasibility
The aspect of study is to check the level of acceptance of the system by the user. This includes the process of training
the user to use the system efficiently. The user must not feel threatened by the system, instead must accept it as a
necessity. The level of acceptance by the users solely depends on the methods that are employed to educate the user
about the system and to make him familiar with it. His level of confidence must be raised so that he is also able to make
some constructive criticism, which is welcomed, as he is the final user of the system.
Analysis:
Once the project was initiated, requirements gathering and analysis was the first phase in software
development life cycle and a process of reviewing business's processes to determine the business needs
and functional requirements that a system must meet. During this phase, requirements were analyzed to
identify the application flow, the business logic implementation, and their context and usage pattern.
The analysis process started with the study and analysis of the current application.
Design:
Deployement diagram:
A Deployment Diagram shows the configuration of run-time processing nodes and the
components that live on them. Deployment diagrams address the static deployment view
of architecture. They are related to component diagrams in that a node typically encloses
one or more components.
desktop Client
Printer
Database Server
Implementation:
Requirement: Microsoft Visual Studio 2008, Microsoft SQL Server 2005, Resharper,
Computer etc.
Procedure :
Step-1 :
7. First install three software into our computer. Basically we design our application & write
its corresponding code using Microsoft Visual Studio 2008 and Microsoft SQL Server 2005
is used to create database and connect the database and application program.
8. Open Microsoft Visual Studio 2008
9. Click project then open new project. Select Windows Form Application then write
project Name, Location, Solution Name.Then press OK button & open new page.
10. In this new page from the left most side there is a Toolbox. In the Toolbox there are all
necessary components by which we deign an application such as Textbox, label, button etc.
And from the right most side there are Properties, in where we can change its color, name of
button, icon, name of application box etc. Now we will create Hospital Management System.
First, we take Textbox, label from Toolbox in the Form1.
11. Then we rename the Labels from Properties to Text. By clicking on Textbox, we can also
change Properties to Name.
12. Then, we take two Button to Apply and Search data information.
→
9. Then, rename Header Text Add.
Step-2 :
1. Now click on SQL server 2005
→
2. As following fig. we click Databases New Database to create new database.
Step-3 :
1. Now, we type the insertion and display code by clicking on Insert Button and Display Button to connect
Microsoft Visual Studio 2008 and Microsoft SQL Server 2005 and to insert data in Microsoft SQL Server
2005 & display it in Grid View. Then run the code and insert data on TextBox and the output is:
Home.html:
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" >
<tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">ADMIN PANEL</h3> </td>
</tr>
<tr>
<td style="background-
color:#00FFFF;width:50px;height:400px;"> <table align="center">
<tr><td><form action="doctor.php" align="center">
<input type="submit" align="center" value=" doctor ">
</form></td>
</tr>
<tr>
<td><form action="nurse.php" align="center">
<input type="submit" align="center" value=" nurse ">
</form></td>
</tr>
<tr>
<td><form action="patient.php" align="center">
<input type="submit" align="center" value=" patient ">
</form></td>
</tr>
<tr>
<td><form action="pharmacist.php" align="center">
<input type="submit" align="center" value=" pharamacist ">
</form></td>
</tr>
<tr>
<td><form action="laboratorist.php" align="center">
<input type="submit" align="center" value=" laboratorist ">
</form></td><tr>
<td><form action="accountant.php" align="center">
<input type="submit" align="center" value=" accountant ">
</form></td>
</tr>
</table>
</td>
<td style="background-color:#eeeeee;height:200px;width:400px;height:400px;"><h3
align="center">Advanced, powerfull, flexible complete management software for hospital, clinic
and medical institutes. Integrates and facilitates all user area of a hospital:
</h3><h4>align="center">Administrator</h4>
<h4 align="center">Doctor</h4>
<h4 align="center">Patient</h4>
<h4 align="center">Nurse</h4>
<h4 align="center">Pharmacist</h4>
<h4 align="center">Laboratorist</h4>
<h4 align="center">Accountant</h4>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="right">
<th>
<tr>
<form action="appointment.php" align="center">
<input type="submit" align="center" value=" appointment ">
</form>
</tr>
<tr>
<form action="payment.php" align="center">
<input type="submit" align="center" value=" payment ">
</form>
</tr>
<tr>
<form action="bloodbank.php" align="center">
<input type="submit" align="center" value=" bloodbank ">
</form>
</tr>
<tr>
<form action="medicine.php" align="center">
<input type="submit" align="center" value=" medicine ">
</form>
</tr>
<tr>
<form action="operations.php" align="center">
<input type="submit" align="center" value=" operations ">
</form>
</tr>
<tr>
<form action="birthreport.php" align="center">
<input type="submit" align="center" value=" birthreport ">
</form>
</tr>
<tr>
<form action="deathreport.php" align="center">
<input type="submit" align="center" value=" deathreport ">
</form>
</tr>
<tr>
<form action="bedallotment.php" align="center">
<input type="submit" align="center" value=" bedallotment ">
</form>
</tr>
</th>
</table>
</td>
</tr></table></body></html>
Doctor.PHP
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" >
<tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">ADMIN PANEL</h3> </td>
</tr>
<tr>
<td style="background-color:#00FFFF;width:50px;height:400px;">
<table align="center">
<tr>
<td><form action="nurse.php" align="center">
<input type="submit" align="center" value=" nurse ">
</form></td>
</tr>
<tr>
<td><form action="patient.php" align="center">
<input type="submit" align="center" value=" patient ">
</form></td>
</tr>
<tr>
<td><form action="pharmacist.php" align="center">
<input type="submit" align="center" value=" pharamacist ">
</form></td>
</tr>
<tr>
<td><form action="laboratorist.php" align="center">
<input type="submit" align="center" value=" laboratorist ">
</form></td>
<tr>
<td><form action="accountant.php" align="center">
<input type="submit" align="center" value=" accountant ">
</form></td>
</tr>
</table>
</td>
<td style="background-
color:#eeeeee;height:200px;width:400px;height:400px;"> <?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($host,$username,$password);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM doctor");
echo "<h4 align='center'> doctors list </h4>";
echo "<table border=1
align=center><tr><th>s.no</th><th>name</th><th>d_id</th><th>qualification</th><th>speciali
ty</th><th>age</th></tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['s_no'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['d_id'] . "</td>";
echo "<td>" . $row['qualification'] . "</td>";
echo "<td>" . $row['speciality'] . "</td>";
echo "<td>" . $row['age'] . "</td>";
echo "</tr>";
echo "</table>";
mysql_close($con);
?>
<br><br>
<table align="right">
<th>
<tr>
<form action="adddoctor.php" align="center">
<input type="submit" align="center" value=" add new doctor ">
</form>
</tr>
<tr>
<form action="deletedoctor.php" align="center">
<input type="submit" align="center" value=" delete doctor ">
</form></tr>
<tr>
<form action="viewcompletedoctor.php" align="center">
<input type="submit" align="center" value=" viewcomplete ">
</form>
</tr>
<tr>
<form action="admin.html" align="center">
<input type="submit" align="center" value=" home ">
</form>
</tr></table>
</td>
</tr><tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="right">
<th>
<tr><form action="appointment.php" align="center"> <input
type="submit" align="center" value=" appointment ">
</form>
</tr><tr><form action="payment.php" align="center">
<input type="submit" align="center" value=" payment ">
</form>
</tr><tr><form action="bloodbank.php" align="center">
<input type="submit" align="center" value=" bloodbank ">
</form>
</tr><tr>
<form action="medicine.php" align="center">
<input type="submit" align="center" value=" medicine
"> </form>
</tr><tr><form action="operations.php" align="center">
<input type="submit" align="center" value=" operations ">
</form>
</tr><tr>
<form action="birthreport.php" align="center">
<input type="submit" align="center" value=" birthreport ">
</form>
</tr><tr><form action="deathreport.php" align="center">
<input type="submit" align="center" value=" deathreport ">
</form>
</tr><tr><form action="bedallotment.php" align="center">
<input type="submit" align="center" value=" bedallotment
"> </form>
</tr></th> </table>
</td></tr></table>
</body>
</html>
Appointment.php
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" ><tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">DOCTOR PANEL</h3> </td>
</tr>
<tr>
<td style="background-color:#00FFFF;width:50px;height:400px;">
<table align="center">
<tr> <td><form action="docappointment.php" align="center">
<input type="submit" align="center" value=" Appointment ">
</form> </td></tr>
<tr> <td><form action="docperscription.php" align="center">
<input type="submit" align="center" value=" perscription ">
</form> </td> </tr>
<tr> <td> <form action="docoperation.php" align="center">
<input type="submit" align="center" value=" Operation ">
</form> </td></tr>
<tr> <td><form action="docmedicines.php.php" align="center">
<input type="submit" align="center" value=" Add Medicines
"> </form></td></tr>
<tr> <td> <form action="doctests.php" align="center">
<input type="submit" align="center" value=" Add Tests ">
</form></td>
</table>
</td>
<td style="background-
color:#eeeeee;height:200px;width:400px;height:400px;"> <h2 align="center">
Appointments </h2> <?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($host,$username,$password);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM appointment WHERE d_id='$a'");
echo "<table border=1 align=center> <tr> <th>s.no</th> <th>pid</th> <th>name</th>
<th>problem</th> <th>date</th> <th>time</th> <th>status</th> <th> update</th> </tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['s_no'] . "</td>";
echo "<td>" . $row['p_id'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['problem'] . "</td>";
echo "<td>" . $row['date_of_app'] . "</td>";
echo "<td>" . $row['time_of_app'] . "</td>";
echo "<td>" . $row['status'] . "</td>";
echo "<td>" ;?> <form action="updateappointment.php" align="center" method="POST">
<input type="hidden" name="sno" value=" <?php echo $row['s_no']; ?> ">
<input type="hidden" name="pid" value=' <?php echo $row['p_id']; ?>
'> <input type="submit" align="center" value=" update "> </form>
<?php echo "<td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
<br><br>
<table align="center">
<tr>
<td><form action="allappointment.php" align="center">
<input type="submit" align="center" value=" all Appointment ">
</form> </td>
<td><form action="pendingappointment.php" align="center">
<input type="submit" align="center" value=" pending Appointment ">
</form> </td>
<td> <form action="upcomingappointment.php" align="center">
<input type="submit" align="center" value=" upcoming appointment ">
</form> </td>
<td><form action="completedappointment.php" align="center">
<input type="submit" align="center" value=" completed Appointment ">
</form></td></table>
</td></tr>
<tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="center"> <tr> <td> Doctor name </td> <td> </td> <td> Doctor id </td> <td>
</td> </tr> </table>
</td></tr>
</table></body></html>
By following the above instructions, we can create a Hospital Management System and run it successfully.
Maintenance:
1. A customer/user support structure and any other necessary operational support processes should be in
place.
2. Any planned changes to the system or software should be scheduled, communicated, and documented.
3. Continuous security penetration testing is conducted on the system or software throughout its
life cycle at regularly scheduled intervals.
4. Mandatory security testing is conducted when any major configuration or architecture change is made.