Skip to contents

Retrieves the row(s) in the code table matching a given code.

Usage

lookup_code(code, system = "ICD9CM")

Arguments

code

A single character string specifying the code to look up.

system

A single character string naming the code system, one of supported_inner(). Defaults to "ICD9CM".

Value

A data.frame (or tibble) containing all columns for the matching code. If no match is found, returns an empty data frame with the same columns as the code table.

Examples

if (FALSE) { # \dontrun{
lookup_code("A00", "ICD10CM")
} # }