AAtemplate PDF
AAtemplate PDF
AAtemplate PDF
Dilna K Daison
(VAS20MCA-2021)
CERTIFICATE
This is to certify that the report titled Online Doctor Appointment System is a bona-fide record
of the work related to the paper 20MCA245 Mini Project done by Dilna K Daison (Reg. No.
VAS20MCA-2021) of S3 MCA (2020 admissions) class of Vidya Academy of Science & Tech-
nology, Thrissur - 680501 in partial fulfillment of the requirement for the award of the Degree of
Master of Computer Applications of APJ Abdul Kalam Technological University.
Declaration
I, Dilna K Daison , studying in Third Semester MCA (2020 admissions) class of Vidya Academy
of Science & Technology, Thrissur – 680501, hereby declare that the project report (“ Online
Doctor Appointment System”) submitted by me is a bona fide work done by me under supervision
of Mr Manesh D (Asst. Prof.) . This submission represents my ideas in my own words and where
ideas or words of others have been included, I have adequately and accurately cited and referenced
the original sources. I also declare that I have adhered to ethics of academic honesty and integrity
and have not misrepresented or fabricated any data or idea or fact or source in my submission. I
understand that any violation of the above will be a cause for disciplinary action by the institute
and/or the University and can also evoke penal action from the sources which have thus not been
properly cited or from whom proper permission has not been obtained. This report has not been
previously formed the basis for the award of any degree, diploma or similar title of any other
University.
Acknowledgment
I wish to record my indebtedness and thankfulness to all who helped me to prepare this Report
titled “ Online Doctor Appointment System ” and present it in a satisfactory way. This Report is
part of my work related to the paper 20MCA245 Mini Project.
I am especially thankful to my guide and supervisor Mr Manesh D (Asst. Prof.) in the
Department of Computer Applications for giving me valuable suggestions and critical inputs in the
preparation of this report. I am also thankful to Dr V N Krishnachandran, the Head of Computer
Applications Department for encouragement.
My friends in my class have always been helpful and I am grateful to them for patiently
listening to my presentations on my work related of the Project.
Dilna K Daison
(Reg. No. VAS20MCA-2021)
S3 MCA (2020 Admissions)
Vidya Academy of Science & Technology
Thrissur -680 501.
Synopsis
Efficient doctor patient portal is a managing system that helps doctor as well as the patients by
providing options of booking appointments as per the convenience of both doctor and patients with
the motive of medical progress. Through this system, doctors can easily manage the appointment
slots online. System will make all the empty slots visibly available to the patients, which are
booked by the name of any particular patient. The system makes it easy to manage doctor and their
availability on various dates and timings. This allows for an automated patient doctor handling
system through an online interface.
It stores all the patient details, patients profile,records etc. This system enables doctor manage
patient records and appointments. User can enter their details, update their profile and they can
select doctors to make appointments. Other than that, the system is user friendly and it can help
the clinic to manage their appointments. The system helps to avoid making duplicate appoint-
ments. Users can view available doctors and their timings and can make appointments according
to it. Users also get an option to cancel their appointments. Users can view their upcoming ap-
pointments. The system also allows doctor to log in. Doctors can edit their profile and view their
upcoming appointments, patients,Add records of patients etc.
Contents
Acknowledgment iv
Synopsis v
Table of Contents vi
List of Figures ix
1 INTRODUCTION 2
1.1 Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Purpose of the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 SYSTEM ANALYSIS 4
2.1 The Existing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Proposed System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 FEASIBILITY STUDY 5
3.1 Technical Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 Economical Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.3 Operational Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 SYSTEM DESIGN 7
4.1 Input Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2 Output Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
7 CONCLUSION 32
APPENDICES 34
B TABLE STRUCTURE 38
C SAMPLE SCREENSHOTS 40
D Sample code 49
D.1 login.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
D.2 Appointment.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Bibliography 60
List of Tables
List of Figures
5.1 ER Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
PROJECT REPORT
Chapter 1
INTRODUCTION
Efficient doctor patient portal is a managing system that helps doctors as well as the patients by
providing options of booking appointments as per the convenience of both doctor and patients with
the motive of medical progress. Through this system, doctors can easily manage the appointment
slots online. System will make all the empty slots visibly available to the patients, which are
booked by the name of any particular patient. The system makes it easy to manage various doctors
and their availability on various dates and timings. This allows for an automated patient doctor
handling system through an online interface.
1.2 Objectives
The main objective is to develop a PHP based web application named “Online Doctor Appoint-
ment System” that covers all the aspects of making appointment of doctor. It enables healthcare
providers to improve operational effectiveness, reduce costs, reduce medical errors, reduce time
consumption and enhance delivery of quality of care. This system help reduce the problems occur
when using the manual system and helps patients to skip endless queues. The important thing is
it will become easier for the data record and retrieval. This software also stores all the patient de-
tails, patients profile etc. This system enables doctor to manage patient records and appointments.
User can enter their details, update their profile and they can select doctors to make appointments.
Other than that, the system is user friendly and it can help the clinic to manage their appointments.
The system helps to avoid making duplicate appointments. Users can view available doctors and
their timings and can make appointments according to it. Users also get an option to cancel their
appointments. Users can view their upcoming appointments. The system also allows doctor to log
in. Doctors can edit their profile and view their upcoming appointments, patients etc. The Project
Contains:
• Doctor
The Doctor is like admin and has all the information about all the patients and about their
appointments, records etc. This module is divided into different sub-modules:-
• Patient
– Registration - A new patient will have to register in the system by providing essential
details.
– Login - A patient must login with his user name and password to the system after
registration.
– Manage Profile -A patient can change their profile details also.
– Manage Appointments - A patient can book appointments and they can also cancel
appointment
– Viewing Doctor Availability -A patient can view Doctor Availability data on web page.
Purpose of this project is to create doctor patient handling management system that will help
doctors in their work and will also help patients to book doctor appointments . The system allows
doctors to manage their booking slots . Patients are allowed to book empty slots online and those
slots are reserved in their name. If anybody is ill and wants to visit a doctor for check up, he or she
needs to visit the hospital and waits until the doctor is available. The patient also waits in a queue
while getting appointment. If the doctor cancels the appointment for some emergency reasons
then the patient is not able to know about the cancellation of the appointment unless or until he or
she visits the clinic. As the Online Appointment System is developing rapidly, therefore, one can
use the system to overcome such problems and inconvenience for the patients.
Chapter 2
SYSTEM ANALYSIS
The Existing system has a lot of paper work. To maintain the records of appointments and service
manually, is a Time consuming task. With the increase in content of database, it will become
a huge task to maintain the database. Requires large quantities of file cabinets. The retrieval of
records of previously registered patients will be a tedious task. Lack of security for the records and
there is a chance of manipulation of records. If someone want to check the details of the available
doctor the Existing system does not provide any necessary detail of this type.
The proposed system that will helps doctors in their work and will also help patients to book doctor
appointments and view medical progress. The system allows doctors and patient to manage their
booking slots online. Patients are allowed to book empty slots online and those slots are reserved
in their name and id. The system manages the appointment data for multiple doctors of various
date and times based on the requirement. Each time a user visits a doctor his/he medical history
as and when needed. At the same time a doctor may view patients previews medical history while
the patient visit him.
Chapter 3
FEASIBILITY STUDY
Technical feasibility centers on the existing manual system of the test management process and
to what extent it can support the system.According to feasibility analysis procedure the technical
feasibility of the system is analyzed and the technical requirements such as software facilities,
procedure, inputs are identified. It is also one of the important phases of the system development
activities. It is technically feasible, since the whole system is designed into the latest technologies
like PHP and MYSQL Server which are the most recent technologies to develop web based sys-
tems and design databases. The system offers greater levels of user friendliness combined with
greater processing speed. Therefore, the cost of maintenance can be reduced. Since, processing
speed is very high and the work is reduced in the maintenance point of view management convince
that the project is operationally feasible.
Economic analysis is most frequently used for evaluation of the effectiveness of the system. More
commonly knows as cost/benefit analysis the procedure is to determine the benefit and saving that
are expected from a system and compare them with costs, decisions is made to design and imple-
ment the system. This part of feasibility study gives the top management the economic justification
for the new system. This is an important input to the management the management, because very
often the top management does not like to get confounded by the various technicalities that bound
to be associated with a project of this kind. A simple economic analysis that gives the actual
comparison of costs and benefits is much more meaningful in such cases. It is economically fea-
sible, it will only require a single operator to operate the system, who is responsible for entering
the data into the database via a user interface provided to him, who can also able to show all the
data in HTML tabular form so to provide information regarding the students who are either taken
admission or to take admission, since it requires only a single person to operate the whole system
thus reduces the cost to operate the system. In the system, the organization is most satisfied by
economic feasibility. Because, if the organization implements this system, it need not require any
additional hardware resources as well as it will be saving lot of time.
It is Operational feasible, since the system is providing a attractive user interface to the opera-
tor/end user, so they feel very easy to work onto it. Response to operator/end user is very fast
and very good. Since, as we mentioned above that it requires much less amount of cost, it uses
computer work so it is very fast to operate and it is very easy for user to work on it.
It centers on the reaction of the users. To train the user in an easy matter since the proposed
systemis easy to understand and operate. Any one, with the knowledge of the basic computer
conceptscan operate the system. The user has no need to know anything about software used and
also tosome extent to hardware used
Chapter 4
SYSTEM DESIGN
The system design develops the architectural detail required to build a system or product. As in the
case of any systematic approach, this software too has undergone the best possible design phase
fine tuning all efficiency, performance and accuracy levels. The first step in system designing is
to determine how the output is to be produced and in what format. Samples of the output and
input are also presented. In the second step, input data and master files are to be designed to
meet requirement of the proposed output. The processing phases are handled through program
construction and testing, including a list of the programs needed to meet the system’s objectives
and complete documentation
The input design is the link between the information system and the user. It comprises the de-
veloping specification and procedures for data preparation and those steps are necessary to put
transaction data into a usable form for processing data entry. The activity of putting data into the
computer for processing can be achieved by inspecting the computer to read data from a written
or printed document or it can occur by having people keying the data directly into the system. The
design of input focuses on controlling the amount of input required, controlling errors, avoiding
delay, avoiding extra steps and keeping the process simple. The system needs the data regard-
ing the asset items, depreciation rates, asset transfer, physical verification for various validation,
checking, calculation and report generation. The error raising method is also included in the soft-
ware, which helps to raise error message while wrong entry of input is done.
Login Page
<?php
global $uname;
global $pwd;
?>
<?php
include ’C:\New xampp\htdocs\mini project\
doctor_patient\connection.php’;
if(isset($_POST[’Submit’])){
$uname=$_POST[’email’];
$pwd=$_POST[’pwd’];
$query="select * from patient where patientEmail=’$uname’ and
password=’$pwd’";
$res=mysqli_query($conn,$query);
$count=mysqli_num_rows($res);
if($count>0)
{
$row=mysqli_fetch_array($res);
header("Location:home.php");
?>
<script>
alert("Login successfully");
</script>
<?php
}
else
{
?>
<script type="text/javascript">
alert ("Login failed");
</script>
<?php
}
mysqli_close($conn);
}
?>
<!doctype html>
<html lang="en">
<head>
<title>Login </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?
family=Lato:300,400,700&display=swap" rel="stylesheet">
</head>
<body class="img js-fullheight" style="background-image:
url(login1/images/img2.webp);">
<section class="ftco-section">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6 text-center mb-5">
<h2 class="heading-section">Login </h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-6 col-lg-4">
<div class="login-wrap p-0">
<h3 class="mb-4 text-center">Have an account?</h3>
<form action="" class="signin-form" method="post">
<div class="form-group">
<input type="email" class="form-control" name="email"
placeholder="Email" required>
</div>
<div class="form-group">
<input id="password-field" type="password"
class="form-control"
name="pwd" placeholder="Password" required>
<span toggle="#password-field"
class="fa fa-fw fa-eye field-icon
toggle-password"></span>
</div>
<div class="form-group">
<button type="submit" name="Submit"
class="form-control btn btn-primary submit px-3">
Sign In</button>
</div>
<div class="form-group d-md-flex">
<div class="w-50">
</div>
<div class="w-50 text-md-right">
<a href="#" style="color: #fff"></a>
</div>
</div>
</form>
<p class="w-100 text-center"> Don’t have account
<a href="register.php">click here</a></p>
<p class="w-150 text-center" style="color:white;">
Back to Home <a href="index.php">click here</a>
</p>
<div class="social d-flex text-center">
</div>
</div>
</div>
</div>
</div>
</section>
<script src="login1/js/jquery.min.js"></script>
<script src="login1/js/popper.js"></script>
<script src="login1/js/bootstrap.min.js"></script>
<script src="login1/js/main.js"></script>
</body>
</html>
In output design the emphasis is given on producing a hard copy of the information required as the
output on the screen in some predefined manner. Computer output is the most important process
that involves designing necessary outputs that should be given to various users according to their
requirements. Efficient intelligible output design should improve system relationship with the user
and help in decision making. Forms are designed with tools like Text boxes, List boxes, Radio
button etc... which are very user friendly and self explanatory. Proper validations are given to the
text boxes with user understandable error messages which help the user to correct it and submit
again. The data in the system is stored and retrieved from the database. Designing the database is
a part of the 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.
The general theme behind the database is to handle the information as an integrated whole. When
designing the database, we have to make decisions regarding how best to make some system in
the real world and model it as database. The overall objective in the development of database
technology has been to treat data as an organization resource and as an integrated whole. DBMS
allow data to be protected and organized separately from other resources. Database is an inte-
grated collection of data. The most significant form of data as seen by the programmers is data
as stored on the direct access storage devices. This is the difference between logical and physical
design. Database files are the key source of information in to the system. The files should be
properly designed and planned for collections, accumulations, editing and retrieving the required
information. This database contains tables, where each table corresponds to one particular type
of information. Each piece of information in the table is called a filed or column. A table also
contains records, which is a set of fields. All records in a table have the same set of fields with
different information. There are primary key fields that uniquely identify record table.
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Welcome Dr <?php echo $userRow[’doctorFirstName’];?>
<?php echo $userRow[’doctorLastName’];?></title>
<!-- Bootstrap Core CSS -->
<!-- <link href="assets/
css/bootstrap.css" rel="stylesheet"> -->
<link href="assets/css/material.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="assets/css/sb-admin.css" rel="stylesheet">
<link href="assets/css/time/
bootstrap-clockpicker.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/font-awesome
/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<li class="dropdown">
<a href="#" class="dropdown-toggle"
data-toggle="dropdown">
<a href="doctordashboard.php">
<i class="fa fa-fw fa-dashboard">
</i> Dashboard</a>
</li>
<li>
<a href="addschedule.php">
<i class="fa fa-fw fa-table">
</i> Doctor Schedule</a>
</li>
<li class="active">
<a href="patientlist.php">
<i class="fa fa-fw fa-edit">
</i> Patient List</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
<!-- navigation end -->
<div id="page-wrapper">
<div class="container-fluid">
</div>
<!-- Page Heading end-->
</div>
<!-- panel heading end -->
<div class="panel-body">
<!-- panel content start -->
<!-- Table -->
<table class="table table-hover
table-bordered">
<thead>
<tr class="filters">
<th><input type="text"
class="form-control"
placeholder="patient ID"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="Name"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="Password"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="ContactNo."
disabled></th>
<!-- <th><input type="text"
class="form-control"
placeholder="Email"
disabled></th> -->
<th><input type="text"
class="form-control"
placeholder="Gender"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="Status"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="Birthdate"
disabled></th>
<th><input type="text"
class="form-control"
placeholder="Address"
disabled></th>
</tr>
</thead>
<?php
$result=mysqli_query($conn,
"SELECT * FROM patient");
while ($patientRow=mysqli_fetch_array($result)) {
echo "<tbody>";
echo "<tr>";
echo "<td>" .
$patientRow[’patientID’] .
"</td>";
echo "<td>" . $patientRow
[’patientLastName’] ."</td>";
echo "<td>" .
$patientRow[’password’] .
"</td>";
echo "<td>" . $patientRow
[’patientMobileNum’] ."</td>";
// echo "<td>" . $patientRow
[’patientEmail’] . "</td>";
echo "<td>" . $patientRow
[’patientGender’] . "</td>";
echo "<td>" . $patientRow
[’patientMaritialStatus’]
."</td>";
echo "<td>" . $patientRow
[’patientDOB’] . "</td>";
echo "<td>" . $patientRow
[’patientPlace’] . "</td>";
echo "<form method=’POST’>";
echo "<td class=’text-center’>
<a href=’#’ id=’".$patientRow
[’patientEmail’]."’
class=’delete’>
<span class=’glyphicon
glyphicon-trash’
aria-hidden=’true’></span></a>
</td>";
}
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "<div class=’panel panel-default’>";
echo "<div class=’col-md-
offset-3 pull-right’>";
echo "<button class=’btn btn-primary’
type=’submit’ value=’Submit’ name=’submit’>
Update</button>";
echo "</div>";
echo "</div>";
?>
<!-- panel content end -->
<!-- panel end -->
</div>
</div>
<!-- panel start -->
</div>
</div>
<!-- /#wrapper -->
$(this).parent().parent().
fadeOut(300, function(){ $(this).remove();});
}
return false;
});
});
</script>
</body>
</html>
Data flow diagram (DFD) is a graphical representation of the flow of the data through an informa-
tion system, modeling its process aspects. A DFD is often used as a preliminary step to create an
overview of the system, which can later be elaborated and it is also used for the visualization of
data processing (structured design).
– Arrows
– Circles
– Squares
– Open rectangle
– No two data flows, squares or circles can have the same name
– Draw all the data flows around the outside of the diagram.
– Choose meaningful names for data flows, process and data stores, use strong verbs
followed by nouns.
– Control information such as record contents, password and validation requirements are
not pertinent to a data flow diagram.
Level 0
Level 1
Chapter 5
Chapter 6
6.1 Implementation
Implementation is the stage in the project where the theoretical design is turned into a working
system and is giving confidence on the new system for the user that it will work efficiently and
effectively. It involves careful planning, investigation of the current system and its constraints
on implementation, design of methods to achieve the changeover, an evaluation, of change over
methods. Apart from planning major task preparing the implementation are education and training
of users. The more complex system being implemented, the more involved will be the system
analysis and the design effort required just for implementation. The implementation process begins
with preparing a plan for the implementation of the system. According to this plan, the activities
are to be carried out, decisions made regarding the equipment and resources and the additional
equipment has to be acquired to implement the new system. Implementation is the final and the
most important phase. The most critical stage in achieving a successful new system is giving the
users confidence that the new system will work and be effective. The system can be implemented
only after through testing is done and if it is found to be working according to the specification.
An implementation co-ordination committee based on policies of individual organization has been
appointed. The implementation process begins with preparing a plan for the implementation of the
system. This method also offers the greatest security since the old system can take over with the
errors are found or inability to handle certain type of transactions by while using the new system.
This is the first level of testing. In this different modules are tested against the specification
produces during the design of the modules. Unit testing is done during the coding phase and to
test the internal logic of the modules. It refers to the verification of single program module in
an isolated environment. Unit testing first focuses on the modules independently of one another
to locate errors. After coding each dialogue is tested and run individually. All necessary coding
where removed and it was ensured that all the modules are worked, as the programmer would
expect. Logical errors found where corrected. So, by working all the modules independently and
verifying the outputs of each module in the presence of staff we conducted that the programs was
functioning as expected
Data can be lost across an interface: one module can be adverse effort on another; sub functions
when combined may not produce the desired major functions. Integration testing is a systematic
testing for constructing the program structure. Conducting the tests is to uncover errors associated
within the interface. The objective is to take unit tested to modules and build a program structure.
All the modules are combined and tested as whole. Here correction is difficult because the vast
expenses of the entire program complicate the isolation of causes. Thus in the integration testing
step, all the errors uncovered are corrected for the next testing steps.
Black Box Testing also called behavioral testing, focuses on the functional requirement of soft-
ware. It is complementary approach that is likely to uncover a diffrent class of errors than whitebox
method. Black Box testing is done to findout the following information:
• Interface errors
• Performance error
• Termination error
The mentioned testing is carried out successfully for this application according to the user’s re-
quirement specification.
White Box Testing sometimes called glass box testing is test case design method that goes the
control structure of the procedural design to derive test cases. Using white box testing methods,
the software engineer can derive test cases that:
• Guarantee that all independent paths with in a module have been exercise at least once.
• Executes all loops at their boundaries and within their operational boundaries
6.3 Validation
The definition for the validation testing is that the validation succeeds when software functions in
a manner that can be reasonably expected by the customer. The expectations are defined in the
software requirements specifications. Validation criteria: The number of characters in the pass-
word must contain minimum of four characters. The password will be treated as invalid when the
number of characters in it is less than six. Our system, test whether the required fields are empty
or not. This system ensures that the fields must be filled and also ensure the minimum range of
some fields. After performing the validation testing, the next step is output testing of the proposed
system since no system could be usefuk if it does not produce the required output in the specified
format. The output generated or displayed by the system under consideration is tested asking the
users about the format required by then. Here, the output is considered into ways: one is on the
screen and the other is printed format. The output format on the screen is found to be correct as
the format designed according to the user needs. For the hard copy also, the output comes out as
specified by the user. Hence output testing does not result in any connection in the system
<?php
include ’C:\New xampp\htdocs
\mini project\doctor_patient\connection.php’;
if(isset($_POST[’Submit’])){
$fname=$_POST[’fname’];
$lname=$_POST[’lname’];
$dob=date(’y-m-d’, strtotime($_POST[’dob’]));
$mstatus=$_POST[’maritial’];
$pwd=$_POST[’pwd’];
$cpwd=$_POST[’cpwd’];
$place=$_POST[’place’];
$phno=$_POST[’mphone’];
$email=$_POST[’email’];
$gender=$_POST[’gender’];
if($pwd != $cpwd){
else{
$query="INSERT INTO patient
( password, patientFirstName, patientLastName,
patientMaritialStatus, patientDOB, patientGender, patientPlace,
patientMobileNum, patientEmail) values
(’$pwd’,’$fname’,’$lname’,’$mstatus’,’$dob’,’$gender’,
’$place’,’$phno’,’$email’)";
if(mysqli_query($conn,$query))
{
else
{
} //code by aryatechno
?>
<!doctype html>
<html lang="en">
<head>
<title>Register </title>
<meta charset="utf-8">
<meta name="viewport" content="width=
device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?
family=Lato:300,400,700&display=swap" rel="stylesheet">
</head>
<body class="img js-fullheight"
style="padding-left: 500px; background-image:
url(login1/images/img5.jpg);height: 450px;">
<div class="container">
<div class="row justify-content-center">
</div>
<div class="row justify-content-center">
<div class="col-md-6 col-lg-4">
<div class="login-wrap p-0">
<span toggle="#password-field"
class="fa fa-fw fa-eye field-icon
toggle-password"></span>
</div>
<div class="form-group">
<input type="password" id=
"confirm-pwd" class="form-control"
name="cpwd" placeholder="Confirm Password"
required>
</select>
</div>
<div class="form-group">
<input type="text" class=
"form-control" name="mphone"
placeholder="Your Mobile Number"
pattern="[1-9]{1}[0-9]{9}"required>
</div>
<div class="form-group">
<input type="text" class="form-control"
name="place" placeholder="Your Place" required>
</div>
<div class="form-group">
<button type="submit" name="Submit"
class="form-control btn btn-primary submit px-3">
Create Account</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="login1/js/jquery.min.js"></script>
<script src="login1/js/popper.js"></script>
<script src="login1/js/bootstrap.min.js"></script>
<script src="login1/js/main.js"></script>
</body>
</html>
Chapter 7
CONCLUSION
Through this project I aiming to provide an online system for patient to make appointment and
helps doctor to manage the appointment in online. System will make all the empty slots visibly
available to the patients, which are booked by the name of any particular patient. The system
makes it easy to manage doctor and their availability on various dates and timings. This allows
for an automated patient doctor handling system through an online interface.This project helps the
faculties to reduce waiting time of patient for getting token .Our project is only a humble venture
to satisfy the needs to manage the doctor appointment work. Several user friendly coding have also
adopted. .And by using this patient can easily book appointment and doctor can add patient records
to it.And can easily schedule his availability. The objective of the system is user friendly and it
can help the clinic to manage their appointments. The system helps to avoid making duplicate
appointments. Users can view available doctors and their timings and can make appointments .
This system is being identified as an appropriate method for managing doctor appointment.
Chapter 8
In this it can be summarized that the future scope of the project circles around maintaining infor-
mation regarding:
• We can give more advance software for Doctor Appointment System including more facili-
ties
• Now I make this system for a single doctor,in future we can expand to more doctors.
• Create the master and slave database structure to reduce the overload of the database queries
Implement the backup mechanism for taking backup of codebase and database on regular basis on
different servers The above mentioned points are the enhancements which can be done to increase
the applicability and usage of this project . Here we can maintain the records of Doctor and
Appointment
APPENDICES
Appendix A
Product Estimate
Priority User story
backlog items (Hours)
4 Home Page Created the home page which the user sees first. 12
My Profile
5 User can view their profile. 2
page
Update Profile
6 User can edit their profile . 6
page
Product Estimate
Priority User story
backlog items (Hours)
Appointment
8 User can make appointment through this . 20
page
About Doctor
9 User can see about the doctor through this . 8
page
Doctor Dash-
11 Doctor can view the appointment . 10
board page
Add Schedule
12 Doctor can add schedule for appointment . 12
page
Design profile
updation page ,
Designing of Home Page and adding Doctor
5 13/01/2022 Done
discuss about database availability page
and also creating
tables
Designing of Profile,Update
Profile,Check doctor Avail- Design about doc-
6 28/01/2022 ability ,Make appointment Done tor page and coding
page and discuss about cod- standard
ing
Adding doctor
Completion of Appointment scheduling page
7 14/02/2022 list,about doctor page and Done ,update appoint-
also discuss about validation ment Status and
check validation
Appendix B
TABLE STRUCTURE
Appendix C
SAMPLE SCREENSHOTS
Appendix D
Sample code
D.1 login.php
<?php
global $uname;
global $pwd;
?>
<?php
include ’C:\New xampp\htdocs\mini project\doctor_patient\
connection.php’;
if(isset($_POST[’Submit’])){
$uname=$_POST[’email’];
$pwd=$_POST[’pwd’];
$query="select * from patient where
patientEmail=’$uname’ and password=’$pwd’";
$res=mysqli_query($conn,$query);
$count=mysqli_num_rows($res);
if($count>0)
{
$row=mysqli_fetch_array($res);
header("Location:home.php");
?>
<script>
alert("Login successfully");
</script>
<?php
}
else
{
?>
<script type="text/javascript">
alert ("Login failed");
</script>
<?php
}
mysqli_close($conn);
}
?>
<!doctype html>
<html lang="en">
<head>
<title>Login </title>
<meta charset="utf-8">
<meta name="viewport" content="width=
<link href="https://fonts.googleapis.com/css
?family=Lato:300,400,700&display=swap" rel="stylesheet">
</head>
<body class="img js-fullheight" style="background-image:
url(login1/images/img2.webp);">
<section class="ftco-section">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6 text-center mb-5">
<h2 class="heading-section">Login </h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-6 col-lg-4">
<div class="login-wrap p-0">
<h3 class="mb-4 text-center">Have an account?</h3>
<form action="" class="signin-form" method="post">
<div class="form-group">
<input type="email"
class="form-control" name="email"
placeholder="Email" required>
</div>
<div class="form-group">
<input id="password-field" type=
"password" class="form-control" name=
"pwd" placeholder="Password" required>
<span toggle="#password-field"
class="fa fa-fw fa-eye field-icon toggle-password">
</span>
</div>
<div class="form-group">
<button type="submit" name="Submit"
class="form-control btn btn-primary
submit px-3">Sign In</button>
</div>
<div class="form-group d-md-flex">
<div class="w-50">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="login1/js/jquery.min.js"></script>
<script src="login1/js/popper.js"></script>
<script src="login1/js/bootstrap.min.js"></script>
<script src="login1/js/main.js"></script>
</body>
</html>
D.2 Appointment.php
<?php
session_start();
include ’C:\New xampp\htdocs\mini project\
doctor_patient\connection.php’;
//INSERT
if (isset($_POST[’appointment’])) {
$patientEmail = mysqli_real_escape_string($conn,
$userRow[’patientEmail’]);
$scheduleid = mysqli_real_escape_string($conn,$appid);
$symptom = mysqli_real_escape_string($conn,$_POST[’symptom’]);
$comment = mysqli_real_escape_string($conn,$_POST[’comment’]);
$avail = "notavail";
$result = mysqli_query($conn,$query);
// echo $result;
if( $result )
{
?>
<script type="text/javascript">
alert(’Appointment made successfully.’);
</script>
<?php
header("Location: patientapplist.php");
}
else
{
echo mysqli_error($conn);
?>
<script type="text/javascript">
alert(’Appointment booking fail. Please try again.’);
</script>
<?php
header("Location: patient/patients.php");
}
//dapat dari generator end
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1">
<!-- The above 3 meta tags
*must* come first in the head; any other
head content must come *after* these tags -->
<title>Make Appoinment</title>
<link href="css/bootstrap2.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!-- navigation -->
<?php
include ’C:\New xampp\htdocs\mini project\
doctor_patient\header.php’;
?>
<header style="background-color: white;">
<nav class="navbar navbar-expand-lg navigation" id="navbar" >
<div class="container" >
<a class="navbar-brand" href="home.php"
style="margin-top: 0px;" >
<img src="images/logo2.png" alt="" class="img-fluid">
</a>
</li>
<li class="nav-item"><a class="nav-link"
href="about.<?php ?>">Appointments</a></li>
<li class="nav-item"><a class="nav-link"
href="contact.php">Contact</a></li>
</ul>
</div>
</div>
</nav>
</header>
<div class="user-wrapper">
<div class="description">
<h4 style="font-size: 2.3rem;
margin-bottom: 2.5rem;">
<?php echo $userRow
[’patientFirstName’]; ?>
<?php echo
$userRow[’patientLastName’]; ?></h4>
<hr />
<a href="patientupdatetry.php?
patientEmail=<?php echo
$userRow[’patientEmail’]; ?>">
<button type="button"
class="btn btn-primary"
data-toggle="modal"
style="font-size: 1rem;" >
Update Profile</button></a>
</div>
</div>
</div>
Patient Name:
<?php echo
$userRow[’patientFirstName’] ?>
<?php echo
$userRow[’patientLastName’] ?>
<br>
Patient Email:
<?php echo $userRow[’patientEmail’] ?>
<br>
Contact Number:
<?php echo
$userRow[’patientMobileNum’] ?>
<br>
Address: <?php echo
$userRow[’patientPlace’] ?>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
Appointment Information</div>
<div class="panel-body">
Day: <?php echo
$userRow[’scheduleDay’] ?>
<br>
Date: <?php echo
$userRow[’scheduleDate’] ?>
<br>
Time: <?php echo
$userRow[’startTime’] ?> -
<?php echo
$userRow[’endTime’] ?><br>
</div>
</div>
<div class="form-group">
<label for="recipient-name"
class="control-label">
Symptom:</label>
<input type="text"
class="form-control"
name="symptom" required>
</div>
<div class="form-group">
<label for="message-text"
class="control-label">Comment:</label>
<textarea class="form-control"
name="comment" required></textarea>
</div>
<div class="form-group" >
<center>
<input type="submit"
name="appointment"
id="submit" class="btn btn-primary"
value="Make Appointment"
style="font-size: 1rem;"></center>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- USER PROFILE ROW END-->
<!-- end -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>
Bibliography
[1] First Lessons in LATEX, by Dr. V N Krishnachandran, Vidya Academy of Science & Technol-
ogy, Thrissur - 680 501, 2011.
[2] Succeeding With Agile Software Development Using Scrum, by Mike Cohn
[5] HTML and CSS: The Complete Reference, Fifth Edition, by Thomas Powell
[6] HTML and CSS: Design and Build Websites, by Jon Duckett
[10] Beginning PHP and MySQL: From Novice to Professional , by Kromann, Frank M