Class Diagram

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

BloodBank

Appointment
-name: string
-address: string -appointmentID: string
schedules -date: DateTime
+manageInventory() -status: string
+registerDonor(donor: Donor)
+scheduleAppointment(appointment: Appointment)
+recordDonation(donation: Donation)
Donor registers

-name: string
-age: integer
-bloodGroup: string
-donorID: string
maintains
records
+donateBlood()
+updateHealthInfo(healthInfo: HealthInfo)

makes
BloodInventory
Donation
has -bloodType: string
-donationID: string -quantityInStock: integer
-date: DateTime contributes to -expiryDate: DateTime
-volume: integer
+addToStock(donation: Donation)
HealthInfo +removeFromStock(quantity: integer)
+checkExpiry()
-height: float
-weight: float
-medicalHistory: string

You might also like