Mid Term Report Hospital Management
Mid Term Report Hospital Management
Mid-Term Report
ON
Batch 2021
OF
BE (CSE)
ACKNOWLEDGEMENT
I would like to express my heartfelt gratitude to Chitkara University and the Department of
Computer Science and Engineering for providing an excellent learning environment and the resources
needed to complete this project on a Hospital management System website. I am especially grateful to
my project supervisor, whose guidance, insights, and feedback were invaluable in shaping the direction
of this project and in overcoming various challenges along the way.
I would also like to thank my professors and mentors for imparting the foundational knowledge and
technical skills necessary for this undertaking. Additionally, my heartfelt appreciation goes out to my
family and friends for their unwavering encouragement, which kept me motivated throughout the
development process.
This project has been an invaluable experience that deepened my understanding of real-world
applications and enhanced my practical skills in the MERN stack. Thank you to everyone who played a
role, directly or indirectly, in the successful completion of this project.
Name:Rohan (2111981329)
PREFACE
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.
OFFER LETTER
Department of Computer Science & Engin eering
School of Engineering & Technology
6
1.Introduction (6)
4.Flowchart (9)
5.Diagrams (10)
6.Coding (13)
7.References (16)
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.
8
Analysis
3.1EXISTING 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.
3.2 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
Department of Computer Science & Engin eering
School of Engineering & Technology
REQUIREMENT ANALYSIS
Software Requirements:
• React for building the user interface, providing a smooth, interactive experience.
• Axios to handle HTTP requests between the frontend and backend seamlessly.
• React for displaying user-friendly notifications, enhancing app usability.
• Node.js and Express.js for server-side operations, enabling API management and routing.
• Postman for testing API endpoints during development to ensure proper backend functionality.
• MongoDB, NoSQL database to store hospital data (patient records, appointments, medical
history) in a scalable format.
Hardware Requirements:
• Development System: A PC or laptop with at least an Intel i5 processor or equivalent for efficient
coding, testing, and multitasking during development.
• RAM: Minimum 8GB RAM to handle software like Node.js, MongoDB, and code editors
without lags.
• Storage: At least 256GB SSD storage for faster loading and saving of files, databases, and project
dependencies.
• Internet Connectivity: Stable internet connection for API requests, testing, and server access.
SYSTEM DESIGN
INTRODUCTION TO UML:
UML Design
The Unified Modeling 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.
The UML is a language for:
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.
12
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
UML models can be directly connected to a variety of programming
language through mapping a model from UML to a programming
language like JAVA or C++ or VB. Forward Engineering and Reverse
Engineering is possible through UML.
Documenting
The Deliverables of a project apart from coding are some Artifacts,
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...
UML Approach
UML Diagram
A diagram is the graphical presentation of a set of elements, most often
rendered as a connected graph of vertices and arcs . you draw diagram
to visualize a system from different perspective, so a diagram is a
projection into a system. For all but most trivial systems, a diagram
represents an elided view of the elements that make up a system. The
same element may appear in all diagrams, only a few diagrams , or in
no diagrams at all. In theory, a diagram may contain any combination
Department of Computer Science & Engin eering
School of Engineering & Technology
FLOWCHART
USE-CASE DIAGRAM
ACTIVITY DIAGRAM
Class Diagram:
Department of Computer Science & Engin eering
School of Engineering & Technology
IMPLEMENTATION
Sample code:
<!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">
Department of Computer Science & Engin eering
School of Engineering & Technology
</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">
Department of Computer Science & Engin eering
School of Engineering & Technology
</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>
</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">
Department of Computer Science & Engin eering
School of Engineering & Technology
</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';
Department of Computer Science & Engin eering
School of Engineering & Technology
$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">
CODING
Home page:
Sign up page:
Department of Computer Science & Engin eering
School of Engineering & Technology
Sign Up Code:
LOGIN PAGE:
BACKEND:
Routes/AppointmentRoute:
USERROUTES CODE:
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
Department of Computer Science & Engin eering
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
correct and consistent. Integration testing is specifically aimed at exposing the problems that
Functional test:
Functional tests provide systematic demonstrations that functions tested are available as
39
specified by the business and technical requirements, system documentation, and user manuals.
special test cases. In addition, systematic coverage pertaining to identify Business process flows;
data fields, predefined processes, and successive processes must be considered for testing.
Before functional testing is complete, additional tests are identified and the effective value of
System Test:
System testing ensures that the ensure integrated software system meets requirements. It
tests a configuration to ensure known and predictable results. An example of system testng is
the configuration oriented system integration test. System testing is based on process
White Box Testing is a tes 琀椀 ng in which in which the so 昀琀 ware tester has knowledge of the
inner workings, structure and language of the so 昀琀 ware, or at least its purpose. It is purpose. It is
used to test areas that cannot be reached from a black box level.
Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
under test is treated, as a black box .you cannot “see” into it. The test provides inputs and
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
CONCLUSION
Working on the project was an excellent experience. It helped us to understand the importance of
planning, designing and implementation so far we have learnt in our theory books. It helped us
unleashing our creativity while working in a team. It also realized the importance of team
working, communication as a part of this project. The project was successfully completed after
a lot of efforts and work hours. This project underwent number of compiling, debugging,
removing errors, making it bug free, adding more facilities in Hospital Management System and
interactivity making it more reliable and useful. This project focused that scheduling a project
Department of Computer Science & Engin eering
43
and adhering to that schedule creates a hard sense of time- management. It has also let us known
that co-operative teamwork always produce effective results. The entire project has been
developed and deployed as per the requirements stated by the user. It is found to be bug free as per
the testing standards that are implemented
References
• https://www.google.com/
• https://chatgpt.com/?oai-dm=1
• https://www.geeksforgeeks.org/
• https://www.youtube.com/