0% found this document useful (0 votes)
16 views

Done

The document outlines an ER diagram for a hospital management system. It defines 15 entities related to patients, doctors, appointments, medications, tests, admissions, surgeries, and payments. It also describes many-to-many, one-to-many, and one-to-one relationships between the entities.

Uploaded by

ayshaahoque9113
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Done

The document outlines an ER diagram for a hospital management system. It defines 15 entities related to patients, doctors, appointments, medications, tests, admissions, surgeries, and payments. It also describes many-to-many, one-to-many, and one-to-one relationships between the entities.

Uploaded by

ayshaahoque9113
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CSE311L

Section: 6
Submitted by: Group 7
Maria Chowdhury Prianka - 2122163642
Maria Zaman Mim - 2011031042
Date: 15/09/23

Task i

Theme: A person who is unwell and requires surgery from the hospital.
Related entities:
1. Patients: patient_ID, patient_name, patient_age, patient_gender, patient_contact
2. Doctors: doctor_ID, doctor_name, doctor_expertise, doctor_contact
3. Appointments: app_ID, app_patient, app_doctor, app_date, app_time
4. Medications: med_ID, med_name, med_dosage, med_instructions
5. Prescription: prescription_ID, prescription_patient, prescription_doctor, prescription_date,
prescription_med
6. Test: test_ID, test_name, test_description, test_cost
7. Test_Results: result_ID, result_test, result_patient, result_date, result_report_outcome
8. Rooms: room_ID, room_type, room_availability
9. Admission: admission_ID, admission_patient, admission_date, admission_discharge_date,
admission_room
10. Surgeries: surgery_ID, surgery_name, surgery_description, surgery_date, surgery_patient,
surgery_doctor
11. Inpatient_Medication: inpatient_medication_ID, inpatient_medication_patient,
inpatient_medication_admission, inpatient_medication_med,
inpatient_medication_dosage, inpatient_medication_time
12. Billing: bill_ID, bill_patient, bill_date, bill_due_amount
13. Payments: payment_ID, payment_bill, payment_date, payment_amount_paid
14. Blood_Transfusions: transfusion_ID, transfusion_receiving_patient, transfusion_date,
transfusion_btype, transfusion_used_quantity
15. Discharge_Summary: discharge_ID, discharge_patient, discharge_date,
discharge_reason, discharge_treatment_progress

Task ii

Relationships:
Many to Many:
1. Patients – Surgeries
2. Surgeries – Doctors
3. Patients – Blood_Transfusions
4. Patients – Inpatient_Medication
5. Inpatient_Medication – Medications
6. Medications – Prescription
7. Patients – Test
8. Patients – Admission

One to Many:
1. Patients – Appointments
2. Doctors – Appointments
3. Doctors – Prescription
4. Room – Admission
5. Patients – Billing
6. Billing – Payments
7. Patients – Discharge_Summary
8. Patients – Prescription

One to One:
Test – Test_Results

Schemas:
1. Patients (patient_ID, patient_name, patient_age, patient_gender,
patient_contact)
2. Doctors (doctor_ID, doctor_name, doctor_expertise, doctor_contact)
3. Appointments (app_ID, app_patient, app_doctor, app_date, app_time,
patient_ID, doctor_ID)
4. Prescription (prescription_ID, prescription_patient, prescription_doctor,
prescription_date, prescription_med, patient_ID, doctor_ID)
5. Admission (admission_ID, admission_patient, admission_date,
admission_discharge_date, admission_room, room_ID)
6. Admission_Patients (admission_ID, patient_ID)
7. Rooms (room_ID, room_type, room_availability)
8. Test ( test_ID, test_name, test_description, test_cost)
9. Test_Patients (patient_ID, test_ID)
10. Test_Results (result_ID, result_test, result_patient, result_date,
result_report_outcome, test_ID)
11. Inpatient_Medication (inpatient_medication_ID, inpatient_medication_patient,
inpatient_medication_admission, inpatient_medication_med,
inpatient_medication_dosage, inpatient_medication_time)
12. Patients_Inpatient_Medication (patient_ID, inpatient_medication_ID)
13. Medications (med_ID, med_name, med_dosage, med_instructions)
14. Medications_Inpatient_Medication (med_ID, inpatient_medication_ID)
15. Medications_Prescriptions (med_ID, prescription_ID)
16. Surgeries (surgery_ID, surgery_name, surgery_description, surgery_date,
surgery_patient, surgery_doctor)
17. Patients_Surgeries (patient_ID, surgery_ID)
18. Surgeries_Doctors (surgery_ID, Doctors_ID)
19. Blood_Transfusions (transfusion_ID, transfusion_receiving_patient,
transfusion_date, transfusion_btype, transfusion_used_quantity)
20. Patients_Blood_Transfusions (patient_ID, transfusion_ID)
21. Billing (bill_ID, bill_patient, bill_date, bill_due_amount, patient_ID)
22. Payments (payment_ID, payment_bill, payment_date, payment_amount_paid,
bill_ID)
23. Discharge_Summary (discharge_ID, discharge_patient, discharge_date,
discharge_reason, discharge_treatment_progress, patient_ID)

Task iii

ER Diagram

You might also like