This query is used to count the locations (location_id) across all person records. All possible values for location are summarized.
SELECT
state AS state_abbr,
COUNT(*)::integer AS num_persons
FROM @cdm.person
LEFT JOIN @cdm.location ON person.location_id = location.location_id
GROUP BY state
ORDER BY state
;
None
| Field | Description | | --- | --- | | state | State of residence | | num_persons | Number of patients in the dataset residing in specific state |
| Field | Value | | --- | --- | | state | MA | | num_persons | 1196292 |
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.