0% found this document useful (0 votes)
30 views

Hms Report

Uploaded by

matrixmuktha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Hms Report

Uploaded by

matrixmuktha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

The Hospital Management System

SYNOPSIS

The Hospital Management System (HMS) project aims to enhance the efficiency
and effectiveness of hospital operations by integrating various functions into a
single, comprehensive software solution. This project addresses the critical need
for improved management practices in healthcare institutions, driven by increasing
patient volumes, complex administrative processes, and the demand for high-
quality care.

The HMS is designed to manage patient registration, appointment scheduling,


medical records, billing, inventory, and reporting. By automating these tasks, the
system reduces administrative burdens, minimizes errors, and ensures timely
access to accurate information, ultimately improving patient care and operational
efficiency.

This report provides a detailed analysis of the HMS project, including the
objectives, system requirements, design, implementation, testing, and deployment.
The system architecture is developed with an emphasis on scalability, user-
friendliness, and robust security measures to protect sensitive patient data. The
implementation process is described with specific attention to the development
tools and technologies used.

This HMS project represents a significant step towards modernizing hospital


management practices, providing a valuable tool for healthcare providers to
enhance their service delivery and operational efficiency.

Dept of BCA Page 1


The Hospital Management System

INTRODUCTION

Overview:

Healthcare is a critical sector that directly impacts the well-being of


individuals and the overall quality of life in society. Hospitals and other
healthcare institutions play a pivotal role in delivering medical services, ensuring
patient care, and managing public health. However, the growing complexity of
healthcare services, increasing patient volumes, and the need for efficient
administrative processes have made traditional management practices inadequate.
This has led to the adoption of Hospital Management Systems (HMS), which are
designed to streamline hospital operations, improve patient care, and enhance
administrative efficiency.

A Hospital Management System is an integrated software solution that manages


various aspects of hospital operations. It encompasses a wide range of
functionalities, including patient registration, appointment scheduling, medical
records management, billing and invoicing, inventory management, and
reporting. By automating these processes, an HMS reduces the administrative
burden on healthcare providers, minimizes errors, and ensures timely access to
accurate information.

The objective of this project is to design and implement a comprehensive HMS


that addresses the specific needs of a modern hospital. This system aims to
improve the overall efficiency of hospital operations, enhance patient
satisfaction, and ensure compliance with healthcare regulations. Key features of
the proposed system include an intuitive user interface, robust security measures
to protect patient data, and scalability to accommodate the growing needs of the
healthcare facility.

In this report, we will present a detailed analysis of the requirements for the
Hospital Management System, followed by a description of the system design
and architecture. We will discuss the implementation process, including the tools
and technologies used, and the testing strategies employed to ensure the system's
reliability and performance. Additionally, we will explore the deployment
process, security considerations, and the maintenance and support plan for the
system. Through a case study, we will illustrate the real-world application and
Dept of BCA Page 2
The Hospital Management System

benefits of the HMS. Finally, we will conclude with a summary of the project's
achievements and potential future enhancements.

The adoption of an efficient Hospital Management System is essential in the


current healthcare landscape, where the demand for quality care and operational
efficiency is ever-increasing. This project aims to contribute to the advancement
of healthcare management by providing a robust, user-friendly, and secure
solution that meets the diverse needs of a hospital environment.

Dept of BCA Page 3


The Hospital Management System

PROJECT MODULES DESCRIPTION

Hospital Management System is a web application for the hospital which


manages doctors and patients. In this project, we use PHP and MySQL database.
The entire project mainly consists of 3 modules, which are

• Admin module
• User module
• Doctor module

1. Admin module:

Dashboard: In this section, admin can view the Patients, Doctors, Appointments
and New queries.

Doctors: In this section, admin can add doctor’s specialization and mange
doctors (Add/Update).

Users: In this section, admin can view users detail(who take online appointment)
and also have right to delete irrelevant user.

Patients: In this section, admin can view patient’s details.

Appointment History: In this section, admin can view appointment history.


Contact us Queries: In this section, admin can view queries which are send by
users.

Prescription: In this section, admin can view prescription of patients in


particular periods.

Patient Search: In this section, admin can search patient with the help of patient
name or mobile number.
Admin can also change his/her own password.

2. User module (patient):

Dept of BCA Page 4


The Hospital Management System

Dashboard: In this section, patients can view the his/her profile, Appointments
and

Book Appointment: In this section, Patient can book his/her appointment.

Appointment History: In this section, Patients can see his/her own appointment
history.

Prescription: In this section, Patients can see his/her own prescription history.

3. Doctor module:

Dashboard: In this section, doctor can view his/her own profile and online
appointments.

Appointment History: In this section, Doctor can see patient’s appointment


history.

Patients: In this section, doctor can manage patients.

Search: In this section, doctor can search patient with the help of patient name
and mobile number.

Dept of BCA Page 5


The Hospital Management System

SYSTEM ANALYSIS

Preliminary Investigation:
First in the system development process is preliminary Investigation.
Preliminary Investigation is conducted in the following phases.

• Project clarification
• Feasibility study
• Project appraisal

Project clarification is the process of selecting a project request for further study.
When a system development or modification request is made, the first systems
activity, the preliminary investigation, begins the activity has three parts: Request
clarification, feasibility study and project appraisal. Many requests from
employees and users in organization are not clearly stated.
Therefore before any systems investigation can be considered, the project request
must be examined to determine preciously what the originator wants. This is
called Request clarification.
As important outcome of the preliminary investigation is the determination that
the system request in feasible.

Feasibility Study:
The feasibility study is performed to determine whether the proposed system is
viable considering the Technical, Operational and Economical factors. After
going through feasibility study we can have a clear-cut view of the system’s
benefits and drawbacks.

Technical Feasibility:
The proposed system is developed using Active Server Page, VB Script and
Dept of BCA Page 6
The Hospital Management System

HTML as front-end tool and Oracle 8 as the back end. The proposed system
needs a Personal Web Server to serve the requests submitted by the users. The
Web browser is used to view the web page that is available within the Windows
operating system itself. The proposed system will run under Win9x, NT, and
win2000 environment. As Windows is very user friendly and GUI OS it is very
easy to use. All the required hardware and software are readily available in the
market. Hence the system is technically feasible.

Operational Feasibility:
The proposed system is operationally feasible because of the following reasons.
• The customer is benefited more as most of his time is saved. The customer
is serviced at his place of work.
• The cost of the proposed system is almost negligible when compared to the
benefits gained.

Economical Feasibility:
As the necessary hardware and software are available in the market at a low cost,
the initial investment is the only cost incurred and does not need any further
enhancements. Hence it is economically feasible.
The system is feasible in all respects and hence it encourages taking up the
system design.

Gathering Information:
The analysis through collection of data plays the wider role in the analysis of the
system. So the data is collected at different levels of management to keep track
of full information of the system.
The collection of data is done from
• Top Level Management
• Middle Level Management
• Low Level Management
Dept of BCA Page 7
The Hospital Management System

Different methods used to collect the data:


Questioners:
The data is collected through questioners by filling a set of questions from the
different levels of management. The questions made by questioners are three
different types.
They are,
• Structured questioners:
• Unstructured questioners:
• Semi-structured questioners:

Interviews:
Interviews were conducted to collect the information. The interviews were
conducted at two levels.
• Formal Group Interviews: the interviews conducted for formal groups i.e.,
the hierarchical (official) groups in the firm.
• Informal Group Interviews: the interviews were conducted for informal
groups i.e., the groups formed out side the company.

Observation:
The data is also collected by observation of the firm. The data is collected by
observing on the site at different timings and at different situations like when the
firm is busy and when the firm hasn’t much work to do.

Record Review:
To collect the data and to get a clear idea of the firm some of the data is also
collected from the past records of the firm. This information helps very much to
get a clear idea of the firm i.e., the different problems occurred in different
seasons and some exception conditions. This very much gives a clear idea of
exceptional conditions.

Dept of BCA Page 8


The Hospital Management System

LANGUAGES AND TECHNOLOGIES


• HTML5

• JavaScript (to create dynamically updating content)

• Bootstrap (An HTML, CSS, and JS library)

• XAMPP (A web server by Apache Friends)

• PHP

• MySQL (An RDBMS that uses SQL)

HTML:

The extended reach of information and services to customers that the Internet has
enabled, has created a new challenge for the developer. The developer should
develop a user interface that is distributable, available on multiple platforms and
supports a wide range of client environments from handheld wireless devices to
high-end workstations. So to maintain a broad reach to client environments and
to achieve greatest compatibility with all browsers, this system uses standard
HTML.
Hyper Text Markup Language is the standard language for creating documents
for the World Wide Web. An HTML document is a text file, which contains the
elements, in the form of tags that a web browser uses to display text, multimedia
objects, and hyperlinks using HTML; we can format a document for display and
add hyperlinks to other documents.The user interface has been designed in
HTML hence can be browsed in any web browser.
Cascading Style Sheets:
These have been used to separate data form presentation. By using these style
sheets throughout the project, a uniform look and feel can be maintained for all
the HTML elements and tags that have been used in the project. If there is any
revamp the way the content has been presented in the website, the changes can be
made to the appropriate style sheet, which will be reflected across all the style
Dept of BCA Page 9
The Hospital Management System

sheets.

JavaScript:

JavaScript Tutorial for beginners and professionals is a solution of client side


dynamic pages.
JavaScript is an object-based scripting language (programming language) that
is lightweight and cross-platform
JavaScript is not compiled but translated. The JavaScript Translator is
responsible to translate the JavaScript code.
Our JavaScript tutorial include all points of Statements , Comments, Variables,
Operators, Arithmetic, Assignment, Data Types, Functions, Objects, Scope,
Events, Strings, String Methods, Numbers, Number Methods, Math, Date
Methods , Arrays, Array Methods, Booleans, Comparisons, Conditions, Switch,
Loop For, Loop While, Break, Type Conversion, RegExp, Errors, Debugging etc

JavaScript Examples

The JavaScript example is the easiest to code. The reason being there are three
places where the code can be placed
Here are the three places where the JavaScript can be saved.
One is within the existing body tag, it can be saved in the head tag and last but
not the least it can be saved in the external JavaScript file.
The script tag present in the JavaScript file mentions that we are using the
JavaScript.
Next the text or the actual script used this is the content which will provide
information to the browser for the data. The document.Write() is the function
which is used in order to display the dynamic content using the JavaScript.
There are three main places where the JavaScript code can be embedded are
mentioned below:
Between the tag of the body of the text
Between the head tag
In the .js file
Dept of BCA Page 10
The Hospital Management System

XAMPP:

XAMPP is a free and open-source cross-platform web server solution


stack package developed by Apache Friends, consisting mainly of the Apache
HTTP Server, MariaDB database, and interpreters for scripts written
the PHP and Perl programming languages. Since most actual web server
deployments use the same components as XAMPP, it makes transitioning from a
local test server to a live server possible.
XAMPP's ease of deployment means a WAMP or LAMP stack can be installed
quickly and simply on an operating system by a developer, with the advantage
that common add-in applications such as WordPress and Joomla! can also be
installed with similar ease using Bitnami.

XAMPP is regularly updated to the latest releases


of Apache, MariaDB, PHP and Perl. It also comes with a number of other
modules,
including OpenSSL, phpMyAdmin, MediaWiki, Joomla, WordPress and more.
Self-contained, multiple instances of XAMPP can exist on a single computer, and
any given instance can be copied from one computer to another. XAMPP is
offered in both a full and a standard version (Smaller version).

Dept of BCA Page 11


The Hospital Management System

PHP:
What is PHP?
PHP is a server scripting language, and a powerful tool for making dynamic and
interactive Web pages.

• PHP is an acronym for "PHP: Hypertext Preprocessor"


• PHP is a widely-used, open source scripting language
• PHP scripts are executed on the server
• PHP is free to download and use

Syntax :

<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>

What is a PHP File?

Dept of BCA Page 12


The Hospital Management System

• 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"

What Can PHP Do?

• PHP can generate dynamic page content


• PHP can create, open, read, write, delete, and close files on the server
• PHP can collect form data
• PHP can send and receive cookies
• PHP can add, delete, modify data in your database
• PHP can be used to control user-access
• PHP can encrypt data

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?

• PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)


• PHP is compatible with almost all servers used today (Apache, IIS, etc.)
• PHP supports a wide range of databases
• PHP is free. Download it from the official PHP resource: www.php.net
• PHP is easy to learn and runs efficiently on the server side

MYSQL:

MySQL is a popular database management system. It has a free and open source
version. With its rich features, it has been the choice for many database driven PHP
applications.

Dept of BCA Page 13


The Hospital Management System

MySQL History

MySQL was founded by Michael Widenius and David Axmark in 1994. It was
then developed under the company MySQL AB where the company provided
both open source and commercial licenses. In January 2008, Sun Microsystems
acquired MySQL AB and in January 2010, Oracle acquired Sun Microsystems
making MySQL owned by Oracle.Since Oracle is primarily a proprietary
software company, concerns have been raised about the future of MySQL.
MySQL forks like MariaDB and alternatives like PostgreSQL have gained more
attention with these concerns. However still MySQL is used by many open
source software and large scale websites.

SQL Processing Capabilities:

SQL is composed of a definition language a Data Manipulation Language and a


Data Control Language. These three languages support the complete spectrum of
Relational Data processing activity. In fact most SQL based product all access to
the data through SQL.

1. Data Definition Language:


DDL allows creation, Deletion and Modification of data structure for bar system.
These structures include tables, databases and indexes.
Ex: Create, Drop and Alter.

2. Data Manipulation Language:


These commands are used to manipulate the data in tables directly or through
views. There are four standard DML statements. They are select, delete, insert
and update.

Dept of BCA Page 14


The Hospital Management System

3. Data control language:


These commands are used to control usage and access of data. The most
commonly found one’s will include grant, revoke.
Why to Use?
Oracle greatly supports RDBMS features. Also it supports high security to the
data and faster accessing capability. It can be run on a variety of platforms and
operating systems. One can develop an application easily by providing user-
friendly environment.The features of oracle are portability and compatibility.

Dept of BCA Page 15


The Hospital Management System

REQUIREMENTS

SOFTWARES REQUIREMENT:

• XAMPP installed in the Windows 7 or above machine and APACHE2


Server and MySQL
• Sublime Text 3.2 used as a text editor.
• Google Chrome to run the project (localhost/myhmsp was used as the url).

HARDWARE REGUIREMENT:

• Processor :Multicore Processor


• RAM : 32 GB or Above
• Storage : 1 TB

Dept of BCA Page 16


The Hospital Management System

SYSTEM DESIGN

Introduction to System Design:

System design is the process of planning a new system or to replace the existing
system. Simply, system design is like the blueprint for building, it specifies all
the features that are to be in the finished product.
System design phase follows system analysis phase. Design is concerned with
identifying functions, data streams among those functions, maintaining a record
of the design decisions and providing a blueprint the implementation phase.
Design is the bridge between system analysis and system implementation. Some
of the essential fundamental concepts involved in the design of application
software are:
• Abstraction
• Modularity
• Verification
Abstraction is used to construct solutions to problem without having to take
account of the intricate details of the various component sub problems.
Abstraction allows system designer to make step-wise refinement, which at each
stage of the design may hide, unnecessary details associated with representation
or implementation from the surrounding environment.

Modularity is concerned with decomposing of main module into well-defined


manageable units with well-defined interfaces among the units. This enhances
design clarity, which in turn eases implementation, Debugging, Testing,
Documenting and Maintenance of the software product. Modularity viewed in
this sense is a vital tool in the construction of large software projects.
Verification is fundamental concept in software design. A design is verifiable
if it can be demonstrated that the design will result in implementation that
Dept of BCA Page 17
The Hospital Management System

satisfies the customer’s requirements. Verification is of two types namely.


• Verification that software requirements analysis satisfies the customer’s
needs.
• Verification that the design satisfies the requirement analysis.
Some of the important factors of quality that are to be considered in the design of
application software are:

Reliability:
The software should behave strictly according to the original specification and
should function smoothly under normal conditions.
Extensibility:
The software should be capable of adapting easily to changes in the specification.

Reusability:
The software should be developed using a modular approach, which permits
modules to be reused by other application, if possible.
The System Design briefly describes the concept of system design and it contains
four sections. The first section briefly describes the features that the system is
going to provide to the user and the outputs that the proposed system is going to
offer.
The second section namely Logical Design describes the Data Flow Diagrams,
which show clearly the data movements, the processes and the data sources, and
sinks, E-R diagrams which represent the overall logical design of the database,
and high-level process structure of the system.
The process of design involves “conceiving and planning out in the mind” and
making a drawing pattern, or sketch of the system. In software design there are
two types of major activities, Conceptual Design and Detailed Design.
Conceptual or logical or external design of software involves conceiving,
planning out, and specifying the externally observable characteristics of a

Dept of BCA Page 18


The Hospital Management System

software product. These characteristics include user displays, external data


sources, functional characteristics and high-level process structure for the
product.

Details or internal design involves conceiving, planning out, and specifying the
internal structure and processing details of the software product. The goal of
internal design is to specify internal structure, processing details, blueprint of
implementation, testing, and maintenance activities.
One of the important fundamental concepts of software design is modularity. A
modularity system consists interfaces among the units. Modularity enhances
design clarity, which in turn eases implementation, debugging, testing,
documentation, and maintenance of the software product.
The other fundamental concepts of software design include abstraction, structure,
information hiding, concurrency and verification. The use of structuring permits
decomposition of a large system into smaller, more manageable units with well-
defined relationships to the other units. The system design is verifiable if it can
be demonstrated that the design will result in an implementation that satisfies the
customer’s requirements.

Preliminary Design:
Preliminary design is basically concerned with deriving an overall picture of the
system. Deriving entire system into modules and sub-modules while keeping
Cohesion and Coupling factors in mind. Tools, which assist in preliminary design
process, are Data Flow Diagrams.

Code design:
The purpose of code is to facilitate the identification and retrieval for items of
information. A code is an ordered collection of symbols designed to provide
unique identification of an entity or attribute. To achieve unique identification
there must be only one place where the identified entity or the attribute can be
Dept of BCA Page 19
The Hospital Management System

entered in the code; conversely there must be a place in the code for everything
that is to be identified. This mutually exclusive feature must be built into any
coding system.
The codes for this system are designed with two features in mind. Optimum
human oriented use and machine efficiency. Length of the code range from
length of one to length of five characteristics:
• The code structure is unique; ensuring that only one value of the
code with a single meaning may be correctly applied to a given
entity or attributes.
• The code structure is expansible allowing for growth of its set of
entities and attributes.
• The code is concise and brief for recording, communication,
transmission and storage efficiencies.
• They have a uniform size and format.
• The codes are simple so that the user can easily understand it.
• The codes are also versatile i.e., it is easy to modify to reflect
necessary changes in condition, chart eristic and relationships of
the encode entities.
• The codes are also easily storable for producing reports in a
predetermined order of format.
• The codes are also stable and do not require being frequently
updated thereby promoting user efficiency.
• The codes are also meaningful.
• They are also operable i.e., they are adequate for present and
anticipate data processing both for machine and human use.

Input Design:
Input design is a part of overall system design, which requires very careful
attention. The main objectives of input design are:
• To produce a cost-effective method of input.
• To achieve the highest possible level of accuracy.
• To ensure that the input is acceptable to and understood by the
user staff.
Dept of BCA Page 20
The Hospital Management System

In this system input screens are designed very carefully so that no inaccurate
data will enter the database. The data is made as easy as possible. For
simplifying the data entry many facilities are given.
Each and every screen in this system is facilitated by many pushbuttons so that
the user can easily work with this system.

Output Design:
Outputs from computer systems are required primarily to communicate the
results of processing to users. They are also to provide a permanent hard copy
of these results for later consultation.
The various types of outputs are required by this system are given below:
▪ External outputs, whose destination is outside the concern and
which require special attention because they, project the image of
the concern.
▪ Internal outputs, whose destination is within the concern and
which require careful design because they are the user’s main
interface within the computer.
▪ Operation outputs, whose use is purely within the computer
department, E.g., program listings, usage statistics etc,
▪ Interactive outputs, which involves the user in communicating
directly with the computers.

Dept of BCA Page 21


The Hospital Management System

Data flow Diagrams:

Context Level - DFD:

PATEINT DOCTOR
ADMIN
MODULE MODULE
MODULE

Level – DFD:

PATIENT

HOME
PAGE

ADMIN
ABOUT
US
HMS

CONTACT
US
DOCTOR

Dept of BCA Page 22


The Hospital Management System

UML Diagram
ADMIN LOGIN

VIEW DOCTORS
LIST

Admin Panel:
VIEW PATIENT
LIST

VIEW APPOINTMENT
DETAILS

VIEW PRESCRIPTION
LIST

MANAGE DOCTERS
Add/delete

VIEW
QUIRES/FEEDBACK

LOGOUT

Dept of BCA Page 23


The Hospital Management System

LOGIN

Doctor panel:

VIEW
APPOINTMENT
LIST

VIEW
PRESCRIPTION
LIST

SEARCH
PATIENT(by ph.no)

LOGOUT

Dept of BCA Page 24


The Hospital Management System

REGISTRATION

Patient panel:
LOGIN

BOOK
APPOINTMENT

VIEW
APPOINTMENT
HISTORY

VIEW
PRESCRIPTION
LIST

LOGOUT

Dept of BCA Page 25


The Hospital Management System

E-R DIAGRAM

Dept of BCA Page 26


The Hospital Management System

DATABASE DESIGN

Database is an integrated collection of data and provides a centralized access to


the data and makes possible to treat data as a separate resource. Usually
centralized data managing software is called a Relational Database Management
System (RDBMS). The most significant different between RDBMS and other
type of Data Management is the separation of data as seen by the program and
data as store of on the direct access storage device. This is the difference
between logical and physical data.

Data Dictionary:
The efficiency of an application developed using RDBMS mainly depend upon
the database tables, the fields in each table and the way the tables are opened
using the contents in them to retrieve the necessary information. Hence a careful
selection of tables and their fields are imperative.

The database tables used in this system are created keeping the above points in
mind. The tables used are given below.

Dept of BCA Page 27


The Hospital Management System

MYSQL Table Structure

Table Name: admintb


Description: - This Table is store info about admin login details.

Table Name: patreg


Description: - This Table is store info about Patient regsitration details.

Dept of BCA Page 28


The Hospital Management System

Table Name: doctb


Description: - This Table is store info about Doctor’s login details.

Dept of BCA Page 29


The Hospital Management System

GRAPHICAL USER INTERFACE

• Hospital Management System in php and mysql. This system has a ‘Home’
page from where the patient, doctor & administrator can login into their
accounts by toggling the tabs accordingly. Fig shows the ‘Home’ page of
our project.

• ‘About Us' page allows us to get some more information about the quality
and the services of the hospital.
Dept of BCA Page 30
The Hospital Management System

• ‘Contact’ page allows users to provide feedback or queries about the


services of the hospital. Fig shows the ‘Contact’ page.

The ‘Home’ page consists of 3 modules:

1. Patient Module
2. Doctor Module
3. Admin Module
Dept of BCA Page 31
The Hospital Management System

1.Patient Module:

This module allows patients to create their account, book an appointment to see a
doctor and see their appointment history. The registration page(in the home page
itself) asks patients to enter their First Name, Last Name, Email ID, Contact
Number, Password and radio buttons to select their gender.

Dept of BCA Page 32


The Hospital Management System

Dept of BCA Page 33


The Hospital Management System

2.Doctor Module:

The doctors can login into their account which can be done by toggling the tab
Dept of BCA Page 34
The Hospital Management System

from ‘Patient’ to ‘Doctor’. Fig shows the login form for a doctor. Registration of
a doctor account can be done only by admin. We will discuss more about this in
Admin Module.

Dept of BCA Page 35


The Hospital Management System

3.Admin Module:

This module is the heart of our project where an admin can see the list of all
patients. Doctors and appointments and the feedback/queries received from the
‘Contact’ page. Also admin can add doctor too.
Login into admin account can be done by toggling into admin tab of the
Home page. Fig shows the login page for admin.

username: admin, password: admin123

Dept of BCA Page 36


The Hospital Management System

Dept of BCA Page 37


The Hospital Management System

Dept of BCA Page 38


The Hospital Management System

Dept of BCA Page 39


The Hospital Management System

Dept of BCA Page 40


The Hospital Management System

SOURCE CODE
• Registration form:
<html>
<head>
<title>HMS</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<link rel="stylesheet" type="text/css" href="style1.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
crossorigin="anonymous"> -->

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"


integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">

<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">


<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet"
id="bootstrap-css">

<style >
.form-control {
border-radius: 0.75rem;
}
</style>

<script>
var check = function() {
if (document.getElementById('password').value ==
document.getElementById('cpassword').value) {
document.getElementById('message').style.color = '#5dd05d';
document.getElementById('message').innerHTML = 'Matched';
} else {
document.getElementById('message').style.color = '#f55252';
document.getElementById('message').innerHTML = 'Not Matching';
}
}

function alphaOnly(event) {
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == 8 || key == 32);
};

function checklen()
{
var pass1 = document.getElementById("password");
if(pass1.value.length<6){
alert("Password must be at least 6 characters long. Try again!");
return false;
Dept of BCA Page 41
The Hospital Management System
}
}

</script>

</head>

<!------ Include the above in your HEAD tag ---------->


<body>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav" >
<div class="container">

<a class="navbar-brand js-scroll-trigger" href="#" style="margin-top: 10px;margin-left:-65px;font-family:


'IBM Plex Sans', sans-serif;"><h4><i class="fa fa-user-plus" aria-hidden="true"></i>&nbsp KR
HOSPITAL</h4></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="index.php" style="color: white;font-family: 'IBM Plex Sans',
sans-serif;"><h6>HOME</h6></a>
</li>
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="services.html" style="color: white;font-family: 'IBM Plex Sans',
sans-serif;"><h6>ABOUT US</h6></a>
</li>

<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="contact.html" style="color: white;font-family: 'IBM Plex Sans',
sans-serif;"><h6>CONTACT</h6></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container register" style="font-family: 'IBM Plex Sans', sans-serif;">
<div class="row">
<div class="col-md-3 register-left" style="margin-top: 10%;right: 5%">
<img src="https://image.ibb.co/n7oTvU/logo_white.png" alt=""/>
<h3>Welcome!!</h3>

</div>
<div class="col-md-9 register-right" style="margin-top: 40px;left: 80px;">
<ul class="nav nav-tabs nav-justified" id="myTab" role="tablist" style="width: 40%;">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home"
aria-selected="true">Patient</a>
</li>
<li class="nav-item">
Dept of BCA Page 42
The Hospital Management System
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile"
aria-selected="false">Doctor</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#admin" role="tab" aria-controls="admin"
aria-selected="false">Admin</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<h3 class="register-heading">Register as Patient</h3>
<form method="post" action="func2.php">
<div class="row register-form">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="First Name *" name="fname" onkeydown="return
alphaOnly(event);" required/>
</div>
<div class="form-group">
<input type="email" class="form-control" placeholder="Your Email *" name="email" />
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *" id="password" name="password"
onkeyup='check();' required/>
</div>
<div class="form-group">
<div class="maxl">
<label class="radio inline">
<input type="radio" name="gender" value="Male" checked>
<span> Male </span>
</label>
<label class="radio inline">
<input type="radio" name="gender" value="Female">
<span>Female </span>
</la</div>
<a href="index1.php">Already have an account?</a>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="Last Name *" name="lname" onkeydown="return
alphaOnly(event);" required/>
</div>
<div class="form-group">
<input type="tel" minlength="10" maxlength="10" name="contact" class="form-control"
placeholder="Your Phone *" />
</div>
<div class="form-group">
<input type="password" class="form-control" id="cpassword" placeholder="Confirm Password *"
name="cpassword" onkeyup='check();' required/><span id='message'></span>
</div>
<input type="submit" class="btnRegister" name="patsub1" onclick="return checklen();" value="Register"/>
Dept of BCA Page 43
The Hospital Management System
</div>
</div>
</form>
</div>
<div class="tab-pane fade show" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<h3 class="register-heading">Login as Doctor</h3>
<form method="post" action="func1.php">
<div class="row register-form">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="User Name *" name="username3"
onkeydown="return alphaOnly(event);" required/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *" name="password3" required/>
</div>
<input type="submit" class="btnRegister" name="docsub1" value="Login"/>
</div>
</div>
</form>
</div>
<div class="tab-pane fade show" id="admin" role="tabpanel" aria-labelledby="profile-tab">
<h3 class="register-heading">Login as Admin</h3>
<form method="post" action="func3.php">
<div class="row register-form">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="User Name *" name="username1"
onkeydown="return alphaOnly(event);" required/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *" name="password2"
required/></div>
<input type="submit" class="btnRegister" name="adsub" value="Login"/>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384- "
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384- "
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-
" crossorigin="anonymous"></script>
Dept of BCA Page 44
The Hospital Management System
</html>

• Login Page:
<?php
include("header.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --><link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style2.css">

</head>
<style type="text/css">
#inputbtn:hover{cursor:pointer;}
.card{
background: #f8f9fa;
border-top-left-radius: 5% 5%;
border-bottom-left-radius: 5% 5%;
border-top-right-radius: 5% 5%;
border-bottom-right-radius: 5% 5%;
}

</style>
<body style="background: -webkit-linear-gradient(left, #3931af, #00c6ff); background-size: cover;">
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav" >
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="index.php" style="margin-top: 10px;margin-left:-65px;font-family: 'IBM Plex
Sans', sans-serif;"><h4><i class="fa fa-user-plus" aria-hidden="true"></i>&nbsp KR HOSPITAL</h4></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-
controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="index.php" style="color: white;font-family: 'IBM Plex Sans', sans-
serif;"><h6>HOME</h6></a>
</li>
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="services.html" style="color: white;font-family: 'IBM Plex Sans', sans-
serif;"><h6>ABOUT US</h6></a>
</li>
<li class="nav-item">

Dept of BCA Page 45


The Hospital Management System
<a class="nav-link js-scroll-trigger" href="contact.html" style="color: white;font-family: 'IBM Plex Sans, sans-
serif;"><h6>CONTACT</h6></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid" style="margin-top:60px;margin-bottom:60px;color:#34495E;">
<div class="row">
<div class="col-md-7" style="padding-left: 180px; ">
<div style="-webkit-animation: mover 2s infinite alternate;
animation: mover 1s infinite alternate;">
<img src="images/ambulance1.png" alt="" style="width: 20%;padding-left: 40px;margin-top: 150px;margin-left:
45px;margin-bottom:15px">
</div>
<div style="color: white;">
<h4 style="font-family: 'IBM Plex Sans', sans-serif;"> We are here for you!</h4>
</div>
</div>
<div class="col-md-4" style="margin-top: 5%;right: 8%">
<div class="card" style="font-family: 'IBM Plex Sans', sans-serif;">
<div class="card-body">
<center>
<i class="fa fa-hospital-o fa-3x" aria-hidden="true" style="color:#0062cc"></i>
<br>
<h3 style="margin-top: 10%">Patient Login</h3><br>
<form class="form-group" method="POST" action="func.php">
<div class="row" style="margin-top: 10%"
<div class="col-md-4"><label>Email-ID: </label></div>
<div class="col-md-8"><input type="text" name="email" class="form-control" placeholder="enter email ID"
required/></div><br><br>
<div class="col-md-4" style="margin-top: 8%"><label>Password: </label></div>
<div class="col-md-8" style="margin-top: 8%"><input type="password" class="form-control" name="password2"
placeholder="enter password" required/></div><br><br><br>
</div>
<div class="row">
<div class="col-md-4" style="padding-left: 160px;margin-top: 10%">
<center><input type="submit" id="inputbtn" name="patsub" value="Login" class="btn btn-primary"></center></div>
<!-- <div class="col-md-8" style="margin-top: 10%">
<a href="index.php" class="btn btn-primary">Back</a></div> -->
</div>
</form>
</center>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

• Admin panel:

<!DOCTYPE html>

Dept of BCA Page 46


The Hospital Management System
<?php
include('func.php');
include('newfunc.php');
$con=mysqli_connect("localhost","root","","myhmsdb");
$pid = $_SESSION['pid'];
$username = $_SESSION['username'];
$email = $_SESSION['email'];
$fname = $_SESSION['fname'];
$gender = $_SESSION['gender'];
$lname = $_SESSION['lname'];
$contact = $_SESSION['contact'];

if(isset($_POST['app-submit']))
{
$pid = $_SESSION['pid'];
$username = $_SESSION['username'];
$email = $_SESSION['email'];
$fname = $_SESSION['fname'];
$lname = $_SESSION['lname'];
$gender = $_SESSION['gender'];
$contact = $_SESSION['contact'];
$doctor=$_POST['doctor'];
$email=$_SESSION['email'];
# $fees=$_POST['fees'];
$docFees=$_POST['docFees'];

$appdate=$_POST['appdate'];
$apptime=$_POST['apptime'];
$cur_date = date("Y-m-d");
date_default_timezone_set('Asia/Kolkata');
$cur_time = date("H:i:s");
$apptime1 = strtotime($apptime);
$appdate1 = strtotime($appdate);

if(date("Y-m-d",$appdate1)>=$cur_date){
if((date("Y-m-d",$appdate1)==$cur_date and date("H:i:s",$apptime1)>$cur_time) or date("Y-m-d",$appdate1)>$cur_date) {
$check_query = mysqli_query($con,"select apptime from appointmenttb where doctor='$doctor' and appdate='$appdate'
and apptime='$apptime'");

if(mysqli_num_rows($check_query)==0){
$query=mysqli_query($con,"insert into
appointmenttb(pid,fname,lname,gender,email,contact,doctor,docFees,appdate,apptime,userStatus,doctorStatus)
values($pid,'$fname','$lname','$gender','$email','$contact','$doctor','$docFees','$appdate','$apptime','1','1')");

if($query)
{
echo "<script>alert('Your appointment successfully booked');</script>";
}
else{
echo "<script>alert('Unable to process your request. Please try again!');</script>";
}
}
else{
echo "<script>alert('We are sorry to inform that the doctor is not available in this time or date. Please choose different time
or date!');</script>";
}
}

Dept of BCA Page 47


The Hospital Management System
else{
echo "<script>alert('Select a time or date in the future!');</script>";
}
}
else{
echo "<script>alert('Select a time or date in the future!');</script>";
}
}

if(isset($_GET['cancel']))
{
$query=mysqli_query($con,"update appointmenttb set userStatus='0' where ID = '".$_GET['ID']."'");
if($query)
{
echo "<script>alert('Your appointment successfully cancelled');</script>";
}
}
function generate_bill(){
$con=mysqli_connect("localhost","root","","myhmsdb");
$pid = $_SESSION['pid'];
$output='';
$query=mysqli_query($con,"select
p.pid,p.ID,p.fname,p.lname,p.doctor,p.appdate,p.apptime,p.disease,p.allergy,p.prescription,a.docFees from prestb p inner join
appointmenttb a on p.ID=a.ID and p.pid = '$pid' and p.ID = '".$_GET['ID']."'");
while($row = mysqli_fetch_array($query)){
$output .= '
<label> Patient ID : </label>'.$row["pid"].'<br/><br/>
<label> Appointment ID : </label>'.$row["ID"].'<br/><br/>
<label> Patient Name : </label>'.$row["fname"].' '.$row["lname"].'<br/><br/>
<label> Doctor Name : </label>'.$row["doctor"].'<br/><br/>
<label> Appointment Date : </label>'.$row["appdate"].'<br/><br/>
<label> Appointment Time : </label>'.$row["apptime"].'<br/><br/>
<label> Disease : </label>'.$row["disease"].'<br/><br/>
<label> Allergies : </label>'.$row["allergy"].'<br/><br/>
<label> Prescription : </label>'.$row["prescription"].'<br/><br/>
<label> Fees Paid : </label>'.$row["docFees"].'<br/>';
}
return $output;
}
• Doctor Panel:

<!DOCTYPE html>
<?php
include('func1.php');
$con=mysqli_connect("localhost","root","","myhmsdb");
$doctor = $_SESSION['dname'];
if(isset($_GET['cancel']))
{
$query=mysqli_query($con,"update appointmenttb set doctorStatus='0' where ID =
'".$_GET['ID']."'");
if($query)
{

Dept of BCA Page 48


The Hospital Management System
echo "<script>alert('Your appointment successfully cancelled');</script>";
}
}
?>
<html lang="en">
<head>
<!-- Required meta tags --><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-
awesome.min.css">
<link rel="stylesheet" href="style.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
<a class="navbar-brand" href="#"><i class="fa fa-user-plus" aria-hidden="true"></i> KR
Hospital </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<style >
.btn-outline-light:hover{
color: #25bef7;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>

<style >
.bg-primary {
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #342ac1;
border-color: #007bff;
}
.text-primary {
color: #342ac1!important;
}

Dept of BCA Page 49


The Hospital Management System
</style>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="logout1.php"><i class="fa fa-sign-out" aria-
hidden="true"></i>Logout</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" method="post" action="search.php">
<input class="form-control mr-sm-2" type="text" placeholder="Enter contact number" aria-
label="Search" name="contact">
<input type="submit" class="btn btn-outline-light" id="inputbtn" name="search_submit"
value="Search">
</form>
</div>
</nav>
</head>
<style type="text/css">
button:hover{cursor:pointer;}
#inputbtn:hover{cursor:pointer
</div><br>
</div>
<div class="col-md-8" style="margin-top: 3%;">
<div class="tab-content" id="nav-tabContent" style="width: 950px;">
<div class="tab-pane fade show active" id="list-dash" role="tabpanel" aria-labelledby="list-
dash-list">
<div class="container-fluid container-fullw bg-white" >
<div class="row">
<div class="col-sm-4" style="left: 10%">
<div class="panel panel-white no-radius text-center">
<div class="panel-body">
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i
class="fa fa-list fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;"> View Appointments</h4>
<script>
function clickDiv(id) {
document.querySelector(id).click();
}
</script>
<p class="links cl-effect-1">

Dept of BCA Page 50


The Hospital Management System
<a href="#list-app" onclick="clickDiv('#list-app-list')">
Appointment List
</a>
</p>
</div>
</div>
</div>
<div class="col-sm-4" style="left: 15%">
<div class="panel panel-white no-radius text-center">
<div class="panel-body">
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i
class="fa fa-list-ul fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;"> Prescriptions</h4>
<p class="links cl-effect-1">
<a href="#list-pres" onclick="clickDiv('#list-pres-list')">
Prescription List
</a>
<div class="tab-pane fade" id="list-app" role="tabpanel" aria-labelledby="list-home-list">

<table class="table table-hover">


<thead>
<tr>
<th scope="col">Patient ID</th>
<th scope="col">Appointment ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Gender</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Current Status</th>
<th scope="col">Action</th>
<th scope="col">Prescribe</th>

</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$dname = $_SESSION['dname'];
$query = "select
pid,ID,fname,lname,gender,email,contact,appdate,apptime,userStatus,doctorStatus from

Dept of BCA Page 51


The Hospital Management System
appointmenttb where doctor='$dname';";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
?>
<tr>
<td><?php echo $row['pid'];?></td>
<td><?php echo $row['ID'];?></td>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['gender'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>
<a href="doctor-panel.php?ID=<?php echo $row['ID']?>&cancel=update" onClick="return
confirm('Are you sure you want to cancel this appointment ?')" title="Cancel Appointment"
tooltip-placement="top" tooltip="Remove"><button class="btn btn-
danger">Cancel</button></a
<?php } else {
echo "Cancelled";
} ?>
<a href="prescribe.php?pid=<?php echo $row['pid']?>&ID=<?php echo
$row['ID']?>&fname=<?php echo $row['fname']?>&lname=<?php echo
$row['lname']?>&appdate=<?php echo $row['appdate']?>&apptime=<?php echo
$row['apptime']?>"
tooltip-placement="top" tooltip="Remove" title="prescribe">
<button class="btn btn-success">Prescibe</button></a>
<?php } else {
echo "-";
} ?>
<div class="tab-pane fade" id="list-pres" role="tabpanel" aria-labelledby="list-pres-list">
<table class="table table-hover">
<thead>
<tr>

<th scope="col">Patient ID</th>


<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Appointment ID</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Disease</th>
<th scope="col">Allergy</th>
<th scope="col">Prescribe</th>

Dept of BCA Page 52


The Hospital Management System
</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$query = "select pid,fname,lname,ID,appdate,apptime,disease,allergy,prescription from
prestb where doctor='$doctor';";

$result = mysqli_query($con,$query);
if(!$result){
echo mysqli_error($con);
}
</body>
</html>

• Patient Panel:

<!DOCTYPE html>
<?php #include("func.php");?>
<html>
<head>
<title>Patient Details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<?php
include("newfunc.php");
if(isset($_POST['patient_search_submit']))
{
$contact=$_POST['patient_contact'];
$query = "select * from patreg where contact= '$contact'";
$result = mysqli_query($con,$query);
$row=mysqli_fetch_array($result);
if($row['lname']=="" & $row['email']=="" & $row['contact']=="" & $row['password']==""){
echo "<script> alert('No entries found! Please enter valid details');
window.location.href = 'admin-panel1.php#list-doc';</script>";
}
else {
echo "<div class='container-fluid' style='margin-top:50px;'>
<div class='card'>
<div class='card-body' style='background-color:#342ac1;color:#ffffff;'>

Dept of BCA Page 53


The Hospital Management System
<table class='table table-hover'>
<thead>
<tr>
<th scope='col'>First Name</th>
<th scope='col'>Last Name</th>
<th scope='col'>Email</th>
<th scope='col'>Contact</th>
<th scope='col'>Password</th>
</tr>
</thead>
<tbody>";

$fname = $row['fname'];
$lname = $row['lname'];
$email = $row['email'];
$contact = $row['contact'];
$password = $row['password'];
echo "<tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$password</td>
</tr>";

echo "</tbody></table><center><a href='admin-panel1.php' class='btn btn-light'>Back to


dashboard</a></div></center></div></div></div>";
}
}

?>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-
b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html

Dept of BCA Page 54


The Hospital Management System

SYSTEM TESTING
System testing is the stage before system implementation where the system is made
error free and all the needed modifications are made. The system was tested with
test data and necessary corrections to the system were carried out. All the reports
were checked by the user and approved. The system was very user friendly with
online help to assist the user wherever necessary.

Test Plan:
A test plan is a general document for the entire project, which defines the scope,
approach to be taken, and schedule of testing, as well as identifying the test item
for the entire testing process, and the personal responsible for the different
activities of testing. This document describes the plan for testing, the knowledge
management tool.

Dept of BCA Page 55


The Hospital Management System

Major testing activities are:

❑ Test units

❑ Features to be tested

❑ Approach for testing

❑ Test deliverables

❑ Schedule

❑ Personal allocation

Test units:
Test Case specification is major activity in the testing process. In this project, I
have performed two levels of testing.

❑ Unit testing

❑ System testing

The basic units in Unit testing are:

▪ Validating the user request

▪ Validating the input given by the user

▪ Exception handling

The basic units in System testing are:

▪ Integration of all programs is correct or not

▪ Checking whether the entire system after integrating is working


as expected.
Dept of BCA Page 56
The Hospital Management System

▪ The system is tested as whole after the unit testing.

Other Testing Strategies:


Alpha Testing:

This was done at the developer’s site by a customer. The software is used in a
natural setting with the developer “looking over the shoulder” of the user and
recording errors and usage problems. Alpha tests are conducted in a controlled
environment.

Beta Testing:

This was conducted at one or more customer sites by the end-user of the software.
Unlike alpha testing, the developer is generally not present. Therefore, the beta
test is a “live” application of the software in an environment that cannot be
controlled by the developer. The customer records all problems that are
encountered during beta testing and reports these to the developer at regular
intervals. As a result of problems reported during beta tests, software engineers
make modifications and then prepare for release of the software product to the
entire customer base.

Test deliverables:
The following documents are required besides the test plan

▪ Unit test report for each unit

▪ Test case specification for system testing

▪ The report for system testing

▪ Error report

The test case specification for system testing has to be submitted for review before

Dept of BCA Page 57


The Hospital Management System

the system testing commences.

IMPLEMENTATION AND EVALUATION

During the software-testing phase each module of software is thoroughly tested for
bugs and for accuracy of output. The system developed is very user-friendly and
the detailed documentation is also given to the user as online help wherever
necessary. The implementation phase normally ends with the formal test involving
all the components.

The entire system was developed using the PHP, HTML, JavaScript, Personal Web
Server, and MYSQL as back end. The HTML is used to design the web page. The
Personal Web Server is used to understand the client’s request and to send response
to them. The JAVASCRIPT are used for client-side validations so that the user can
enter only appropriate input in the input fields. The MYSQL is the back end tool
where the database resides.

Hence the design of the entire system is user-friendly and simple the
implementation has been quite easy.
Dept of BCA Page 58
The Hospital Management System

FUTURE ENHANCEMENT

To further enhance the capabilities of HMS, several future enhancements can be


considered:

1. Artificial Intelligence and Machine Learning: Incorporating AI and ML


can provide predictive analytics for patient care, optimize resource
allocation, and enable personalized treatment plans based on patient data.
2. Telemedicine Integration: Expanding HMS to include telemedicine
features will enable remote consultations, thereby increasing access to
healthcare services for patients in remote or underserved areas.
3. Patient Engagement Tools: Developing patient portals and mobile apps
can enhance patient engagement by providing access to personal health
records, appointment scheduling, medication reminders, and direct
communication with healthcare providers.
4. Advanced Analytics and Business Intelligence: Utilizing advanced
analytics and business intelligence tools can provide deeper insights into
clinical and operational data, aiding in improving patient outcomes and
operational efficiency.

Dept of BCA Page 59


The Hospital Management System

5. Virtual and Augmented Reality: Implementing VR and AR for medical


training and patient rehabilitation can provide immersive experiences that
enhance learning and recovery processes.
6. User Experience (UX) Improvements: Continuously improving the user
interface and experience for both healthcare providers and patients will
ensure that the system remains user-friendly and effective in meeting their
needs.

By continuously evolving and integrating cutting-edge technologies, the Hospital


Management System can further revolutionize healthcare delivery, making it
more efficient, accessible, and patient-centered.

CONCLUSION

The project Hospital Management System (HMS) is for computerizing the


working in a hospital. The software takes care of all the requirements of an
average hospital and is capable to provide easy and effective storage of
information related to patients that
come up to the hospital.

This project has given me an ample opportunity to design, code, and test and
implements an application. This has helped in putting into practice of various
Software Engineering principles and Database Management concepts like
maintaining integrity and consistency of data. Further, this has helped me to learn
more about MYSQL, PHP, HTML, JAVASCRIPT, Adobe Photoshop 7.0 and
Personal Web Server.

Dept of BCA Page 60


The Hospital Management System

I thank my guide for his invaluable contribution in guiding me throughout


the project. I also thank my parents and friends who have supported and motivated
me to complete this project successfully.

BIBLIOGRAPHY

Reference Books and journal

✓ PHP and MySQL web development


✓ The complete reference PHP from below Publications

Books

1. Kumar, S., & Gupta, P. (2013). Health Information Systems: Concepts and
Technology in Healthcare. I.K. International Publishing House.
2. Pandey, C. M., Singh, U., & Srivastava, R. K. (2015). Essentials of Medical
Informatics. Jaypee Brothers Medical Publishers.

Articles

1. Patel, V., Araya, R., Chatterjee, S., et al. (2007). "Treatment and prevention
of mental disorders in low-income and middle-income countries." The
Lancet, 370(9591), 991-1005.
Dept of BCA Page 61
The Hospital Management System

2. Sheikh, A., Sood, H. S., & Bates, D. W. (2015). "Leveraging health


information technology to achieve the 'triple aim' of healthcare reform."
Journal of the American Medical Informatics Association, 22(4), 849-856.
3. Thakkar, M., & Davis, D. C. (2006). "Risk management in healthcare and
the role of the Hospital Information System." Journal of Health
Management, 8(1), 73-83.

Referring online manual from website

www.php.net
www.tutorialpoints.com
www.w3school.com
www.youtube.com
www.htmlseekers.net
www.webhacks.net

Dept of BCA Page 62

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy