Map Code
map_code.Rd
Map ICD diagnosis or procedure codes to and from either ICD9 or ICD10.
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.
- method
A string specifying the method for mapping the codes. The same methods as implemented by the
icd_convert
function in thetouch
package."gem"
performs a single forward mapping."reverse-gem"
performs a single backward mapping."both"
performs a single forward and backward mapping, combining the results."multi-stage"
performs the multiple-stage mapping, as described in thetouch
package.
- 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.