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

Cs 404

Uploaded by

azzamak2003
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)
10 views2 pages

Cs 404

Uploaded by

azzamak2003
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

Step 1: Identify the Main Objects (Entities)

1. Donor

2. Patient

3. Inventory

4. Blood request

5. Hospital

6. Admin

Step 2: Identify Attributes and Functions for Each Object

Donor

 Attributes: Donor ID, name, blood type, age, last donation date, contact info

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

Patient

 Attributes: patient ID, name, blood type required, medical history, contact Info

 Functions: registerRequest(), trackRequestStatus()

Inventory

 Attributes: inventory ID, blood type, quantity, expiration date

 Functions: check availability(blood type), update quantity(blood type, quantity),


removeExpiredBlood()

BloodRequest

 Attributes: request ID, patient ID, blood Type, status, request Date

 Functions: updateStatus(status), viewRequestDetails()

Hospital

 Attributes: hospital ID, name, location, contact Info

 Functions: viewDonorDetails(), selectDonor(donorID)

Admin

 Attributes: admin ID, name, contact Info

 Functions: Step 3: Identify Relationships Among Objects

1. Donor - Donors donate blood which is managed in the Inventory.

2. Patient - Patients request blood through a Blood Request entity.


3. Inventory - Manages all blood stocks, associating Donor donations.

4. Blood Request - Tracks requests made by patients and processed by Admin.

5. Hospital - Can access donor information and make requests for blood.

6. Admin - Manages all other entities and oversees the Inventory and Blood Request handling.

Donor donates blood that goes into Inventory.

Patient makes a blood request.

Admin oversees Donor, Inventory, and Blood Request.

Hospital can view donor details and interact with Admin for blood requests.

You might also like