This query is used to count the persons with any number of occurrences of a certain condition (condition_concept_id). The input to the query is a value of a condition_concept_id.
SELECT
COUNT(DISTINCT person_id) AS persons_with_condition_count
FROM @cdm.condition_occurrence
WHERE condition_concept_id = 31967
AND person_id IS NOT NULL;
| Parameter | Example | Mandatory | Notes| | --- | --- | --- | --- | | condition_concept_id | 31967 | Yes | Condition concept identifier for 'Nausea' |
| Field | Description | | --- | --- | | persons_with_condition_count | Number of persons who had at least one occurrence of a certain condition. |
| Field | Description | | --- | --- | | persons_with_condition_count | 2142100 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.