DepartmentID
(Primary Key), Name
(e.g., Orthopedic, Pathology), Location
DoctorID
(Primary Key), Name
, Specialization
, Type
(Regular or Call on), DepartmentID
(Foreign Key to Department), RoomID
(Foreign Key to Room)PatientID
(Primary Key), Name
, DOB
, Gender
, ContactInfo
, Address
, EntryDate
, RoomType
(Private or General), Admitted
(Yes/No), DischargeDate
RoomID
(Primary Key), RoomType
(Private or General), ChargesPerDay
, Availability
StaffID
(Primary Key), Name
, Position
(e.g., Nurse, Compounder), DepartmentID
(Foreign Key to Department)CheckupID
(Primary Key), PatientID
(Foreign Key to Patient), DoctorID
(Foreign Key to Doctor), Diagnosis
, Prescription
, Date
AdmissionID
(Primary Key), PatientID
(Foreign Key to Patient), RoomID
(Foreign Key to Room), AdmissionDate
, DischargeDate
BillID
(Primary Key), PatientID
(Foreign Key to Patient), RoomCharges
, DoctorCharges
, TestCharges
, OperationCharges
, BloodCharges
, TotalAmount
, BalanceDue
Entities will be represented as rectangles, each containing attributes.
Relationships (diamonds) will connect the entities, labeled to indicate the nature of each relationship.
Primary Keys are underlined, and Foreign Keys will have lines to indicate links to other entities.