Drug Era‎ > ‎

DER08: Counts of drug records

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.

 Parameter  Example  Mandatory  Notes
list of drug_concept_id 1304643, 1549080 Yes

Sample query run:
The following is a sample run of the query. The input parameters are highlighted in blue

select count(1) as total_count 
from drug_era r
where r.drug_concept_id in (1304643, 1549080)
Output field list:
 Field  Description
drug_concept_id A foreign key that refers to a standard concept identifier in the vocabulary for the drug concept.
count The number of individual drug exposure occurrences used to construct the drug era.

Sample output record:
 Field  Description