0% found this document useful (0 votes)
12 views2 pages

Fall 2024 - CS304 - 1 - BC230408976

The document outlines the structure of a blood donation management system for a course assignment in Object Oriented Programming. It details the entities involved, including Donor, Patient, Hospital, Inventory, and Admin, along with their attributes and functions. Additionally, it describes the relationships among these entities, highlighting the interactions and dependencies within the system.

Uploaded by

talalhussain806
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)
12 views2 pages

Fall 2024 - CS304 - 1 - BC230408976

The document outlines the structure of a blood donation management system for a course assignment in Object Oriented Programming. It details the entities involved, including Donor, Patient, Hospital, Inventory, and Admin, along with their attributes and functions. Additionally, it describes the relationships among these entities, highlighting the interactions and dependencies within the system.

Uploaded by

talalhussain806
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/ 2

Assignment No.

01
Semester: Fall 2024
CS304- Object Oriented Programming

Entities:
 Donor
 Patient
 Hospital
 Inventory
 Admin

Attributes and Functions:


 Donor:
Attributes: donorID, name, bloodType, contactInfo, donationHistory, lastDonationDate,
eligibilityStatus
Functions: register(), updateProfile(), viewDonation History(), checkEligibility(),
receiveReminder()

 Patient:
Attributes: patientID, name, blood TypeRequirement, medicalHistory, contactInfo,
requestStatus
Functions: registerRequest(), updateRequest(), viewRequestStatus()

 Inventory:
Attributes: inventoryID, bloodType, quantity, expiration Date
Functions: checkAvailability(), updateInventory(), removeExpiredBlood()

 Hospital:
Attributes: hospitalID, name, location, contactInfo
Functions: viewDonor Details(), selectDonor(), submitBloodRequest()

 Admin:
Attributes: adminID, name, contactInfo
Functions: register Donor(), manageInventory(), handleBloodRequest(), sendReminder
ToDonors(), checkBloodExpiry(), verifyDonorEligibility()
Relationship Among Entities:
 Donor 1:M Patient
 Donor 1:M Inventory
 Patient M:1 Admin
 Inventory 1:1 Admin
 Hospital M:1 Admin
 Hospital M:N Donor
 Hospital M:N Patient

Comprehensive Class Diagram:

1
Facilitates
M

1 1

1
1

Submit Request
Manages Process
Manages

M M
views
1 M

Blood Donor

You might also like