Learn R Programming

icd9 (version 0.2.1)

icd9Explain: explain ICD9 codes

Description

convert full format (123.45 style) ICD9 codes into the name and description for human review there are official ICD9-CM data tables, not with conversion to decimal notation, but to the textual format.

Usage

icd9Explain(icd9, short)

icd9ExplainShort(icd9Short)

icd9ExplainDecimal(icd9Decimal)

## S3 method for class 'list': icd9Explain(icd9, short)

## S3 method for class 'character': icd9Explain(icd9, short)

## S3 method for class 'numeric': icd9Explain(icd9, short)

Arguments

icd9
is a character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"
icd9Short
is a character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"
icd9Decimal
character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"
short
single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form.

Value

  • data frame, or list of data frames, with fields for ICD9 code, name and description, derived from datamart lookup table

Methods (by class)

  • list: explain alll ICD-9 codes in a list of vectors
  • character: explain character vector of ICD-9 codes
  • numeric: explain numeric vector of ICD-9 codes, with warning

References

http://www.stata.com/help.cgi?icd9

See Also

package comorbidities

Examples

Run this code
icd9ExplainShort(ahrqComorbid[[1]][1:3])

Run the code above in your browser using DataLab