flag_opioid_deaths: Flag opioid deaths according to ISW7 rules

View source: R/flag_opioid_deaths.R

flag_opioid_deathsR Documentation

Flag opioid deaths according to ISW7 rules

Description

Given an MCOD dataframe, will apply ISW7 rules to flag opioid deaths for both ICD9 and ICD10 codes. Expects you to run unite_records() first. If you don't, it will do so, but will remove that columns by default. Change keep_cols = TRUE to keep it.

Usage

flag_opioid_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 binary opioid_death column


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