CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
72 stars 40 forks source link

Spike: Write up a proposal for handling zip codes, counties, and FIPS (oh my) #2814

Closed MauriceReeves-usds closed 2 years ago

MauriceReeves-usds commented 2 years ago

Problem Statement

We have multiple different issues that relate back to how we handle zip codes:

  1. If the sender does not provide a zip code we have no way to look up and fill in that data
  2. If the sender provides us with an invalid zip code we have no way currently to validate
  3. If the zip code provided by the sender does not exist in our zip code database, even if it is valid, we have no way to look up the correct county and FIPS code for the address
  4. The zip code is the only value from the sender used to retrieve the FIPS County Code, so if a valid zip is received but the state received doesn't match the zip, the FIPS County Code is wrong.
  5. Our current covid_result_metadata table is full of incomplete or incorrect data that limits its utility.

Acceptance Criteria

References

FYSA: @Adrian-Brewster @anshulkumar-usds @MikeC-A6 @jimduff-usds @RickHawesUSDS

mlighdc commented 2 years ago

Adding @emmastephenson for visibility for SR.