add_non_heroin_icd10cm <- function(data, diag_ecode_col){
cdc_non_heroin_icd10cm_regex7_ <- "(T40[0234].|T406[09])(1|2|3|4)(A|D|$)"
data %>%
mutate(non_heroin_icd10cm =
create_diag(., expr = cdc_non_heroin_icd10cm_regex7_,
colvec = diag_ecode_col))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.