Learn R Programming

ICD10gm (version 1.2.5)

icd_search: 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, ...)

Value

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

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

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

Run this code
icd_search("vitamin", level = 3)
icd_search("vitamin", level = 5)

Run the code above in your browser using DataLab