icd_search: Search ICD-10-GM labels for a string

View source: R/icd_lookup.R

icd_searchR Documentation

Search ICD-10-GM labels for a string

Description

Search ICD-10-GM labels for a string

Usage

icd_search(pattern, level = 5, year = NULL, ignore.case = TRUE, ...)

Arguments

pattern

String to search for (character object of length 1)

level

Maximum level of the ICD-10 hierarchy to search. level = 3 will search ohne 3-digit codes, level = 4 all 3 and 4 digit codes, level = 5 will search through all codes.

year

Year in which to search (Default: most recent year available)

ignore.case

Should the search be case insensitive? (Default: TRUE)

...

Further parameters passed to agrep

Value

Usually called for side-effect (open browser), returns the corresponding URL invisibly.

See Also

icd_browse() to lookup an ICD-10-GM code in the official BfArM documentation, opening the page in a browser icd_lookup() to lookup an ICD-10-GM code in the console

Examples

icd_search("vitamin", level = 3)
icd_search("vitamin", level = 5)

edonnachie/ICD10gm documentation built on Sept. 25, 2023, 5:58 a.m.