You are on page 1of 65

SMART HEALTH DISEASE PREDICTION SYSTEM

ABSTRACT
The purpose of the project entitled as “Smart Health Prediction” is to develop
software which is user friendly simple, fast, and cost – effective. It deals with the
collection of patient’s information, diagnosis details, etc. Traditionally, it was done
manually The main function of the system is register and store patient details and
doctor details and retrieve these details as and when required, and also to manipulate
these details meaningfully System input contains patient details, diagnosis details,
while system output is to get these details on to the screen. The Smart Health
Prediction can be entered using a username and password. It is accessible either by an
administrator. Only they can add data into the database. The data can be retrieved
easily.The data are well protected for personal use and makes the data processing very
fast.
This is the document of the Project proposal for developing a health care system.
This system is fully updated and we had provide some new things in it. The project
aimed to build a fully functional system in order to achieve the efficiency in faster
heath treatment and online consultation system. The overall mission of system
development is to make the primary treatment quickly and easily complete the Online
Consultation System.
We propose a system that allows users to get instant guidance on their health
issues through an intelligent health care system online. The system is fed with various
symptoms and the disease/illness associated with those systems. The system allows
user to share their symptoms and issues. It then processes user's symptoms to check
for various illnesses that could be associated with it. Here we use some intelligent
data mining techniques to guess the most accurate illness that could be associated
with patient's symptoms.

This Project “Smart Health Prediction” aims at maintaining patient health records
and even getting appointments from various doctors for related treatments. The
system user must register as a member of this system and keep updating his medical

DEPARTMENT OF M.Sc (CS) 1 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

history. Patients then can select from a list of specialized doctors for respective
treatments such as (skin specialist, ENT specialist, cardiologist, dietitian etc.)At
particular locations. Patients may also select suitable appointment timings for their
meeting. Patients can also order their medicines and perform online transactions. This
System will provide the dieting monitoring to patient according to patient’s BMI level
and also provide good health charts, diet charts and daily exercise instructions.

1. INTRODUCTION
1. Introduction:

The project Smart Health Prediction includes registration of patients, storing their
details into the system, and also computerized billing in the pharmacy, and labs. The
software has the facility to give a unique id for every patient and stores the details of
every patient and the staff automatically. It includes a search facility to know the
current status of each room. User can search availability of a doctor and the details of
a patient using the id.

The Smart Health prediction can be entered using a username and password. It is
accessible either by an administrator or receptionist. Only they can add data into the
database. The data can be retrieved easily. The interface is very user-friendly. The
data are well protected for personal use and makes the data processing very fast.

Smart Health Prediction is powerful, flexible, and easy to use and is designed and
developed to deliver real conceivable benefits to hospitals.
Smart Health Prediction is designed for multi-speciality 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.
Smart Health Prediction is a software product suite designed to improve the quality
and management of hospital management in the areas of clinical process analysis and
activity-based costing. Smart Health Prediction enables you to develop your
organization and improve its effectiveness and quality of work. Managing the key

DEPARTMENT OF M.Sc (CS) 2 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

processes efficiently is critical to the success of the hospital helps you manage your
processes.

1.1 BACKGROUND

In the last fifteen years, HDs become still endured the leading causes of death.
(WHO, 2019). In United States, Millions of human are having a HD every
year so that the HD takes placed the biggest killer of people in the world.
According to analyzation of WHO, twelve million people are death due to HD
in worldwide. One person dies almost every 34 seconds from HD. (Patel
Jaymin, 2016) Diagnosis of HDs is an essential task and yet intricate task to
perform accurately and efficiently in the hospital and clinic. These things are
motivated to build a Web-based HDPS application using ML algorithms. This
proposed system can reserve problem by accurately predicting the presence of
HD in the patient. ML is an emerging technology of AI that solved the various
type of classification problem by producing accurate output. ML algorithms
are applied to forecast the HD of the patient. This proposed system can be
used either NB or DT algorithms by comparing their accurate result and
trained time. A HDPM is built by employing one of the algorithms and
deploying this model into a web application. The outcome of this project is to
deliver a web-based application named HDPS that successfully and accurately
predict the presence of HD of patients. This system is useful to support the
decision making of doctors and healthcare members in hospitals.

With the consideration of WHO statistical facts,


the most powerful causes of death globally are a HD. It seemed to the
negligence of patients as well as doctors to increase a HD patient. Some of the
difficulties to execute the doctor’s decision and lack of application to clearly
diagnosis of HD become the cause of human death. Regarding the above
issues, we are proposing a web-based HDPS that is one of the best solutions to
efficiently and accurately predict the HD patients. The proposed system
eliminates the various testing of HD and supports the decision making of
doctors. This system can accept a singleton query and display the clear output
of the presence of HD level. This system is useful for any hospital and clinic

DEPARTMENT OF M.Sc (CS) 3 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

to evaluate the patient getting a HD. It is reduced the number of tests and
provide an efficient output of patient HD. It supports to make the decision of
doctors that consulates with their patients easily. The proposed system will
support the healthcare systems as well as health-related application to expand
their services with efficiently and accurately providing results. It mitigates the
time to checkup of doctors.

PROJECT OVERVIEW
Smart Health Prediction is a PHP MySQL which aims at minimizing the
communication lag between doctors and patients. Its main concern is to notify
patients about any activity in dashboard regarding their diseases so that patients can
quickly access the dashboard and view the information about anything related to
smart health prediction and diseases.
This project can easily Explained in terms of three entities used in the project namely:
1. Doctor: A doctor is someone who is qualified in medicine and treats people
who are ill. Do not discontinue the treatment without consulting your doctor.
A doctor is someone who has been awarded the highest academic or honorary
degree by a university.

2. Patient: If Patient is a new user he will enter his personal details and he will
user Id and password through which he can login to the system.

3. Admin: System admin can log into the system using his login details They
manage database which contains every information regarding doctor Patient
dashboard and groups They can access each and every information related to
teachers and students.

1.2 PROBLEM STATEMENT


Numerous issues are faced by patients pertinent to hospitals such as being unable
to provide medical services, insufficient number of qualified medical staffs, poor
communication between doctors and patients, and unorganized health records and
data. Eventually, these issues opportunity for hospitals to handle both their
management and their duties steadily to maintain the health of every citizen and
community.

DEPARTMENT OF M.Sc (CS) 4 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Hospitals currently use a manual system for the management and maintainance of
critical information the current system requires numerous paper forms, with data
stores spread throughout the hospital management infrastructure. Often information is
incomplete or does not follow management standards. Forms are often lost in transit
between departments requiring a comprehensive auditing process to ensure that no
vital information is lost. Multiple copies of the same information exist in the hospital
and may lead to inconsistencies in data in various data stores.

1.3 PROPOSED SYSTEM


To beat the downside of existing framework we
have created smart health prediction System. We have built up a specialist
framework called Smart Health Prediction framework, which is utilized for
improving the task of specialists. A framework checks a patient at initial level
and proposes the possible diseases. It begins with getting some information
about manifestations to the patient, in the event that the framework can
distinguish the fitting sickness, at that point it proposes a specialist accessible
to the patient in the closest conceivable territory. On the off chance that the
framework isn't sufficiently sure, it asks few questions to the patients, still on
the off chance that the framework isn't sure; at that point it will show a few
tests to the patient. In light of accessible total data, the framework will
demonstrate the result. Here we utilize some intelligent minin methods to
figure the most precise disorder that could be associated with patient's
appearances and dependent on the database of a couple of patients restorative
record, calculation (Naïve Bayes) is connected for mapping the side effects
with conceivable diseases.This framework improves undertaking of the
specialists as well as helps the patients by giving vital help at a soonest
organize conceivable.

We have built up a specialist framework called Smart Health Prediction


framework, which is utilized for improving the task of specialists. A framework
checks a patient at initial level and proposes the possible diseases. It begins with
getting some information about manifestations to the patient, in the event that the

DEPARTMENT OF M.Sc (CS) 5 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

framework can distinguish the fitting sickness, at that point it proposes a specialist
accessible to the patient in the closest conceivable territory. On the off chance that the
framework isn't sufficiently sure, it asks few questions to the patients, still on the off
chance that the framework isn't sure; at that point it will show a few tests to the
patient. In light of accessible total data, the framework will demonstrate the result.
This framework improves undertaking of the specialists as well as helps the patients
by giving vital help at a soonest organize conceivable.

2. REQUIREMENT ANALYSIS

2.1 HARDWARE REQUIREMENTS

 Processor – core processor


 RAM –8GB
 ROM-2 TB Hard Disk

2.2. SOFTWARE REQUIREMENTS

 Windows 10
 Python

SOFTWARE AND HARDWARE REQUIREMENTS


Software Requirements deal with defining software resource requirements and
pre-requisites that need to be installed on a computer to provide optimal functioning
of an application. These requirements or pre-requisites are generally not included in
the software installation package and need to be installed separately before the
software is installed.

DEPARTMENT OF M.Sc (CS) 6 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

The most common set of requirements defined by any operating system or


software application is the physical computer resources, also known as hardware. A
hardware requirements list is often accompanied by a hardware compatibility list
(HCL), especially in case of operating systems. An HCL lists tested, compatibility
and sometimes incompatible hardware devices for a particular operating system or
application. The following sub-sections discuss the various aspects of hardware
requirements.

2.3. INTRODUCTION TO SOFTWARE ENVIRONMENT

Health prediction development is the process by which new application are created for
my SQL. Officially apps can be written using PHP, my SQL using the Android
software development kit and third party tools. Environment and language support
have also continued to evolve and expand since initial was released in application.
PHP STANDARDS
PHP (recursive acronym for PHP: ( Hypertext Preprocessor ) is a widely-used open
source general-purpose scripting language that is especially suited for web
development and can be embedded into HTML.
18
FEATURES OF OS
1. INTERFACE: The technical feasibility is frequently the most difficult area
encountered at this stage. It is essential that the process of analysis and
definition be conducted in parallel with an assessment to technical feasibility.
It centers on the existing computer system (hardware, software etc.) and to
what extent it can support the proposed system.
2. APPLICATION
The document of the Project proposal for developing a health care system This
system is fully updated and we had provide some new things in it. The project
aimed to build a fully functional system in order to achieve the efficiency in faster
heath treatment and online consultation system. The overall mission of system
development is to make the primary treatment quickly and easily complete the
Online Consultation System.
In doctor's module when a doctor login to the system, doctor can view his

DEPARTMENT OF M.Sc (CS) 7 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

patient’s details and the report of that patient. Doctor can view details about the
patient and what patient searched for according to their prediction. Doctor can
view his personal details. Admin can add new disease details by specifying the
type and symptoms of the disease into the database.
It might have happened so many times that you or someone of yours need
doctor’s help immediately, but they are not available due to some reason. The
Health Prediction system is an end user support and online consultation project.
The system allows user to share their symptoms and issues. Then the system
processes user's symptoms to check for various illnesses that could be associated
with it.

2.4. FEASIBILITY STUDY


The feasibility of the project is analysed in this phase and business proposal is put
forth with a very general plan for the project and some cost estimates. During system
analysis the feasibility study of the proposed system is to be carried out. This is to
ensure that the proposed system is not a burden to the company. For feasibility
analysis, some understanding of the major requirements for the system is essential.
This study is carried out to check the economic impact will have on the system
will have on the organization. The amount of fund that the company can pour into the
research and development of the system is limited. The expenditures must be justified.
Thus the developed system as well within the budget and this was achieved because
most of the technologies used are freely available. Only the customised products have
to be purchased.
This study is carried out to check the technical feasibility, that is the technical
requirements of the system. Any system developed must not have a high demand on
the available available technical resources. This will lead to high demands being
placed on the client. The developed system must have a modest requirement, as only
minimal or null changes for the implementing this system.
The aspect of study is to check the level of acceptance of the system by the
user. This includes the process of training the user to use the system efficiently.
The user must not feel threatened by the system, instead must accept it as a
necessity. The level of acceptance by the users solely depends on the methods that
are employed to educate the user about the system and to make him familiar with
it. His level of confidence must be raised so that he is also able to make some

DEPARTMENT OF M.Sc (CS) 8 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

constructive criticism, which is welcomed, as he is the final user of the system.

HISTORY:

Python was conceived in the late 1980s by Guido van Rossum at Centrum Wiskunde


& Informatica (CWI) in the Netherlands as a successor to the ABC language (itself
inspired by SETL), capable of exception handling and interfacing with
the Amoeba operating system. Its implementation began in December 1989.[36] Van
Rossum shouldered sole responsibility for the project, as the lead developer, until 12
July 2018, when he announced his "permanent vacation" from his responsibilities as
Python's Benevolent Dictator For Life, a title the Python community bestowed upon
him to reflect his long-term commitment as the project's chief decision-maker. [37] He
now shares his leadership as a member of a five-person steering council. In January
2019, active Python core developers elected Brett Cannon, Nick Coghlan, Barry
Warsaw, Carol Willing and Van Rossum to a five-member "Steering Council" to lead
the project.[41]

Python 2.0 was released on 16 October 2000 with many major new features, including
a cycle-detecting garbage collector and support for Unicode.

Python 3.0 was released on 3 December 2008. It was a major revision of the language
that is not completely backward-compatible.[43] Many of its major features
were backported to Python 2.6.x and 2.7.x version series. Releases of Python 3
include the 2to3 utility, which automates (at least partially) the translation of Python
2 code to Python 3.

Python 2.7's end-of-life date was initially set at 2015 then postponed to 2020 out of
concern that a large body of existing code could not easily be forward-ported to
Python 3.

Python Libraries

After Modules and Python Packages, we shift our discussion to Python Libraries. This
Python Library, we will discuss Python Standard library and different libraries offered

DEPARTMENT OF M.Sc (CS) 9 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

by Python Programming Language: pandas, Matplotlib, scipy, numpy, etc.

What is the Python Libraries?

We know that a module is a file with some Python code, and a package is a directory
for sub packages and modules. But the line between a package and a Python
library is quite blurred.
A Python library is a reusable chunk of code that you may want to include in your
programs/ projects. Compared to languages like C++ or C, a Python libraries do not
pertain to any specific context in Python. Here, a ‘library’ loosely describes a
collection of core modules. Essentially, then, a library is a collection of modules. A
package is a library that can be installed using a package manager like rubygems or
npm.

Python Standard Library

The Python Standard Library is a collection of exact syntax, token, and semantics of
Python. It comes bundled with core Python distribution. We mentioned this when we
began with an introduction.

It is written in C, and handles functionality like I/O and other core modules. All this
functionality together makes Python the language it is. More than 200 core modules
sit at the heart of the standard library. This library ships with Python. But in addition
to this library, you can also access a growing collection of several thousand
components from the Python Package Index (PyPI). 

3. REVIEW OF LITERARTURE

3.1. REVIEW OF THE LITERATURE

Divya Jain et.al presents a review of the implementation of Apriori Algorithm on


datasets using machine learning tool Weka. Ruijuan Hu states the details of the
idea on two-step frequent data items using Apriori algorithms and Association

DEPARTMENT OF M.Sc (CS) 10 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Rules. This mentions a new improvised method called Improved Apriori


Algorithm to eliminate cons of Apriori algorithm. Gitanjali J, et.al proposed study
of huge datasets from various angles and obtaining gist of useful information.
These methods are useful in detecting diseases and providing proper remedy for
the same. Krishnaiahet.al. aims to calculate various methods of data mining in
applications to develop decisions and also to provide a detailed discussion about
medical. Data mining techniques can improve various angles of clinical
predictions. Dan A. Simovici proposed that association rules represent knowledge
in data sets as results and are directly related to calculation of frequent item sets.
Mohammed Abdul Khaleel states data mining as a concept that studies large
amount of data and extracts patterns that can be converted to useful knowledge.

Health Disease (HD):


HD is defined a range of conditions that affect your heart. It is describing any
disorder of the heart. The umbrella of HD consists of different type of HD such as
blood vessel diseases (coronary artery disease, and arrhythmias) and heart defects
when you’re born with congenital heart defects, among others. (Mayo Clinic, 2019).
The term “Health Disease” is always used interchangeably with the term
“Cardiovascular Disease (CVD)”. CVD generally refers to conditions that involve
blocked or narrowed blood vessels that can lead to a heart attack, stroke or chest pain.

In the paper “Smart health prediction system using data mining” the author has
discussed many topics related to data mining techniques such as Naive Bayes,
KDD(Knowledge discovery in Database). The Bayesian statistics can be applied to
economic sociology and other fields. This checks the patients at initial level and
automatically suggest the possible diseases. The system uses Naive Bayes classifier
for the construction of the prediction system. The advantage of this system is that the
initial consultation cost of doctor fees can be avoided. Eclipse IDE is used for creating
the front end Graphical User Interface and Navicat Mysql is used for backend
database purpose. Here java is used as a programming language to connect the
database and GUI purpose. The only disadvantage of the system the efficiency in
detecting the symptoms or symptom mapping.
The paper “A Smart Health Prediction Using Data Mining” is explaining the

DEPARTMENT OF M.Sc (CS) 11 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

similar topics to the paper. But there is detailed explanation of the internal algorithms
used in the system. The Naive Bayes algorithm can be used for developing models
that are used to assign class labels of different format. Naive Bayes algorithm is not a
single, but a group of algorithm based on common principle. The steps involved in the
Naive Bayes algorithm include (i) Division of segments, (ii) Comparing the first
character of pattern until match occurs, (iii) Comparing the last character of pattern,
(iv) Perform each character comparison. Also the hardware requirements used are
processor of 2.0 GHZ and Ram of 2GB. The software requirements are JAVA
programming language, Mysql 5.0 database and Tomcat server.
In the paper “Smart E-Health Prediction System Using Data Mining” most of the
topics covered are on the system architecture. In this paper the design aspects of the
system are primarily focused. In this paper the author has given a detailed framework
to beat the downside of existing system. The smart health framework is used to
implement the design aspects of the project. This framework asks for uses input and
gather the symptoms to predict the disease based on data mining techniques. There are
various modules such as login- used for authentication of patient and doctor, Diseases
prediction, Doctor Searching, Feedback and Chatting with doctor for clearing patient
doubts. There are some advantages such as finding the nearest doctor option to find
doctor near to our location. These features can be used for better implementation of
the system to help patients.
The paper “Analysis of Heart Disease Prediction Using Data mining Techniques”
various data mining techniques of heart disease prediction are discussed. The
proposed of this paper gives more accuracy than the present machine learning
algorithms. Generally, Naive Bayes classifier is used for the prediction of heart
diseases. The main advantage of Bayes classifier is the short training models is used
to predict large datasets.

4.DESIGN AND IMPLEMENTATION


DESIGN INTRODUCTION

The Unified Modelling Language (UML) is a standard language for specifying,


visualizing, constructing, and documenting the software system and its
components. It is a graphical language which provides a vocabulary and set of

DEPARTMENT OF M.Sc (CS) 12 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

semantics and rules. The UML focuses on the conceptual and physical
representation of the system. It captures the decisions and understandings about
systems that must be constructed. It is used to understand, design, configure,
maintain, and control information about the systems.

3.1 UML DIAGRAM:

A diagram is the graphical presentation of a set of elements, most often rendered as


a connected graph of vertices and arcs you draw diagram to visualize a system
from different perspective, so a diagram is a projection into a system. For all but
most trivial systems, a diagram represents an elided view of the elements that make
up a system. The same element may appear in all diagrams, only a few diagrams ,
or in no diagrams at all. In theory, a diagram may contain any combination of
things and relationships. In practice, however, a small number of common
combinations arise, which are consistent with the five most useful views that
comprise the architecture of a software-intensive system. For this reason, the UML
includes nine such diagrams:

3.2 USE CASE DIAGRAME:


A use case diagram in the Unified Modeling Language (UML) is a type of
behavioral diagram defined by and created from a use-case analysis. Its purpose is
to present a graphical overview of the functionality provided by a system in terms
of actors, their goals (represented as use cases), and any dependencies between
those use cases.

3.3 Use case diagram of our project:


A use case diagram at its simplest is a represented of a user’s interaction with the
system that show the relationship between the user and the different use cases in
which the is involved .A use case diagram can identify the different types of users
of a system and the different use cases and will often be accompanied by other
types of diagrams as well.

DEPARTMENT OF M.Sc (CS) 13 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

FIG 3.1 USE CASE DIAGRAM

9
3.4 DATA FLOW DIAGRAM
Admin logins to the system and manage all the functionalities of Health Care

DEPARTMENT OF M.Sc (CS) 14 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

System .

Admin can add, edit, delete and view the records of Health Centre,
Appointment, Medicine, Fees.

Admin can manage all the details of Booking, Customer, Test .

Admin can also generate reports of Health Centre, Booking, Appointment,


Customer, Medicine, Test .

Admin can search the details of Booking, Medicine, Test .

Admin can apply different level of filters on report of Health Centre, Customer,
Medicine .

Admin can tracks the detailed information of Booking, Appointment,


Customer, Medicine .

Context Flow Diagram

Admin

Admin have Authentication Patients information

Doctor Get Notification Registered


SMART HEALTH
Doctor
Patient PREDICTION Patient

View Patients Doctors Search

Fig 3.2 Zero Level DFD

10
Level-1 DFD for Doctors

DEPARTMENT OF M.Sc (CS) 15 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig3.3 Level-1 DFD


Level-1 DFD for Patients

Fig 3.4 Level-1 DFD

Level-1 DFD for Admin

DEPARTMENT OF M.Sc (CS) 16 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 3.5 Level-1 DFD

Level-2 DFD for Doctors

Fig 3.6 Level-2 DFD


11
Level-2 DFD for Patients

DEPARTMENT OF M.Sc (CS) 17 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 3.7 Level-2 DFD

12
Level-2 DFD for Admin

DEPARTMENT OF M.Sc (CS) 18 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 3.8 Level-2 DFD

13
3.4 DATA BASE DESIGN

DEPARTMENT OF M.Sc (CS) 19 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

A database is an organized mechanism that has capability of storing information


through which a user can retrieve stored information in an effective and efficient
manner. Here data must be synchronized across all clients in real. And remains
available When your app goes offline.
The fire Real database is a cloud-hosted database. Data is stored as JSON (Java
Script Object Notation) and synchronized in real to every connected client. All
share one Real database instance and automatically receive update with the newest
data the real database provide a flexible ,expression-based rules language, Firebase
real database Security Rules, to define how your data should be Authentication
development can define who from or written to. When integrated with Firebase
database can define who has access to data, and how they can access In Firebase is
a scheme less database.
The Real database is a SQL database and as such has different optimization and
functionality compared to as relational to database .there are no tables or record
When you add data to the JSON tree, become a node in the existing JSON
structure with an associated key.it user the concept of rather .
Simply the process of duplicating data to simplify or reduce querying while using
the consistency of the data may get affected so in order to maintain the consistency
we use Multi-Path Update.
The organization of data in the database is aimed to achieve the following two
major objectives.
 Data Integrity
 Data independence
There are various types of rules that are used to Provides validation in our
database are:-
 Read:-Describe if and when data is allowed to read by user.
 Write:- Describe if and when data is allowed to be written.
 Validation:- Define the correctly formatted value and the data type of
database.
 Index On:- specifies a child to index to support ordering and querying.

DEPARTMENT OF M.Sc (CS) 20 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

14
4.6 ER DIAGRAM
An entity –relationship model (ER model for short) describes interrelated things of
interest in a specific domain of knowledge. A basic ER model is composed of entity
types (which classify the things of interest) and specific relationships that can exist
between instances of those entity types.

Fig 3.9 ER diagram

DEPARTMENT OF M.Sc (CS) 21 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

4.3.CODE

The purpose of code is to facilitate the identification. Retrieval of the items and
information A code is an oriented collection of symbols design to provides
.Unique identification of the entry or attribute. Code is built with manually
exclusive feature. Codes in all cases specify object which are physical or on
performing characteristics. They are used to give optimal distraction and other
information. Codes insure that only one value of the code with single meaning is
correctly applied to give entity or attributes as described in various wave. Code
can also be design in manner easily understood and applied by the user.
4.3 CODING STANDARDS
Smart health prediction follow standard PHP coding conventional with the
additional rules
Use PHP doc standard comments
Use standard PHP annotations.
Main Activity
html {
background: #e6e9e9;
background-image: linear-gradient(270deg, rgb(230, 233, 233) 0%, rgb(216, 221,
221) 100%);
-webkit-font-smoothing: antialiased;
}

body {

: #fff;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.06);
color: #545454;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

DEPARTMENT OF M.Sc (CS) 22 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

font-size: 16px;
line-height: 1.5; 20
margin: 0 auto;
max-width: 800px;
padding: 2em 2em 4em;
}

h1, h2, h3, h4, h5, h6 {


color: #222;
font-weight: 600;
line-height: 1.3;
}

h2 {
margin-top: 1.3em;
}

a{
color: #0083e8;
}

b, strong {
font-weight: 600;
}

samp { 21
display: none;
}

img {
animation: colorize 2s cubic-bezier(0, 0, .78, .36) 1;
background: transparent;
border: 10px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;

DEPARTMENT OF M.Sc (CS) 23 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

display: block;
margin: 1.3em auto;
max-width: 95%;
}

@keyframes colorize {
0% {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
100% {
-webkit-filter: grayscale(0%);
filter: grayscale(0%);
}
}
22
Doctor login
<?php
session_start();
include("include/config.php");
if(isset($_POST['submit']))
{
$ret=mysqli_query($con,"SELECT * FROM doctors WHERE docEmail='".
$_POST['username']."' and password='".($_POST['password'])."'");
$num=mysqli_fetch_array($ret);
if($num>0)
{
$extra="dashboard.php";
$_SESSION['dlogin']=$_POST['username'];
$_SESSION['id']=$num['id'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=1;
$log=mysqli_query($con,"insert into doctorslog(uid,username,userip,status) values('".
$_SESSION['id']."','".$_SESSION['dlogin']."','$uip','$status')");

DEPARTMENT OF M.Sc (CS) 24 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

$host=$_SERVER['HTTP_HOST'];
$uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
else
{ 23
$host = $_SERVER['HTTP_HOST'];
$_SESSION['dlogin']=$_POST['username'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=0;
mysqli_query($con,"insert into doctorslog(username,userip,status) values('".
$_SESSION['dlogin']."','$uip','$status')");
$_SESSION['errmsg']="Invalid username or password";
$extra="index.php";
$uri = rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Doctor Login</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
24
<meta content="" name="description" />
<meta content="" name="author" />

DEPARTMENT OF M.Sc (CS) 25 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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> SHP | Doctor Login</h2></a>
</div>

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

DEPARTMENT OF M.Sc (CS) 26 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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>
</div>
<div class="form-actions">
<a href="../../index.html" style="color:blue;padding-left:15px;">Back to Home
page</a>
26
Login <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">
SHP</span>. <span>All rights reserved</span>
</div>

</div>

</div>
</div>
<script src="vendor/jquery/jquery.min.js"></script>

DEPARTMENT OF M.Sc (CS) 27 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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>
27
<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>
Admin Login

<?php
session_start();
error_reporting(0);
include("include/config.php");
if(isset($_POST['submit']))
{
$ret=mysqli_query($con,"SELECT * FROM admin WHERE username='".
$_POST['username']."' and password='".$_POST['password']."'");
$num=mysqli_fetch_array($ret);
if($num>0)
{ 28
$extra="dashboard.php";//
$_SESSION['login']=$_POST['username'];

DEPARTMENT OF M.Sc (CS) 28 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

$_SESSION['id']=$num['id'];
$host=$_SERVER['HTTP_HOST'];
$uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
else
{
$_SESSION['errmsg']="Invalid username or password";
$extra="index.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>Admin-Login</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
30
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<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">

DEPARTMENT OF M.Sc (CS) 29 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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">
<h2>Admin Login</h2>
</div>

<div class="box-login">
<form class="form-login" method="post">
<fieldset>
<legend>
31
</legend>
<p>
Please enter your name and password to log in.<br />
<span style="color:red;"><?php echo htmlentities($_SESSION['errmsg']); ?><?php
echo htmlentities($_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>

DEPARTMENT OF M.Sc (CS) 30 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

</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>
</div>
<div class="form-actions">

<a href="../../index.html" style="color:blue;padding-left:15px;">Back to Home


page</a>

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


Login <i class="fa fa-arrow-circle-right"></i>
</button>
</div>

</fieldset>
</form>
32
<div class="copyright">
&copy; <span class="current-year"></span><span class="text-bold text-uppercase">
SHP</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>

DEPARTMENT OF M.Sc (CS) 31 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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>
33
</html>
Doctor Specelization
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
{
$sql=mysqli_query($con,"insert into doctorSpecilization(specilization) values('".
$_POST['doctorspecilization']."')");
$_SESSION['msg']="Doctor Specialization added successfully !!";
}

if(isset($_GET['del']))
{
mysqli_query($con,"delete from doctorSpecilization where id = '".$_GET['id']."'");
$_SESSION['msg']="data deleted !!";

DEPARTMENT OF M.Sc (CS) 32 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Doctor Specialization</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
34
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<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>

DEPARTMENT OF M.Sc (CS) 33 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

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

<?php include('include/header.php');?>
35
<!-- 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">Admin | Add Doctor Specialization</h1>
</div>
<ol class="breadcrumb">
<li>
<span>Admin</span>
</li>
<li class="active">
<span>Add Doctor Specialization</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">

<div class="row margin-top-30">


<div class="col-lg-6 col-md-12">

DEPARTMENT OF M.Sc (CS) 34 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

36
<div class="panel-heading">
<h5 class="panel-title">Doctor Specialization</h5>
</div>
<div class="panel-body">
<p style="color:red;"><?php echo htmlentities($_SESSION['msg']);?>
<?php echo htmlentities($_SESSION['msg']="");?></p>
<form role="form" name="dcotorspcl" method="post" >
<div class="form-group">
<label for="exampleInputEmail1">
Doctor Specialization
</label>
<input type="text" name="doctorspecilization" class="form-control"
placeholder="Enter Doctor Specialization">
</div>

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


Submit
</button>
</form>
</div>
</div>
</div>

</div>
</div>
37
<div class="panel panel-white">

</div>

DEPARTMENT OF M.Sc (CS) 35 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

</div>
</div>

<div class="row">
<div class="col-md-12">
<h5 class="over-title margin-bottom-15">Manage <span class="text-bold">Docter
Specialization</span></h5>

<table class="table table-hover" id="sample-table-1">


<thead>
<tr>
<th class="center">#</th>
<th>Specialization</th>
<th class="hidden-xs">Creation Date</th>
<th>Updation Date</th>
<th>Action</th>

</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select * from doctorSpecilization");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{ 38
?>

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

DEPARTMENT OF M.Sc (CS) 36 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<td >
<div class="visible-md visible-lg hidden-sm hidden-xs">
<a href="edit-doctor-specialization.php?id=<?php echo $row['id'];?>" class="btn btn-
transparent btn-xs" tooltip-placement="top" tooltip="Edit"><i class="fa fa-
pencil"></i></a>

<a href="doctor-specilization.php?id=<?php echo $row['id']?>&del=delete"


onClick="return confirm('Are you sure you want to delete?')"class="btn btn-
transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa
fa-times fa fa-white"></i></a>
</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> 39
<li>
<a href="#">
Share
</a>
</li>
<li>
<a href="#">
Remove
</a>
</li>
</ul>

DEPARTMENT OF M.Sc (CS) 37 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

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

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

</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
40
<!-- 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>

DEPARTMENT OF M.Sc (CS) 38 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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>
41
<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>
Patients
<?php
session_start();
//error_reporting(0);
include('include/config.php');

DEPARTMENT OF M.Sc (CS) 39 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

include('include/checklogin.php');
check_login();

42
{mysqli_query($con,"delete from doctors where id = '".$_GET['id']."'");
$_SESSION['msg']="data deleted !!";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Manage Doctors</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<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">

DEPARTMENT OF M.Sc (CS) 40 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

43
<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">Admin | Manage Doctors</h1>
</div>
<ol class="breadcrumb">
<li>
<span>Admin</span>
</li>
<li class="active">
<span>Manage Doctors</span>
44
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->

DEPARTMENT OF M.Sc (CS) 41 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<!-- start: BASIC EXAMPLE -->


<div class="container-fluid container-fullw bg-white">

<div class="row">
<div class="col-md-12">
<h5 class="over-title margin-bottom-15">Manage <span class="text-
bold">Docters</span></h5>
<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>Specialization</th>
<th class="hidden-xs">Doctor Name</th>
<th>Creation Date </th>
<th>Action</th>

</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select * from doctors");
45
while($row=mysqli_fetch_array($sql))
{
?>

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

DEPARTMENT OF M.Sc (CS) 42 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

</td>

<td >
<div class="visible-md visible-lg hidden-sm hidden-xs">
<a href="edit-doctor.php?id=<?php echo $row['id'];?>" class="btn btn-transparent
btn-xs" tooltip-placement="top" tooltip="Edit"><i class="fa fa-pencil"></i></a>

<a href="manage-doctors.php?id=<?php echo $row['id']?>&del=delete"


onClick="return confirm('Are you sure you want to delete?')"class="btn btn-
transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa
fa-times fa fa-white"></i></a>
</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="#">
46
</a>
</li>
<li>
<a href="#">
Share
</a>
</li>
<li>
<a href="#">
Remove
</a>
</li>

DEPARTMENT OF M.Sc (CS) 43 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

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

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

</tbody>
</table>
</div>
</div>
</div>
47
</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>

DEPARTMENT OF M.Sc (CS) 44 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

<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>
48
<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>

DEPARTMENT OF M.Sc (CS) 45 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

4.4 IMPLEMENTATION
An important issue for the development of a project is the selection of suitable front-
end and back-end. When we decided to develop the project we went through an
extensive study to determine the most suitable platform that suits the needs of the
organization as well as helps in development of the project.
A study of resource availability that may affect the ability to achieve an acceptable
system This evaluation determines whether the technology needed for the proposed
system is available or not.
A more sophisticate register maintenance for various Patient Information, Doctor
diary, Immunization Details and a good system for writing bill amount employees and
stock availed for the customers can be maintained at central place.
Adequate staff may be maintained so that updations are made at the very moment at
the same time. Proper person for proper work should be made responsible so that a
better efficiency could be achieved. This needs a lot of work force.
Another alternative solution can be used of computer based batch system for
maintaining the information regarding purchase details, customers and employees. A
batch system refers to a system in which data is processed in a periodical basis.
The batch system is able to achieve most of the goals and sub goals. But a batch
system data is processed in sequential basis. Therefore batch system is not suggested.
Another alternative solution can be used of computer based batch system for
maintaining the information regarding purchase details, customers and employees. A
batch system refers to a system in which data is processed in a periodical basis.
The batch system is able to achieve most of the goals and sub goals. But a batch
system data is processed in sequential basis. Therefore batch system is not suggested.
 Careful planning
 Investigation of system and constraints
 Design of methods to achieve the changeover
 Training of the staff in the changeover phase

DEPARTMENT OF M.Sc (CS) 46 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

51

5.1 IMPLEMENTATION PROCEDURES


The designing and implementation of Online Health Prediction System with the
gathering of requirements and examine the background of the hospital management.
Although the current system is a manual and file based one, we realize that the system
we are going to build must give the solutions for wastage of time and space which
affects the efficiency of the daily activities performed at the hospital.

5.2 USER TRAINING


One of the alternative solutions is the improvement of the manual system. Anything,
which can be done by using automated methods, can be done manually. But the
question arises how to perform thing manually in a sound manner. Following are
some suggestions, which can be useful in the manual system.
We have decided to use prototyping model to develop Health Prediction System.
Therefore the system is developed in increments so that it can readily be modified in
response to end-user and customer feedback. A prototype is built with basic and
critical attributes.

5.3 TRAINING ON THE APPLICATION SOFTWARE


All this work is done manually by the receptionist and other operational staff and lot
of papers are needed to be handled and taken care of. Doctors have to remember
various medicines available for diagnosis and sometimes miss better alternatives as
they can’t remember them at that time.
We have decided to use prototyping model to develop Health Prediction System.
Therefore the system is developed in increments so that it can readily be modified in
response to end-user and customer feedback. A prototype is built with basic and
critical attributes.
The proposed system will give the minute information, as a result the performance is
improved which in turn may be expected to provide increased profits.

DEPARTMENT OF M.Sc (CS) 47 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

52

5.4 OPERATIONAL DOCUMENT


This feasibility checks whether the system can be developed with the available funds.
The Smart health prediction does not require enormous amount of money to be
developed. This can be done economically if planned judicially, so it is economically
feasible. The cost of project depends upon the number of required.
Although the current system is a manual and file based one, we realize that the system
we are going to build must give the solutions for wastage of time and space which
affects the efficiency of the daily activities performed at the hospital.
5.5 SYSTEM MAINTENANCE
An important issue for the development of a project is the selection of suitable front-
end and back-end. When we decided to develop the project we went through an
extensive study to determine the most suitable platform that suits the needs of the
organization as well as helps in development of the project.
The designing and implementation of Online Health Prediction System with the
gathering of requirements and examine the background of the hospital management.
Although the current system is a manual and file based one, we realize that the system
we are going to build must give the solutions for wastage of time and space which
affects the efficiency of the daily activities performed at the hospital.
During feasibility analysis for this project, following primary areas of interest are to
be considered. Investigation and generating ideas about a new system does this.
This is the document of the Project proposal for developing a health care system. This
system is fully updated and we had provide some new things in it. The project aimed
to build a fully functional system in order to achieve the efficiency in faster heath
treatment and online consultation system. The overall mission of system development
is to make the primary treatment quickly and easily complete the Online Consultation
System.
A study of resource availability that may affect the ability to achieve an acceptable
system This evaluation determines whether the technology needed for the proposed
system is available or not.
The system allows user to share their symptoms and issues. Then the system
processes user's symptoms to check for various illnesses that could be associated with

DEPARTMENT OF M.Sc (CS) 48 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

it.

4.5 SCREENSHOTS

Fig 6.1 Screenshots 1

DEPARTMENT OF M.Sc (CS) 49 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.2 Screenshots 2

55

Fig 6.3 Screenshots 3

DEPARTMENT OF M.Sc (CS) 50 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.4 Screenshots 4

56

Fig 6.5 Screenshots 5

DEPARTMENT OF M.Sc (CS) 51 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.6 Screenshots 6

57

Fig 6.7 Screenshots 7

DEPARTMENT OF M.Sc (CS) 52 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.8 Screenshots 8

58

DEPARTMENT OF M.Sc (CS) 53 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.9 Screenshots 9

Fig 6.10 Screenshots 10

59

Fig 6.11 Screenshots 11

DEPARTMENT OF M.Sc (CS) 54 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.12 Screenshots 12

60

Fig 6.13 Screenshots 13

DEPARTMENT OF M.Sc (CS) 55 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.14 Screenshots 14


61

Fig 6.15 Screenshots 15

DEPARTMENT OF M.Sc (CS) 56 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Fig 6.16 Screenshots 16

DEPARTMENT OF M.Sc (CS) 57 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

5. SYSTEM TESTING

SYSTEM TESTING

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to
check the functionality of components, subassemblies, assemblies and/or a finished
product It is the process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a
specific testing requirement.

5.1.TYPES OF TESTS

Unit testing
Unit testing involves the design of test cases that validate that the internal program
logic is functioning properly, and that program inputs produce valid outputs. All
decision branches and internal code flow should be validated. It is the testing of
individual software units of the application .it is done after the completion of an
individual unit before integration. This is a structural testing, that relies on knowledge
of its construction and is invasive. Unit tests perform basic tests at component level
and test a specific business process, application, and/or system configuration. Unit
tests ensure that each unique path of a business process performs accurately to the
documented specifications and contains clearly defined inputs and expected results.

Integration testing
Integration tests are designed to test integrated software components to determine if

DEPARTMENT OF M.Sc (CS) 58 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

they actually run as one program. Testing is event driven and is more concerned with
the basic outcome of screens or fields. Integration tests demonstrate that although the
components were individually satisfaction, as shown by successfully unit testing, the
combination of components is correct and consistent. Integration testing is
specifically aimed at exposing the problems that arise from the
combination of components.

Functional test

Functional tests provide systematic demonstrations that functions tested are available
as specified by the business and technical requirements, system documentation, and
user manuals. Functional testing is centered on the following items:
Valid Input : identified classes of valid input must be accepted.
Invalid Input : identified classes of invalid input must be rejected.
Functions : identified functions must be exercised.
Output : identified classes of application outputs must be exercised.
Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to identify
Business process flows; data fields, predefined processes, and successive processes
must be considered for testing. Before functional testing is complete, additional tests
are identified and the effective value of current tests is determined.

5.2. System Test


System testing ensures that the entire integrated software system meets requirements.
It tests a configuration to ensure known and predictable results. An example of system
testing is the configuration oriented system integration test. System testing is based on
process descriptions and
flows, emphasizing pre-driven process links and integration points.

White Box Testing

DEPARTMENT OF M.Sc (CS) 59 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

White Box Testing is a testing in which in which the software tester has knowledge of
the inner workings, structure and language of the software, or at least its purpose. It is
purpose. It is used to test areas that cannot be reached from a black box level.

Black Box Testing


Black Box Testing is testing the software without any knowledge of the inner
workings, structure or language of the module being tested. Black box tests, as most
other kinds of tests, must be written from a definitive source document, such as
specification or requirements document, such as specification or requirements
document. It is a testing in which the software under test is treated, as a black box
.you cannot “see” into it. The test provides inputs and responds to outputs without
considering how the software works.

Unit Testing:

Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be
conducted as two distinct phases.

Test strategy and approach


Field testing will be performed manually and functional tests will be written in detail.

Test objectives
 All field entries must work properly.
 Pages must be activated from the identified link.
 The entry screen, messages and responses must not be delayed.

Features to be tested
 Verify that the entries are of the correct format
 No duplicate entries should be allowed
 All links should take the user to the correct page.

DEPARTMENT OF M.Sc (CS) 60 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Integration Testing

Software integration testing is the incremental integration testing of two or more


integrated software components on a single platform to produce failures caused by
interface defects. The task of the integration test is to check that components or
software applications, e.g. components in a software system or – one stepup –
software applications at the company level – interact without error.

Test Results:
All the test cases mentioned above passed successfully. No defects encountered.

Acceptance Testing

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.

Test Results:
All the test cases mentioned above passed successfully. No defects encountered.

DEPARTMENT OF M.Sc (CS) 61 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

6. RESULT ANANLYSIS

DEPARTMENT OF M.Sc (CS) 62 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

7. CONCLUSION AND FUTURE SCOPE

7.1 CONCLUSION
At the end of this proposal we want to remember that this is fully unique system
and we believe that it will helpful for us all as well as any Hospital Business can
add this with their existing features. Hope this system will be very demandable in
coming future.
The software takes care of all the requirements of an average hospital and is
capable to provide easy and effective storage of information related to patients that
come up to the hospital.
It generates test reports; provide prescription details including various tests, diet
advice, and medicines prescribed to patient and doctor. It also provides injection
details and billing facility on the basis of patient’s status whether it is an indoor or
outdoor patient.
The system also provides the facility of backup as per the requirement.
Mainly references don’t need for this proposal because we make this from our own
logical thinking/concept. But our Teacher/Instructor gives some directions to do
this successful project proposal.

7.2 SCOPE FOR FUTURE ENHANCEMENT


It might have happened so many times that you or someone of yours need
doctor’s help immediately, but they are not available due to some reason. The
Health Prediction system is an end user support and online consultation project.
The system allows user to share their symptoms and issues. Then the system
processes user's symptoms to check for various illnesses that could be associated
with it.
In doctor's module when a doctor login to the system, doctor can view his patient’s
details and the report of that patient. Doctor can view details about the patient and
what patient searched for according to their prediction. Doctor can view his
personal details. Admin can add new disease details by specifying the type and

DEPARTMENT OF M.Sc (CS) 63 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

symptoms of the disease into the database.


This feasibility checks whether the system can be developed with the available
funds. The Smart health prediction does not require enormous amount of money to
be developed. This can be done economically if planned judicially, so it is
economically feasible. The cost of project depends upon the number of required.
This is the document of the Project proposal for developing a health care system.
This system is fully updated and we had provide some new things in it. The project
aimed to build a fully functional system in order to achieve the efficiency in faster
heath treatment and online consultation system. The overall mission of system
development is to make the primary treatment quickly and easily complete the
Online Consultation System.

8. REFERENCES
REFERENCES:
Mainly references don’t need for this proposal because we make this from our own
logical thinking/concept. But our Teacher/Instructor gives some directions to do
this successful project proposal. Also take helps from
● Google.
● INTERNATIONAL JOURNAL OF SCIENTIFIC & TECHNOLOGY
RESEARCH VOLUME 2, . “ Applications In Healthcare Sector: A Study”.
4.SHARMILA, International Journal of Advanced Networking & Applications
(IJANA), Vol: 08, Issue: 05, 2017, “Analysis of Heart Disease Prediction Using Data
mining Techniques”.
5. K.Vembandasamy, IJISET - International Journal of Innovative Science,
Engineering & Technology, Vol. 2 Issue 9, September 2015, “Heart Diseases
Detection Using Naive Bayes Algorithm”. 6. Bharati M. Ramageri , Indian Journal of
Computer Science and Engineering, Vol. 1 No. 4 301-305, “Data Mining Technique
and Applications”. 7. Vidya Zope1 ,Pooja Ghatge2, Aaron Cherian3, Piyush
Mantri4 ,Kartik Jadhav, IJSRD - International Journal for Scientific Research &

DEPARTMENT OF M.Sc (CS) 64 KBN PG COLLEGE


SMART HEALTH DISEASE PREDICTION SYSTEM

Development| Vol. 4, Issue 12, 2017, “Smart Health Prediction using Machine
Learning”. 8. Shratik J. Mishra 1, Albar M. Vasi 2, Vinay S. Menon3, Prof. K.
Jayamalini4, International Research Journal of Engineering and Technology
(IRJET) ,Volume: 05 ,Issue: 03 | Mar-2018, “GDPS - General Disease Prediction
System”. 9. T.Nagamani, S.Logeswari, B.Gomathy, International Journal of
Innovative Technology and Exploring Engineering (IJITEE), Volume-8 Issue-3,
January 2019, “Heart Disease Prediction using Data Mining with Mapreduce
Algorithm”. 10. M. Thiyagaraj, G. Suseendran, International Journal of Recent
Technology and Engineering (IJRTE), Volume-8, Issue-2S11, September 2019 ,
“Research of Chronic Kidney Disease based on Data Mining Techniques”. 11.
Obenshain, Mary K. "Application of data mining techniques to healthcare data."
Infection Control & Hospital Epidemiology, Vol.25, no. 8 2004: 690-695. 12. Sinha,
Parul, and Poonam Sinha. "Comparative study of chronic kidney disease prediction
using KNN and SVM." International Journal of Engineering Research and
Technology, Vol 4, no. 12 pp. 608-12, 2015. 13. Kumar, Manish. "Prediction of
chronic kidney disease using random forest machine learning algorithm."
International Journal of Computer Science and Mobile Computing, Vol 5, no. 2, pp.
24-33, 2016.

DEPARTMENT OF M.Sc (CS) 65 KBN PG COLLEGE

You might also like