prefix_e_to_ucod: Add the external cause flag (E) to appropriate ICD-9 UCOD...

View source: R/prefix_e_to_ucod.R

prefix_e_to_ucodR Documentation

Add the external cause flag (E) to appropriate ICD-9 UCOD codes

Description

All UCOD ICD-9 codes between 800 and 999 are external cause of injury (E) codes. We append the E to them to make regexing across UCOD and record columns consistent.

Usage

prefix_e_to_ucod(icd9_ucod)

Arguments

icd9_ucod

The ucod column from an ICD-9 dataframe

Value

vector

Examples

prefix_e_to_ucod(c(7951, 8001, 9992, 6000, 4000))

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