Case: Hospital Management System
Aim:
XYZ hospital is a multi specialty hospital that includes a number of departments, rooms, doctors, nurses, compounders, and other staff working in the hospital. Patients having different kinds of ailments come to the hospital and get checkup done from the concerned doctors. If required, they are admitted in the hospital and discharged after treatment. The aim of this case study is to design and develop a database for the hospital to maintain the records of various department, rooms, and doctors in the hospital. It also maintain record of the regular patients, patients admitted in the hospital, the check up of patients done by the doctors, patients that have been operated, and patients discharged from the hospital.
Description:
In hospital, there are many departments like Orthopedic, Pathology, Emergency, Dental, Gynaecology, Anesthetic, I.C.U., Blood Bank, Operation Theater, Laboratory, M.R.I., Neurology, Cardiology, Cancer Department, Corpse, etc. There is an OPD where patients come and get a card (that is, entry card of the patient) for check up from the concerned doctor. After making entry in the card, they go to the concerned doctor's room and the doctor checks up their ailments. According to the ailments, the doctor either prescribes medicine or admits the patient in the concerned department. The patient may choose either private or general room according to his/her need. But before getting admission in the hospital, the patient has to fulfill certain formalities of the hospital like room charges, etc. After the treatment is completed, the doctor discharges the patient. Before discharging from the hospital, the patient again has to complete certain formalities of the hospital like balance charges, test charges operation charges (if any), blood charges, doctor's charges etc. Next we talk about the doctors of the hospital. There are two types of the doctors in the hospital, namely, regular doctors and call on doctors. Regular doctors are those doctors who come to the hospital daily. Calls on doctors are those doctors who are called by the hospital if the concerned doctor is not available.
- Identify the Entities:
- Hospital
- Department
- Room
- Doctor
- Patient
- Admission
- Checkup
- Treatment
- Discharge
- Identify the Attributes for Each Entity:
- Hospital: Hospital_ID, Name, Address, Contact_Number
- Department: Department_ID, Name, Location
- Room: Room_ID, Room_Type (Private/General), Charges, Status
- Doctor: Doctor_ID, Name, Specialty, Type (Regular/On-Call), Contact_Number
- Patient: Patient_ID, Name, Address, Contact_Number, Date_of_Birth, Gender, Entry_Card_Number
- Admission: Admission_ID, Date, Room_Type, Room_ID, Patient_ID, Doctor_ID
- Checkup: Checkup_ID, Date, Symptoms, Diagnosis, Doctor_ID, Patient_ID
- Treatment: Treatment_ID, Treatment_Type, Medicine_Prescribed, Operation_Details, Doctor_ID, Patient_ID
- Discharge: Discharge_ID, Date, Final_Bill, Patient_ID, Doctor_ID, Treatment_ID
- Identify the Relationships Between Entities:
- Hospital to Department:
- Relationship Line: Hospital — (1) ⟶ (Many) — Department
- Description: A hospital contains multiple departments.
- Department to Doctor:
- Relationship Line: Department — (1) ⟶ (Many) — Doctor
- Description: Each department has multiple doctors.
- Department to Room:
- Relationship Line: Department — (1) ⟶ (Many) — Room
- Description: Each department has multiple rooms.
- Patient to Checkup:
- Relationship Line: Patient — (1) ⟶ (Many) — Checkup
- Description: A patient can have multiple checkups.
- Doctor to Checkup:
- Relationship Line: Doctor — (1) ⟶ (Many) — Checkup
- Description: A doctor can perform multiple checkups.
- Patient to Admission:
- Relationship Line: Patient — (1) ⟶ (Many) — Admission
- Description: A patient can have multiple admissions.
- Admission to Room:
- Relationship Line: Admission — (Many) ⟶ (1) — Room
- Description: An admission is linked to one room.
- Admission to Doctor:
- Relationship Line: Admission — (Many) ⟶ (1) — Doctor
- Description: An admission is associated with one doctor.
- Patient to Treatment:
- Relationship Line: Patient — (1) ⟶ (Many) — Treatment
- Description: A patient can receive multiple treatments.
- Doctor to Treatment:
- Relationship Line: Doctor — (1) ⟶ (Many) — Treatment
- Description: A doctor can provide multiple treatments.
- Patient to Discharge:
- Relationship Line: Patient — (1) ⟶ (1) — Discharge
- Description: A patient has one discharge per admission.
- Treatment to Discharge:
- Relationship Line: Treatment — (Many) ⟶ (1) — Discharge
- Description: A discharge references one treatment.
- Hospital to Room:
- Relationship Line: Hospital — (1) ⟶ (Many) — Room
- Description: A hospital can have many rooms, but each room is associated with one hospital.
- Hospital to Patient:
- Relationship Line: Hospital — (1) ⟶ (Many) — Patient
- Description: A hospital can admit multiple patients.
- Hospital to Doctor:
- Relationship Line: Hospital — (1) ⟶ (Many) — Doctor
- Description: A hospital employs or contracts with multiple doctors.