Professional Documents
Culture Documents
BONAFIDE CERTIFICATE
This is to certify that this practical work titled CS1403 Software Development Laboratory is the bonafide work of ________________________________ Register Number ______________________ during the academic year 2011-2012.
Faculty Incharge Submitted for Anna University of Technology, examination held on ____/___/___ Technology, Trichy 621105.
Internal Examiner
3
External Examiner
ABSTRACT
Our project Hospital Management system includes registration of patients, storing their details into the system, and also computerized billing in the pharmacy, and labs. Our 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.
TABLE OF CONTENT
Description
Page No
BONAFIE CERTIFICATE ABSTRACT Chapter 1 INTRODUCTION 1.1 1.2 1.3 1.4 Problem Definition Requirement of Proposed System System Analysis Proposed System
03 04 07 08 10 12 14
Chapter 2 PROCESS DESCRIPTION 2.1 2.2 2.3 Doctor Module Patient Module Appointment Module
16 16 18 20
22 22
3.2 3.3
27 29
Chapter 4 DATABASE DESIGN Chapter 5 CONCLUSION REFERENCES Appendix 1 SAMPLE SOURCE CODE
32 35 36
37
Chapter 1
INTRODUCTION
In most developing countries, provision of basic preventive, promotive and curative services is a major concern of the Government. With growing population and advancement in the medical technology and increasing expectation of the people especially for quality curative care, it has now become imperative to provide quality health care services through the established institutions. In public Sector 15,393 allopathic hospitals (Health Information of India 2003) are functioning. In the rural areas, the secondary level care is being provided through 3222 CHCs (Bulletin on Rural Health Statistics in India 2005) with 30 beds each with specialist services of physicians, pediatricians, O & G specialists, and surgeons being made available. However, these services have not been successful in gaining the faith and confidence of the people because of lack of specialists, facilities and accountability, along with the paucity of resources and non-involvement of the community. Hospital Management System is a simple yet effective management structure. This system acts for the hospitals to manage the affairs of the hospital.
HMS is free to prescribe, generate and use the functioning and maintaining the quality of services.
1.1
PROBLEM DEFINITION
This project is aimed to automate the hospital management system. This project is developed mainly to administrate doctor's appointment with the patients. The purpose of the project entitled as HOSPITAL MANAGEMENT SYSTEM is to computerize the Front Office Management of Hospital to develop software which is user friendly, simple, fast, and cost effective. It deals with the collection of patients information, diagnosis details, etc. Traditionally, it was done manually. The main function of the system is to register and store patient details and doctor details and retrieve these details as and when required, and also to manipulate these details meaningfully.
8
NEED 1. Efficiently maintains the details about the patient 2. Simultaneously updates changes made to any data, item in the entire data base. 3. It is faster than manual system
The goal of any system development is to develop and implement the system cost effectively; user-friendly and most suited to the users analysis is the heart of the process.
This function of Hospital Management Information System deals with registering the new Patient either for OPD or IPD and giving unique Identification Number to the Patient. This number is unique throughout the System for identifying the patient.
Analysis is the study of the various operations performed by the system and their relationship within and outside of the system. During analysis, data collected on the files, decision points and transactions handled by the present system. Different kinds of tools are used in analysis of which interview is a common one.
The patient can be registered at Reception. Patient identification number is also created for each separate visit of the patient. This is also a part of registering patient. ID is used for tracking of medical records of the patient for that particular OPD visit or IPD admission. All the medical record of the patient are identified by combination of numbers i.e. Patient ID. The numbers gives flexible search in terms of finding patient's History Record.
1.2
The first step in system development life cycle is the identification of need of change to improve or enhance an existing system. An initial investigation on existing system was carried out. The present system of hospital is completely
10
manual. Many problems were identified during the initial study of the existing system. To develop this software detailed study is made at local hospital. Based on the information collected it is decided to maintain the basic information about doctors and patients.
PATIENT REGISTRATION
SLOT DETAILS
Each patient will consult the doctor based on the appointment. If the doctor is free on his/her duty time, the outpatient can consult the doctor after the spot appointments are made.
APPOINTMENT
Appointments for patients may be made at the reception. New patients are informed to fill the registration form and pay registration fees. Then the patient id is generated and issued to the patient for further use.
The appointment may be fixed by verifying doctor's and their free slots available, then the appointment will be confirmed. Otherwise the dates or slots may be asked to change for the patients.
System analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. Here the key question is What all problems exist in the present system? What must be done to solve the problem? Analysis begins when a user or manager begins a study of the program using existing system. During analysis, data collected on the various files, decision points and transactions handled by the present system.
The commonly used tools in the system are Data Flow Diagram, interviews, etc. training, experience and common sense are required for collection of relevant information needed to develop the system. The success of the system depends
12
largely on how clearly the problem is defined, thoroughly investigated and properly carried out through the choice of solution.
A good analysis model should provide not only the mechanisms of problem understanding but also the framework of the solution. Then the proposed system should be analyzed thoroughly in accordance with the needs.
13
System analysis can be categorized into four parts. System planning and initial investigation Information gathering Applying analysis tools for structured analysis Feasibility study Cost/benefit analysis
The doctor's appointment with various slots for patient is created and maintained by system. The appointments can be altered at any time before an hour of the actual appointment schedule. The doctors and patients details must be registered to create the appointments.
14
The drawback of the existing system is that it is very difficult to retrieve data from case files. It is difficult to handle the whole system manually and it is less accurate and to keep the data in case files for future reference because it may get destroyed. Moreover it is very difficult to retrieve data. Redundancy of data may occur and this may lead to the inconsistency. The manual system is so timeconsuming.
15
The proposed system is very easy to operate. Speed and accuracy are the main advantages of proposed system. There is no redundancy of data. The data are stored in the computers secondary memories like hard disk, etc. it can be easily receive and used at any time. The proposed system will easily handle all the data and the work done by the existing systems. The proposed systems eliminate the drawbacks of the existing system to a great extent and it provides tight security to data.
16
Chapter 2
PROCESS DESCRIPTION
: Doctor list : 1.1 : Doctor Number Select from List : Status Message : Records Not Found if no records in database
Output
Error Condition
17
18
19
: Patient list : 2.1 : Patient Number Select from List : Status Message : Records Not Found if no records in database
Output
Error Condition
20
: Appointment List : 3.1 : Doctor Number : Appointment with Patient Details : Records Not Found if no records in database
Output
Error Condition
: None
22
: Modify Appointment : 2.4 : Appointment Number (ID) : Doctor Select from List : Patient Select from List : Slot Select from List
23
Chapter 3
PROGRAM DESIGN
24
RECORD CREATION
STATUS MESSAGE
25
26
STATUS MESSAGE
27
28
REGISTERED PATIENTS
29
30
APPOINTMENT DETAILS
31
STATUS MESSAGE
MODIFICATION OF APPOINTMENT
STATUS MESSAGE
32
33
Chapter 4
DATABASE DESIGN
DATABASE: HOSPITAL
34
TABLE: PATIENT
35
TABLE: SLOT
36
Chapter 5
CONCLUSION
The HOSPITAL MANAGEMENT SYSTEM is a great improvement over the manual system using case fields and paper. The computerization of the system has sped up the process. In the current system, the front office managing is very slow. The hospital managing system was thoroughly checked and tested with dummy data and thus is found to be very reliable.
ADVANTAGES It is fast, efficient and reliable Avoids data redundancy and inconsistency Web-based Number of personnel required is considerably less Provides more security and integrity to data
FUTURE ENHANCEMENTS The proposed system is Hospital Management System. We can enhance this system by including more facilities like billing system, inpatient room allotment for the admitted patients and the stock details of medicines in the pharmacy. Providing such features enable the users to include more comments into the system.
37
REFERENCES
1. PHP MySQL Website Programming: Problem - Design Solution byChris Lea, Mike Buzzard, Dilip Thomas , Jessey White-Cinis 2. Beginning PHP5, Apache, and MySQL Web Development (Programmer to Programmer) by Elizabeth Naramore 3. MySQL/PHP Database Applications, 2nd Edition by Brad Bulger 4. How to Do Everything with PHP and MySQL by Vikram Vaswani
38
Appendix 1
39
</html>
DSAVE.PHP <html> <head> <meta name="spm" content="Hosital Management System"> <title>Save Doctor</title> </head> <body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <tr bgcolor=red><td ><font size=4 color=white>Save Doctor</font></td></tr> <?php $name=trim($_POST["name"]); $spec=trim($_POST["spec"]); $error=0; if ($name=="") { $error=1; echo "<tr><td><font color=red size=4>Name can't empty</font></td></tr>"; } if ($spec=="") { $error=1; echo "<tr><td><font color=red size=4>Specilization can't empty</font></td></tr>"; } if ($error==0) { if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>";
40
die(); } mysql_select_db("hospital"); mysql_query("insert into doct(dname,dspec,dshow) values('".$name."','".$spec."','Y')"); echo "<tr><td align=center><font size=4 color=green>Successfully Records Inserted</font></td></tr>"; } else { echo "<form name=fdadd method=post action=dsave.php>"; echo "<tr><td><table width=750 cellspacing=0 cellpadding=5>"; echo "<tr><td>Doctor Name</td><td><input type=text name=name size=30 maxlength=30 value='".$name."'></td></tr>"; echo "<tr><td>Specilization</td><td><input type=text name=spec size=30 maxlength=30 value='".$spec."'></td></tr>"; echo "</table></td></tr>"; echo "<tr><td align=center><input type=submit value=Submit></td></tr>"; echo "</form>"; } echo "<tr><td align=center><a href=dlist.php>Continue...</a></td></tr>"; echo "</table>"; echo "</body></html>";
DLIST.PHP <html> <head> <meta name="spm" content="Hosital Management System"> <title></title> </head>
41
<body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <tr bgcolor=red><td ><font size=4 color=white>Doctors List</font></td></tr> <tr><td><a href=dadd.php>Add New Record</a></td></tr> <tr><td><table width=750 cellspacing=0 cellpadding=5> <tr bgcolor=#ccccc><td align=center>S No</td><td align=center>Doctor Name</td><td align=center>Specialization</td><td align=center>Options</td></tr> <?php if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>"; die(); } mysql_select_db("hospital"); $rs1=mysql_query("SELECT * from doct where dshow='Y' order by dname;"); $sno=1; while( $row=mysql_fetch_array($rs1)) { echo "<tr><td>$sno</td><td>$row[1]</td><td>$row[2]</td><td><a href=dmod.php?rno=".$row[0].">Modify</a> | <a href=ddel.php?rno=".$row[0].">Delete</a></td></tr>"; $sno++; }
42
if ($sno==1) echo "<tr><td align=center><font size=4 color=red>Records Not Found</font></td></tr>"; ?> </table></td></tr> <tr><td align=center><hr></td></tr> <tr bgcolor=red><td><font size=4 color=white>Deleted Records</font></td></tr> <tr><td><table width=750 cellspacing=0 cellpadding=5> <tr bgcolor=#ccccc><td align=center>S No</td><td align=center>Doctor Name</td><td align=center>Specialization</td><td align=center>Options</td></tr> <?php $rs2=mysql_query("SELECT * from doct where dshow='N' order by dname;"); $sno=1; while( $row=mysql_fetch_array($rs2)) { echo "<tr><td>$sno</td><td>$row[1]</td><td>$row[2]</td><td><a href=dundel.php?rno=".$row[0].">Undelete</a></td></tr>"; $sno++; } if ($sno==1) echo "<tr><td align=center><font size=4 color=red>Records Not Found</font></td></tr>"; ?> </table></td></tr> </table> </body> </html>
43
<title>Modify Doctor Profile</title> </head> <body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <?php $rno=trim($_GET["rno"]); if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>"; die(); } mysql_select_db("hospital"); $rs1=mysql_query("SELECT * from doct where dno='".$rno."'"); $sno=1; while( $row=mysql_fetch_array($rs1)) { echo "<tr bgcolor=red><td ><font size=4 color=white>Edit Doctor Details</font></td></tr>"; echo "<form name=fdmod method=post action=dupdate.php>"; echo "<tr><td><table width=750 cellspacing=0 cellpadding=5>"; echo "<tr><td>Doctor Name</td><td><input type=text name=name size=30 maxlength=30 value='".$row[1]."'></td></tr>"; echo "<tr><td>Specilization</td><td><input type=text name=spec size=30 maxlength=30 value='".$row[2]."'></td></tr>";
44
value=".$rno."><input type=submit value=Submit></td></tr>"; echo "</form>"; $sno++; } if ($sno==1) echo "<tr><td align=center><font size=4 color=red>Records Not Found</font></td></tr>"; ?> </table> </body> </html>
DUPDATE.PHP <html> <head> <meta name="spm" content="Hosital Management System"> <title>Update Doctor</title> </head> <body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <tr bgcolor=red><td ><font size=4 color=white>Update Doctor</font></td></tr> <?php $rno=trim($_POST["rno"]); $name=trim($_POST["name"]); $spec=trim($_POST["spec"]); $error=0;
45
if ($name=="") { $error=1; echo "<tr><td><font color=red size=4>Name can't empty</font></td></tr>"; } if ($spec=="") { $error=1; echo "<tr><td><font color=red size=4>Specilization can't empty</font></td></tr>"; } if ($error==0) { if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>"; die(); } mysql_connect("localhost","root",""); mysql_select_db("hospital"); mysql_query("update doct set dname='".$name."',dspec='".$spec."' where dno='".$rno."'"); echo "<tr><td align=center><font size=4 color=green>Successfully Records Updated</font></td></tr>"; } else { echo "<form name=fdadd method=post action=dupdate.php>"; echo "<tr><td><table width=750 cellspacing=0 cellpadding=5>"; echo "<tr><td>Doctor Name</td><td><input type=text name=name size=30 maxlength=30 value='".$name."'></td></tr>"; echo "<tr><td>Specilization</td><td><input type=text name=spec size=30 maxlength=30 value='".$spec."'></td></tr>"; echo "</table></td></tr>"; echo "<tr><td align=center><input type=hidden name=rno value=".$rno."><input type=submit value=Submit></td></tr>"; echo "</form>"; } echo "<tr><td align=center><a href=dlist.php>Continue...</a></td></tr>"; echo "</table>";
46
echo "</body></html>";
DDEL.PHP <html> <head> <meta name="spm" content="Hosital Management System"> <title></title> </head> <body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <tr bgcolor=red><td ><font size=4 color=white>Doctors List</font></td></tr> <tr><td><a href=dadd.php>Add New Record</a></td></tr> <tr><td><table width=750 cellspacing=0 cellpadding=5> <tr bgcolor=#ccccc><td align=center>S No</td><td align=center>Doctor Name</td><td align=center>Specialization</td><td align=center>Options</td></tr> <?php if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>"; die(); } mysql_select_db("hospital");
47
$rs1=mysql_query("SELECT * from doct where dshow='Y' order by dname;"); $sno=1; while( $row=mysql_fetch_array($rs1)) { echo "<tr><td>$sno</td><td>$row[1]</td><td>$row[2]</td><td><a href=dmod.php?rno=".$row[0].">Modify</a> | <a href=ddel.php?rno=".$row[0].">Delete</a></td></tr>"; $sno++; } if ($sno==1) echo "<tr><td align=center><font size=4 color=red>Records Not Found</font></td></tr>"; ?> </table></td></tr> <tr><td align=center><hr></td></tr> <tr bgcolor=red><td><font size=4 color=white>Deleted Records</font></td></tr> <tr><td><table width=750 cellspacing=0 cellpadding=5> <tr bgcolor=#ccccc><td align=center>S No</td><td align=center>Doctor Name</td><td align=center>Specialization</td><td align=center>Options</td></tr> <?php $rs2=mysql_query("SELECT * from doct where dshow='N' order by dname;"); $sno=1; while( $row=mysql_fetch_array($rs2)) { echo "<tr><td>$sno</td><td>$row[1]</td><td>$row[2]</td><td><a href=dundel.php?rno=".$row[0].">Undelete</a></td></tr>"; $sno++; } if ($sno==1) echo "<tr><td align=center><font size=4 color=red>Records Not Found</font></td></tr>"; ?> </table></td></tr>
48
DUNDEL.PHP <html> <head> <meta name="spm" content="Hosital Management System"> <title>Recover Doctor</title> </head> <body> <table align=center width=750 cellspacing=0 cellpadding=5> <tr bgcolor=blue><td align=center><font SIZE=6 color=white>HOSPITAL MANAGEMENT SYSTEM</font></td></tr> <tr><td><table align=center width=750 cellspacing=0 cellpadding=5> <tr><td align=center><a href=dlist.php>Doctors</td><td align=center><a href=plist.php>Patients</td><td align=center><a href=app.php>Appointments</td> </table></td></tr> <tr bgcolor=red><td ><font size=4 color=white>Recover Doctor</font></td></tr> <?php $rno=$_GET["rno"]; if(!mysql_connect("localhost","root","")) { echo "<tr><td><font color=red size=4>Connection Error</font></td></tr>"; die(); } mysql_select_db("hospital"); mysql_query("update doct set dshow='Y' where dno='$rno'"); echo "<tr><td align=center><font size=4 color=green>Successfully
49
Records Recovered</font></td></tr>"; echo "<tr><td align=center><a href=dlist.php>Continue...</a></td></tr>"; echo "</table>"; echo "</body></html>";
50