This can be thought of as the inverse operation to
icd9Children
.
icd9Condense(icd9, isShort = icd9GuessIsShort(icd9), onlyReal = NULL,
warn = TRUE)icd9CondenseDecimal(icd9Decimal, onlyReal = NULL, warn = TRUE)
icd9CondenseShort(icd9Short, onlyReal = NULL, warn = TRUE,
keepFactorLevels = FALSE)
is a character vector or factor 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".
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.
single logical value, if TRUE, will limit the search to those codes which appear in the master list, not just syntactically valid codes. Since nearly valid, out-dated or new codes may be missed, not limiting to 'real' values will be useful. Ultimately, there will need to be annual (and all-time) master lists of codes and the ability to test against a given master list given the year of the ICD-9 coding.
single logical value, if TRUE
, give warnings when
there is discrepancy between onlyReal
being TRUE
yet data
containing undefined codes.
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"
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"
single logical value, default FALSE
. If
TRUE
, will reuse the factor levels from the input data for the
output data. This only applies if a factor is given for the input codes.
Other ICD-9 ranges: %i9d%
,
%i9da%
, %i9mj%
,
%i9s%
, %i9sa%
,
icd9ExpandRange
,
icd9ExpandRangeDecimal
,
icd9ExpandRangeMajor
,
icd9ExpandRangeShort
;
icd9Children
, icd9Children
,
icd9ChildrenDecimal
,
icd9ChildrenShort
;
icd9ExpandMinor