% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\name{get_classes}
\alias{get_classes}
\title{Get RxClass assertions for RxNorm drugs}
\usage{
get_classes(
  x,
  by = c("rxcui", "name"),
  rela_source = NULL,
  relas = NULL,
  class_types = NULL,
  keep_input = TRUE,
  show_progress = interactive()
)
}
\arguments{
\item{x}{Character vector of RxCUIs or drug names.}

\item{by}{One of \code{"rxcui"} or \code{"name"}.}

\item{rela_source}{Optional RxClass relationship source filter, such as
\code{"ATC"}, \code{"ATCPROD"}, \code{"DAILYMED"}, \code{"FDASPL"}, \code{"MEDRT"}, \code{"SNOMEDCT"},
or \code{"VA"}. May be a character vector; values are queried separately.}

\item{relas}{Optional relationship filter. Examples include \code{"has_EPC"},
\code{"has_MoA"}, \code{"has_PE"}, \code{"may_treat"}, \code{"ci_with"},
\code{"has_chemical_structure"}, and others supported by RxClass.}

\item{class_types}{Optional filter on returned class types, such as \code{"EPC"},
\code{"MOA"}, \code{"PE"}, \code{"DISEASE"}, \code{"CHEM"}, \code{"VA"}, or \code{"ATC1-4"}.}

\item{keep_input}{Logical; if \code{TRUE}, includes the original input value.}

\item{show_progress}{Logical. Show a progress bar in interactive sessions.
Progress is shown only when at least 5 inputs are supplied.}
}
\value{
A tibble with one row per RxClass assertion.
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experimental.svg}{options: alt='[Experimental]'}}}{\strong{[Experimental]}}

\code{get_classes()} returns RxClass assertions for RxNorm concepts or drug names.
These include drug-class relationships from sources such as ATC, FDASPL,
DAILYMED, MEDRT, SNOMEDCT, and VA. Depending on the source and relationship,
returned assertions may represent pharmacologic classes, chemical structures,
mechanisms of action, physiologic effects, indications, contraindications,
VA classes, ATC classes, or SNOMED CT dispositions/structures.

Because different sources use different classification logic, this function
preserves class type, relationship, and relationship source rather than
collapsing results into a single class label.
}
