icd_matched_intent_mech: Add matched intent and mechanism combined fields for injury...

Description Usage Arguments Value Examples

View source: R/icd10cm_injury.R

Description

, reference

Usage

1

Arguments

data

input data

inj_col

ecode and diagnosis column indices

Value

return the input with additional variables ( 92 intent_mechanism combinations)

Examples

1
2
3
4
5
6
7
8
library(tidyverse)
library(fuzzyjoin)
dat <- data.frame(
  d1 = c("T63023", "X92821", "X99100", "T360x"),
  d2 = c("T65823", "Y030x0", "T17200", "V0100x")
)

dat %>% icd_matched_intent_mech(inj_col = c(1, 2))

epinotes/useicd10cm documentation built on Oct. 18, 2021, 2:33 a.m.