od_drug_apr_trans: Add new drug variables based on both ICD-9-CM and ICD-10-CM.

Description Usage Arguments Value Examples

Description

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

Usage

1
od_drug_apr_trans(data, diag_col, ecode_col, diag_ecode_col, date)

Arguments

data:

the input dataset

diag_col:

ndices(numeric) of diag of interest for icd-9

diag_ecode:

indices(numeric) of ecodes of interest for icd-9

diag_ecode_col:

indices(numeric) of diagnosis and E codes of interest

date:

date of discharge

Value

additional variables: any_drug, any_opioid, non_heroin_opioid , heroin

Examples

1
to be added

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