1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-27 14:06:12 +01:00
AMR/man/as.atc.Rd

52 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-04-25 15:33:58 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atc.R
\name{as.atc}
\alias{as.atc}
\alias{atc}
2018-04-25 15:33:58 +02:00
\alias{guess_atc}
\alias{is.atc}
\title{Transform to ATC code}
2018-04-25 15:33:58 +02:00
\usage{
as.atc(x)
2018-04-25 15:33:58 +02:00
guess_atc(x)
is.atc(x)
2018-04-25 15:33:58 +02:00
}
\arguments{
\item{x}{character vector to determine \code{ATC} code}
}
\value{
Character (vector) with class \code{"act"}. Unknown values will return \code{NA}.
2018-04-25 15:33:58 +02:00
}
\description{
Use this function to determine the ATC code of one or more antibiotics. The data set \code{\link{antibiotics}} will be searched for abbreviations, official names and trade names.
2018-04-25 15:33:58 +02:00
}
\details{
Use the \code{\link{ab_property}} functions to get properties based on the returned ATC code, see Examples.
In the ATC classification system, the active substances are classified in a hierarchy with five different levels. The system has fourteen main anatomical/pharmacological groups or 1st levels. Each ATC main group is divided into 2nd levels which could be either pharmacological or therapeutic groups. The 3rd and 4th levels are chemical, pharmacological or therapeutic subgroups and the 5th level is the chemical substance. The 2nd, 3rd and 4th levels are often used to identify pharmacological subgroups when that is considered more appropriate than therapeutic or chemical subgroups.
2018-04-25 15:33:58 +02:00
Source: \url{https://www.whocc.no/atc/structure_and_principles/}
}
\examples{
# These examples all return "J01FA01", the ATC code of Erythromycin:
as.atc("J01FA01")
as.atc("Erythromycin")
as.atc("eryt")
as.atc(" eryt 123")
as.atc("ERYT")
as.atc("ERY")
as.atc("Erythrocin") # Trade name
as.atc("Eryzole") # Trade name
as.atc("Pediamycin") # Trade name
# Use ab_* functions to get a specific property based on an ATC code
Cipro <- as.atc("cipro") # returns `J01MA02`
ab_official(Cipro) # returns "Ciprofloxacin"
ab_umcg(Cipro) # returns "CIPR", the code used in the UMCG
2018-04-25 15:33:58 +02:00
}
\seealso{
2018-09-01 21:19:46 +02:00
\code{\link{antibiotics}} for the dataframe that is being used to determine ATCs.
2018-04-25 15:33:58 +02:00
}
\keyword{atc}