-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flu inpatient #1476
base: main
Are you sure you want to change the base?
Flu inpatient #1476
Conversation
Not sure why the linter is crashing at the very end...I'll take a look tomorrow but any suggestions are appreciated |
Looks like the crash is due to something on a PR I submitted, lemme look into it! |
Hm looks like the same thing is still happening after merging the changes. @qx-teo, any thoughts on what might be happening here? |
There was a failing test in _delphi_utils_python that is fixed by the merge, I'm not too sure what's causing the linter issue in changehc but that's probably not related to the issue I was talking about in my earlier comment. Seems like the usual pylint complaints for the most part, although I've never seen the R1714 error. |
@bwilder0 the commands you want are more information is in the default README.md file for each indicator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
before merging, we should commit to writing API documentation for these new signals |
Description
Add a new signal for flu inpatient. This combines two new files from CHNG. The numerator is a count of new inpatient admissions with ICD code J09*-J11*. The denominator is the number of new inpatient admissions. Inpatient claims are identified by looking for both the presence of an admission date and the claim type + bill code matching an inpatient setting. The ratio is smoothed/adjusted in the same way as other CHNG signals.
Changelog
Itemize code/test/documentation changes and files added/removed.
load_data.py
was changed to load the data for the new signal (the functionload_flu_inpatient_data
)run.py
andupdate_sensor.py
to accommodate the fact that this signal's base geography is the state level, not county. Several places had a hardcoded assertion that the base geography was 'fips'. This has been changed to permit 'state_code' when processing the flu inpatient signal.load_flu_inpatient_data