find_icd: Find any relevant icd-8 or icd-10 codes

View source: R/icdR.R

find_icdR Documentation

Find any relevant icd-8 or icd-10 codes

Description

Finds specific icd codes provided as regex

Usage

find_icd(
  icd_data = icd_data,
  icd_code = icd_code,
  regex = NULL,
  negate = FALSE,
  is_icd_8_code = FALSE,
  regex_icd_8 = NULL,
  regex_icd_10 = NULL
)

Arguments

icd_code

is the column (variable) with icd codes

regex

is the regex of icd codes

is_icd_8_code

is the indicator of whether the code is icd-8 code

icd

is the data with icd codes

Value

the dataframe with icd-8 codes

Examples

find_icd(regex = "^DE10|^DE11|^DH360|^249|^250")

evpatora/icdR documentation built on March 28, 2023, 10:06 a.m.