Question: # Entity Names and Attributes #### 1 . Resident - * * _ ResidentID _ * * ( Surrogate PK ) - FirstName - LastName
# Entity Names and Attributes
#### Resident
ResidentIDSurrogate PK
FirstName
LastName
DateOfBirth Date
Gender
ContactNumber Numeric
EmergencyContact
EmergencyContactNumber
#### Room
RoomIDSurrogate PK
RoomNumber
Floor
Type varchar
Capacity Numeric
#### MedicalRecord
MedicalRecordIDSurrogate PK
ResidentIDFK
ConditionDescription Composite PK
DateRecorded Date
#### Medicine
MedicineIDSurrogate PK
MedicineName
Description
#### Prescription
PrescriptionIDSurrogate PK
MedicalRecordIDFK
MedicineIDFK
Dosage Varchar
Staff
StaffIDSurrogate PK
FirstName
LastName
Role
DateOfHire Date
ContactNumber Numeric
Email Alphanumeric
#### VisitSchedule
StaffIDResidentIDDateComposite PK
StaffIDFK
ResidentIDFK
Date Date
Purpose
#### Department
DepartmentIDSurrogate PK
Name Varchar
Description
#### StaffDepartment
StaffIDDepartmentIDComposite PK
StaffIDFK
DepartmentIDFK
#### FamilyMember
FamilyMemberIDSurrogate PK
ResidentIDFK
FirstName
LastName
Relationship
ContactNumber Numeric
#### RoomAssignment
RoomAssignmentIDSurrogate PK
RoomIDFK
ResidentIDFK
AssignmentDate Date
#### Inventory
InventoryIDSurrogate PK
ItemName Varchar
Quantity Numeric
Description
### Relationships, Cardinality, and Participation
Resident to MedicalRecord: :N
A resident can have multiple medical records.
Medical Record includes: ConditionDescription, DateRecorded
MedicalRecord to Prescription: :N
A medical record can have multiple prescriptions.
Prescription includes: Dosage
Resident to FamilyMember: :N
A resident can have multiple family members associated.
Room to RoomAssignment: :N
A room can have multiple residents assigned over different dates.
Room includes: RoomNumber, Floor, Type, Capacity
Resident to RoomAssignment: :N
A resident can reside in multiple rooms over time.
Assignment includes: AssignmentDate
Department to StaffDepartment: :N DepartmenttoMany Staff
A department can have many staff members.
StaffDepartment composite includes: StaffIDDepartmentID
Staff to StaffDepartment: :N StafftoMany Departments
A staff member can work in many departments.
### Specialization Hierarchy
StaffSupertype
Nurse Disjoint Subtype
Doctor Disjoint Subtype
### Normalization
NF First Normal Form ensures each column contains an atomic value, and each record is unique.
NF Second Normal Form removes partial dependency, ensuring all nonkey attributes are fully functional dependent on the primary key.
NF Third Normal Form removes transitive dependencies, ensuring nonkey attributes are dependent only on the key. come up with ER digram
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
