Hospital Management
Hospital Management
ON
I, R. Anish, hereby declare that the work presented in the project report entitled “HOSPITAL
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
The matter embodied in this project report has not been submitted else where by anybody
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
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
Sandeep Singh
CONTENTS
1. INTRODUCTION
1.2 Scope
6. TESTING
7. CODING
8. OUTPUT SCREENS
9. CONCLUSION
11. References
1. INTRODUCTION
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.
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
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
Opera
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
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.
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.
<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.
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
JAVASCRIPTS FUNCTIONS
Declaration of function
…
//BODY
…
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
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:
Relational Database:
Features of SQL
PHP
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?
UML Diagrams:
Actor:
A coherent set of roles that users of use cases play when interacting with the
use `cases.
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
Represent attributes.
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
Entities are represented by labeled rectangles. The label is the name of 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
nouns.
line. Mandatory existence is shown by the bar (looks like a 1) next to the
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
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
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
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.
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.
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:
Testing Principles
testing begins
3. Testing should begin on a small scale and progress towards testing in large
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:
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
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.
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.
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="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>
<?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>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>
$row['appointmentTime'];?>
</td>
?></td>
<td >
<div
class="visible-md visible-lg hidden-sm hidden-xs">
<?php if(($row['userStatus']==1)
($row['doctorStatus']==1)) &&
{ ?>
echo "Canceled";
} ?>
</div>
<div
class="visible-xs visible-sm hidden-md hidden-lg">
</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>
</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->
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');?>
</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">
<p
class="links cl-effect-1">
<a
href="book-appointment.php">
Book Appointment
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->
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">
© <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'];
}
?>
<!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');?>
</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>
<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>
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>
</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->
get_doctor.php
<?php
include('include/config.php');
if(!empty($_POST["specilizationid"]))
{
if(!empty($_POST["doctor"]))
{
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">
<div class="copyright">
© <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>
<?php }?>
</table>
<?php
?>
<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 -->
Patient Registration
Patient Login
Patient Features
Doctor Login
Doctor Features
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.
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.
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