flag_drug_deaths: Flag drug deaths according to ISW7 rules

View source: R/flag_drug_deaths.R

flag_drug_deathsR Documentation

Flag drug deaths according to ISW7 rules

Description

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.

Usage

flag_drug_deaths(processed_df, year = NULL, keep_cols = FALSE)

Arguments

processed_df

processed dataframe

year

if NULL, will attempt to detect

keep_cols

keep intermediate columns

Value

new dataframe with a drug_death column


mkiang/narcan documentation built on Sept. 26, 2024, 7:18 a.m.