0% found this document useful (0 votes)
42 views72 pages

Hospital Management

The document describes a project report for a Hospital Management System. It provides an introduction that discusses the motivation and scope of the project. It then discusses the hardware and software requirements for the system.

Uploaded by

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

Hospital Management

The document describes a project report for a Hospital Management System. It provides an introduction that discusses the motivation and scope of the project. It then discusses the hardware and software requirements for the system.

Uploaded by

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

MCA PROJECT REPORT

ON

HOSPITAL MANAGEMENT SYSTEM


IN
PARTIAL FULFILMENT OF REQUIREMENT FOR THE AWARD OF THE
DEGREE OF MASTER OF COMPUTER APPLICATIONS

Under the Guidance of : Submitted by :


Mrs. Nitin Bansal Sandeep Singh
Assistant Professor Roll No. B50523002
Dept. of Computer Science & Applications MCA 2th Semester
PDM College of Engineering

DEPARTMENT OF COMPUTER SCIENCE &APPLICATIONS


PDM COLLEGE OF ENGINEERING, BAHADURGARH
(AFFILIATEDE TO MAHARSHI DAYANAND UNIVERSITY)
ROHTAK - 124001
CERTIFICATE

This is to certify that Project report entitled "HOSPITAL


MANAGEMENT SYSTEM" by Sandeep Singh, Roll no. B50523002, at “PDM
University, Haryana is an original work and the same has not been submitted to
any other institute for the award of any other degree. A Presentation of the Project
report was made on “HOSPITAL MANAGEMENT INFORMATION” and the
suggestions as approved by the faculty were duly incorporated. The project has
been submitted in partial fulfillment of the requirements for the degree of Master
of Computer Applications (MCA) of PDM University Bhadurgarh, Haryana,
during the academic year 2023-25.

Mrs. Nitin Bansal Prof.(Dr.)S. Srinivasan


Assistant Professor Head of Department
Dept. of Computer Science & App. Dept of Computer Science & Apps.
CANDIDATE’S DECLARATION

I, R. Anish, hereby declare that the work presented in the project report entitled “HOSPITAL

MANAGEMENT SYSTEM” submitted to the Department of Computer Science &Applications,

PDM College of Engineering, affiliated to MaharshiDayanand University, Rohtak in partial

fulfillment of the award of degree of ‘Master of Computer Applications’ is an authentic

record of my work carried out during the Second semester, 2024 at Deft Infosystems (Pvt

Ltd), and internal guide Mrs. Nitin Bansal, Assistant Professor, Department of Computer

Science &Applications, PDM College of Engineering.

The matter embodied in this project report has not been submitted else where by anybody

for the award of any other degree.

Sandeep Singh
Roll No. B50523002
MCA 2th Semester
ACKNOWLEDGEMENT

I would like to thank people who were part of this work in numerous ways. In particular I

wish to thank Dr. Nitin Bansal (Project Trainer) External Guide for my Project, for his

assistance, suggestions and improvements in this project and for providing continuous

guidance at each stage of the project.

I would like to extend special thanks to my guide Ms. Nitin Bansal, Assistant Professor,

PDM College of Engineering, and to Prof. (Dr.) Piyush, HoD, Department of Computer

Science & Applications, PDM College of Engineering for their valuable advice and support. I

would also like to thank Director Prof. R.C. Bhattacharjee of PDM College of Engineering

for his valuable support.

Also, my gratitude to my parents for their encouragement and support.

Sandeep Singh
CONTENTS

1. INTRODUCTION

1.1 Motivation behind the project

1.2 Scope

1.3 Theoretical and technical aspects

2. OBJECT OF THE PROJECT

3. HARDWARE AND SOFTWARE REQUIREMENTS

4. SYSTEM DEVELOPMENT ENVIRONMENT

5. PROJECT DESIGN APPROACH

6. TESTING

7. CODING

8. OUTPUT SCREENS

9. CONCLUSION

10. FUTURE ENHANCEMENTS

11. References
1. INTRODUCTION

Hospital Management System provides the benefits of streamlined


operations, enhanced administration & control, superior patient care, strict
cost control and improved profitability. HMS is powerful, flexible, and easy
to use and is designed and developed to deliver real conceivable benefits to
hospitals. More importantly it is backed by reliable and dependable support.

Human Body is a very complex and sophisticated structure and comprises


of millions of functions. All these complicated functions have been
understood by man him, part-by- part their research and experiments. As
science and technology progressed, medicine became an integral part of the
research. Gradually, medical science became an entirely new branch of
science. As of today, the Health Sector comprises of Medical institutions
i.e. Hospitals, HOSPITALs etc. research and development institutions and
medical colleges. Thus the Health sector aims at providing the best medical
facilities to the common man.
Hospital Management System is custom built to meet the specific
requirement of the mid and large size hospitals across the globe. All the
required modules and features have been particularly built to just fit in to
your requirement. This package has been widely accepted by the clients in
India and overseas. Not stopping only to this but they are highly satisfied
and appreciating. Entire application is web based and built on 3 tier
architecture using the latest technologies.
1.1 Motivation behind the project

The system is used for maintaining all the process and actives of blood bank
management system.
The system can be extended to be used for maintaining records of hospital, organ
donation and other similar
sectors. While developing the system, there shall be space for further modification.
There shall be proper documentation so that further enhancement becomes easy.

1.2 Scope

Hospitals and healthcare centers have undergone a change for its betterment. The
administrations of healthcare sector are opting IT solutions for the better
management and patient care in their hospital campus. Have a look at some salient
features of hospital management software.
Daily functions like patient registration, monitoring blood bank, managing
admission and overall management of various departments can be easily
performed with higher accuracy after the installation of hospital software .The
modules of hospital management software are user-friendly and easy to access. It
has a common user friendly interface having several modules. The officials can
utilize these modules in their processes without any hassle and make the best
possible use of hospital management system.

1.3 Theoretical and technical aspects

Hospital management can be best understood as that profession that comes next to
the direct clinical care of the patients in the healthcare sector. In the present global
scenario the healthcare industry is getting privatized at a growing pace and hence
the hospitals and other similar institutes are also coming and are emerging from
the private corporate and business organizations. As a result of this the system
needs professionals who can deliver not only the quality services but also in an
organized and efficient manner.
As the term management includes planning, organizing, coordination, staffing,
evaluating and controlling, so is the hospital management professionals do, they
do all these roles in health services to provide quality healthcare to the people and
in turn satisfaction to the patients by giving them cost-effective services.
2. OBJECT OF THE PROJECT
Hospital are the essential part of our lives, providing best medical facilities to
people suffering from various ailments, which may be due to change in climatic
conditions, increased work-load, emotional trauma stress etc. It is necessary for
the hospitals to keep track of its day-to-day activities & records of its patients,
doctors, nurses, ward boys and other staff personals that keep the hospital running
smoothly & successfully.
But keeping track of all the activities and their records on paper is very
cumbersome and error prone. It also is very inefficient and a time-consuming
process Observing the continuous increase in population and number of people
visiting the hospital. Recording and maintaining all these records is highly
unreliable, inefficient and error-prone. It is also not economically & technically
feasible to maintain these records on paper.
The main aim of our project is to provide a paper-less hospital up to 90%. It also
aims at providing low-cost reliable automation of the existing systems. The system
also provides excellent security of data at every level of user-system interaction
and also provides robust & reliable storage and backup facilities

Hospital Management System provides the benefits of streamlined operations,


enhanced administration & control, superior patient care, strict cost control
and improved profitability.
HMS is powerful, flexible, and easy to use and is designed and developed to
deliver real conceivable benefits to hospitals and HOSPITALs. More importantly
it is backed by reliable and dependable support.
This HMS 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.

3.HARDWARE AND SOFTWARE REQUIREMENTS

Hardware requirement-
Processor : Standard processor with a speed of 1.6 GHz or
more RAM : 256 MB RAM or more
Hard Disk : 20 GB or more
Monitor : Standard color
monitor Keyboard : Standard
keyboard Mouse : Standard
mouse

Software Requirements: -
Web Server: Apache

SERVER Technology Implemented ->

Apache Language Used -> PHP

Database -> My SQL

User Interface Design -> HTML, AJEX, JQUERY,

JAVASCRIPT Web Browser -> Google Chrome, Mozilla,

Opera

Software -> XAMPP Server

FRONT END

We have implemented JavaScript for all the Client side validations. Client side
JavaScript is designed to reside inside HTML document & ensure they run
properly. It is object based, event driven, platform independent. These are
important parts of any Web application to implement Client side Validations and
the invalid data is not submitted. The form is not submitted until user fills in
correct data. It is extremely useful to restrict mistakes by user.
BACK END

We have used My Sql. My Sql provides efficient/effective solution for major


database tech.
Large database and space
management. Many concurrent
database users.
High transaction processing requirement
High Availability
Industry accepted standards
Manageable security
Portability

4. SYSTEM DEVELOPMENT ENVIRONMENT


WHAT IS HTML?

To publish information for global distribution, one needs a university-


understood language, a kind of publishing mother tongue that all computers
may potentially understand. The publishing language used by the World Wide
Web is HTML (Hyper Text Markup Language)

HTML Gives Authors the Means To

Publish online documents with headings, text, tables, list, photos etc.
Retrieve online information via hypertext links, at the click of a button
Design forms for conducting transactions with remote services, for use in
searching information, making reservation, ordering products etc.;
Includes spreadsheets, video clips, sound clips, and other applications directly
in the documents.

Some HTML Tags


<HTML> :Starting an HTML tag

<HEAD> : Creating a web page’s head

<TITLE> : Giving a web page ‘s body


</HEAD> : Ending a web pages head

</BODY> : Ending a web pages body

</HTML> :Ending a web page

<FORM> : Creating a HTML forms

<INPUT TYPE=BUTTON> : Creating a buttons

<INPUT TYPE=CHECKBOX> : Creating a checkboxes

<INPUT TYPE=SUBMIT> : Creating a submit button

<INPUT TYPE=TEXT> : Creating a text fields


HTML

HTML extends with mechanisms for style sheets, scripting, frames embedding
objects, improved support for right to left and mixed direction texts, richer
tables and enhancements to form, offering improved accessibilities for people
with disability.

SCRIPT WHAT IS JAVA SCRIPT?

JavaScript, originally supported by Netscape Navigator, is the most popular


Web scripting language today. JavaScript lets you embed programs right in
your Web pages and run these programs using the Web browser. You place
these programs in a <SCRIPT> element. If you want the script to write directly
to the Web page, place it in the <BODY> element.
EX: <HTML>

<HEAD>

<TITLE></TITLE>

</HEAD>

<BODY>

<SCRIPT LANGUAGE=”JavaScript”>

</SCRIPT>

</BODY></HTML>

JAVASCRIPTS OBJECTS
JavaScript is an object-oriented language. JavaScript comes with a number of
predefined objects.

Objects of the JavaScript

Document: Corresponds to the current Web page’s body. Using this object,
you have access to the HTML of the page itself, including the all links, images
and anchors in it.
Form: Holds information about HTML forms in the current page.
Frame: Refers to a frame in the browser’s window.
History: Holds the records of sites the Web browser has visited before
reaching the current page.
Location: Holds information about the location of the current web page.
Navigator: Refers to the browser itself, letting you determine what browser the
user has.
Window: Refers to the current browser window.

JAVASCRIPTS EVENTS

Some of the events of JavaScript

 on Change: Occurs when data in a control, like a text field, changes.


 on Click: Occurs when an element is clicked.
 on Focus: Occurs when an element gets the focus.
 on Mouse Down: Occurs when a mouse button goes down.
 on Reset: Occurs when the user clicks the reset button.

JAVASCRIPTS FUNCTIONS
Declaration of function

Syntax: function function name ()


//BODY

Write these functions in <SCRIPT> tag.

RDBMS CONCEPTS

DATA ABSTRACTION
A major purpose of a database system is to provide users with an abstract view
of the data. This system hides certain details of how the data is stored and
maintained. However in order for the system to be usable, data must be
retrieved efficiently. The efficiency lead to the design of complex data
structure for the representation of data in the database. Certain complexity
must be hidden from the database system users. This accomplished by
defining several levels of abstraction at which the database may be viewed.

(1)CLASSIFICATION OF DATABASE

There are 3 types of database approaches given below,

Hierarchical Database:

In this type of model data is represented in simple tree structured. The record
at the top of three is known as root, the root may have any number of
dependents. Each of these may have any number of low level dependents and
so on up to any number of levels. The disadvantages of the approach are that
no independent record occurrence can exist without it’s superior.

Network Database:

In a Network database, data is represented by Network structure. In this


approach record occurrence can have any number of superiors as well as any
number of immediate dependents thus allow many to many correspondence
directly than an hierarchical approach. The main disadvantage of the Network
model is data representation is very complex resulting in complexity of the
DML (Data Manipulation Language).

Relational Database:

The Relational model represents data and relationships among data by a


collection of tables each of which has a number of columns with unique
names.
THE SQL LANGUAGE
SQL is a language for relational database. SQL is a non-procedural i.e.,
when we use SQL we specify what we want to be done not how to do it.

Features of SQL

SQL is an interactive query language.


SQL is a database administration
language. SQL is a database programming
language. SQL is a client/server language.
SQL is a distributed database
language. SQL is a database gateway
language.

Basic SQL Commands


Data Definition Language commands (DDL)

Data Manipulation Language commands (DML)

Transaction Control Language commands (TCL)

Data control Language commands (DCL)

PHP

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

What is a 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"
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

5. PROJECT DESIGN APPROACH


Design is the first step in the development phase for any techniques and principles
for the purpose of defining a device, a process or system in sufficient detail to
permit its physical realization.
Once the software requirements have been analyzed and specified the software
design involves three technical activities - design, coding, implementation and
testing that are required to build and verify the software.
The design activities are of main importance in this phase, because in this activity,
decisions ultimately affecting the success of the software implementation and its
ease of maintenance are made. These decisions have the final bearing upon
reliability and maintainability of the system. Design is the only way to accurately
translate the customer’s requirements into finished software or a system.
Design is the place where quality is fostered in development. Software design is a
process through which requirements are translated into a representation of
software. Software design is conducted in two steps. Preliminary design is
concerned with the transformation of requirements into data.

UML Diagrams:
Actor:
A coherent set of roles that users of use cases play when interacting with the
use `cases.

Use case: A description of sequence of actions, including variants, that a system


performs that yields the value of that actor

UML stands for Unified Modeling Language. UML is a language for specifying,
visualizing and documenting the system. This is the step while developing any
product after analysis. The goal from this is to produce a model of the entities
involved in the project which later need to be built. The representation of the
entities that are to be used in the product being developed need to be designed.
There are various kinds of methods in software
design: They are as follows:
 Use case Diagram
 Sequence Diagram
 Collaboration Diagram
 Activity Diagram
 State chat Diagram
Usecase Diagrams
Use case diagrams model behavior within a system and helps the developers
understand of what the user require. The stick man represents what’s called an
actor.
Use case diagram can be useful for getting an overall view of the system and
clarifying who can do and more importantly what they can’t do.
Use case diagram consists of use cases and actors and shows the interaction
between the use case and actors.

 The purpose is to show the interactions between the use case and actor.
 To represent the system requirements from user’s perspective.
 An actor could be the end-user of the system or an external system.
ENTITY-RELATIONSHIP Diagrams

E-R (Entity-Relationship) Diagram is used to represents


the relationship between entities in the table.

The symbols used in E-R diagrams are:


SYMBOL PURPOSE

Represents Entity sets.

Represent attributes.

Represent Relationship Sets.

Line
represents flow Structured analysis is a set of tools and
techniques that the analyst.
To develop a new kind of a system:
The traditional approach focuses on the cost benefit and feasibility
analysis, Project management, and hardware and software selection a
personal considerations.

ER Notation

There is no standard for representing data objects in ER diagrams. Each modeling


methodology uses its own notation. The original notation used by Chen is widely
used in academics texts and journals but rarely seen in either CASE tools or
publications by non-academics. Today, there are a number of notations used,
among the more common are Bachman, crow's foot, and IDEFIX.

All notational styles represent entities as rectangular boxes and relationships as


lines connecting boxes. Each style uses a special set of symbols to represent the
cardinality of a connection. The notation used in this document is from Martin. The
symbols used for the basic ER constructs are:

 Entities are represented by labeled rectangles. The label is the name of the

entity. Entity names should be singular nouns.

 Relationships are represented by a solid line connecting two entities. The

name of the relationship is written above the line. Relationship names should

be verbs

 Attributes, when included, are listed inside the entity rectangle. Attributes

which are identifiers are underlined. Attribute names should be singular

nouns.

 Cardinality of many is represented by a line ending in a crow's foot. If the

crow's foot is omitted, the cardinality is one.

 Existence is represented by placing a circle or a perpendicular bar on the

line. Mandatory existence is shown by the bar (looks like a 1) next to the

entity for an instance is required. Optional existence is shown by placing a

circle next to the entity that is optional


Admin

Doctor

Hospital
Patient
CLASS DIAGRAM:

Class is nothing but a structure that contains both variables and methods. The
Class Diagram shows a set of classes, interfaces, and collaborations and their
relating ships. There is most common diagram in modeling the object oriented
systems and are used to give the static view of a system. It shows the dependency
between the classes that can be used in our system.
The interactions between the modules or classes of our projects are shown below.
Each block contains Class Name, Variables and Methods.

DATABASE DESIGN
The data in the system has to be stored and retrieved from database. Designing

the database is part of system design. Data elements and data structures to be

stored have been identified at analysis stage. They are structured and put

together to design the data storage and retrieval system.

A database is a collection of interrelated data stored with minimum redundancy to

serve many users quickly and efficiently. The general objective is to make
database access easy, quick, inexpensive and flexible for the user. Relationships
are established between the data items and unnecessary data items are removed.
Normalization is done to get an internal consistency of data and to have minimum
redundancy and maximum stability. This ensures minimizing data storage
required, minimizing chances of data inconsistencies and optimizing for updates.
Application System Development – A Life cycle Approach

Although there are a growing number of applications (such as decision support


systems) that should be developed using an experimental process strategy such as
prototyping, a significant amount of new development work continue to involve
major operational applications of broad scope. The application systems are large
highly structured. User task comprehension and developer task proficiency is
usually high. These factors suggest a linear or iterative assurance strategy. The
most common method for this stage class of problems is a system development life
cycle modal in which each stage of development is well defined and has
straightforward requirements for deliverables, feedback and sign off. The system
development life cycle is described in detail since it continues to be an appropriate
methodology for a significant part of new development work.
The basic idea of the system development life cycle is that there is a well-defined
process by which an application is conceived and developed and implemented.
The life cycle gives structure to a creative process. In order to manage and control
the development effort, it is necessary to know what should have been done, what
has been done, and what has yet to be accomplished. The phrases in the system
development life cycle provide a basis for management and control because they
define segments of the flow of work, which can be identified for managerial
purposes and specifies the documents or other deliverables to be produced in each
phase.
The phases in the life cycle for information system development are described
differently by different writers, but the differences are primarily in the amount of
necessity and manner of categorization. There is a general agreement on the
flow of development steps and the necessity for control procedures at each stage.
The information system development cycle for an application consists of three
major stages.

1) Definition.
2)Development.
3)Installation and operation.

The first stage of the process, which defines the information requirements for a
feasible cost effective system. The requirements are then translated into a physical
system of forms, procedures, programs etc., by the system design, computer
programming and procedure development. The resulting system is test and put
into operation. No system is perfect so there is always a need for maintenance
changes. To complete the cycle, there should be a post audit of the system to
evaluate how well it performs and how well it meets the cost and performance
specifications.
The stages of definition, development and installation and operation can therefore
be divided into smaller steps or phrases as follows.

Definition

Proposed definition : preparation of request for proposed applications.


Feasibility assessment : evaluation of feasibility and cost benefit of proposed
system.
Information requirement analysis : determination of information needed.

Design
Conceptual design : User-oriented design of application development.
Physical system design : Detailed design of flows and processes in
applications processing system and preparation of program specification.
Development
Program development : coding and testing of computer programs.
Procedure development : design of procedures and preparation of
user instructions.

Installation and operation

Conversion : final system test and conversion.


Operation and maintenance : Month to month operation and maintenance
Post audit : Evaluation of development process,application system
and results of use at the completion of the each phase, formal approval sign-off is
required from the users as well as from the manager of the project development

TESTING
Testing is a process of executing a program with the indent of finding an error.
Testing is a crucial element of software quality assurance and presents ultimate
review of specification, design and coding.

System Testing is an important phase. Testing represents an interesting anomaly


for the software. Thus a series of testing are performed for the proposed system
before the system is ready for user acceptance testing.

A good test case is one that has a high probability of finding an as undiscovered
error. A successful test is one that uncovers an as undiscovered error.

Testing Objectives:

1. Testing is a process of executing a program with the intent of finding an


error
2.A good test case is one that has a probability of finding an as yet
undiscovered error
3.A successful test is one that uncovers an undiscovered error

Testing Principles

1. All tests should be traceable to end user

requirements 2.Tests should be planned long before

testing begins

3. Testing should begin on a small scale and progress towards testing in large

4. Exhaustive testing is not possible

5. To be most effective testing should be conducted by a independent third party

The primary objective for test case design is to derive a set of tests that has the
highest livelihood for uncovering defects in software. To accomplish this objective
two different categories of test case design techniques are used. They are

White box testing.

Black box testing.

White-box testing:

White box testing focus on the program control structure. Test cases are derived
to ensure that all statements in the program have been executed at least once
during
testing and that all logical conditions have been

executed. Block-box testing:

Black box testing is designed to validate functional requirements without regard to


the internal workings of a program. Black box testing mainly focuses on the
information domain of the software, deriving test cases by partitioning input and
output in a manner that provides through test coverage. Incorrect and missing
functions, interface errors, errors in data structures, error in functional logic are the
errors falling in this category.

Testing strategies:

A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segment has been correctly
implemented as well as high-level tests that validate major system functions
against customer requirements.

Testing fundamentals:

Testing is a process of executing program with the intent of finding error. A good
test case is one that has high probability of finding an undiscovered error. If testing
is conducted successfully it uncovers the errors in the software. Testing cannot
show the absence of defects, it can only show that software defects present.

Testing Information flow:

Information flow for testing flows the pattern. Two class of input provided to test
the process. The software configuration includes a software requirements
specification, a design specification and source code.
Test configuration includes test plan and test cases and test tools. Tests are
conducted and all the results are evaluated. That is test results are compared with
expected results. When erroneous data are uncovered, an error is implied and
debugging commences.

Unit testing:

Unit testing is essential for the verification of the code produced during the coding
phase and hence the goal is to test the internal logic of the modules. Using the
detailed design description as a guide, important paths are tested to uncover errors
with in the boundary of the modules. These tests were carried out during the
programming stage itself. All units of ViennaSQL were successfully tested.

Integration testing :

Integration testing focuses on unit tested modules and build the program structure
that is dictated by the design phase.

System testing:

System testing tests the integration of each module in the system. It also tests to
find discrepancies between the system and it’s original objective, current
specification and system documentation. The primary concern is the compatibility
of individual modules. Entire system is working properly or not will be tested here,
and specified path ODBC connection will correct or not, and giving output or not
are tested here these verifications and validations are done by giving input values
to the system and by comparing with expected output. Top-down testing
implementing here.
Acceptance Testing:

This testing is done to verify the readiness of the system for the implementation.
Acceptance testing begins when the system is complete. Its purpose is to provide
the end user with the confidence that the system is ready for use. It involves
planning and execution of functional tests, performance tests and stress tests in
order to demonstrate that the implemented system satisfies its requirements.

Tools to special importance during acceptance testing include:

Test coverage Analyzer – records the control paths followed for each test case.

Timing Analyzer – also called a profiler, reports the time spent in various regions
of the code are areas to concentrate on to improve system performance.

Coding standards – static analyzers and standard checkers are used to inspect code
for deviations from standards and guidelines.

Test Cases:Test cases are derived to ensure that all statements in the program have
been executed at least once during testing and that all logical conditions have been
executed.

Using White-Box testing methods, the software engineer can drive test cases that

Coding

Index.php

<!DOCTYPE HTML>
<html>
<head>
<title>Hospital Management System</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Ropa+Sans' rel='stylesheet'
type='text/css'>
<link rel="stylesheet" href="css/responsiveslides.css">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="js/responsiveslides.min.js"></script>
<script>
// You can also use "$(window).load(function() {"
$(function () {

// Slideshow 1
$("#slider1").responsiveSlides({
maxwidth: 1600,
speed: 600
});
});
</script>
</
head>
<body>
<!--start-wrap-->

<!--start-header-->
<div class="header">
<div class="wrap">
<!--start-logo-->
<div class="logo">
<a href="index.html" style="font-size: 30px;">Hospital
Management system</a>
</div>
<!--end-logo-->
<!--start-top-nav-->
<div class="top-nav">
<ul>
<li class="active"><a
href="index.html">Home</a></li>

<li><a href="#">Hospital</a></li>
<li><a href="#">Medical</a></li>
<li><a href="contact.php">contact</a></li>
<li><a href="#">Map</a></li>

</ul>
</div>
<div class="clear"> </div>
<!--end-top-nav-->
</div>
<!--end-header-->
</div>
<div class="clear"> </div>
<!--start-image-slider --- >
<div class="image-slider">
<!-- Slideshow 1 -->
<ul class="rslides" id="slider1">
<li><img src="images/slider-image1.jpg" alt=""></li>
<li><img src="images/slider-image2.jpg" alt=""></li>
<li><img src="images/slider-image1.jpg" alt=""></li>
</ul>
<!-- Slideshow 2 -->
</div>
<!--End-image-slider--- >
<div class="clear"> </div>
<div class="content-grids">
<div class="wrap">
<div class="section group">

<div class="listview_1_of_3 images_1_of_3">


<div class="listimg listimg_1_of_2">
<img src="images/grid-img3.png">
</div>
<div class="text list_1_of_2">
<h3>Patients</h3>
<p>Register & Book Appointment</p>
<div class="button"><span><a href="hms/user-
login.php">Click Here</a></span></div>
</div>
</div>

<div class="listview_1_of_3 images_1_of_3">


<div class="listimg listimg_1_of_2">
<img src="images/grid-img1.png">
</div>
<div class="text list_1_of_2">
<h3>Doctors Login</h3>

<div class="button"><span><a
href="hms/doctor/">Click Here</a></span></div>
</div>
</div>
<div class="listview_1_of_3 images_1_of_3">
<div class="listimg listimg_1_of_2">
<img src="images/grid-img2.png">
</div>
<div class="text list_1_of_2">
<h3>Admin Login</h3>

<div class="button"><span><a
href="hms/admin">Click Here</a></span></div>
</div>
</div>
</div>
</div>
</div>
<div class="wrap">
<div class="content-box">
<div class="section group">
<div class="col_1_of_3 span_1_of_3 frist">

</div>
<div class="col_1_of_3 span_1_of_3 second">

</div>
<div class="col_1_of_3 span_1_of_3 frist">

</div>
</div>
</div>
</div>
<div class="clear"> </div>
<div class="footer">
<div class="wrap">
<div class="footer-left">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.php">contact</a></li>
</
</div> ul>

<div class="clear"> </div>


</div>
</div>
<!--end-wrap-->
</body>
</html>
appointment-history.php

<?php
session_start();
error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_GET['cancel']))
{
mysqli_query($con,"update appointment set userStatus='0' where id =
'".$_GET['id']."'");
$_SESSION['msg']="Your appointment canceled !!";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User | Appointment History</title>

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />
</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">

<?php include('include/header.php');?>
<!-- end: TOP NAVBAR -->
<div class="main-content" >
<div class="wrap-content container" id="container">
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">User
| Appointment History</h1>

</div>
<ol class="breadcrumb">
<li>
<span>User </span>
</li>
<li class="active">
<span>Appointment
History</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-
white">

<div class="row">
<div class="col-md-12">

<p style="color:red;"><?php
echo htmlentities($_SESSION['msg']);?>
<?php echo
htmlentities($_SESSION['msg']="");?></p>
<table class="table table-
hover" id="sample-table-1">
<thead>
<tr>
<th
class="center">#</th>
<th
class="hidden-xs">Doctor Name</th>

<th>Specialization</th>

<th>Consultancy Fee</th>

<th>Appointment Date / Time </th>

<th>Appointment Creation Date </th>

<th>Current Status</th>

<th>Action</th>

</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select doctors.doctorName as docname,appointment.* from
appointment join doctors on doctors.id=appointment.doctorId where
appointment.userId='".$_SESSION['id']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>

<tr>
<td
class="center"><?php echo $cnt;?>.</td>
<td
class="hidden-xs"><?php echo $row['docname'];?></td>

<td><?php echo $row['doctorSpecialization'];?></td>

<td><?php echo $row['consultancyFees'];?></td>

<td><?php echo $row['appointmentDate'];?> / <?php echo

$row['appointmentTime'];?>
</td>

<td><?php echo $row['postingDate'];?></td>


<td>
<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{
echo "Active";
}
if(($row['userStatus']==0) && ($row['doctorStatus']==1))
{
echo "Cancel by You";
}

if(($row['userStatus']==1) && ($row['doctorStatus']==0))


{
echo "Cancel by Doctor";
}

?></td>
<td >
<div
class="visible-md visible-lg hidden-sm hidden-xs">
<?php if(($row['userStatus']==1)
($row['doctorStatus']==1)) &&
{ ?>

<a href="appointment-history.php?id=<?php echo $row['id']?>&cancel=update"


onClick="return confirm('Are you sure you want to cancel this appointment ?')"class="btn btn-
transparent btn-xs tooltips" title="Cancel Appointment" tooltip-placement="top"
tooltip="Remove">Cancel</a>
<?php } else {

echo "Canceled";
} ?>
</div>
<div
class="visible-xs visible-sm hidden-md hidden-lg">

<div class="btn-group" dropdown is-open="status.isopen">

<button type="button" class="btn btn-primary btn-o btn-sm dropdown-toggle"


dropdown-toggle>

<i class="fa fa-cog"></i>&nbsp;<span class="caret"></span>

</button>
<ul class="dropdown-menu pull-right dropdown-light" role="menu">

<li>

<a href="#">

Edit

</a>

</li>

<li>

<a href="#">

Share

</a>

</li>

<li>

<a href="#">

Remove

</a>

</li>

</ul>

</div>

</div></td>
</tr>

<?php
$cnt=$cnt+1;
}?>

</tbody>
</table>
</div>
</div>
</div>

<!-- end: BASIC EXAMPLE -->


<!-- end: SELECT BOXES -->

</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/setting.php');?>

<!-- end: SETTINGS -->


</div>
<!-- start: MAIN JAVASCRIPTS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<!-- end: MAIN JAVASCRIPTS -->
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script src="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<script src="assets/js/main.js"></script>
<!-- start: JavaScript Event Handlers for this page -->
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

Dashboard.php
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();

?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User | Dashboard</title>

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />

</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->


<div class="main-content" >
<div class="wrap-content container" id="container">
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">User |
Dashboard</h1>

</div>
<ol class="breadcrumb">
<li>
<span>User</span>
</li>
<li class="active">

<span>Dashboard</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw
bg-white">
<div class="row">
<div class="col-sm-4">
<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-
smile-o fa-stack-1x fa-inverse"></i> </span>
<h2
class="StepTitle">My Profile</h2>

<p
class="links cl-effect-1">
<a
href="edit-profile.php">

Update Profile
</a>
</
</div> p>
</div>
</div>
<div class="col-sm-4">
<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-
paperclip fa-stack-1x fa-inverse"></i> </span>
<h2
class="StepTitle">My Appointments</h2>

<p class="cl-
effect-1">
<a
href="appointment-history.php">

View Appointment History


</a>
</
</div> p>
</div>
</div>
<div class="col-sm-4">
<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-
terminal fa-stack-1x fa-inverse"></i> </span>
<h2
class="StepTitle"> Book My Appointment</h2>

<p
class="links cl-effect-1">
<a
href="book-appointment.php">

Book Appointment
</a>
</p>
</div>
</div>
</div>
</div>
</div>

<!-- end: SELECT BOXES -->

</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/setting.php');?>
<>
<!-- end: SETTINGS -->
</div>
<!-- start: MAIN JAVASCRIPTS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<!-- end: MAIN JAVASCRIPTS -->
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script src="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<script src="assets/js/main.js"></script>
<!-- start: JavaScript Event Handlers for this page -->
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

Registration.php
<?php
include_once('include/config.php');
if(isset($_POST['submit']))
{
$fname=$_POST['full_name'];
$address=$_POST['address'];
$city=$_POST['city'];
$gender=$_POST['gender'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"insert into users(fullname,address,city,gender,email,password)
values('$fname','$address','$city','$gender','$email','$password')");
if($query)
{
echo "<script>alert('Successfully Registered. You can login now');</script>";
//header('location:user-login.php');
}
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
<title>User Registration</title>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />

<script type="text/javascript">
function valid()
{
if(document.registration.password.value!= document.registration.password_again.value)
{
alert("Password and Confirm Password Field do not match !!");
document.registration.password_again.focus();
return false;
}
return true;
}
</script>

</head>

<body class="login">
<!-- start: REGISTRATION -->
<div class="row">
<div class="main-login col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2
col-md-4 col-md-offset-4">
<div class="logo margin-top-30">
<a href="../index.html"><h2>HMS | Patient
Registration</h2></a>
</div>
<!-- start: REGISTER BOX -->
<div class="box-register">
<form name="registration" id="registration"
method="post" onSubmit="return valid();">
<fieldset>
<legend>
Sign Up
</legend>
<p>
Enter your personal details below:
</p>
<div class="form-group">
<input type="text"
class="form- control" name="full_name" placeholder="Full Name" required>
</div>
<div class="form-group">
<input type="text" class="form-
control" name="address" placeholder="Address" required>
</div>
<div class="form-group">
<input type="text" class="form-
control" name="city" placeholder="City" required>
</div>
<div class="form-group">
<label class="block">
Gender
</label>
<div class="clip-radio radio-
primary">
<input type="radio" id="rg-
female" name="gender" value="female" >
<label for="rg-female">
Female
</label>
<input type="radio" id="rg-
male" name="gender" value="male">
<label for="rg-male">
Male
</label>
</div>
</div>
<p>
Enter your account details below:
</p>
<div class="form-group">
<span class="input-icon">
<input type="email"
class="form-control" name="email" id="email" onBlur="userAvailability()"
placeholder="Email" required>
<i class="fa fa-
envelope"></i> </span>
<span id="user-availability-
status1" style="font-size:12px;"></span>
</div>
<div class="form-group">
<span class="input-icon">
<input type="password"
class="form-control" id="password" name="password" placeholder="Password" required>
<i class="fa fa-lock"></i>
</span>
</div>
<div class="form-group">
<span class="input-icon">
<input type="password"
class="form-control" id="password_again" name="password_again" placeholder="Password
Again" required>
<i class="fa fa-lock"></i>
</span>
</div>
<div class="form-group">
<div class="checkbox clip-check
check-primary">
<input type="checkbox"
id="agree" value="agree" checked="true" readonly=" true">
<label for="agree">
I agree
</label>
</div>
</div>
<div class="form-actions">
<p>
Already have an account?
<a href="user-login.php">
Log-in
</a>
</p>
<button type="submit" class="btn
btn-primary pull-right" id="submit" name="submit">
Submit <i class="fa fa-arrow-
circle-right"></i>
</button>
</div>
</fieldset>
</form>

<div class="copyright">
&copy; <span class="current-year"></span><span
class="text-bold text-uppercase"> HMS</span>. <span>All rights reserved</span>
</div>

</div>

</div>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/login.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
Login.init();
});
</script>

<script>
function userAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'email='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>

</body>
<!-- end: BODY -->
</html>

Checklogin.php
<?php
function check_login()
{
if(strlen($_SESSION['login'])==0)
{
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra="../admin.php";
$_SESSION["login"]="";
header("Location: http://$host$uri/$extra");
}
}
?>

edit-profile.php
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$address=$_POST['address'];
$city=$_POST['city'];
$gender=$_POST['gender'];

$sql=mysqli_query($con,"Update users set


fullName='$fname',address='$address',city='$city',gender='$gender' where
id='".$_SESSION['id']."'");
if($sql)
{
$msg="Your Profile updated Successfully";

}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User | Edit Profile</title>

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />

</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->


<div class="main-content" >
<div class="wrap-content container" id="container">
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">User |
Edit Profile</h1>

</div>
<ol class="breadcrumb">
<li>
<span>User </span>
</li>
<li class="active">
<span>Edit
Profile</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-
white">
<div class="row">
<div class="col-md-12">
<h5 style="color: green; font-size:18px;
">
<?php if($msg) { echo htmlentities($msg);}?>
<div class="row margin-top-
</h5> 30">
<div class="col-lg-8
col-md-12">
<div
class="panel panel-white">
<div
class="panel-heading">
<h5 class="panel-title">Edit Profile</h5>
</div>
<div
class="panel-body">
<?php
$sql=mysqli_query($con,"select * from users where id='".$_SESSION['id']."'");
while($data=mysqli_fetch_array($sql))
{
?>
<h4><?php echo htmlentities($data['fullName']);?>'s Profile</h4>
<p><b>Profile Reg. Date: </b><?php echo htmlentities($data['regDate']);?></p>
<?php if($data['updationDate']){?>
<p><b>Profile Last Updation Date: </b><?php echo htmlentities($data['updationDate']);?></p>
<?php } ?>
<hr />
<form role="form" name="edit" method="post">

<div class="form-group">

<label for="fname">

User Name
</label>
<input type="text" name="fname" class="form-control" value="<?php echo
htmlentities($data['fullName']);?>" >

</div>

<div class="form-group">

<label for="address">

Address

</label>
<textarea name="address" class="form-control"><?php
echo htmlentities($data['address']);?></textarea>

</div>
<div class="form-group">

<label for="city">

City

</label>
<input type="text" name="city" class="form-control" required="required"
value="<?php echo htmlentities($data['city']);?>" >

</div>

<div class="form-group">
<label for="gender">

Gender

</label>

<select name="gender" class="form-control" required="required" >


<option value="<?php echo htmlentities($data['gender']);?>"><?php echo
htmlentities($data['gender']);?></option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>

<div class="form-group">
<label for="fess">

User Email

</label>
<input type="email" name="uemail" class="form-control"
readonly="readonly" value="<?php echo htmlentities($data['email']);?>">
<a href="change-emaild.php">Update your email id</a>

</div>

<button type="submit" name="submit" class="btn btn-o btn-primary">

Update

</button>

</form>

<?php } ?>
</div>
</div>
</div>

</div>
</div>
<div class="col-lg-12 col-
md-12">
<div
class="panel panel-white">
</div>
</div>
</div>
</div>

<!-- end: BASIC EXAMPLE -->

<!-- end: SELECT BOXES -->

</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/setting.php');?>

<!-- end: SETTINGS -->


</div>
<!-- start: MAIN JAVASCRIPTS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<!-- end: MAIN JAVASCRIPTS -->
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script src="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<script src="assets/js/main.js"></script>
<!-- start: JavaScript Event Handlers for this page -->
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

get_doctor.php

<?php
include('include/config.php');
if(!empty($_POST["specilizationid"]))
{

$sql=mysqli_query($con,"select doctorName,id from doctors where specilization='".


$_POST['specilizationid']."'");?>
<option selected="selected">Select Doctor </option>
<?php
while($row=mysqli_fetch_array($sql))
{?>
<option value="<?php echo htmlentities($row['id']); ?>"><?php echo
htmlentities($row['doctorName']); ?></option>
<?php
}
}

if(!empty($_POST["doctor"]))
{

$sql=mysqli_query($con,"select docFees from doctors where id='".$_POST['doctor']."'");


while($row=mysqli_fetch_array($sql))
{?>
<option value="<?php echo htmlentities($row['docFees']); ?>"><?php echo
htmlentities($row['docFees']); ?></option>
<?php
}
}
?>

user-login.php
<?php
session_start();
error_reporting(0);
include("include/config.php");
if(isset($_POST['submit']))
{
$ret=mysqli_query($con,"SELECT * FROM users WHERE email='".$_POST['username']."' and
password='".md5($_POST['password'])."'");
$num=mysqli_fetch_array($ret);
if($num>0)
{
$extra="dashboard.php";//
$_SESSION['login']=$_POST['username'];
$_SESSION['id']=$num['id'];
$host=$_SERVER['HTTP_HOST'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=1;
// For stroing log if user login successfull
$log=mysqli_query($con,"insert into userlog(uid,username,userip,status) values('".$_SESSION['id']."','".
$_SESSION['login']."','$uip','$status')");
$uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
else
{
// For stroing log if user login unsuccessfull
$_SESSION['login']=$_POST['username'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=0;
mysqli_query($con,"insert into userlog(username,userip,status)
values('".$_SESSION['login']."','$uip','$status')");
$_SESSION['errmsg']="Invalid username or password";
$extra="user-login.php";
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User-Login</title>

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />
</head>
<body class="login">
<div class="row">
<div class="main-login col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2
col-md-4 col-md-offset-4">
<div class="logo margin-top-30">
<a href="../index.html"><h2> HMS | Patient Login</h2></a>
</div>

<div class="box-login">
<form class="form-login" method="post">
<fieldset>
<legend>
Sign in to your account
</legend>
<p>
Please enter your name and
password to log in.<br />
<span style="color:red;"><?php
echo $_SESSION['errmsg']; ?><?php echo $_SESSION['errmsg']="";?></span>
</p>
<div class="form-group">
<span class="input-icon">
<input type="text"
class="form-control" name="username" placeholder="Username">
<i class="fa fa-user"></i>
</span>
</div>
<div class="form-group form-actions">
<span class="input-icon">
<input type="password"
class="form-control password" name="password" placeholder="Password">
<i class="fa fa-lock"></i>
</span><a href="forgot-
password.php">
Forgot Password ?
</a>
</div>
<div class="form-actions">

<button type="submit" class="btn


btn-primary pull-right" name="submit">
Login <i class="fa fa-
circle-right"></i>
arrow-
</div>
</button>
<div class="new-account">
Don't have an account yet?
<a href="registration.php">
Create an account
</a>
</div>
</fieldset>
</form>

<div class="copyright">
&copy; <span class="current-year"></span><span
class="text-bold text-uppercase"> HMS</span>. <span>All rights reserved</span>
</div>

</div>

</div>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="assets/js/main.js"></script>

<script src="assets/js/login.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
Login.init();
});
</script>

</body>
<!-- end: BODY -->
</html>

view-medhistory.php

<?php
session_start();
error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
{

$vid=$_GET['viewid'];
$bp=$_POST['bp'];
$bs=$_POST['bs'];
$weight=$_POST['weight'];
$temp=$_POST['temp'];
$pres=$_POST['pres'];

$query.=mysqli_query($con, "insert
tblmedicalhistory(PatientID,BloodPressure,BloodSugar,Weight,Temperature,MedicalPres)value( '$vid','$bp','$b
s','$weight','$temp','$pres')");
if ($query) {
echo '<script>alert("Medicle history has been added.")</script>';
echo "<script>window.location.href ='manage-patient.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Users | Medical History</title>

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400, 500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />
</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<div class="main-content" >
<div class="wrap-content container" id="container">
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">Users | Medical History</h1>
</div>
<ol class="breadcrumb">
<li>
<span>Users</span>
</li>
<li class="active">
<span>Medical History</span>
</li>
</ol>
</div>
</section>
<div class="container-fluid container-fullw bg-white">
<div class="row">
<div class="col-md-12">
<h5 class="over-title margin-bottom-15">Users <span class="text-bold">Medical
History</span></h5>
<?php
$vid=$_GET['viewid'];
$ret=mysqli_query($con,"select * from tblpatient where ID='$vid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<table border="1" class="table table-bordered">
<tr align="center">
<td colspan="4" style="font-size:20px;color:blue">
Patient Details</td></tr>

<tr>
<th scope>Patient Name</th>
<td><?php echo $row['PatientName'];?></td>
<th scope>Patient Email</th>
<td><?php echo $row['PatientEmail'];?></td>
</tr>
<tr>
<th scope>Patient Mobile Number</th>
<td><?php echo $row['PatientContno'];?></td>
<th>Patient Address</th>
<td><?php echo $row['PatientAdd'];?></td>
</tr>
<tr>
<th>Patient Gender</th>
<td><?php echo $row['PatientGender'];?></td>
<th>Patient Age</th>
<td><?php echo $row['PatientAge'];?></td>
</tr>
<tr>

<th>Patient Medical History(if any)</th>


<td><?php echo $row['PatientMedhis'];?></td>
<th>Patient Reg Date</th>
<td><?php echo $row['CreationDate'];?></td>
</tr>

<?php }?>
</table>
<?php

$ret=mysqli_query($con,"select * from tblmedicalhistory where PatientID='$vid'");

?>
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse:
collapse; border-spacing: 0; width: 100%;">
<tr align="center">
<th colspan="8" >Medical History</th>
</tr>
<tr>
<th>#</th>
<th>Blood Pressure</th>
<th>Weight</th>
<th>Blood Sugar</th>
<th>Body Temprature</th>
<th>Medical Prescription</th>
<th>Visit Date</th>
</tr>
<?php
while ($row=mysqli_fetch_array($ret)) {
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo $row['BloodPressure'];?></td>
<td><?php echo $row['Weight'];?></td>
<td><?php echo $row['BloodSugar'];?></td>
<td><?php echo $row['Temperature'];?></td>
<td><?php echo $row['MedicalPres'];?></td>
<td><?php echo $row['CreationDate'];?></td>
</tr>
<?php $cnt=$cnt+1;} ?>
</table>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/setting.php');?>

<!-- end: SETTINGS -->


</div>
<!-- start: MAIN JAVASCRIPTS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<!-- end: MAIN JAVASCRIPTS -->
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script src="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<script src="assets/js/main.js"></script>
<!-- start: JavaScript Event Handlers for this page -->
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>
OUTPUT SCREENS
Main Screen

Patient Registration

Patient Login
Patient Features

Doctor Login
Doctor Features

Doctor Add Patient

Admin
Admin Features

Manage Users

Manage Doctors
Appointments

Manage Patients

New Queries
CONCLUSION
Hospital management System started in the United States and made its way all
over the world. It was reinforced by healthcare facilities to the likes of
Obamacare and in the times to come, it will make its inseparable mark and
management, and existence of hospitals will be unimaginable without it. Thus, all
hospitals should try and implement the best of these.

According to the aim of efficient developing the Medical Informatics industry, in


this article were addressed definition of the concepts, information systems,
standards, development ,medical informatics industry in the country, the role of
government and infrastructure. So we hope that the administrators of medical
services take an effective step towards the development of medical services with
playing a role in development of the informatics industry and presenting
standardization

FUTURE ENHANCEMENTS

Our present modern information system makes use of computers for the execution,
each of them connected through an optimized network. Healthcare is the most
critical aspect of our society, and many health care providers face challenges to
offer practical and active services to patients.
Considering a multispeciality hospital, many people enter and exit the hospital in a
day and maintaining their records safely is tedious. To reduce this type of burdens
and to manage the financial, hospital administration and clinical aspects, Hospital
management system came into existence.

Apart from that automating your hospital's processes and implementing them
cannot be done too easily, you need an efficient hospital management system to
take care of everything that is happening around the labs and hospitals.

 Processing Speed & Results


 Cost Effective
 Reduction in Errors
 Data Security & Retrieving Ability
 Improved Patient Care
 Quality & Compliance

References

For PHP
 https://www.w3schools.com/php/default.asp
 https://www.sitepoint.com/php/
 https://www.php.net/
 https://jquery.com/

For XAMPP
 https://www.apachefriends.org/download.html

For MySQL
 https://www.mysql.com/
 http://www.mysqltutorial.org

You might also like