As with link{icd9ExpandRangeShort}
great care is taken not to
include codes which have children not in the range. E.g. "100.9" to "101.1"
would _not_ include code "101".
onlyReal
default is TRUE
(a change from previous versions)
since this is far more likely to be useful to the end user.
icd9ExpandRange(start, end, isShort = icd9GuessIsShort(c(start, end)), onlyReal = TRUE, excludeAmbiguousStart = TRUE, excludeAmbiguousEnd = TRUE)
icd9ExpandRangeShort(start, end, onlyReal = TRUE, excludeAmbiguousStart = TRUE, excludeAmbiguousEnd = TRUE)
icd9ExpandRangeMajor(start, end, onlyReal = TRUE)
icd9ExpandRangeDecimal(start, end, onlyReal = TRUE, excludeAmbiguousStart = TRUE, excludeAmbiguousEnd = TRUE)
start %i9da% end
start %i9sa% end
start %i9d% end
start %i9mj% end
start %i9s% end
TRUE
the range
returned will not include codes which are explicitly listed in the range,
but would imply a broader range than specified. E.g. V10
V1009
would by default (FALSE
) include V10
even though
V10
itself is parent to everything up to V11
.excludeAmbiguousStart
but affects codes at the end of the range.
E.g. 99.99 to 101.01 would by default exclude 101 and 101.0icd9Children
,
icd9Condense
, icd9ExpandMinor
"4280 " %i9s% "4289 "
"4280 " %i9s% "42821"
"42799 " %i9sa% "42802" # doesn't include 428 or 4280
"427.99 " %i9da% "428.02"
"V80 " %i9s% " V810 "
Run the code above in your browser using DataLab