Forward-Backward Mapping
forward_backward.Rd
Performs the bidirectional mapping of a code.
Usage
forward_backward(
codes,
icdVer_dest,
code_type,
match_method = c("exact", "prefix")
)
Arguments
- codes
A vector of ICD diagnosis or procedure codes.
- icdVer_dest
A number, either 9 or 10, indicating the destination ICD version.
- code_type
A string, either "dg" or "pc," indicating the codes are diagnosis or procedure, respectively.
- match_method
A string, specifying the method for matching the codes
"exact"
matches the provided code exactly."prefix"
treats the provided code as a prefix for matching.