icd9MajMinToDf simply composes the data frame needed as input to the PartsToXxxx functions
icd9MajMinTo{Short|Decimal} simply composes the data frame
needed as input to the PartsToXxxx functions. Having two inputs breaks the
ability to 'pipe' commands together using magrittr
, so passing a
single data.frame
is preferred.
icd9PartsRecompose(parts, isShort, invalidAction = icd9InvalidActions)icd9PartsToShort(parts, invalidAction = icd9InvalidActions)
icd9PartsToDecimal(parts, invalidAction = icd9InvalidActions)
icd9MajMinToParts(major, minor)
icd9MajMinToShort(major, minor, invalidAction = icd9InvalidActions)
icd9MajMinToDecimal(major, minor, invalidAction = icd9InvalidActions)
- ignore
no check for validity of ICD-9 code is made implicitly.
This is the fastest option. If the function call is explicitly to check
validity, e
icd9DecimalToShort
;
icd9DropLeadingZeroes
,
icd9DropLeadingZeroesDecimal
,
icd9DropLeadingZeroesMajor
,
icd9DropLeadingZeroesShort
;
icd9ShortToDecimal