Skip to contents

get_medrt_moa() is a convenience wrapper for get_medrt() that returns MED-RT mechanism-of-action assertions when available. Not all drugs have MED-RT has_moa assertions; for some drugs, mechanism-like or class-like information may instead be available from FDA/SPL EPC via get_epc() or as physiologic effects via get_medrt_pe().

Usage

get_medrt_moa(
  x,
  by = c("rxcui", "name"),
  keep_input = TRUE,
  show_progress = interactive()
)

Arguments

x

Character vector of RxCUIs or drug names.

by

One of "rxcui" or "name".

keep_input

Logical; if TRUE, includes the original input value.

show_progress

Logical. Show a progress bar in interactive sessions. Progress is shown only when at least 5 inputs are supplied.

Value

A tibble of MED-RT mechanism-of-action assertions.