Hospital Management System Project
Hospital Management System Project
NISANTASI UNIVERSITY
FACULTY OF ECONOMICS ADMINISTRATIVE AND SOCIAL SCIENCES
MANAGEMENT INFORMATION SYSTEMS PROGRAM
June – 2024
This is Database (DB) design and reporting project Final exam. This DB project will be worth 70 points as described
in the Lesson Plan. The name of this Assignment will be EMIS206-DBApplications-Project-
StudentNameSurname.docx. In addition, the Script file named EMIS206-DBApplications-Project-
StudentNameSurname-SQLScript.sql will be uploaded to Sanalkampus.nisantasi.edu.tr. The texts in this document
will be written in Times New Roman font and 12-point font.
Project: Write a SQL Script that creates an Employee Wages Tracking Application (EWTA) Database consisting
of the tables given below. Report the Conceptual, Logical and Physical models of the technical user guide of the DB,
which will be named Db_NameSurname. When the written SQL script is run, it should create the Database named
db_NameSurname and its tables and add its data. These codes should be tested by running on SQL Server 2022
Express and only working codes should be delivered.
Note Rubric: Creating database (db_NameSurname) and tables with SQL Script 60 points. Entering data with SQL
script 10 points. These SQL Scripts should be uploaded to the Sanal campus as a single file. Preparing the Project's
Technical User's Guide and uploading it to the Sanal campus 30 Points. If the SQL script does not work in SQL
Server 2022 Express, it will be assumed a copy and up to 70 points will be deducted from the assignment. When
submitting the database project, it's crucial to include all relevant flowcharts and diagrams used during its
development. These visuals serve as essential blueprints for understanding the database's structure, relationships
between tables, and data flow processes. Diagrams such as entity-relationship diagrams (ERDs), data flow diagrams
(DFDs), and database schema diagrams provide a clear representation of the database design, ensuring that
stakeholders grasp its intricacies effectively.
The names of the tables and column names will be as follows:
Departments Users Table Categories
Employees Table Wages Table
Table Table
Empl_ID Wage_ID Dept_ID User_ID LK_ID
Empl_FName Empl_ID Dept_Name User_Name Gender
Empl_LName Wage_Date Dept_Phone User_Psw Title
Empl_BDate Wage_Amount Manager_ID Role_ID City
Empl_Name
(Calculation) Wage_Commission Province
Wage_Total
Emp _Start_Date (Calculation) Country
Empl_Left_Date Month_ID Month
Wage_Year
Empl_Address (Calculation) Role
Empl_City
Empl_Province
Empl_Phone
Empl_Cell
Empl_Email
Dept_ID
Gender_ID
Title_ID
Empl_Photo
Empl_CV
Empl_CV_File
Empl_CV_Web
Entered_By
Entered_Date
Is_Empl_Active
tbl_EmployeeWage tbl_Users
tbl_Employees s tbl_Departments tbl_Lookups
After you write your name and student numbers on the first page, do not delete the parts up to here. Add
your own technical user guide information after this page.
ACKNOWLEDGEMENT
Apart from the efforts of team, the success of any project depends largely on the encouragement and
guidelines of many others. We take this opportunity to express our gratitude to the people who have
been instrumental in the successful completion of this project.
The completion of any inter-disciplinary project depends upon cooperation, co-ordination and
combined efforts of several sources of knowledge.
We are eternally grateful to our teacher Mustafa coruh for his even willingness to give us valuable
advice and direction under which we executed this project. His constant guidance and willingness to
share hix vast knowledge made us understand this project and its manifestations in great depths and
helped us to complete the assigned tasks.
Our project Hospital Management system includes registration of patients, storing their
details into the system, and also booking their appointments with doctors.
Our software has the facility to give a unique id for every patient and stores the details
of every patient and the staff automatically. User can search availability of a doctor and
the details of a patient using the id. The Hospital Management
System 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.
It is having mainly two modules. One is at Administration Level and other one is of user
I.e. of patients and doctors. The Application maintains authentication in order to access
the application. Administrator task includes managing doctors information, patient’s
information. To achieve this aim a database was designed one for the patient and other
for the doctors which the admin can access. The complaints which are given by user will
be referred by authorities.
The Patient modules include checking appointments, prescription. User can also pay
doctor’s Fee online.
Table of Contents
SNO TOPIC Page No
1. PROBLEM STATEMENT 9
2. PROCESS MODEL 11
3. SQL REQUIREMENTS SPECIFICATION 15
PROBLEM STATEMENT
In this busy world we don’t have the time to wait in infamously long hospital queues.
The problem is, queuing at hospital is often managed manually by administrative staff,
then take a token there and then wait for our turn then ask for the doctor and the most
frustrating thing - we went there by traveling a long distance and then we come to know
the doctor is on leave or the doctor can’t take appointments.
HMS will help us overcome all these problems because now patients can book their
appointments at home, they can check whether the doctor they want to meet is
available or not. Doctors can also confirm or decline appointments, this help both
patient and the doctor because if the doctor declines’ appointment then patient will
know this in advance and patient will visit hospital only when the doctor confirms’ the
appointment this will save time and money of the patient.
Patients can also pay the doctor’s consultant fee online to save their time.
HMS is essential for all healthcare establishments, be it hospitals, nursing homes, health
clinics, rehabilitation centers, dispensaries, or clinics. The main goal is to computerize all
the details regarding the patient and the hospital. The installation of this healthcare
software results in improvement in administrative functions and hence better patient
care, which is the prime focus of any healthcare unit.
Appointment booking
o Helps patients cut the long queue and saves their time
o Is equipped with features like automated email and text message
reminders
Role-Based Access Control
o Allows employees to access only the necessary information to effectively
perform their job duties
o Increases data security and integrity
Overall cost reduction
o Cuts down paper costs as all the data are computerized
o No separate costs for setting up physical servers
Data accuracy
o Removes human errors
o Alerts when there’s a shortage of stock
Data security
o Helps to keep patients records private
o Restricts access through role-based access control
Revenue management
o Makes daily auditing simple
o Helps with statistics and other financial aspects
PROCESS MODEL
This software will help the company to be more efficient in registration of their patients
and manage appointments, records of patients. It enables doctors and admin to view
and modify appointments schedules if required. The purpose of this project is to
computerize all details regarding patient details and hospital details.
1.2 SCOPE
The system will be used as the application that serves hospitals, clinic, dispensaries or
other health institutions. The intention of the system is to increase the number of
patients that can be treated and managed properly.
If the hospital management system is file based, management of the hospital has to put
much effort on securing the files. They can be easily damaged by fire, insects and
natural disasters. Also could be misplaced by losing data and information.
Appt – Appointment.
Sign up - Creating New User.
Log in - Logging in Existing User.
PhNo - Mobile number.
Addr – Address.
Expr – Experience.
1.4 OVERVIEW
Our application contains two modules – the admin module and the user module.
Our application will not only help the admin to preview the monthly and/or yearly
data but it will also allow them to edit, add or update records. The software will
also help the admin to monitor the transactions made by the patients and
generate confirmations for the same. The admin will be able to manage and
update information about doctors.
The user module can be accessed by both the doctors and the patients. The
doctor can confirm and/or cancel appointments. The doctors can even add
prescriptions for their patients using our application. The patients will be able to
apply for the appointment and make transaction for the same, and can even
cancel appointments with the doctors. They can track details about the previous
transactions made by them.
Advantages
Disadvantages
This Hospital Patient Info Management System is a self-contained system that manages
activities of the hospital.
Due to improperly managed details medical center faces quite a lot of difficulties in
accessing past data as well as managing present data. The fully functional automated
hospital management system which will be developed through this project will eliminate
the disadvantages caused by the manual system by improving the reliability, efficiency
and performance. The usage of a database to store patient, employee, stock details etc.
will accommodate easy access, retrieval, and search and manipulation of data. The
access limitations provided through access privilege levels will enhance the security of
the system. The system will facilitate concurrent access and convenient management of
activities of the medical center.
User Interfaces
This section provides a detailed description of all inputs into and outputs from
the system. It also gives a description of the hardware, software and
communication interfaces and provides basic prototypes of the user interface.
The protocol used shall be HTTP.
The Port number used will be 80.
There shall be logical address of the system in IPv4 format.
Hardware Interfaces
Laptop/Desktop PC-Purpose of this is to give information when Patients ask
information about doctors, medicine available lab tests etc. To perform such
Action it need very efficient computer otherwise due to that reason patients
have to wait for a long time to get what they ask for.
Laser Printer (B/W) - This device is for printing patients’ info etc.
Wi-Fi router - Wi-Fi router is used to for internetwork operations inside of a
hospital and simply data transmission from pc’s to sever.
Software Interfaces
JDK 1.8 - Java is fast, secure, and reliable. From laptops to data centers, game
consoles to scientific supercomputers, cell phones to the Internet,
Mysql server - Database connectivity and management
OS Windows 7/8/8.1- Very user friendly and common OS
JRE 1.8 - JAVA Runtime Environment for run Java Application and System
2.1.2 System Specifications
(1) PATIENT
* REGISTRATION
DESCRIPTION - The new patient can register themselves and add their details like name,
age , gender, blood group etc. The patient entry will be made in the hms database.
PRE -CONDITION – The patient must be a new patient, If necessary fields left by user
then prompt user to fill the necessary fields.
* UPDATION
DESCRIPTION-The patient should be enabled to update his/her details and the changes
should reflect in hms database.
PRE-CONDITION – The patient must be a registered patient, The patient cannot update
details after treatment starts.
PRE-CONDITION - The patient must be a registered patient, Patient can fix only one
appointment for a particular department.
POST CONDITIONS - patient details are displayed and a new appointment is fix or a
existing appointment is cancelled. The hms database is updated.
*PAYMENT
DESCRIPTION – It enables user to pay the consultant fee of Doctor online.
PRE-CONDITION - The patient must be a registered patient, If Patient don’t wants to pay
online he/she can pay by cash also.
PRE-CONDITION – The doctor must be a registered doctor, System does not allow the
doctor to modify the qualification, hospital managed details.
(3) ADMIN
DESCRIPTION - The admin add doctor, update docotr details and verify payment and
generate Bill/Reciept for the same.
ADMIN
Admin has the full access to the system which means he is able to manage any activity
with regard to the system. He is the highest privileged user who can access to the
system.
Key functions:
•Access patient record, doctor Record.
•Add new doctor entry in system database.
Confirm Payment and Generate Bill.
View Records.(Total no of patients treated, doctor added/remove, consultant fee).
PATIENT
Patients can choose the best preferred appointments from the options provided and
can also change the appointment schedule or cancel it. After appt. is confirmed by the
respective doctor they can pay their consultant fee online. Patients have access to only
their records.
Key functions:
Make appointment.
Cancel appointment.
Update Details.
Payment.
View Payment History.
DOCTOR
Doctors can view the patient appointment list and provide the confirmation or make
changes in the appointment list if required. Doctors have access to only records of those
patients whom they are treating.
Key functions:
Confirmation of appointment.
Cancellation of appointment.
Modification of appointment list.
Add Prescription.
2.7 Constraints
System is wirelessly networked with an encryption.
System is only accessible within the hospital’s website only.
Database is password protected.
Should use less RAM and processing power.
Each user should have individual ID and password.
Only administrator can access the whole system.
o Response time- The system will give responses within 1 second after checking the
patient information and other information.
o Capacity-The system must support 1000 people at a time
o User interface- User interface screen will response within 5 seconds
3.4.1 Usability: Software can be used again and again without distortion.
3.4.3 Correctness: Bug free software which fulfills the correct need/requirements
of the client.
3.4.4 Maintainability: The ability to maintain, modify information and update fix
problems of the system.
3.4.5 Accessibility: Administrator and many other users can access the system
but the access level is controlled for each user according to their work scope.
3.5 FUNCTIONAL REQUIREMENTS
36 | P a g e
4.3 DATA DESIGN
37 | P a g e
S NO. COLUMN DATA CONSTRAINTS DESCRIPTION
NAME TYPE
38 | P a g e
S NO. COLUMN DATA CONSTRAINTS DESCRIPTION
NAME TYPE
39 | P a g e
4.4 COMPONENT LEVEL DIAGRAM
Book Appointment Module
enum Status { confirm , cancel} ;
cout<<Mode;
cout<<1.Cash;
cout<<2.Debit Card/Credit Card
cout<<3.Net Banking
cout<<Enter mode of payment;
cin>>mode;
if(mode==1)
{
Generate a Receipt and send confirmation message;
}
else if(mode == 2)
{
41 | P a g e
Make Payment
Send confirmation message
} //end if
if(ch==1)
{
Appointment = Confirm;
Send a Confirm Message to the patient.
}
else
{
Send a Cancel Message to the patient.
}//end if
42 | P a g e
43 | P a g e
CHAPTER 5
ESTIMATION AND SCHEDULING
44 | P a g e
5.1 Project Scheduling
45 | P a g e
5.2 Timeline chart
46 | P a g e
5.3 Size Estimation (FUNCTION BASED METRICS)
Number of external inputs (EIs) - Each external input originates from a user or is
transmitted from another application and provides distinct application-oriented
data or control information. Inputs are often used to update internal logical files
(ILFs). Inputs should be distinguished from inquiries, which are counted
separately.
Number of external outputs (EOs) - Each external output is derived data within
the application that provides information to the user. In this context external
output refers to reports, screens, error messages, etc. Individual data items within
a report are not counted separately.
Number of internal logical files (ILFs) - Each internal logical file is a logical
grouping of data that resides within the application’s boundary and is maintained
via external inputs.
Number of external interface files (EIFs). - Each external interface file is a logical
grouping of data that resides external to the application but provides information
that may be of use to the application.
47 | P a g e
SIZE ESTIMATION FOR THIS PROJECT
Screen EIs EOs EQs ILFs EIFs
No
1. 1.Select - 1. Doctor’s On Hospital -
Language Leave File
2. Visitors on
Website
2. - - - - -
3. 1. Username - - Hospital -
2. Password File
4. 1 .Name - - Hospital -
2 .Dob File
3. Gender
4 .Email
5. Blood Group
6 .Mobile No
7 .Address
8 .CGHS / Private
9.Card Picture
5. - 1.Profile - HF -
6. 1. Department - - Hospital -
2 .Date File
3 .Time
4 .Doctor Name
7. 1.Appointment Hospital -
Status File
8. 1 .Card Holder - - Hospital -
Name File
2. Card number
3. Expire Date
4. CVC Number
9. 1. Registered - - Hospital -
Mobile No. File
2. Edit Appt.
Schedule
10. - - 1.Payment Hospital -
History File
11. - 1.Profile - HF -
48 | P a g e
12. 1.Doctor ID 1.Doctor Hospital -
Details File
13. - 1.Bill - Hospital -
File
14. 1. Username - - Hospital -
2. Password File
15. - 1. Profile Hospital -
File
16. - - 1.appt. Hospital -
Details File
17. 1. Treatment 1.Patient - Hospital -
Name Profile File
2 .Medicine
3 .Advice
4 .Remark
5.Patient ID
18. 1. Username - - Hospital -
2. Password File
19. 1.Payment - - Hospital -
Verify File
20. 1 Name - - Hospital -
2 Age File
3 Gender
4 Specialization
5 Experience
6 Language
7 Mobile No
8 Email Id
9 Schedule
21. 1.Doctor Id 1.Doctor - Hospital -
Profile File
22. 1. Select - 1.Records Hospital -
Monthly/Yearly File
2. Select Year
3. Select Month
49 | P a g e
TABLE 5.3 Function Point Complexity Weights
𝒇𝒊) UFP (Count Total) = Sum of all the complexities i.e. the 5
Function point = FP = UFP x CAF = Count Total * (0.65 + (0.01 *∑
50 | P a g e
CALCULATING ( ∑ 𝒇𝒊 )
4. How heavily used is the current hardware platform where the application
will be executed?
5. How frequently are transactions executed daily, weekly, monthly, etc.?
10. Was the application developed to meet one or many user’s needs?
12. How effective and/or automated are start-up, back-up, and recovery
procedures?
13. Was the application specifically designed, developed, and supported to
be installed at multiple sites for multiple organizations?
14. Was the application specifically designed, developed, and supported to
facilitate change?
51 | P a g e
Considering all adjustment factors of average influence ∑ 𝒇𝒊 = 14 * 3 = 42
52 | P a g e
TOTAL EXTERNAL INUPUTS = 41
TOTAL EXTERNAL OUTPUTS = 7
TOTAL LOGICAL INTERNAL FILES = 1
TOTAL EXTERNAL INQUIRIES = 6
TOTAL EXTERNAL INTERFACE FILES = 0
53 | P a g e
5.4 Cost Estimation (COCOMO II MODEL)
The original COCOMO model became one of the most widely used and discussed
software cost estimation models in the industry. It has evolved into a more
comprehensive estimation model, called COCOMO II.
COCOMO II models require sizing information. Three different sizing options are
available as part of the model hierarchy:-
o Object Points
o Function Points
o Lines Of Source Code
Like function point, the object point is an indirect software measure that is computed
using counts of the number of
(1) screens (at the user interface),
(2) reports,
(3) components likely to be required to build the application.
Each object instance (e.g., a screen or report) is classified into one of three complexity
levels (i.e. ,simple ,medium, or difficult).
Once complexity is determined, the number of screens, reports, and components are
weighted according to the table illustrated in Table 5.4 .
54 | P a g e
The object point count is then determined by multiplying the original number of object
instances by the weighting factor in the figure and summing to obtain a total object
point count.
To derive an estimate of effort based on the computed NOP value, a “productivity rate”
must be derived.
𝐍𝐎𝐏
PROD =
Table 5.5 presents the productivity rate for different levels of developer experience and
development environment maturity. Once the productivity rate has been determined,
an estimate of project effort is computed using
𝐍𝐎𝐏
ESTIMATED EFFORT =
𝐏𝐑𝐎𝐃
55 | P a g e
COST ESTIMATION FOR THIS PROJECT
(1) SCREENS
(2) REPORTS
56 | P a g e
TOTAL SCREENS = 22
TOTAL 3GL MODULES = 0
TOTAL REPORTS = 8
PRODUCTIVITY RATE = 7+
7 = 7.
57 | P a g e
Part 6 SAMPLE
SCREENSHOTS
58 | P a g e
FIGURE 6.1 HOME PAGE
59 | P a g e
FIGURE 6.3 PATIEN LOGIN PAGE
60 | P a g e
FIGURE 6.5 PATIENT PROFILE
61 | P a g e
FIGURE 6.7 PATIENT BOOK APPOINTMENT
62 | P a g e
FIGURE 6.9 PATIENT CANCEL APPOINTMENT
63 | P a g e
FIGURE 6.11 PATIENT PAYMENT RECIPET
64 | P a g e
FIGURE 6.13 PATIENT VIEW DOCTORS
65 | P a g e
FIGURE 6.15 DOCTOR PROFILE
66 | P a g e
FIGURE 6.17 DOCTOR ADD DESCRIPTION
67 | P a g e
68 | P a g e
FIGURE 6.19 ADMIN ADD DOCTOR
69 | P a g e
FIGURE 6.21 ADMIN PAYMENT REQUEST
70 | P a g e
CHAPTER 7
RISK ANALYSIS
71 | P a g e
Part 8 TESTING
8.1 WHITE BOX TESTING
8.1.1 Basic Path ( Pseudo code )
8.1.2 Flow Graph
8.1.3 Cyclomatic Complexity
8.1.4 Independent Paths
72 | P a g e
BASIS PATH TESTING FOR BOOK APPOINTMENT MODULE
enum Status { confirm , cancel} ;
cout<<Mode;
cout<<1.Cash;
cout<<2.Debit Card/Credit Card
cout<<3.Net Banking
cout<<Enter mode of payment;
cin>>mode;
if(mode==1) 2
{
Generate a Receipt and send confirmation message; 3
}
else if(mode == 2) 4
{
74 | P a g e
} //end if 7
if(ch==1) 10
{
Appointment = Confirm;
Send a Confirm Message to the patient. 11
}
else
{
Send a Cancel Message to the patient. 12
}//end if 13
75 | P a g e
FLOW GRAPH NOTATION
76 | P a g e
2) CYCLOMATIC COMPLEXITY V(G)
1. Cyclomatic complexity V(G) = Total number of Regions.
V(G) = 4.
V(G) = 3 + 1 = 4.
3) INDEPENDENT PATHS
Path A : 1 – 2 – 3 – 7 – 8 – 9 – 10 – 11 – 13
Path B : 1 – 2 – 4 – 5 – 7 – 8 – 9 – 10 – 12 – 13
Path C : 1 – 2 – 4 – 6 – 7 – 8 – 9 – 10 – 11 – 13
Path D : 1 – 2 – 3 – 7 – 8 – 9 – 10 – 12 – 13
77 | P a g e
CHAPTER – 9
CONCLUSION
The project was successfully completed after a lot of efforts and work hours. This
project underwent number of compiling, debugging, removing errors, making it bug
free, adding more facilities in Hospital Management System and interactivity making it
more reliable and useful.
This project focused that scheduling a project and adhering to that schedule creates a
hard sense of time- management. It has also let us known that co-operative teamwork
always produce effective results.
The entire project has been developed and deployed as per the requirements stated by
the user. It is found to be bug free as per the testing standards that are implemented.
The estimated cost of the project is (efforts) 12 and the estimated size of the project
is (FP) 209.72.
There are also few features which can be integrated with this system to make it more
flexible. Below list shows the future points to be consider:
Getting the current status of patient.
Including a different module for pharmacy, LAB, Bed Allotment and many more.
Including a Frequently Asked Questions Section.
Finally, we like to conclude that we put all our efforts throughout the development of
our project and tried to fulfill most of the requirements of the user.
78 | P a g e