Hi everyone,
I need some help with identifying real world entities and their attributes for a hospital scenario. I have listed below the entities and attributes that I could think of. Please comment or give suggestions on how I can improve it.
EMPLOYEE (<strong>Employee_SSN</strong>, Address_ID, Contact_ID, Employee_Name, Designation, Salary)
PATIENT (<strong>Patient_SSN</strong>, Address ID, Contact_ID Patient_Name, Disease)
MEDICAL_HISTORY (<strong>Patient_SSN</strong>, Treatment_ID, History)
CONTACT (<strong>Contact ID</strong>, Email, TelNo)
ADDRESS (<strong>Address ID</strong>, Street, City, State, Zip and Region)
DOCTOR (<strong>Doc_ID</strong>, Doc_Name, Department)
PRESCRIPTION (<strong>Prescription_ID</strong>, Patient_SSN, Medication_Name, Prescription_Type, Frequency, Instruction, Expiry_Date, Stock)
WARD (<strong>Ward ID</strong>, Ward_Name, Main_Treatment, Nurse_In_Charge, Number_Of_Bed)
TREATMENT (<strong>Treatment_ID</strong>, Treatment_Type, Treatment_Date, Treatment_Location, Fee, Result)
PHARMACY (<strong>Pharmacy_ID</strong>, Pharmacy_Name, Pharmacy_Location, Pharmacy_TelNo)
PATIENT_ADMISSION (<strong>Patient_SSN</strong>, Ward_ID, Admission_Date, Discharge_Date, Admission_Reason, Employee_SSN)
I need to also identify a multi-valued attribute, a weak entity, recursive relationship, Super/ subtype entities, a ternary relationship, relationship with cardinality ratio 1:1, 1:M, N:M.
So far I have only identified a multi-valued attribute which is Pharmacy_TelNo in PHARMACY, a weak entity which is MEDICAL_HISTORY and a recursive relationship which is Nurse_In_Charge in EMPLOYEE. As for the other I have not identified them yet.
Please have a look and tell me if what I have done so far is correct.
Thank you so much
Regards.