Accepts a single number or character input starting point for generation of all possible decimal parts of ICD9 code. e.g. giving an empty input will fill out 111 combinations, e..g .1 .11 .12 .... .2 ....
icd9ExpandMinor(minor, isE = FALSE)
character vector of 'minor' part of ICD-9 codes, i.e. that part which falls after the decimal point, in decimal notation. (In 5 digit notation, the 'major' part is be xyz, even when x and y are zero, thus the last two characters represent the 'minor' part, in this case.)
single logical, which if TRUE, treats the minor as part of an E
code (which is one character), as opposed to a V or numeric-only code,
which is two character. Default is FALSE
.
NA for invalid minor, otherwise a vector of all possible (perhaps non-existent) sub-divisions.
Other ICD-9 ranges: %i9d%
,
%i9da%
, %i9mj%
,
%i9s%
, %i9sa%
,
icd9ExpandRange
,
icd9ExpandRangeDecimal
,
icd9ExpandRangeMajor
,
icd9ExpandRangeShort
;
icd9Children
, icd9Children
,
icd9ChildrenDecimal
,
icd9ChildrenShort
;
icd9Condense
,
icd9CondenseDecimal
,
icd9CondenseShort
,
icd9CondenseToMajor
,
icd9CondenseToMajorDecimal
,
icd9CondenseToMajorShort
# NOT RUN {
# return all possible decimal parts of ICD9 codes (111 in total)
length(icd9:::icd9ExpandMinor("", isE = FALSE))
icd9:::icd9ExpandMinor("1") # "1" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19"
# }
Run the code above in your browser using DataLab