Skip to content

Add covidcast support for geo_type "HSA" #1632

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

Open
melange396 opened this issue Mar 28, 2025 · 0 comments
Open

Add covidcast support for geo_type "HSA" #1632

melange396 opened this issue Mar 28, 2025 · 0 comments
Labels
acquisition changes acquisition logic api change affect the API and its responses data quality enhancement

Comments

@melange396
Copy link
Collaborator

This is motivated by the desire to more properly capture the NSSP dataset, which appears to report county-level information, but it is actually reporting HSA-level information (and repeating the same value for each county in an HSA).

To support HSA as a "geo_type" in the covidcast endpoint, the only absolutely required change would be to add "hsa" to the allowed geographies in the Covidcast CSV importer code:

# set of allowed resolutions (aka "geo_type")
GEOGRAPHIC_RESOLUTIONS = {'county', 'hrr', 'msa', 'dma', 'state', 'hhs', 'nation'}

It should be easy and helpful to also add sanity checks for HSA geo_values during acquisition.

Less easy but potentially even more helpful, we should also add server-side request marshaling/validation for HSA codes, but this needs GeoMapper support; see cmu-delphi/covidcast-indicators#2139 and note the discussion of "NCI Modified" HSA definitions, which are likely to be of consequence to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acquisition changes acquisition logic api change affect the API and its responses data quality enhancement
Projects
None yet
Development

No branches or pull requests

1 participant