Skip to content

Refactor claims_hosp to use new geomapper functions #322

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

Merged
merged 5 commits into from
Oct 20, 2020

Conversation

chinandrew
Copy link
Contributor

Part of #306

Summary of changes:

  • Use the latest geomapper functions
  • remove unused zips static file

Couple things to note here:

The previous functions, e.g. county_to_state(), don't exist in the GeoMapper package.

  • They do exist in emr_hosp, but with different arguments.
  • There are deprecated functions like convert_fips_to_state_id() in the GeoMapper package which contain the arguments called by this code, so maybe they used to be named county_to_state() but were renamed later. However, if you use these functions, the code doesn't work due to a non-unique multi-index.

After switching to the new functions all tests pass, but I can't verify against previous behaviour since the original code didn't run.

Copy link
Member

@mariajahja mariajahja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code is broken in main due to the changes introduced in GeoMapper. I can run a comparison off commit 64eb227 (when the package was originally introduced, and before GeoMapper changes). The results line up for state, hrr, and county, but msa has an error.

@krivard
Copy link
Contributor

krivard commented Oct 20, 2020

I don't believe this indicator makes any use of the GeoMapper population functions. Is that correct? If we use population data here, I should block this merge until we fix #325.

@mariajahja
Copy link
Member

Yes, this indicator does not use population. So there shouldn't be any problem merging.

@krivard krivard merged commit b21252f into main Oct 20, 2020
Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late but lgtm (wanted to get that checkmark)

@bweaver-work bweaver-work linked an issue Oct 20, 2020 that may be closed by this pull request
@krivard krivard deleted the geo_refactor_claimshosp branch October 29, 2020 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor claims_hosp to use geo utils
4 participants