0% found this document useful (0 votes)
35 views3 pages

Spring 2024 - CS312 - 2

Uploaded by

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

Spring 2024 - CS312 - 2

Uploaded by

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

Virtual University of Pakistan Semester Spring 2024

CS312 – Data Base Modeling and Design


Assignment No.2
Maximum Marks: 20
Instructions Due Date: June 24, 2024

The purpose of this assignment is to give your hands-on practice. It is expected that
students will solve the assignment themselves. The following rules will apply during the
evaluation of the assignment.

● Cheating from any source will result in zero marks in


the assignment.
● Your assignment will be graded to zero if the submitted assignment does NOT
open or file is corrupted.
● No assignment after the due date will be accepted.

● The assignment should be submitted in .docx format.

Objective & Learning Outcome


The objective of this assignment is to

 This assignment aims to provide you with practical experience in the conceptualization,
analysis, and design of a database system using knowledge from various fundamental
concepts in database modeling and design.

Question No. 1 (20 Marks = 10+10)

Hospitals are nowadays using centralized system for its management. Consider there is City General
Hospital that is going to enhance its Hospital Management System to improve patient care and
operational efficiency. Hospital management comprises doctors, medical staff, administrator patients
medical records hospital rooms.

 The system needs to manage patients, each with unique details such as ID, name, contact
information, and insurance details.
 Doctors, identified by unique IDs, specialize in various fields and are associated with specific
departments.
 Patients schedule appointments with doctors, and each appointment generates a treatment
record, capturing diagnosis and prescriptions.
 Medical records are maintained for each patient, linked to their treatments.
 Rooms, identified by unique numbers and types, are assigned to patients upon admission,
capturing admission and discharge dates.
 Hospital staff, including nurses and technicians, are assigned to departments and support the
care process.
Virtual University of Pakistan Semester Spring 2024
This scenario provides you with an overview of the structure of the system and give a detail of how they
have relationship with each other and how they work in the system.

Tasks to Perform
Keeping in mind the scenario given above, you have to perform the following tasks.
Task No.1:
 Identify all Possible Entities
 Identify all attributes for these entities
Task on.2:
 Describe the entities, their attributes, and relationships required to support this system, and
create an Entity-Relationship Diagram (ERD) that visualizes these components and their
interconnections.

Answer No. 1 (20 Marks = 10+10)

Task No. 1: Identify all Possible Entities and their Attributes


1. Patient
o Attributes: PatientID (PK), Name, Contact Information, Insurance Details
2. Doctor
o Attributes: DoctorID (PK), Name, Specialization, DepartmentID (FK)
3. Department
o Attributes: DepartmentID (PK), DepartmentName
4. Appointment
o Attributes: AppointmentID (PK), PatientID (FK), DoctorID (FK),
AppointmentDateTime, TreatmentRecordID (FK)
5. Treatment Record
o Attributes: TreatmentRecordID (PK), Diagnosis, Prescriptions
6. Medical Record
o Attributes: MedicalRecordID (PK), PatientID (FK), TreatmentRecordID (FK)
7. Room
o Attributes: RoomNumber (PK), RoomType, PatientID (FK), AdmissionDate,
DischargeDate
8. Hospital Staff
o Attributes: StaffID (PK), Name, DepartmentID (FK), Role
9. Administrator
o Attributes: AdministratorID (PK), Name, Contact Information

Task No. 2: Describe Entities, Attributes, and Relationships in an ERD


Based on the identified entities and their attributes, let's describe their relationships and create
an ERD:
1. Entities and Attributes:
o Patient: PatientID (PK), Name, ContactInfo, InsuranceDetails
o Doctor: DoctorID (PK), Name, Specialization, DepartmentID (FK)
o Department: DepartmentID (PK), DepartmentName
Virtual University of Pakistan Semester Spring 2024
o Appointment: AppointmentID (PK), PatientID (FK), DoctorID (FK),
AppointmentDateTime
o Treatment Record: TreatmentRecordID (PK), Diagnosis, Prescriptions
o Medical Record: MedicalRecordID (PK), PatientID (FK), TreatmentRecordID (FK)
o Room: RoomNumber (PK), RoomType, PatientID (FK), AdmissionDate,
DischargeDate
o Hospital Staff: StaffID (PK), Name, DepartmentID (FK), Role
o Administrator: AdministratorID (PK), Name, ContactInfo
2. Entity Relationships:
o Patient - Appointment - Doctor: Patient schedules Appointment with Doctor.
o Appointment - Treatment Record: Each Appointment generates a Treatment Record.
o Patient - Medical Record: Medical Records are linked to Patients.
o Room - Patient: Rooms are assigned to Patients upon admission.
o Doctor - Department: Doctors are associated with specific Departments.
o Hospital Staff - Department: Hospital Staff are assigned to Departments.
o Administrator: Administrators oversee hospital management but do not directly relate
to other entities in the operational sense.
3. Entity-Relationship Diagram (ERD):
In the ERD:
o Each entity is represented as a rectangle.
o Primary keys are underlined.
o Relationships are depicted using lines connecting related entities, with cardinality (1
,N
) and participation constraints (total participation, partial participation) where
applicable.

Conclusion:
This ERD captures the essential entities, attributes, and relationships required for a Hospital
Management System as described in the scenario. It visualizes how patients, doctors, medical
records, appointments, rooms, and staff interact within the system, facilitating effective patient
care and operational management.

Syllabus: The syllabus for this assignment is 88-176 (Week4 - Week 9) topics of this course.
Note: Deadline to submit solutions is 24 June 2024.

For any query about the assignment, contact at [email protected]

You might also like