FYP_Report Template 2024
FYP_Report Template 2024
Project Supervisor
Umber Noreen
Assistant Professor
University of Sahiwal
Submitted by
Sheharyar Ahmad BSIT-E1-20-09
CERTIFICATE OF COMPLETION
Project Title
Signatures: Signatures:
_____________________ _____________________
All the headings above must be included in Table of Contents (TOC) according to
correct page numbers. Provided below is an exemplary TOC.
Provided After TOC is MAIN-BODY of Report.
See that all chapters get mentioned in the header
TABLE OF CONTENTS
PREFACE
ACKNOWLEDGEMENT
CERTIFICATE OF COMPLETION
ABSTRACT
TABLE OF CONTENTS
Chapter 1 Introduction
1.1 Introduction
1.1.1 Relevance to Course Modules
1.1.2 Project Background
1.2 Literature Review
1.2.1 Analysis from Literature Review
1.2.2 Methodology and Software Lifecycle for This Project
1.3 Rationale behind Selected Methodology
1.3.1 Problem Statement
1.4 Deliverables and Development Requirements
Chapter 4 Implementation
6.1 Conclusion
6.2 Future Work
REFRENCE
Chapter # 1
Introduction
1.1 Introduction
Medical domain is characterized, like many other domains, by an exponential
evolution of the knowledge. There are a lot of tools which try to reduce the risk of
error apparition in medical life. Diagnosis has a very important role here. It is the first
step from a set of therapeutic actions; an error at this level can have dramatic
consequences. This disease diagnosis system is an expert system which is used for
simplifying the task of doctors. It is a system that checks a patient at initial level and
suggests the possible diseases. It starts with asking about symptoms to the patient, if
the system is able to name the disease then it provide the name and the corresponding
medical prescription, If the system is not sure enough, then it redirects the patient to
provide more symptoms of the disease. On the basis of available cumulative
information, the system will display the name and the medical prescription of the
disease. This system not only simplifies task of the doctors but also helps the patients
by providing initial medicines for small diseases in emergency. The system is not
meant to replace psychologists, but rather to support them in generating hypotheses at
an early stage of diagnosis.
In Database Management course studied about how to create database, how to manage
database, how to create relationships between tables. How to use SQL Server. This
project also use SQL Server for back end processing so this course is helpful in
database work.
The ideaSystems
Present
Manual Diagnosis
behind this “An Expert System in Medical Diagnosis” is
to make such system which can help the patients and doctors in
Almost
In the current
all oversystem,
the worldDoctors
still’ uses
may manual
have to spend
diagnostic
muchsystem,
time to
diagnoses process according to the provided specific symptoms. It
some countries
diagnose diseaseuse
and expert
generating
systems results.
to diagnose
In order
disease
to reduce
rapidly,
will help people more.
and following
doctor's workload
discuss
likeboth
“Analyze
the manual
the symptoms”,
and web-based
“Maintain
system.
record of treatment history”, “Completing the analysis and
diagnoses the diastase” An Expert System in Medical Diagnosis is
proposed. The proposed system will help doctor to diagnose the
disease and suggest the diseases related to symptom and will
reduce the workload of the Doctors.
Generally, in all the Hospitals or clinics doctors are using manual way to diagnose any
disease. With the usage of this system, its users are able to diagnose the disease at one
click against particular symptoms. This will make the process easier. By using this
system user will be able to diagnose the disease within the seconds. On the other
hand, this system also helps the
The current system is manual analysis of the symptoms. Doctors may have to spend
much time to analyze the symptoms and to diagnose the disease.
Shortcomings
The first problem is that analysis of symptoms and keep record of treatment history.
This brings us to the age-old discussion of keeping information in the form databases
versus keeping the same on sheets of paper. Keeping the information in the form of
hard-copied documents leads to the following problems:
It becomes hard to filter relevant documents for their relevant ones if the count of the
same crosses a certain manageable number.
All the process done manually at the centers and all the records are maintained on the
papers. So, the maintenance of the record is very difficult by the doctors and as well
as it’s very difficult for the doctor to check the record. The Existing system is paper
based, time consuming, boring, less flexible and provides a very confused working
schedule. The chance of loss of records error is high and also record searching is
difficult. Maintenance of the system is also very difficult and takes lot of time.
Now a day the expert system is getting popular with a tremendous speed. As the
technology is spreading throughout the world the automated system will also taking
the places of the manual systems. Currently many institutes are running their expert
diagnose systems at a very successful rate. Unfortunately, In Pakistan there is no such
institute which provide that kind of services. As the time is progressing the expert
system diagnosis is making interest to the doctors and all other stakeholders. Within
the recent time this system will be taken place to this technology world. But this
system also has some lacking.
From the previous two systems I realize to solve the problems of those systems to get
an expert diagnose system. In the previous two systems the things that are short from
a diagnosis’s process, to fix it up I design a system that work according to the web
base system. From this system we can omit the manual system’s problem criteria,
which is totally automated. It also omit the general web based system because it gives
the evaluate option for the doctor performance and feedback criteria. This will help to
remove current system’s problems.
AVAILABLE METHODOLOGIES
Waterfall
Cool and Fix
Spiral
Rapid prototyping
Unified process (UP)
Iterative model
CHOSEN METHODOLOGY
ITERATIVE MODEL
Software Development Life Cycle (SDLC) is extremely vast and full of various
development and testing activities, methodologies, techniques, tools, and more. It
involves intense planning and management, calculation and preparation. It is only
after combining all these efforts of the software engineers that a software or
application is successfully developed. Iterative Model is too a part of Software
Development Life Cycle.
It is a particular implementation of a software development life cycle that focuses on
an initial, simplified implementation, which then progressively gains more complexity
and a broader feature set until the final system is complete. In short, iterative
development is a way of breaking down the software development of a large
application into smaller pieces.
Planning Phase:
This is the first stage of the iterative model, where proper planning is done by the team, which
helps them in mapping out the specifications documents, establish software or hardware
requirements and generally prepare for the upcoming stages of the cycle.
Testing Phase:
After the current build iteration is coded and implemented, testing is initiated in the cycle to
identify and locate any potential bugs or issues that may have been in the software.
Evaluation Phase:
The final phase of the Iterative life cycle is the evaluation phase, where the entire team along
with the client, examine the status of the project and validate whether it is as per the suggested
requirements.
Iterative solves the following problems often faced in the software development projects. It is
very easy to use for changing requirements. It provides the facility to build a prototype before
the final built of project. Costs Effectiveness – Extensive and ongoing testing makes sure the
changes do not break the existing functionality. A running working system always ensures
sufficient time for accommodating changes such that the current operations are not affected.
Chapter # 2
Software Requirement
Specification (SRS)
Requirement Analysis
Requirements Analysis is the process of defining the expectations of the users for an
application that is to be built or modified. Requirements analysis involves all the tasks
that are conducted to identify the needs of different stakeholders. Therefore, requirements
analysis means to analyze, document, validate and manage software or system
requirements. High-quality requirements are documented, actionable, measurable,
testable, traceable, helps to identify business opportunities, and are defined to a facilitate
system design.
Admin:
Doctor:
Patient:
2.2.1 Detailed Use Cases
Table 2.1
Actors Admin
UseActors:
Case Admin Manage Doctors Account
Name:
Description: This use case describes how the Administrator manages Patients accounts in
expert system in medical diagnoses such as add, view, edit, delete the Course
details
Actors Admin
Preconditions: The Administration must logged in.
Actors: Admin
Description: This use case describes how the Administrator manages disease database in
expert system in medical diagnoses such as add, view, edit, and delete the
Course details
Preconditions: The Administration must logged in.
Normal This use case starts when the Administrator wishes to add, edit and delete
Course: Disease,
1. Admin register the Disease to system. After that use must fill in all
blanks flow requirements of this page and sure That is correct information.
Once the registration is located-one of the sub flows is executed
2. All information will save by system and admin can up-Date, change if
that is need.
Sub flows:
Delete an Registrations
1. The system should be confirmed by the
Administration
2. The system removes these Registrations from the Database.
Alternative None
Courses:
Exceptions: None.
Scenario 5
Use Case ID: UC-5
Use Case Scenario 6
Actors: Admin
Description: This use case describes how the Administrator view feedback by doctor and
given patient
Preconditions: The Administration must be logged in. Doctor and Patient must be already
registered
1. Doctor register the Disease to system. After that use must fill in
all blanks flow requirements of this page and sure that is correct
information. Once the registration is located, one of the sub flows
is executed
Use Case 4. If the Doctor want to diagnose any disease open the diagnose now
Treatment history
Name: form. Fill all the requirements and then click on diagnose. System
will return disease according to the selected symptoms.
Actors Doctor
Description: This use case describes how a Doctor add patient treatment history
Alternative None
Courses:
Exceptions: None.
Use
Case
Preconditions: Doctor is identified and authenticated.
Scenario
8
Post The registration must be done correctly.
Conditions
Normal
Course: This use case starts when the Doctor wishes to add patient treatment history
1. Doctor will open the patient profile and click on treatment.
2. Treatment form will open, all the field in that form filled Properly
according to the requirements and then submit it.
3. That is correct information. Once the registration is located- one of the
sub flows is executed.
UC-10
Use Case ID: UC-8
Use Case Give Feedback
Name:
Actors: Patient
This use case describes how the Patient diagnose the disease by providing
Description: specific symptoms related to a specific disease.
Use Case
Pre-conditions: The Patient must logged in.
Scenario
Table 2.9
10
Post conditions: The registration must be done correctly.
Normal Course: This use case starts when the Patient wishes to diagnose a
disease
Table
1. Patient register the Disease to 2.11
system. After that use
must fill in all blanks flow requirements of this page
and sure that is correct information. Once the
registration is located, one of the sub flows is executed
Alternative None
Courses:
Exceptions: None.
Post
conditions: The Allocation must be Saved correctly.
This use case starts when the Patient wishes to request for appointment
1. Patient will open the doctors form and click on appointment
Normal button
Course:
2. Patient fill the appointment form according to
requirements and submit it
3. If doctor approves the request then appointment will confirm
Table 2.12
Patient will open the profile and click on treatment form will open
and patient will see his treatment history
Table 2.13
Actors: Patient
Description: is use case describes how the Patient give feedback
Preconditions: The Patient must be logged in. Patient must be already
registered
Post The Allocation must be Saved correctly.
conditions:
This use case starts when the Patient wishes to give the feedback
Normal
Course: 1. Patient will click on the feedback link. Feedback form will open.
Table 2.14
Admin
Admin is a person or organization who has complete control over the system.
Admin Can add doctor
Admin can diseases with related symptoms and initial medication related to
particular disease.
Admin Can view update and delete doctor details.
Admin Can view update and delete patient personal information, medication details.
View feedback)
Doctor
Patient
System allows patient to add symptoms to diagnoses the disease.
Design Constraints
PHP web technologies should be used for development of the website.
XAMPP Web-Server should be used to deploy the application.
MySQL should be used as the database.
Standards Constraints
All the documents delivered should adhere to the IEEE standards for
software engineering.
Maintainability
The system should be developed in such a way that changes can be made easily,
whether for bug fixes or to add new functionality.
The system should be easy enough to maintain that someone else could do it with
a manual and a few hours training.
3.1 Design
Chapter # 3
Design and
Architecture
Approach
A design approach is a general philosophy that may or may not include a guide for specific
methods. Some are to guide the overall goal of the design. Other approaches are to guide the
tendencies of the designer. A combination of approaches may be used if they don’t conflict.
Function Oriented Design Approach:
Function Oriented Design Approach is partitioning of a design into subsystems and modules,
with each one handling one or more functions.
This web project uses function-oriented design approach. Every module and sub modules are
made, based on their functionality. These modules are designed and implemented separately and
then they are integrated together to form the desired application.
3.1System Architecture
Symptoms
Interface
Database of
symptoms
Figure 3.3 DFD Level 0
DFD level 1
System
Admin Database
Logged in Credential
Manage Symptoms
Managed Add Symptom
Manage Accounts Data Added Update Doctor Data Updated Delete Doctor
Data Deleted
Add patient
Data Added
Update Patient
Data Updated
Exit Request
Logged in Credentials
Data added
Selected
Confirm Symptoms
Diagnose Complete
Accepted
Patient System
41
Logn Login
Credentials
Figure 3.7 sequence diagram
42
Chapter # 4
Implementation
43
4.1 Language, Tools and Technologies Used:
4.1.1 PHP:
PHP is a very popular programming language developed by
Rasmus Lerdorf in 1994. Developed long after C and C++, PHP
incorporates many of the powerful features of those powerful
languages while addressing some of their drawbacks. Still,
programming languages are only as powerful as their libraries.
These libraries exist to help developers build applications. Some of
the PHP important core features are:
MySQL
44
Both Sublime and Xamp contain all required functionality to create,
compile, debug and deploy Web applications. They also allow the developer
to create and start web application for testing. Both tools provide specialized
editors for Web specific files. Most of Web configuration files are based on.
PHP, Java script. In this case these editors allow you to switch between the
representation of the file and a structured user interface for entering the data.
45
Figure 4.2 Registration page
46
Figure 4.3 Admin panel
(main page)
Admin Control
47
Figure 4.5 Add new doctor
48
Figure 4.6 patient Information
49
Figure 4.7 Doctor Panel (main page)
50
Doctors Control
51
Figure 4.9Treatment history
52
Patient Controls
53
Figure 4.11 Disease Diagnose details
54
55
Figure 4.12Database View
56
Chapter # 5
Testing and
Evaluation
57
5.1 Manual Testing
Unit Testing 1:
58
123
3. Verify user with correct User name: Successfully log into Pass
credential Ali the main page of the
Password: system as FYP
123456 Committee member.
4. Verify user with correct User name: Successfully log into Pass
credential john the main page of the
Password: system as FYP
123456 Committee member.
6. Verify with incorrect User name: Incorrect username or Pass
password usama password error
Password: generated
1234
and value
1. Creating profile with Name All fields are filled Pass
filling all necessary fields Email
Password
Phone
Address
59
2. Creating profile with Error in that field Pass
name missing
Email
Password
Phone
Address
3. Creating profile with Name Error in that field Pass
Email missing Password Email
Phone
Address
The functional testing will take place after the unit testing. In this
functional testing, the functionality of each of the module is tested. This is
to ensure that the system produced meets the specifications and
requirements.
60
2. Login as a Doctor Username: Main page for the Pass
john Doctor is loaded with
Password: the Doctor
123456 navigation bar
61
7. Doctor can diagnose Click on Diagnose Doctor will be able to Pass
disease Now select symptoms to
diagnose disease
10. Patient can give Click on Feedback Patient will be able to Pass
feedback give appointments
62
1. Login as Admin Username: Login successful Pass
Admin and the Admin
Password: page with its
123456 navigation bar is
loaded and in the
view profile page
63
64
Chapter # 6
Conclusion and
Future Work
65
6.1 Conclusion
There are a lot of tools which try to reduce the risk of error apparition in
medical life. Diagnosis has a very important role here. This disease
diagnosis system is an expert system which is used for simplifying the task
of doctors. It is a system that checks a patient at initial level and suggests
the possible diseases. It starts with asking about symptoms to the patient,
then it provide the name and the corresponding medical prescription. This
system not only simplifies task of the doctors but also helps the patients by
providing initial medicines for small diseases in emergency. By using this
system, we can save valuable time
Database: MySQL
So, during this project I learned all the above things. Before this project, I
had idea about PHP and HTML for making application. Although I had
knowledge of other languages before. But now I learned a lot about PHP
and got knowledge for developing application.
66
References
67
68