od_intent_trans: Find intent for ICD-9-CM and ICD-10-CM.

Description Usage Arguments Value Examples

Description

Use date to apply ICD-9_CM intent criteria to pre fiscal year 2016 and ICD-10-CM criteria to the rest.

Usage

1
od_intent_trans(data, diag_ecode_col, date)

Arguments

diag_ecode_col

numeric vector of the selected diagnosis and E codes

data:

input data

date:

date of discharge

Value

intent_drugs with values 1, 2, 3, 4 for unintentional, self-harm, assault and undetermined

Examples

1
#' od_intent_trans(diag_ecode_col = c(3, 6), date = discharge_date) %>% select(-age, -diagnosis_2, -diagnosis_3, -ecode2, -year) %>% sample_n(10)

injuryepi/overdoser documentation built on May 12, 2019, 12:05 p.m.