Health Equity Tracker is a free-to-use data visualization platform that is enabling new insights into the impact of COVID-19 and other social and political determinants of health on historically underrepresented groups in the United States.
While working on #3536 discovered that the utility function that combined race and eth columns was problematic in several ways, and non-extensible to use in future data sources.
This PR:
updates the function to allow for more flexible inputs
fixes the math so that HISP and UNKNOWN assorted values are summed per breakdown geo/demo/time_period
adds clearer more comprehensive unit testing for the function
updates the usage with covid_local and the cdc_wisqars
updates the golden data for those sources to the correct number (verified on the cdc wisqars dashboard)
Has this been tested? How?
tests are passing with updated golden data
confirmed the newly calc suicide_per_100k for Hispanic (3.18) is much closer to whats showing on WISQARS below (3.25) than what it was before (6.55)
Screenshots (if appropriate)
Types of changes
(leave all that apply)
Bug fix
New content or feature
Refactor / chore
New frontend preview link is below in the Netlify comment 😎
Description and Motivation
While working on #3536 discovered that the utility function that combined race and eth columns was problematic in several ways, and non-extensible to use in future data sources.
This PR:
Has this been tested? How?
tests are passing with updated golden data confirmed the newly calc suicide_per_100k for Hispanic (3.18) is much closer to whats showing on WISQARS below (3.25) than what it was before (6.55)
Screenshots (if appropriate)
Types of changes
(leave all that apply)
New frontend preview link is below in the Netlify comment 😎