-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend: Adds sex breakdown tables for select cancer screenings (#3615)
# Description and Motivation <!--- bulleted, high level items. use keywords (eg "closes #144" or "fixes #4323") --> - closes #3604 - adjusts utils to keep list of screenings for all sexes (lung, colorectal) from those that don't have sex breakdown (prostate, breast, cervical) - adjusts utility functions to accept list of conditions as arg; these are set conditionally based on the calling datasource (brfss/medicare) and breakdown (sex / non-sex) - updates golden data - better naming for brfss dataset typing - stronger typing ## Has this been tested? How? - tests updated and passing ## Types of changes (leave all that apply) - New content or feature ## New frontend preview link is below in the Netlify comment 😎
- Loading branch information
1 parent
a9f3da0
commit 5f00b00
Showing
7 changed files
with
283 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
python/tests/data/phrma_brfss/golden_data/expected_sex_national.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sex,colorectal_screened_estimated_total,colorectal_screening_eligible_estimated_total,state_fips,lung_screened_estimated_total,lung_screening_eligible_estimated_total,colorectal_screened_pct_rate,lung_screened_pct_rate,state_name,colorectal_screened_pct_share,colorectal_screening_eligible_population_pct,lung_screened_pct_share,lung_screening_eligible_population_pct | ||
All,152617,217193,00,4811,16206,66.0,28.0,United States,100.0,100.0,100.0,100.0 | ||
Female,82352,115873,00,2249,7484,68.0,28.0,United States,54.0,53.4,46.7,46.2 | ||
Male,70265,101320,00,2562,8722,65.0,28.0,United States,46.0,46.6,53.3,53.8 |
Oops, something went wrong.