COM736
COM736
Contents
Improved ER Diagram............................................................................................................................3
ENTITIES.................................................................................................................................................4
ATTRIBUTES...........................................................................................................................................5
RELATIONSHIP BETWEEN ENTITIES........................................................................................................6
SCHEMA.................................................................................................................................................7
References.............................................................................................................................................8
2
Improved ER Diagram
The newly added part here is the new departments Optic Care and Dental. The only thing added in
this ER diagram is the Doctors, Assistants and staffs of this new department. Hence they are added
to the Staff as specialization relationship where every staff of dental and optic care department is
the staff of SMH. Hence their details are common for all the staffs of SMH. This is the newly added
part in this ER diagram
3
ENTITIES
1. PERSON
2. ADMISSION
This entity is used to store the details about the admission of patients such as admitted date,
ward allotted and so on.
3. WARD
This entity is used to store the details about the wards such as number of rooms, ward name and
so on.
4. STAFF
5. GENERAL
This entity is used to store the details of the general physicians, assistants and admin staffs.
6. DENTAL
This entity is used to store the details of the doctors and technicians of Dental department.
7. OPTICCARE
This entity is used to store the details of the doctors and technicians of Optic Care department.
8. OPERATION
This is used to store details about the operation such as patient details, doctors, nurses and
medical details.
9. OPTYPE
This is used to store the types of operation with the cost details of SMH.
10. OBSERVATION
This is used to store observation details of the patients done during each day and time by health
care assistants.
4
ATTRIBUTES
Following are the attributes of each entity with primary key:
5
RELATIONSHIP BETWEEN ENTITIES
Relationship Entity1 Entity2 Description
6
SCHEMA
PERSON (PID, Name, Sex, Address, DOB, Phone)
STAFF (StaffID, Name, Sex, DOB, Qualification, Experience, Joineddate, Address, Phone, Email)
7
References
geeksforgeeks, 2023. Introduction of ER Model. https://www.geeksforgeeks.org/introduction-of-er-
model/, pp. 1-1.
Peterson, R., 2023. Entity Relationship (ER) Diagram Model with DBMS Example.
https://www.guru99.com/er-diagram-tutorial-dbms.html, pp. 1-1.