Learn R Programming

icd (version 3.3)

guess_pair_version: Guess the ICD version (9 or 10) from a pair of codes

Description

Designed for guessing version of codes given to delineate a range

Usage

guess_pair_version(start, end, short_code = NULL)

Arguments

start

ICD code

end

ICD code

short_code

single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form. Where reasonable, this is guessed from the input data.

Value

Type of codes as single character "icd9" or "icd10", or error if conflicting results