get_atc: Get WHO ATC/DDD Drug Class From RxCUI

View source: R/get_atc.R

get_atcR Documentation

Get WHO ATC/DDD Drug Class From RxCUI

Description

Get WHO ATC/DDD Drug Class From RxCUI

Usage

get_atc(
  rx_cui,
  query_atc = c("none", "first", "second", "third", "fourth"),
  local_host = FALSE
)

Arguments

rx_cui

Either a string or numeric RxNorm RxCUI to search for.

query_atc

Level to parse ATC code at. Options are "none" (default), "first", "second", "third", "fourth".

local_host

Run query locally using RxNav-in-a-box with Docker?

Value

If query_atc is "none", the raw ATC code(s), otherwise the parsed ATC code(s); NULL if not successful.

Examples

get_atc(861819)
get_atc(6809)
get_atc(861819, "first")
get_atc(861819, "second")
get_atc(861819, "third")
get_atc(861819, "fourth")

nt-williams/rxnorm documentation built on April 11, 2025, 11:05 p.m.