View source: R/addPrescriptions.R
| addPrescriptions | R Documentation |
Add Prescription and Medication Metrics to a Cohort
addPrescriptions(
x,
indexDate = "cohort_start_date",
censorDate = NULL,
window = list(c(-365, -1), c(0, 365)),
conceptSet = NULL,
infusionRouteConceptIds = c(4171047L, 4171048L),
daysSupply = TRUE,
pdc = FALSE,
nameStyle = "{metric}_{window_name}",
name = NULL
)
x |
A cohort table or cdm_table. |
indexDate |
Date variable in |
censorDate |
Optional date variable in |
window |
A named or unnamed list of 2-element numeric vectors. Default: |
conceptSet |
Optional concept set / codelist of specific drugs. |
infusionRouteConceptIds |
OMOP route concept IDs for parenteral/IV infusions. Default: |
daysSupply |
Logical; whether to compute cumulative days supply. Default: |
pdc |
Logical; whether to compute Proportion of Days Covered. Default: |
nameStyle |
Column naming pattern. Default: |
name |
Name of the new table in the write schema. If NULL, a temporary table is returned. |
The cohort table x with added prescription metric columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.