Average number of distinct ingredients for all patients.
SELECT
avg(cnt)
from
(
select
count(distinct r.drug_concept_id) cnt,
r.person_id
FROM
@cdm.drug_era r
GROUP BY
r.person_id
) a
None
| Field | Description | | --- | --- | | avg | Average count of distinct ingredient for all patients |
| Field | Value | | --- | --- | | avg | 10 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.