Look up the drug name from an ATC code using the WHO DDD website. Requires an internet connection.

get_ATC_name(x, silent = FALSE)

Arguments

x

a character vector of ATC codes

silent

if TRUE, the progress bar will be hidden. The default is FALSE.

Value

a character vector of ATC names (lowercase).

References

Adapted from atc_online_property() with thanks to the AMR package authors.

Examples

get_ATC_name("J01XA01")
#> [1] "vancomycin"