This query is used to count conditions across all condition occurrence records stratified by condition occurrence type
SELECT
concept_name AS condition_occurrence_type,
condition_type_concept_id,
COUNT(*)::integer AS occurrence_type_count
FROM @cdm.condition_occurrence
INNER JOIN @vocab.concept
ON concept_id = condition_type_concept_id
GROUP BY concept_name, condition_type_concept_id;
None
| Field | Description | | --- | --- | | condition_occurrence_type | Name of the condition occurrence type | | condition_type_concept_id | Concept identifier for condition type | | occurrence_types_count | Number of occurrence types |
| Field | Description | | --- | --- | | condition_occurrence_type | EHR Chief Complaint | | condition_type_concept_id | 42894222 | | occurrence_types_count | 65445068 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.