Professional Documents
Culture Documents
Class Diagram
Class Diagram
Class Diagram
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