Skip to content

05 Domain Model

Vicky Patel edited this page Nov 19, 2026 · 2 revisions

Domain Model & Blood Compatibility Matrix

HEMA models donors, blood groups, and donation requests with medical reference accuracy and clean schema typing.


🩸 Blood Group Compatibility Reference Matrix

Recipient Blood Group Compatible Donor Blood Groups Universal Type Status
O- O- Universal Red Cell Donor
O+ O-, O+
A- O-, A-
A+ O-, O+, A-, A+
B- O-, B-
B+ O-, O+, B-, B+
AB- O-, A-, B-, AB-
AB+ All Blood Groups (O-, O+, A-, A+, B-, B+, AB-, AB+) Universal Recipient

📋 Donor Entity Schema

interface Donor {
  id: number;
  name: string;
  email: string;
  phone: string;
  city: string;
  company?: string;
  bloodGroup: 'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-';
  available: boolean;
  requested: boolean;
  donationCount: number;
  lastDonated: string;
}

Clone this wiki locally