Small Surgery Center
Database management System
Name
Institution
, Database management System 2
DATABASE DESIGN
Primary Keys and Attributes
The primary keys for the database include PatientID, Doctor ID, and the procedure. The
other one is the appointment_id.
Tables and their fields
Patient Table: last name, fname, name of kin, dob, address, sex and contact.
Doctor: Name, id, areas of specialization.
Appointment: name, doc-id, patient-is, time, date.
Medical-procedures: procedure-id, order-num, doctor-id, treatment-id
Treatment: Fee, id, type.
Entity relationships explained
The relationships of the tables are as follows; patient to the doctor is many to many
relationships, many tests can be ordered by the doctor, thus representing one to many relationships.
One doctor can only perform a single procedure at a time. Thus the one-to-one relationship
Database Entity Relationship Diagram