Function to get description of a code.
Usage
get_description(codes, icdVer, code_type)
Arguments
- codes
A vector of ICD diagnosis or procedure codes.
- icdVer
A number, either 9 or 10, indicating the ICD version.
- code_type
A string, either "dg" or "pc," indicating the codes are diagnosis or procedure, respectively.
Value
A dataframe with the ICD code and its description.