This query is used to count days supply values across all drug exposure records.
The following is a sample run of the query. The input parameters are highlighted in blue.
SELECT days_supply, COUNT(*) AS cnt
FROM @cdm.drug_exposure
GROUP BY days_supply
ORDER BY days_supply;
| Parameter | Example | Mandatory | Notes | | --- | --- | --- | --- | | days_supply | 2,3 | Yes | |
| Field | Description | | --- | --- | | days_supply | The number of days of supply of the medication as recorded in the original prescription or dispensing record. | | cnt | Counts of records with the days_supply value |
| Field | Description | | --- | --- | | days_supply | 15 | | cnt | 240179 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.