Professional Documents
Culture Documents
DBMS Case Study Hospital Management System
DBMS Case Study Hospital Management System
DBMS Case Study Hospital Management System
By seeing all this we can realize that there is a vast amount of data that needs to
be stored in order to run a hospital seamlessly. For this we can use a database
for the hospital to maintain the records of various departments, rooms, and
doctors in the hospital. It will help us in maintaining records of the patients
admitted in the hospital, the check up of patients done by the doctors, the
patients that have been operated, and patients discharged from the hospital.
INTRODUCTION:
DBA ensures crash recovery and takes necessary steps to restore the data
to a consistent state .
DBA ensures data tuning i.e, takes the responsibility for modifying the
database, in particular conceptual and physical schema(basing on users
requirements)
OBJECTIVES:
ADVANTAGES:
Specifically, the integration of the software into the system has made
communication much more effective in the case of the health care system. As a
result, it is possible to access every data from anywhere in the world specifically
via. authorized login. This mode of communication has become relatively
cheaper.
The effective usage of technology has contributed to minimizing many of the
limitations. One of the biggest issues in the health care system is considered to
be the geographical limitation.This has been effectively managed with the
addition of the hospital management system. The integral reports can be sent
through instant messages, emails, etc.
In the case of the hospital management system, the information is available 24
hours throughout the week. This indicates that the reports can be sent anytime
on any particular day.So, there is no such possibility for the delay in getting the
treatment. Apart from that, the communication mode has become relatively
cheaper. Therefore, no report will be delayed from reaching the hands of the
authorities.
Improved productivity and cost-effectiveness is considered to be another
important advantage of the hospital management system. Currently, it has been
productive to manage the things automatically when compared to the old day
manual set up.
In recent days, many of the modifications are brought to the specific system.
One of the integral things is considered to be the change in the education
system. This has ultimately given shape to a completely new type of system.
It develops a conceptual design for the database. It also develops a very simple
and easy to design view of data.
Entity is a thing/object about what data are to be collected and stored in the
tables.
Eg. EMPLOYEE
Attributes are characteristics of the entity/it describes about an entity.
Eg. SSN, last name, first name, Ph no, email etc.,
Relationships describe associations between the entities
i.e. 1:M, M:M, 1:1, M:1
STEPS OF ER MODEL:
1. Identify the Entities and Attributes.
ENTITIES:
Patient
Doctor
Appointment
Medical History
ATTRIBUTES:
Patient – email id (unique)
Name
Gender
Password
Address
Doctor – email id (unique)
Name
Gender
Password
Appointment – id (unique)
Date
Start time
End time
Status
Medical History – id (unique)
Date
Condition
Surgeries
Medication
2. Name the Entity (Relationship).
Patients Attend Appointments
Patients Fill History
Doctor Views Medical History
Doctor Diagnose Appointments
3. Identify the cardinality (1-M , M-1 , M-M , 1-1)
Patients Attend Appointments (M – M)
P1 A1
P2 A2
P3 A3
P4 A4
M M
Patients Fill History(1 – M)
P1 M1
P2 M2
P3 M3
M4
1 M
Doctor Views Medical History(M – M)
D1 M1
D2 M2
D3 M3
D4 M4
M M
Doctor Diagnose Appointments(1 – M)
D1 A1
D2 A2
D3 A3
A4
1 M
4. Draw the ER Model.
ER MODEL:
LOGICAL DATABASE SYSTEM:
Relational model can represent as a table with columns and rows. Each row is
known as a tuple. Each table of the column has a name or attribute.
Relational schema: A relational schema contains the name of the relation and
name of all columns or attributes.
Relational key: In the relational key, each row has one or more attributes. It
can identify the row in the relation uniquely.
SCHEMA REFINEMENT:
Functional Dependencies and Normalisation
1. Patient :
R = (Email, Password, Name, Address, Gender)
FDs:
a. Email -> Password
b. Email -> Name
c. Email -> Address
d. Email -> Gender
2. Medical History:
R = (id, Date, Conditions, Surgeries, Medication)
FDs:
a. id -> Password
b. id -> Date
c. id -> Conditions
d. id -> Surgeries
e. id -> Medication
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
3. Doctor:
R = (email, gender, password, name)
FDs:
a. email ->gender
b. email -> password
c. email -> name
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
4. Appointment:
R = (id, date, start time, end time, status)
FDs:
a. id -> date
b. id -> start time
c. id -> end time
d. id -> status
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
5. PatientsAttendAppointments:
R = (patient, appointment, concerns, symptoms)
FDs:
a. (patient, appointment) ->concerns
b. (patient, appointment) -> symptoms
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
6. PatientsFillHistory:
R = (Patient, History)
FDs:
a. History ->Patient
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
7. Diagnose:
R = (appointment, doctor,diagnosis, prescription)
FDs:
a. (appointment, doctor) ->diagnosis
b. (appointment, doctor) ->prescription
Table is in 1NF since all attributes are atomic.
Table is in 2NF since there is no partial dependency.
Table is in 3NF due to absence of any transitive dependency.
8. DoctorViewsHistory:
R = (history, doctor)
Since entire table is the key, it does not have partial and transitive
dependencies. It also has atomic attributes.
Hence it is in 3NF.
https://livesql.oracle.com/apex/livesql/s/n90b1cngcz99qb69
9o6ktbmo7