Hospital DB Requirements

advertisement
Hospital DB Requirements
Patients
• Patients are treated in a single section by
the doctors assigned to it. Each patient will
be assigned a single doctor.
• Patient info stored: Name, birth date, sex,
weight, and height.
• Patients can be of types: Jordanians with
a national number or Non-Jordanians
Employees
• Nurses also attend to the patients; a
number of nurses are associated with
each section.
• Doctor & Nurse info stored: Name, ID,
specialty, experience, hourly rate
Medications
• Each patient is required to take a variety of
medicines a certain number of times per
day and for varying lengths of time.
• Medication info: Name, Manufacturer,
price.
• The system should be capable of
calculating the cost of treatment for each
patient.
ERD
Mapping ERD
into tables
Relational Model
Patient (ID, Name, Bdate, Sex, Weight, Height, Sec_ID)
Jordanian_Patient (Pat_ID, NN)
Non_Jordanian_Patient (Pat_ID, Country)
Employee (ID, Name, Speciality, Experience, Rate,
Sec_ID)
Doctor (Emp_ID)
Nurse (Emp_ID)
Section (ID, Name)
Medicine (ID, Name, Price, Mfr)
Take (Pat_ID, Med_ID)
Download