Count the genders (gender_concept_id) across all person records, arrange into groups by year of birth. All possible values for gender concepts stratified by year of birth are summarized.
SELECT
gender_concept_id,
concept_name AS gender_name,
year_of_birth AS year_of_birth,
COUNT(*) AS num_persons
FROM @cdm.person
JOIN @vocab.concept
ON person.gender_concept_id = concept.concept_id
GROUP BY person.gender_concept_id, concept.concept_name, person.year_of_birth
ORDER BY concept.concept_name, person.year_of_birth;
None
| Field | Description | | --- | --- | | gender_concept_id | CDM vocabulary concept identifier | | gender_name | Gender name as defined in CDM vocabulary | | year_of_birth | Stratification by year of birth | | num_persons | Number of patients in the dataset of specific gender / year of birth |
| Field | Value | | --- | --- | | gender_concept_id | 8507 | | gender_name | MALE | | year_of_birth | 1950 | | num_persons | 169002 |
https://github.com/OHDSI/CommonDataModel/wiki/PERSON
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.