tarekmasryo commited on
Commit
0439ee0
·
verified ·
1 Parent(s): 4c7b6f8

Upload 10 files

Browse files
LICENSE.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Attribution 4.0 International (CC BY 4.0)
2
+
3
+ You are free to:
4
+ • Share — copy and redistribute the material in any medium or format.
5
+ • Adapt — remix, transform, and build upon the material for any purpose, even commercially.
6
+
7
+ Under the following terms:
8
+ • Attribution — You must give appropriate credit, provide a link to the license,
9
+ and indicate if changes were made, without suggesting endorsement.
10
+
11
+ Full license text: https://creativecommons.org/licenses/by/4.0/
12
+
13
+ © 2025 Tarek Masryo
14
+ This dataset is released under the CC BY 4.0 International license.
README_HF.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-classification
7
+ - tabular-regression
8
+ tags:
9
+ - blood-donation
10
+ - transfusion
11
+ - healthcare-operations
12
+ - synthetic
13
+ - tabular-data
14
+ - decision-support
15
+ - calibration
16
+ - thresholding
17
+ - risk-scoring
18
+ size_categories:
19
+ - 10K<n<100K
20
+ pretty_name: Blood Donation Registry — Synthetic Donors, Prevalence & Compatibility
21
+ ---
22
+
23
+ # 🩸 Blood Donation Registry — Synthetic Donors, Prevalence & Compatibility
24
+
25
+ A synthetic blood donation operations dataset for **analysis and decision-focused modeling**: eligibility/deferrals, donation history, rare blood types, country-level prevalence, and RBC transfusion compatibility (ABO/Rh).
26
+
27
+ > ✅ **Synthetic data** (safe for experimentation/teaching).
28
+ > ⚠️ **Not clinical/medical ground truth** and not intended for real-world medical decision-making.
29
+
30
+ ---
31
+
32
+ ## Dataset summary
33
+
34
+ This dataset is designed to support portfolio-grade notebooks and practical workflows:
35
+ - exploratory analysis (EDA) and segmentation
36
+ - propensity / likelihood modeling and **calibration**
37
+ - threshold selection under capacity/budget constraints
38
+ - rare-blood availability analysis using prevalence + compatibility rules
39
+
40
+ ---
41
+
42
+ ## Data files
43
+
44
+ ### 1) `blood_donation_registry_ml_ready.csv` (30,000 rows × 27 columns)
45
+ Donor-level snapshot with a fixed reference date:
46
+ - `as_of_date = 2024-12-31`
47
+
48
+ **Key groups**
49
+ - **Identity & geography:** `donor_id` (unique), `country_code`, `region`
50
+ - **Profile:** `age`, `sex` (M/F), `bmi`, `smoker` (0/1), `chronic_condition_flag` (0/1)
51
+ - **Eligibility & deferrals:** `eligibility_status`, `eligible_to_donate` (0/1), `deferral_reason`
52
+ - **Donation behavior/history:** `donation_count_last_12m`, `lifetime_donation_count`, `first_donation_year`,
53
+ `years_since_first_donation`, `last_donation_date`, `recency_days`, `is_regular_donor` (0/1),
54
+ `donor_age_at_first_donation`, `preferred_site`
55
+ - **Blood context:** `blood_type` (8 types), `is_rare_type` (0/1), `blood_type_country_prevalence`
56
+ - **Engineered score (optional):** `donation_propensity_score`
57
+
58
+ **Outcome columns**
59
+ - `donated_next_6m` (0/1)
60
+ - `next_6m_donation_count` (0–3)
61
+
62
+ ---
63
+
64
+ ### 2) `blood_population_distribution.csv` (39 rows × 12 columns)
65
+ Country-level population + blood type prevalence:
66
+ - `country_code`, `region`, `population_size`
67
+ - proportions: `p_o_pos`, `p_o_neg`, `p_a_pos`, `p_a_neg`, `p_b_pos`, `p_b_neg`, `p_ab_pos`, `p_ab_neg`
68
+ - `rh_negative_rate`
69
+
70
+ **Integrity note:** blood type proportions sum to **1.0** per country.
71
+
72
+ ---
73
+
74
+ ### 3) `blood_compatibility_lookup.csv` (64 rows × 4 columns)
75
+ RBC transfusion compatibility matrix:
76
+ - `donor_blood_type`, `recipient_blood_type`
77
+ - `compatible_for_rbc_transfusion` (0/1)
78
+ - `compatibility_level`: `ideal | acceptable | incompatible`
79
+
80
+ ---
81
+
82
+ ### 4) `data_dictionary.csv`
83
+ Column-level documentation:
84
+ - `file`, `column_name`, `type`, `description`, `allowed_values_or_range`, `missing_values`
85
+
86
+ ---
87
+
88
+ ## Relationships (how tables connect)
89
+
90
+ - `blood_donation_registry_ml_ready.csv.country_code`
91
+ ↔ `blood_population_distribution.csv.country_code`
92
+
93
+ - `blood_donation_registry_ml_ready.csv.blood_type_country_prevalence`
94
+ is derived from the matching country prevalence table.
95
+
96
+ - `blood_compatibility_lookup.csv` provides rule-based compatibility for blood type pairs.
97
+
98
+ ---
99
+
100
+ ## Recommended tasks
101
+
102
+ ### 1) Donation likelihood (binary classification)
103
+ - Outcome: `donated_next_6m`
104
+ - Suggested evaluation: `ROC-AUC`, `PR-AUC`, `F1`, plus **calibration** (reliability curve / Brier score)
105
+
106
+ ### 2) Donation frequency (count prediction)
107
+ - Outcome: `next_6m_donation_count`
108
+ - Suggested evaluation: `MAE`, `RMSE` (optional Poisson/Ordinal baselines)
109
+
110
+ ### 3) Decision policy under constraints
111
+ Turn probabilities into an outreach policy:
112
+ - choose an operating threshold given **capacity/budget**
113
+ - compare FP/FN tradeoffs
114
+ - validate stability across segments (country/region, rare types, eligibility)
115
+
116
+ ### 4) Rare blood operations analytics
117
+ - analyze `is_rare_type` by country prevalence
118
+ - explore compatibility-aware matching using the lookup matrix
119
+
120
+ ---
121
+
122
+ ## Modeling notes (avoid leakage / shortcuts)
123
+
124
+ This dataset intentionally includes engineered and overlapping fields for different notebook styles.
125
+
126
+ - `donated_next_6m` is derived from `next_6m_donation_count` → use **one** outcome as the target.
127
+ - `eligible_to_donate` overlaps with `eligibility_status` → keep one for simpler baselines.
128
+ - `eligible_to_donate == 0` implies `donated_next_6m == 0` → for behavior modeling, consider restricting training to `eligible_to_donate == 1`.
129
+ - `donation_propensity_score` is an engineered signal; exclude it for “feature-only” benchmark baselines.
130
+
131
+ ---
132
+
133
+ ## Data quality expectations
134
+
135
+ - `donor_id` is unique (no duplicate donors)
136
+ - no duplicate rows
137
+ - snapshot consistency (`as_of_date` fixed)
138
+ - `recency_days` aligns with `as_of_date - last_donation_date`
139
+ - country codes match the prevalence table
140
+ - compatibility lookup covers all 8×8 donor/recipient pairs
141
+
142
+ ---
143
+
144
+ ## Synthetic data generation (high-level)
145
+
146
+ Records are simulated to reflect realistic constraints and patterns:
147
+ - eligibility rules and deferral reasons (age/BMI/health flags)
148
+ - donation history distributions and recency behavior
149
+ - country-level blood type prevalence used to derive per-donor prevalence context
150
+ - ABO/Rh compatibility rules encoded in the lookup table
151
+
152
+ Synthetic distributions may not match any specific real-world population.
153
+
154
+ ---
155
+
156
+ ## Limitations
157
+
158
+ - Snapshot-style dataset (not a full longitudinal event log beyond history fields)
159
+ - Synthetic distributions may differ from real operational settings
160
+ - Engineered signals (e.g., `donation_propensity_score`) can act as shortcut features if used without care
161
+
162
+ ---
163
+
164
+ ## Quick start
165
+
166
+ ```python
167
+ import pandas as pd
168
+
169
+ donors = pd.read_csv("blood_donation_registry_ml_ready.csv")
170
+ pop = pd.read_csv("blood_population_distribution.csv")
171
+ compat = pd.read_csv("blood_compatibility_lookup.csv")
172
+
173
+ # Example join: add country population
174
+ donors = donors.merge(pop[["country_code", "population_size"]], on="country_code", how="left")
175
+ print(donors.shape)
176
+ ```
177
+
178
+ ---
179
+
180
+ ## License
181
+
182
+ CC BY 4.0 — attribution required.
183
+
184
+ ---
185
+
186
+ ## Author
187
+
188
+ Tarek Masryo
data/artifacts/blood_type_compatible_supply_and_stress.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ blood_type,compatible_supply_share,demand_share,stress_index
2
+ O-,0.0259,0.025515793694791095,0.9851657797216639
3
+ O+,0.44753333333333334,0.41934100132021573,0.9370050677496254
4
+ A-,0.05246666666666666,0.027190592223026385,0.5182450868429426
5
+ A+,0.7313666666666666,0.25904530158987005,0.3541934755797868
6
+ B-,0.04493333333333333,0.01901686822466964,0.4232240702819653
7
+ B+,0.6398333333333334,0.17190004670611025,0.2686637875062937
8
+ AB-,0.08333333333333333,0.011972155777675908,0.1436658693321109
9
+ AB+,1.0,0.06601824046364094,0.06601824046364094
data/artifacts/blood_type_donor_share.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ blood_type,donor_share
2
+ A+,0.25726666666666664
3
+ A-,0.026566666666666666
4
+ AB+,0.0645
5
+ AB-,0.011833333333333333
6
+ B+,0.17326666666666668
7
+ B-,0.019033333333333333
8
+ O+,0.42163333333333336
9
+ O-,0.0259
data/artifacts/blood_type_population_share.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ blood_type,population_share
2
+ A+,0.25904530158987005
3
+ A-,0.027190592223026385
4
+ AB+,0.06601824046364094
5
+ AB-,0.011972155777675908
6
+ B+,0.17190004670611025
7
+ B-,0.01901686822466964
8
+ O+,0.41934100132021573
9
+ O-,0.025515793694791095
data/artifacts/blood_type_representation_gap.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ blood_type,gap
2
+ A+,-0.0017786349232034038
3
+ A-,-0.0006239255563597196
4
+ AB+,-0.0015182404636409352
5
+ AB-,-0.00013882244434257514
6
+ B+,0.0013666199605564255
7
+ B-,1.6465108663692857e-05
8
+ O+,0.002292332013117626
9
+ O-,0.0003842063052089048
data/blood_compatibility_lookup.csv ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ donor_blood_type,recipient_blood_type,compatible_for_rbc_transfusion,compatibility_level
2
+ O+,O+,1,ideal
3
+ O+,O-,0,incompatible
4
+ O+,A+,1,acceptable
5
+ O+,A-,0,incompatible
6
+ O+,B+,1,acceptable
7
+ O+,B-,0,incompatible
8
+ O+,AB+,1,acceptable
9
+ O+,AB-,0,incompatible
10
+ O-,O+,1,acceptable
11
+ O-,O-,1,ideal
12
+ O-,A+,1,acceptable
13
+ O-,A-,1,acceptable
14
+ O-,B+,1,acceptable
15
+ O-,B-,1,acceptable
16
+ O-,AB+,1,acceptable
17
+ O-,AB-,1,acceptable
18
+ A+,O+,0,incompatible
19
+ A+,O-,0,incompatible
20
+ A+,A+,1,ideal
21
+ A+,A-,0,incompatible
22
+ A+,B+,0,incompatible
23
+ A+,B-,0,incompatible
24
+ A+,AB+,1,acceptable
25
+ A+,AB-,0,incompatible
26
+ A-,O+,0,incompatible
27
+ A-,O-,0,incompatible
28
+ A-,A+,1,acceptable
29
+ A-,A-,1,ideal
30
+ A-,B+,0,incompatible
31
+ A-,B-,0,incompatible
32
+ A-,AB+,1,acceptable
33
+ A-,AB-,1,acceptable
34
+ B+,O+,0,incompatible
35
+ B+,O-,0,incompatible
36
+ B+,A+,0,incompatible
37
+ B+,A-,0,incompatible
38
+ B+,B+,1,ideal
39
+ B+,B-,0,incompatible
40
+ B+,AB+,1,acceptable
41
+ B+,AB-,0,incompatible
42
+ B-,O+,0,incompatible
43
+ B-,O-,0,incompatible
44
+ B-,A+,0,incompatible
45
+ B-,A-,0,incompatible
46
+ B-,B+,1,acceptable
47
+ B-,B-,1,ideal
48
+ B-,AB+,1,acceptable
49
+ B-,AB-,1,acceptable
50
+ AB+,O+,0,incompatible
51
+ AB+,O-,0,incompatible
52
+ AB+,A+,0,incompatible
53
+ AB+,A-,0,incompatible
54
+ AB+,B+,0,incompatible
55
+ AB+,B-,0,incompatible
56
+ AB+,AB+,1,ideal
57
+ AB+,AB-,0,incompatible
58
+ AB-,O+,0,incompatible
59
+ AB-,O-,0,incompatible
60
+ AB-,A+,0,incompatible
61
+ AB-,A-,0,incompatible
62
+ AB-,B+,0,incompatible
63
+ AB-,B-,0,incompatible
64
+ AB-,AB+,1,acceptable
65
+ AB-,AB-,1,ideal
data/blood_donation_registry_ml_ready.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/blood_population_distribution.csv ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ country_code,region,population_size,p_o_pos,p_o_neg,p_a_pos,p_a_neg,p_b_pos,p_b_neg,p_ab_pos,p_ab_neg,rh_negative_rate
2
+ GB,Europe,108328085,0.373554,0.056414,0.305723,0.06497,0.109383,0.023904,0.04371,0.022342,0.16763
3
+ FR,Europe,46738553,0.330104,0.071148,0.336667,0.072512,0.095727,0.023263,0.049985,0.020594,0.187517
4
+ DE,Europe,10585377,0.368965,0.058713,0.333185,0.060172,0.105269,0.013257,0.03894,0.021499,0.153641
5
+ IT,Europe,69157848,0.361326,0.053443,0.315731,0.09813,0.086372,0.029235,0.033287,0.022476,0.203284
6
+ ES,Europe,151099456,0.383377,0.069177,0.312493,0.061924,0.070285,0.026869,0.061681,0.014194,0.172164
7
+ PL,Europe,182033766,0.381368,0.05893,0.302474,0.06035,0.088047,0.014043,0.081043,0.013745,0.147068
8
+ SE,Europe,25637222,0.399913,0.052415,0.291278,0.06188,0.099387,0.020873,0.04895,0.025304,0.160472
9
+ NO,Europe,12274621,0.374214,0.066608,0.295801,0.05991,0.121795,0.018997,0.04615,0.016525,0.16204
10
+ EG,MENA,51905866,0.400264,0.010721,0.272707,0.026238,0.189222,0.017832,0.07368,0.009336,0.064127
11
+ SA,MENA,157331731,0.388597,0.016553,0.287097,0.033202,0.19248,0.013702,0.061215,0.007154,0.070611
12
+ AE,MENA,111169700,0.393242,0.023836,0.267321,0.028623,0.207414,0.013437,0.055337,0.01079,0.076686
13
+ MA,MENA,159922984,0.395024,0.02047,0.271746,0.030138,0.191904,0.027021,0.05834,0.005357,0.082986
14
+ DZ,MENA,88343264,0.386948,0.020447,0.264067,0.041195,0.165802,0.025768,0.085957,0.009816,0.097226
15
+ TN,MENA,192906558,0.393744,0.041856,0.246389,0.033342,0.175958,0.024235,0.07541,0.009066,0.108499
16
+ JO,MENA,189225564,0.404445,0.017186,0.259499,0.020144,0.171779,0.03179,0.087001,0.008156,0.077276
17
+ TR,MENA,132997589,0.408727,0.011384,0.260613,0.035734,0.193888,0.018138,0.063463,0.008053,0.073309
18
+ CN,Asia,110011636,0.40232,0.003364,0.300665,0.008761,0.214937,0.011365,0.05546,0.003128,0.026618
19
+ JP,Asia,127838555,0.386886,0.006329,0.26758,0.013454,0.235997,0.022858,0.056503,0.010393,0.053034
20
+ KR,Asia,146713028,0.40836,0.013308,0.204147,0.00566,0.270412,0.004489,0.089149,0.004475,0.027932
21
+ IN,Asia,104912284,0.401338,0.017053,0.266909,0.013407,0.200025,0.009857,0.080442,0.010969,0.051286
22
+ PK,Asia,163566703,0.383166,0.010457,0.260069,0.008032,0.241748,0.01231,0.077502,0.006716,0.037515
23
+ BD,Asia,92372540,0.415637,0.00785,0.257909,0.012049,0.236964,0.005101,0.057753,0.006737,0.031737
24
+ ID,Asia,19310852,0.389487,0.008585,0.245145,0.02112,0.249304,0.012892,0.067633,0.005834,0.048431
25
+ PH,Asia,25020885,0.397736,0.01857,0.28997,0.011624,0.199503,0.007758,0.06973,0.005109,0.043061
26
+ VN,Asia,107967805,0.372256,0.008501,0.291794,0.008721,0.230565,0.008199,0.073724,0.00624,0.031661
27
+ TH,Asia,127881648,0.372552,0.00222,0.300781,0.008114,0.222665,0.008853,0.079396,0.005419,0.024606
28
+ NG,Africa,163563548,0.503097,0.020604,0.204142,0.014725,0.18264,0.012502,0.05091,0.01138,0.059211
29
+ ZA,Africa,160148712,0.500193,0.012546,0.177415,0.010274,0.187636,0.019432,0.084624,0.00788,0.050132
30
+ KE,Africa,198119899,0.477615,0.007394,0.211384,0.010109,0.181184,0.024877,0.074998,0.012439,0.054819
31
+ ET,Africa,124415538,0.429899,0.008897,0.203755,0.02723,0.218581,0.024657,0.075716,0.011265,0.072049
32
+ GH,Africa,59395058,0.507883,0.013233,0.241751,0.004708,0.154133,0.019648,0.04938,0.009264,0.046853
33
+ UG,Africa,138600085,0.461575,0.022513,0.193424,0.012742,0.191738,0.02853,0.081782,0.007696,0.071481
34
+ US,Americas,136285389,0.43081,0.039794,0.282108,0.031338,0.129351,0.016618,0.056606,0.013375,0.101125
35
+ CA,Americas,104855910,0.482602,0.035839,0.272835,0.030648,0.103616,0.01348,0.049632,0.011348,0.091315
36
+ MX,Americas,195510719,0.472418,0.033551,0.23214,0.027658,0.140294,0.024059,0.041887,0.027993,0.113261
37
+ BR,Americas,100164033,0.432502,0.052956,0.286272,0.030208,0.113818,0.018506,0.039516,0.026222,0.127892
38
+ AR,Americas,78362381,0.445333,0.038205,0.294449,0.027046,0.080378,0.038168,0.062605,0.013816,0.117235
39
+ CL,Americas,158200541,0.461729,0.025966,0.250675,0.029253,0.123028,0.015724,0.064316,0.029309,0.100252
40
+ CO,Americas,17876696,0.443579,0.055605,0.264147,0.021333,0.120323,0.024594,0.054632,0.015787,0.117319
docs/data_dictionary.csv ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ file,column_name,type,description,allowed_values_or_range,missing_values
2
+ blood_donation_registry_ml_ready.csv,donor_id,int,Unique donor identifier (synthetic).,unique integer,none
3
+ blood_donation_registry_ml_ready.csv,age,int,Donor age at as_of_date (years).,18-69 (observed),none
4
+ blood_donation_registry_ml_ready.csv,sex,category,Self-reported sex (synthetic).,"{F, M}",none
5
+ blood_donation_registry_ml_ready.csv,country_code,category,ISO 3166-1 alpha-2 country code.,ISO 3166-1 alpha-2; 39 unique values,none
6
+ blood_donation_registry_ml_ready.csv,region,category,Geographic region grouping.,"{Africa, Americas, Asia, Europe, MENA}",none
7
+ blood_donation_registry_ml_ready.csv,blood_type,category,ABO/Rh blood type.,"{A+, A-, AB+, AB-, B+, B-, O+, O-}",none
8
+ blood_donation_registry_ml_ready.csv,is_rare_type,bool,Flag for rare blood type within the donor’s country (based on prevalence).,"{0,1}",none
9
+ blood_donation_registry_ml_ready.csv,smoker,bool,Smoking status flag (synthetic).,"{0,1}",none
10
+ blood_donation_registry_ml_ready.csv,bmi,float,Body Mass Index.,16-42 (observed),none
11
+ blood_donation_registry_ml_ready.csv,chronic_condition_flag,bool,"Indicator for chronic condition (synthetic). 1 if deferral_reason == chronic_condition, else 0.","{0,1}",none
12
+ blood_donation_registry_ml_ready.csv,eligible_to_donate,bool,Eligibility flag at as_of_date; redundant with eligibility_status.,"{0,1}",none
13
+ blood_donation_registry_ml_ready.csv,deferral_reason,category,Reason for deferral when not eligible; NaN when eligibility_status==eligible.,"{age_out_of_range, bmi_out_of_range, chronic_condition}",NaN when eligible
14
+ blood_donation_registry_ml_ready.csv,preferred_site,category,Preferred donation site type.,"{community_camp, hospital, mobile_unit}",none
15
+ blood_donation_registry_ml_ready.csv,donation_count_last_12m,int,Number of donations in the last 12 months before as_of_date.,0-5 (observed),none
16
+ blood_donation_registry_ml_ready.csv,is_regular_donor,bool,Flag indicating a regular donation pattern (synthetic).,"{0,1}",none
17
+ blood_donation_registry_ml_ready.csv,years_since_first_donation,int,Years since first recorded donation year.,0-35 (observed),none
18
+ blood_donation_registry_ml_ready.csv,lifetime_donation_count,int,Total lifetime donations (synthetic).,1-140 (observed),none
19
+ blood_donation_registry_ml_ready.csv,first_donation_year,int,Year of first recorded donation.,1989-2024 (observed),none
20
+ blood_donation_registry_ml_ready.csv,last_donation_date,date,Date of the most recent donation prior to as_of_date.,YYYY-MM-DD (range: 2007-01-23-2024-12-30),none
21
+ blood_donation_registry_ml_ready.csv,recency_days,int,Days since last donation: as_of_date - last_donation_date.,1-6552 (observed),none
22
+ blood_donation_registry_ml_ready.csv,donor_age_at_first_donation,int,Age at first donation: age - years_since_first_donation.,18-68 (observed),none
23
+ blood_donation_registry_ml_ready.csv,blood_type_country_prevalence,float,Prevalence of the donor’s blood type in their country (from blood_population_distribution).,0-1 (observed: 0.00222-0.50788),none
24
+ blood_donation_registry_ml_ready.csv,donation_propensity_score,float,Synthetic propensity score feature (not a real-world model output).,0-100 (observed: 0-89.2),none
25
+ blood_donation_registry_ml_ready.csv,eligibility_status,category,"Eligibility class at as_of_date: eligible, temporary_deferral, permanent_deferral.","{eligible, permanent_deferral, temporary_deferral}",none
26
+ blood_donation_registry_ml_ready.csv,as_of_date,date,Reference snapshot date for the record.,YYYY-MM-DD (fixed: 2024-12-31),none
27
+ blood_donation_registry_ml_ready.csv,donated_next_6m,bool,Binary label derived from next_6m_donation_count (>0).,"{0,1}",none
28
+ blood_donation_registry_ml_ready.csv,next_6m_donation_count,int,Number of donation events in the next 6 months (synthetic). Capped at 3 for cadence realism.,0-3 (observed),none
29
+ blood_compatibility_lookup.csv,donor_blood_type,category,Donor blood type for RBC transfusion compatibility lookup.,"{A+, A-, AB+, AB-, B+, B-, O+, O-}",none
30
+ blood_compatibility_lookup.csv,recipient_blood_type,category,Recipient blood type for RBC transfusion compatibility lookup.,"{A+, A-, AB+, AB-, B+, B-, O+, O-}",none
31
+ blood_compatibility_lookup.csv,compatible_for_rbc_transfusion,bool,Compatibility flag for RBC transfusion (donor → recipient).,"{0,1}",none
32
+ blood_compatibility_lookup.csv,compatibility_level,category,Compatibility level label.,"{acceptable, ideal, incompatible}",none
33
+ blood_population_distribution.csv,country_code,category,ISO 3166-1 alpha-2 country code.,ISO 3166-1 alpha-2; 39 unique values,none
34
+ blood_population_distribution.csv,region,category,Region grouping used in the main table.,"{Africa, Americas, Asia, Europe, MENA}",none
35
+ blood_population_distribution.csv,population_size,int,Synthetic country population size used for weighting/realism.,10585377-198119899 (observed),none
36
+ blood_population_distribution.csv,p_o_pos,float,Prevalence of blood type O POS in the country.,0-1 (observed: 0.3301-0.50788),none
37
+ blood_population_distribution.csv,p_o_neg,float,Prevalence of blood type O NEG in the country.,0-1 (observed: 0.00222-0.071148),none
38
+ blood_population_distribution.csv,p_a_pos,float,Prevalence of blood type A POS in the country.,0-1 (observed: 0.17741-0.33667),none
39
+ blood_population_distribution.csv,p_a_neg,float,Prevalence of blood type A NEG in the country.,0-1 (observed: 0.004708-0.09813),none
40
+ blood_population_distribution.csv,p_b_pos,float,Prevalence of blood type B POS in the country.,0-1 (observed: 0.070285-0.27041),none
41
+ blood_population_distribution.csv,p_b_neg,float,Prevalence of blood type B NEG in the country.,0-1 (observed: 0.004489-0.038168),none
42
+ blood_population_distribution.csv,p_ab_pos,float,Prevalence of blood type AB POS in the country.,0-1 (observed: 0.033287-0.089149),none
43
+ blood_population_distribution.csv,p_ab_neg,float,Prevalence of blood type AB NEG in the country.,0-1 (observed: 0.003128-0.029309),none
44
+ blood_population_distribution.csv,rh_negative_rate,float,Country-level Rh- rate (sum of negative blood types).,0-1 (observed: 0.024606-0.20328),none