Open TheCedarPrince opened 9 months ago
It would be possible but we don't support it with a dedicated method.
For reference, this is the table that stores geocoded information and is used in downstream processes like creating CDM extension table exposure_occurrence,
While we recommend using our Gaia function for geocoding, this table can be created and populated by any means.
In your case, you could put any coordinates to represent a state or zip (centroid seems like the ideal choice) and then those patients or care sites that are geocoded could now be used in transformations at that level of granularity.
What we don't have is any way to maintain provenance for those geocoded addresses (populated via function, address-level vs zip-level), which could be nice.
We don't have plans to introduce a function to handle geocoding state or zip level information, though we have heard this brought up before and would accept a PR.
I will make a point to update geocoding documentation to better explain the geom_omop_location table and possibly include some examples to illustrate this.
In your case, you could put any coordinates to represent a state or zip (centroid seems like the ideal choice) and then those patients or care sites that are geocoded could now be used in transformations at that level of granularity.
That's what I was thinking! But I didn't see how to then next filter by state level data using gaia -- would I just have to look through the variables.csv?
What we don't have is any way to maintain provenance for those geocoded addresses (populated via function, address-level vs zip-level), which could be nice.
Like a label to say "this data's lat/long were created artificially" versus "geocoded with degauss"?
We don't have plans to introduce a function to handle geocoding state or zip level information, though we have heard this brought up before and would accept a PR.
What would a PR like this look like? I'd only be interest in state at the moment so in my mind, it would be a function like stateCoder
which would:
What do you think?
Thanks!
Is it possible to geocode just on the US state level rather than specific coordinates? I have often found I do not have coordinate or address level data but rather state level at best and sometimes ZIP level if lucky.
I was looking at AddressCoder but it seems to only support coordinate level data. Would it be possible to write a method that uses the geographic coordinates of a state boundary as the latitude and longitude instead? Indexing on the respective shapefile for a state?