getICD10: Convert between ICD9 codes and ICD10 codes

Description Usage Arguments Details Value Examples

Description

Convert between ICD9 codes and ICD10 codes

Usage

1
2
3
4
5
getICD10(ICD9vec, return.value = c("ICD10only", "All"), option = c("1", "2",
  "3"))

getICD9(ICD10vec, return.value = c("ICD9only", "All"), option = c("2", "1",
  "3"))

Arguments

ICD9vec

A vector of ICD9 codes to convert

return.value

By default only ICD10 codes are returned, set to 'All' to also return flags.

option

Choose from 1 to 3 to specify what table to be used in conversion. Choose 1 for ICD9to10, 2 for ICD10to9, and 3 for using both and returning the union of two sets of results. Default for getICD10 is 1, while default for getICD9 is 2.

ICD10vec

A vector of ICD10 codes to convert

Details

For getICD10, the conversion is done using ICD9to10 dataset by default. For getICD9, the conversion is done using ICD10to9 dataset by default. If option is set to 3 and return.value is set to 'All', then an additional column From is created to indicate the source (ICD9to10 or ICD10to9) of each line of conversion result.

Value

If return.value='ICD10only' a vector of ICD10 codes matching the ICD9 codes given (duplicates are omitted). Otherwise, if return.value='All' a data frame consisting of rows from ICD9to10 matching the requested ICD9 codes.

Examples

1
2
3
ICD9vec <- as.character(c(30781,33900:33999,3460:3469))
ICD10vec <- getICD10(ICD9vec)
head(ICD10vec)

songxh0424/MPrOVE-package documentation built on May 19, 2019, 4:18 p.m.