Description Usage Arguments Value Examples
Use date to apply ICD-9_CM criteria to pre fiscal year 2016 and ICD-10-CM criteria to the rest.
1 | od_drug_types_trans(data, diag_ecode_col_9, diag_ecode_col_10, date)
|
data: |
the input dataset |
diag_ecode_col_9: |
indices(numeric) of diagnosis and E codes of interest |
diag_ecode_col_10: |
indices(numeric) of diagnosis and E codes of interest |
date: |
date of discharge |
additional variables: any_drug, any_opioid, non_heroin_opioid , heroin
1 2 | hosp_set %>%
od_drug_types_trans(diag_ecode_col_9 = c(3, 6), diag_ecode_col_10 = c(3, 6), date = discharge_date) %>% select(-age, -diagnosis_2, -diagnosis_3, -ecode2, -year) %>% sample_n(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.