Mam Ayesha Rashid Ali Husnain 18321519-024 BS (CS) - 4 - A Database Systems CS-243
Mam Ayesha Rashid Ali Husnain 18321519-024 BS (CS) - 4 - A Database Systems CS-243
Normlization
Submitted To:
Mam Ayesha Rashid
Submitted By:
Ali Husnain
18321519-024
BS(CS)-4th-A
Course Name:
Database Systems
CS-243
SDLC (System Development Life Cycle) Steps
1) Problem Identification
Hospital are the essential part of our lives,Providing best medical facilities to people suffering
from various diseases is one of main goal of a hospital.
It is necessary for any hospital to keep track of its day to day activities and records of
patients,Doctors,Rooms etc.But keeping track of all activities and records on paper is very
difficult and error prone.
That’s Why I decide to built a database system for hospital to end the paper work and provide
low-cost reliable automation of existing system.
Project Name: Hospital Management Database System
2) Requirement Gathering
A Hospital have number of departments,like Operation theater,Emergency,Laboratory,ICU,
etc.There is an Entery point(OPD) where patients come and get entry card for check up from
their concerned doctor.After making entry patient go to the doctor room for their check up.A
doctor check the patient and according to patient ailment doctor may prescribes medicine or
may admit the patient to the concerned department.So before getting admit patients have
to fulfill some conditions of hospital like room charges,test charges and payment. When the
treatment is completed doctor discharge the patient and then patient pays their dues.
So the main objective of this case study is to design and develop a database for the hospital
to maintain the records of departments,rooms and Doctors.It also maintains the records of
regular patients,patients admitted in the hospital,check up done by the doctor,patients that
have admitted in hospital and patients discharged from the hospital.
3) System Design
Tables:
Employee:
E_Id E_Name E_mail Gender Ph_no DOB Address Type Salary
Doctor:
D_Id E_Id Specialization
Patient:
P_Id D_Id Name F_Name Address Ph_no Blood_group Gender Disease
Patient_Admitted:
P_Id Arrival_Date Discharge_Date Room_No P_A_Id
Medicine:
M_Id P_Id M_Name M_Cost
Test:
P_Id T_Id T_Name T_Cost
Bill:
B_Id P_Id Room_Cost Test_cost M_cost Other_Charges
Room:
R_Id P_Id R_type R_Cost P_A_Id
Department:
Dep_Id D_Name D_Id
Reciepist:
E_Id R_Name
Record:
Record_Id P_Id E_Id Rec_Details Emp_Type
Normlization
Table:1 Patient
Here we will declair P_Id and Disease togather to identify each row.So the new key is P_Id
and disease.
P_Id Name F_Name Address Ph_no Blood_group Gender
Disease
Disease D_Id
Resultant Table(Key=P_Id+Disease)
P_Id Disease D_Id
Table:2 Employee
E_Id E_Name E_mail Gender Ph_no Address Type Salary
Employee
E_Id E_Name Gender Type Salary
Table:3 Doctor
D_Id E_Id Specialization
Table:4 Patient_Admitted:
P_Id Arrival_Date Discharge_Date Room_No P_A_Id
Here we take P_Id and P_A_Id both as a primary key.
So As we can see that Room no will be assigned only those patient wo will admitted.So
Room_no is non primary key and is dependent on P_A_Id only .
Table: 5 Medicine
M_Id P_Id M_Name M_Cost
Table: 6 Test
P_Id T_Id T_Name T_Cost
Table:7 Bill
B_Id P_Id Room_Cost Test_cost M_cost Other_Charges
Table:8 Room
R_Id P_Id R_type R_Cost P_A_Id
Table:9 Department:
Dep_Id D_Name D_Id
Table:10 Reciepist:
E_Id R_Name
Table:11 Record:
Record_Id P_Id E_Id Rec_Details Emp_Type