Question: A hospital needs to maintain a database to keep track of its patients, doctors, appointments, treatments, and prescriptions. The following requirements have been identified: The

A hospital needs to maintain a database to keep track of its patients, doctors, appointments, treatments,
and prescriptions. The following requirements have been identified:
The hospital records each patients name (Pname), patient ID (Pid), Social Security number
(Pssn), current address (Paddr), phone number (Pphone), birth date (Pbdate), sex (Psex), blood
type (Pbloodtype), and emergency contact details (Emergency_contact). Both Pssn and Pid have
unique values for each patient.
Each doctor is identified by a doctor ID (Did), and the hospital keeps track of the doctors name
(Dname), department (Ddept), specialization (Dspecialization), phone number (Dphone), and
office number (Doffice). Each doctor ID (Did) is unique.
The hospital also tracks appointments. Each appointment is associated with a patient, a doctor,
an appointment date (Adate), time (Atime), and purpose (Apurpose). A patient can have multiple
appointments with different doctors, but an appointment is unique based on the combination of
the patient, doctor, date, and time.
The hospital also records treatment information. Each treatment is described by a treatment ID
(Tid), treatment name (Tname), cost (Tcost), and the treatments duration (Tduration). Treatment
ID (Tid) is unique.
Prescriptions are recorded with details of the prescribing doctor (Did), patient (Pid), medication
name (Med_name), dosage (Dosage), and prescription date (Presc_date). A combination of Pid,
Did, Med_name, and Presc_date uniquely identifies a prescription.
T1:
A. List all the attributes of the Hospital management system for each entity - patient, doctor,
appointment, treatment, and prescription. Identify the primary keys for the relations
Patients,Doctors, and Appointments based on the provided requirements.
(L: Remember)
B. Given the following set of functional dependencies in the Patients relation: (L: Apply)
Pssn -> Pname, Paddr, Pphone
Pid -> Pname, Pbdate, Pbloodtype
Pname -> Paddr, Pphone
Use Armstrongs inference rules to derive any new functional dependencies. Then,
find the minimal cover for this set."
C. Is the Prescriptions relation (Pid, Did, Med_name, Presc_date, Dosage) in 2NF? If not,
explain the reason and describe the steps to bring it to 2NF.(L: Analyze)
D. Examine the functional dependencies in the Treatments relation: (Tid, Tname, Tcost,
Tduration). Is this relation in BCNF? If not, explain the violation and normalize it to
BCNF.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!