get_diag_codes: retrieves diagnosis (dx) codes matching a wildchar

Description Usage Arguments Value Examples

Description

The get_diag_codes function processes extracts diagnosis codes from the dim_dx table matching the pattern passed in the function

Usage

1
2
get_diag_codes(diag_codes = "__NULL__", api_function = "get_diag_codes",
  ...)

Arguments

diag_codes

a string with the requested pattern for diagnosis code

api_function

a variable indicating the name of the function. It is unlikely that you'll ever need to change the value of this parameter and it is best left as-is

Value

a vector with the diagnosis codes

Examples

1
2
# extract diagnosis codes starting with E11
get_diag_codes("E11*")

xbsd/rxdsapi2 documentation built on May 14, 2019, 11:08 a.m.