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

Assignment No

Uploaded by

the1stminiman
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)
18 views2 pages

Assignment No

Uploaded by

the1stminiman
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 : 1

Student ID : BC230421909

Solution no 1 :

Entities:

 Donor
 Patient
 Inventory
 Hospital
 Admin

Attribute & Functions:

Donor

Attribute: donorID, name, bloodType, contactInfo, donationHospital, lastDonationDate,


eligibilityStatus

Functions: register(), updateProfile(), viewDonationHistory(), checkEligibility(),


receiveReminder()

Patient

Attributres: patientID, name, bloodTypeRequirement, medicalHistory, contactInfo,


requestStatus

Functions: registerRequest(), updateRequest(), viewRequirementStatus()

Inventory

Attributes: inventoryID, bloodType, quantity, expirationDate

Functions: checkAvailability(), updateInventory(), removeExpiredBlood()

Hospital

Attributes: adminID, name, contactInfo

Functions: registerDonor(), manageInventory(), handleBloodRequest(),


sendReminderToDonors(), checkBloodExpiry(), verifyDonorEligibility()

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

Class Diagram:

You might also like