This query is used to count the drug quantity (quantity) across all drug exposure records. The input to the query is a value (or a comma-separated list of values) of a quantity. If the input is omitted, all possible values are summarized.
Input:
Parameter |
Example |
Mandatory |
Notes |
quantity (list of numbers) |
10,20 |
Yes |
|
Sample query run:
The following is a sample run of the query.
SELECT count(1) as drug_quantity_count, d.quantity FROM drug_exposure d
WHERE d.quantity in (10, 20)
GROUP BY d.quantity
;
Output:
Output field list:
Field |
Description |
drug_exposure_id |
A system-generated unique identifier for each drug utilization event. |
quantity |
The quantity of drug as recorded in the original prescription or dispensing record. |
percentile_25_date |
|
median_date |
|
percentile_75_date |
|
Sample output record:
Field |
Description |
drug_exposure_id |
|
quantity |
|
percentile_25_date |
|
median_date |
|
percentile_75_date |
|
|