View source: R/flag_drug_deaths.R
flag_drug_deaths | R Documentation |
Given an MCOD dataframe, will apply ISW7 rules to flag drug deaths for both ICD9 and ICD10 codes.For ICD9, it is true if any poison code is in any record field. For ICD10, it is true if there is a specific UCOD code **and** at least one specified T-code.
flag_drug_deaths(processed_df, year = NULL, keep_cols = FALSE)
processed_df |
processed dataframe |
year |
if NULL, will attempt to detect |
keep_cols |
keep intermediate columns |
new dataframe with a drug_death column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.