Project Report
Project Report
Our project Hospital Management system includes registration of patients, storing their details into the
system, and also booking their appointments with doctors. Our software has the facility to give a unique id
for every patient and stores the details of every patient and the staff automatically. 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. It is having mainly two
modules. One is at Administration Level and other one is of user I.e. of patients and doctors. The
Application maintains authentication in order to access the application. Administrator task includes
managing doctors information, patient’s information. To achieve this aim a database was designed one for
the patient and other for the doctors which the admin can access. The complaints which are given by user
will be referred by authorities. The Patient modules include checking appointments, prescription. User can
also pay doctor’s Fee online.
Page | 1
INDEX
Title Page No
1 INTRODUCTION
1.1 Introduction 4
1.2 Problem introduction 5-6
1.3 Modules in The Project 7-9
2 REQUIREMENTS SPECIFICATION
2.1 Introduction 11
2.2 Hardware Requirements 11
2.3 Software Requirements 11
3 ANALYSIS
3.1 Existing System 13
3.2 Proposed System 13
3.3 Feasibility Study 13 - 14
3.4 Software Specification 14 - 19
4 DESIGN
4.1 System Design
4.1.1 Introduction to UML 21 -22
4.1.2 UML Diagrams of Our Project 22 - 27
5 SYSTEM IMPLEMENTATION
5.1 Introduction 29
5.2 Sample Code 29 - 36
6 TESTING
6.1 Introduction 38
6.2 Testing Methods 38 - 40
7 SAMPLE SCREENSHOTS 42 - 49
8 CONCLUSION 50
9 REFERENCES 51 - 52
Page | 2
CHAPTER 1
INTRODUCTION
Page | 3
1.1 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 multispecialty 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.
Page | 4
1.2 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
convenience and 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.
This becomes a difficult task as information is difficult to collect from various register.
Objective:-
1) Define hospital
2) Recording information about the Patients that come.
3) Generating bills.
4) Recording information related to diagnosis given to Patients.
5) Keeping record of the Immunization provided to children/patients.
6) Keeping information about various diseases and medicines available to cure them.
Page | 5
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.
1) Information about Patients is done by just writing the Patients name, age and gender.
Whenever the Patient comes up his information is stored freshly.
2) Bills are generated by recording price for each facility provided to Patient on a separate
sheet and at last they all are summed up.
3) Diagnosis information to patients is generally recorded on the document, which contains
Patient information. It is destroyed after some time period to decrease the paper load in the
office.
4) Immunization records of children are maintained in pre-formatted sheets, which are kept
in a file.
5) 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 remember them at that time.
Page | 6
1.3 MODULES:
Admin module
User module (patient)
Doctor module
Nurse module
Pharmacist module
Laboratorist module
Accountant module
Page | 7
View medication from doctor
View doctor list
View blood bank status
View operation history
View admit history. Like bed, ward, ICU etc.
Manage own profile
Maintain medicine
Keep records of hospitals stock medicines and status
Page | 8
Manage medicine categories
Watch prescription of patient
Provide medication to prescriptions
Page | 9
CHAPTER 2
REQUIREMENT SPECIFICATION
Page | 10
2.1 INTRODUCTION:
To be used efficiently, all computer software needs certain hardware components or the other
software resources to be present on a computer. These pre-requisites are known as (computer)
system requirements and are often used as a guideline as opposed to an absolute rule. Most
software defines two sets of system requirements: minimum and recommended. With increasing
demand for higher processing power and resources in newer versions of software, system
requirements tend to increase over time. Industry analysts suggest that this trend plays a bigger
part in driving upgrades to existing computer systems than technological advancements.
Page | 11
CHAPTER 3
ANALYSIS
Page | 12
3.1 EXISTING SYSTEM:
Hospitals currently use a manual system for the management and maintenance of critical
information. The current system requires numerous paper forms, with data stores spread
throughout 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.
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.
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
Page | 13
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.
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.
HTML or Hypertext Markup Language is the standard markup language used to create web pages.
HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like
<html>). HTML tags most commonly come in pairs like <h1> and </h1>, although some tags
represent empty elements and so are unpaired, for example <img>. The first tag in a pair is the
start tag, and the second tag is the end tag (they are also called opening tags and closing tags).
Though not always necessary, it is best practice to append a slash to tags which are not paired with
a closing tag.
The purpose of a web browser is to read HTML documents and compose them into visible or
audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the
content of the page. HTML describes the structure of a website semantically along with cues for
presentation, making it a markup language rather than a programming language.
HTML elements form the building blocks of all websites. HTML allows images and objects to be
embedded and can be used to create interactive forms. It provides a means to create structured
documents by denoting structural semantics for text such as headings, paragraphs, lists, links,
quotes and other items. It can embed scripts written in languages such as JavaScript which affect
the behaviour of HTML web pages.
It is a style sheet language used for describing the look and formatting of a document written in a
markup language. While most often used to style web pages and interfaces written in HTML and
Page | 14
XHTML, the language can be applied to any kind of XML document, including plain XML, SVG
and XUL. CSS is a cornerstone specification of the web and almost all web pages use CSS style
sheets to describe their presentation.
CSS is designed primarily to enable the separation of document content from document
presentation, including elements such as the layout, colours, and fonts. This separation can
improve content accessibility, provide more flexibility and control in the specification of
presentation characteristics, enable multiple pages to share formatting, and reduce complexity and
repetition in the structural content.
CSS can also allow the same markup page to be presented in different styles for different rendering
methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen
reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display
differently depending on the screen size or device on which it is being viewed. While the author
of a document typically links that document to a CSS file, readers can use a different style sheet,
perhaps one on their own computer, to override the one the author has specified. However if the
author or the reader did not link the document to a specific style sheet the default style of the
browser will be applied.
MySQL:
The data in MySQL is stored in tables. A table is a collection of related data, and it consists of
columns and rows. Databases are useful when storing information categorically.
Features of MySQL:
Security:
Page | 15
A privilege and password system that is very flexible and secure, and that enables host-
based verification.
Password security by encryption of all password traffic when you connect to a server.
Support for large databases. We use MySQL Server with databases that contain 50 million
records. We also know of users who use MySQL Server with 200,000 tables and about
5,000,000,000 rows.
Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist
of 1 to 16 columns or parts of columns. The maximum index width is 767 bytes for InnoDB
tables, or 1000 for MyISAM before MySQL 4.1.2, the limit is 500 bytes. An index may
use a prefix of a column for CHAR, VARCHAR, BLOB, or TEXT column types.
Connectivity:
Localization:
MySQL includes several client and utility programs. These include both command line
programs such as Mysqldump and Mysqladmin, and graphical programs such as MySQL
Workbench.
MySQL Server has built-in support for SQL statements to check, optimize, and repair
tables. These statements are available from the command line through the MySQL check
client. MySQL also includes MyISAMchk, a very fast command-line utility for
performing these operations on MyISAM tables.
MySQL programs can be invoked with the --help or -? Option to obtain online assistance.
Page | 16
Why to use MySQL:
JavaScript:
JavaScript is the scripting language of the Web. All modern HTML pages are using JavaScript. A
scripting language is a lightweight programming language. JavaScript code can be inserted into
any HTML page, and it can be executed by all types of web browsers. JavaScript is easy to learn.
Example
Page | 17
JavaScript statements:
JavaScript statements are "commands" to the browser.
The purpose of the statements is to tell the browser what to do.
This JavaScript statement tells the browser to write "Hello Dolly" inside an HTML element
with id="demo": Semicolon;
Semicolon separates JavaScript statements.
Normally you add a semicolon at the end of each executable statement.
Using semicolons also makes it possible to write many statements on one line.
JavaScript Code:
Example
JavaScript Properties:
PHP:
What is PHP?
Page | 18
What is PHP file?
PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP code are executed on the server, and the result is returned to the browser as plain
HTML
PHP files have extension ".php"
With PHP you are not limited to output HTML. You can output images, PDF files, and even flash
movies. You can also output any text, such as XHTML and XML.
Why PHP?
Page | 19
CHAPTER 4
DESIGN
Page | 20
4.1 SYSTEM DESIGN:
UML Design:
The Unified Modelling Language (UML) is a standard language for specifying, visualizing,
constructing, and documenting the software system and its components. It is a graphical language,
which provides a vocabulary and set of semantics and rules. The UML focuses on the conceptual
and physical representation of the system. It captures the decisions and understandings about
systems that must be constructed. It is used to understand, design, configure, maintain, and control
information about the systems.
Visualizing
Specifying
Constructing
Documenting
Visualizing
Through UML we see or visualize an existing system and ultimately we visualize how the
system is going to be after implementation. Unless we think, we cannot implement. UML
helps to visualize, how the components of the system communicate and interact with each
other.
Specifying
Specifying means building, models that are precise, unambiguous and complete UML
addresses the specification of all the important analysis design, implementation decisions
that must be made in developing and deploying a software system.
Constructing
Documenting
Page | 21
The Deliverables of a project apart from coding are some Artefacts, which are critical in
controlling, measuring and communicating about a system during its developing
requirements, architecture, desire, source code, project plans, tests, prototypes releasers,
etc...
1. Class diagram
2. Object diagram
3. Use case diagram
4. Sequence diagram
5. Collaboration diagram
6. State chart diagram
7. Activity diagram
8. Component diagram
9. Deployment diagram
A use case diagram in the Unified Modelling Language (UML) is a type of behavioural diagram
defined by and created from a use-case analysis. Its purpose is to present a graphical overview of
the functionality provided by a system in terms of actors, their goals (represented as use cases),
and any dependencies between those use cases.
Use case diagrams are formally included in two modelling languages defined by the OMG: the
unified modelling language (UML) and the systems modelling language (SysML).
Page | 22
Class Diagram:
A Class is a category or group of things that has similar attributes and common behaviour. A
Rectangle is the icon that represents the class it is divided into three areas. The upper most area
contains the name, the middle; area contains the attributes and the lowest areas show the
operations. Class diagrams provides the representation that developers work from. Class diagrams
help on the analysis side, too.
Page | 23
Sequence diagram:
A Sequence Diagram is an interaction diagram that emphasis the time ordering of messages; a
collaboration diagram is an interaction diagram that emphasizes the structural organization of the
objects that send and receive messages. Sequence diagrams and collaboration diagrams are
isomorphic, meaning that you can take one and transform it into the other.
Page | 24
Collaboration diagram:
Page | 25
Deployment 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.
Page | 26
State chart Diagrams:
The state diagram shows the states of an object and represents activities as arrows connecting the
states. The Activity Diagram highlights the activities. Each activity is represented by a rounded
rectangle-narrower and more oval-shaped than the state icon. An arrow represents the transition
from the one activity to the next. The activity diagram has a starting point represented by filled in
circle, and an end point represented by bull’s eye.
Page | 27
CHAPTER 5
SYSTEM IMPLEMENTATION
Page | 28
5. IMPLEMENTATION:
5.1 Introduction:
Implementation is the stage of the project when the theoretical design is turned out into a working
system. Thus it can be considered to be the most critical stage in achieving a successful new system
and in giving the user, confidence that the new system will work and be effective.
The implementation stage involves careful planning, investigation of the existing system and it’s
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods.
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">
Page | 29
<input type="submit" align="center" value=" pharmacist ">
</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, powerful, 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">
Page | 30
<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 ">
Page | 31
</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>s
pecial ity</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>
Page | 32
<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>
Page | 33
</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';
Page | 34
$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>
<td><form action="allappointment.php" align="center">
<input type="submit" align="center" value=" all Appointment ">
</form> </td>
<td><form action="pendingappointment.php" align="center">
Page | 35
<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>
</table></body></html>
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']; ?> '>
Page | 36
CHAPTER 6
TESTING
Page | 37
6.1 Introduction to System Testing:
The purpose of testing is to discover errors. Testing is the process of trying to discover every
conceivable fault or weakness in a work product. It provides a way to check the functionality of
components, sub-assemblies, assemblies and/or a finished product It is the process of exercising
software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an unacceptable
manner. There are various types of test. Each test type addresses a specific testing requirement.
Types of testing:
Unit testing:
Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches
and internal code flow should be validated. It is the testing of individual software units of
the application .it is done after the completion of an individual unit before integration. This
is a structural testing, that relies on knowledge of its construction and is invasive. Unit tests
perform basic tests at component level and test a specific business process, application,
and/or system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined inputs and
expected results.
Integration testing:
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components
were individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing
the problems that arise from the combination of components.
Functional test:
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.
Functional testing is centred on the following items:
Valid Input : identified classes of valid input must be accepted.
Invalid Input : identified classes of invalid input must be rejected.
Functions : identified functions must be exercised.
Output : identified classes of application outputs must be exercised.
Page | 38
Systems/Procedures: interfacing systems or procedures must be invoked.
System Test:
System testing ensures that the entire integrated software system meets requirements. It tests
a configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process
descriptions and flows, emphasizing pre-driven process links and integration points.
Unit Testing:
Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be conducted
as two distinct phases.
Test objectives
Features to be tested
Page | 39
All links should take the user to the correct page.
Integration Testing:
Software integration testing is the incremental integration testing of two or more integrated
software components on a single platform to produce failures caused by interface defects.
The task of the integration test is to check that components or software applications, e.g.
components in a software system or – one step up – software applications at the company level –
interact without error.
Test Results:
All the test cases mentioned above passed successfully. No defects encountered.
Acceptance Testing:
User Acceptance Testing is a critical phase of any project and requires significant participation by
the end user. It also ensures that the system meets the functional requirements.
Test Results:
All the test cases mentioned above passed successfully. No defects encountered.
Page | 40
CHAPTER 7
SAMPLE SCREENSHOTS
Page | 41
Home Page:
Page | 42
Admin Login:
Admin Dashboard:
Page | 43
Doctor Module:
Page | 44
Patient’s module:
Page | 45
Appointment History:
Doctor’s Login:
Page | 46
Appointment History:
Patient’s Login:
Page | 47
Book Appointment:
Page | 48
Medical History:
Page | 49
8. CONCLUSION:
Since we are entering details of the patients electronically in the” Hospital Management System”,
data will be secured. Using this application we can retrieve patient’s history with a single click. Thus
processing information will be faster. It guarantees accurate maintenance of Patient details. It easily
reduces the book keeping task and thus reduces the human effort and increases accuracy speed.
Page | 50
9. References.
1. PHP MySQL Website Programming: Problem - Design – Solution by Chris
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
1. Lane, Tom (1995). Introduction to JPEG. Comp. compression Frequently Asked
Questions (FAQ) (Part 2), item 75.
http://www.cis.ohio-state.edu/hypertext/faq/usenet/graphics/colorspace-faq/faq.html
2. Poynton, Charles A. (1995). Color-Space FAQ: Frequently Asked Questions about
Color and Gamma
http://jaring.nmhu.edu/delphi.htm
3. Delphi Programming.
4. Brophy, P. Fisher, & H. Booth. (2003). Formative evaluation of the distributed national
elec-
5. tronic resources: Analysis of student citations (EDNER Deliverable A1). Manchester:
6. CERLIM. Retrieved October 1, 2006, from http://www.cerlim.ac.uk/edner/dissem/a1.doc
7. Carley, K. (1993). Coding choices for textual analysis: A comparison of content analysis And 60
8. Map analysis. In P. Marsden (Ed.), Sociological methodology (pp. 75 -126).
Oxford:
9. Blackwell.
10. Davis, Philip M. (2002). The effect of the Web on undergraduate citation behavior: A 2000
up-
11. date. College & Research Libraries, 63(1), 53-60.
12. Davis, Philip M. (2003). Effect of the Web on undergraduate citation behavior: Guiding
Page | 51
stu-
13. dents scholarship in a networked age. Portal: Libraries and the Academy, 3(1), 47.
14. Davis, Philip M., & Suzanne A. Cohen. (2001). The effect of the Web on undergraduate
citation
15. behavior 1996-1999. Journal of the American Society for Information Science and Tech-
16. nology, 52(4), 309-314.
17. Grabau, L. J., & P. S. Wilson. (1995). Jumping on thin ice: Values argument writing
assignment
18. for a larage enrollment plant science class. Journal of Natural Resource and Life Science
19. Education, 24, 185-189.
20. Gratch, Bonnie. (1985). Toward a methodology for evaluating research paper
bibliographies.
21. Research Strategies, 3(4), 170-177.
22. Heller-Ross, H. (2002). Nursing research assignments and citation analysis of student
bibliogra-
23. phies. The Reference Librarian, 77, 121-139.
24. Hinchliffe, Joseph. (2000). Faculty-directed library use instruction: A single class,
retrospective
25. study. Research Strategies, 17, 281-289.
26. Hollis, A. (1998). The internet and acquisition in academic libraries. Library Review,
47(1),
27. 26-30.
28. Hovde, Karen. (2000). Check the citation: Library instruction and student paper
bibliographies.
Page | 52