This query is used to count the drug concepts across all drug era records. The input to the query is a value (or a comma-separated list of values) of a drug_concept_id. If the input is omitted, all possible values are summarized. values are summarized.
WITH parms as (select cid as cid from unnest(regexp_split_to_array( nullif($1::text, '')::text, '\s*,\s*')) as cid)
SELECT count(1) AS total_count FROM @cdm.drug_era r WHERE r.drug_concept_id in (select cid::integer from parms);
| Parameter | Example | Mandatory | Notes | | --- | --- | --- | --- | | list of drug_concept_id | 1304643, 1549080 | Yes | |
| Field | Description | | --- | --- | | Total_count | Total count of the drug concepts for all drug era records |
| Field | Value | | --- | --- | | Total_count | 9984588 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.