Skip to content

Commit 31b7fcb

Browse files
committed
Make age bin restriction more expansive than given by DB (#146)
* expand cause restrictions for other direct maternal disorders * add comment
1 parent 76f49f7 commit 31b7fcb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/gbd_mapping/cause.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9837,9 +9837,9 @@
98379837
yll_only=False,
98389838
yld_only=False,
98399839
yll_age_group_id_start=7,
9840-
yll_age_group_id_end=14,
9840+
yll_age_group_id_end=15,
98419841
yld_age_group_id_start=7,
9842-
yld_age_group_id_end=14,
9842+
yld_age_group_id_end=15,
98439843
),
98449844
sequelae=(),
98459845
etiologies=(),

src/gbd_mapping_generator/data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ def make_cause_restrictions(cause):
294294
),
295295
),
296296
)
297-
if cause.cause_id in [367, 368, 369, 370, 374, 375, 376, 379, 741, 995]:
297+
if cause.cause_id in [367, 368, 369, 370, 374, 375, 376, 379, 741, 995, 1160]:
298+
# These causes have some estimates for age group 15, but have cause restrictions
299+
# listed as age group 14, since GBD reports based on a "standard" set of age groups
300+
# for certain maternal causes, but does the computation for a somewhat wider interval
301+
# for consistency.
298302
restrictions = list(restrictions)
299303
restrictions[5] = ("yll_age_group_id_end", 15)
300304
restrictions[7] = ("yld_age_group_id_end", 15)

0 commit comments

Comments
 (0)