Count number of people who have two or more observations.
SELECT COUNT(person_id)::integer AS num_persons
FROM
(SELECT
person_id
FROM @cdm.observation_period
GROUP BY person_id
HAVING COUNT( person_id ) > 1
) AS t;
None
| Field | Description | | --- | --- | | num_persons | Number of patients who have two or more observations |
| Field | Value | | --- | --- | | num_persons | 18650793 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.