Counts the patients' zip of their residence location across all person records. All possible values for zip are summarized. Zip code contains only the first 3 digits in most databases.
SELECT
state,
zip,
COUNT(*)::integer AS num_persons
FROM @cdm.person
LEFT JOIN @cdm.location ON person.location_id = location.location_id
GROUP BY state, zip
ORDER BY state, zip
;
None
| Field | Description | | --- | --- | | state | State of residence | | zip | 3 digit zip code of residence | | num_persons | Number of patients in the dataset residing in a specific zip code |
| Field | Value | | --- | --- | | state | MA | | zip | 019 | | num_persons | 477825 |
https://github.com/OHDSI/CommonDataModel/wiki/PERSON
num_persons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.