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

cs304 Assignment

Uploaded by

qasiiialiii
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)
22 views2 pages

cs304 Assignment

Uploaded by

qasiiialiii
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

Qasim Ali

BC220203825
Assignment No. 01
Semester: Fall 2024
CS304- Object Oriented Programming

Solution:

Extracting the main Entities:

From the given description, the main entities in the Blood Bank Management System could
be as follows:

1. Donor
2. Patient
3. Hospital
4. Inventory
5. Admin

Attributes and Functions Associated with each Entity:

Donor:
Attributes:
donorID, name, bloodType, contactInfo, donationHistory, lastDonationDate,
eligibilityStatus
Functions:
register(), updateProfile(), viewDonationHistory(), checkEligibility(),
receiveReminder.

Patient:
Attributes:
PatientID, name, bloodTypeRequirement, medicalHistory, contactInfo,
requestStatus.

Functions:
registerRequest(), updateRequest(), viewRequestStatus()
Hospital:

Attributes:
hospitalID, name, location, contactInfo
Functions:
viewDonorDetails(), select Donor(), submitBloodRequest()

Inventory:
Attributes:
inventoryID, bloodType, quantity, expirationDate
Functions:
checkAvailability(), updateInventory(), removeExpiredBlood()
Admin:
Attributes:
adminID, name, contactInfo
Functions:
registerDonor(), manageInventory(), handleBloodRequest(),
sendReminderToDonors(), checkBloodExpiry(), verifyDonor Eligibility()

Relationships 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

You might also like