Learn R Programming

icd9 (version 1.0)

icd9DropLeadingZeroes: drop zero padding from decimal ICD-9 code.

Description

decimal form ICD-9 codes are not ambiguous if the leading zeroes are dropped. Some short-form ICD-9 codes would not be ambiguous, e.g. "1" but many would be problematic, so no function is provided to do this for short-form codes. This is the inverse of icd9AddLeadingZeroesDecimal

Usage

icd9DropLeadingZeroes(icd9, isShort)

icd9DropLeadingZeroesDecimal(icd9Decimal)

icd9DropLeadingZeroesShort(icd9Short)

icd9DropLeadingZeroesMajor(major)

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"

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"

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"

Value

character vector of ICD-9 codes with extra zeroes dropped from major part

See Also

Other ICD-9 convert: convert, convert, icd9DecimalToParts, icd9DecimalToShort, icd9GetMajor, icd9MajMinToCode, icd9MajMinToDecimal, icd9MajMinToParts, icd9MajMinToShort, icd9PartsToDecimal, icd9PartsToShort, icd9ShortToDecimal, icd9ShortToParts; icd9ChaptersToMap; icd9LongToWide; icd9WideToLong