2018-02-21 12:10:00 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atc.R
\name{abname}
\alias{abname}
\title{Name of an antibiotic}
\source{
2018-03-19 12:43:22 +01:00
\code{\link{antibiotics}}
2018-02-21 12:10:00 +01:00
}
\usage{
abname(abcode, from = "umcg", to = "official", textbetween = " + ",
tolower = FALSE)
}
\arguments{
2018-02-26 15:53:09 +01:00
\item{abcode}{a code or name, like \code{"AMOX"}, \code{"AMCL"} or \code{"J01CA04"}}
2018-02-21 12:10:00 +01:00
2018-03-19 12:43:22 +01:00
\item{from, to}{type to transform from and to. See \code{\link{antibiotics}} for its column names.}
2018-02-21 12:10:00 +01:00
\item{textbetween}{text to put between multiple returned texts}
\item{tolower}{return output as lower case with function \code{\link{tolower}}.}
}
\description{
2018-03-19 12:43:22 +01:00
Convert antibiotic codes (from a laboratory information system like MOLIS or GLIMS) to a (trivial) antibiotic name or ATC code, or vice versa. This uses the data from \code{\link{antibiotics}}.
2018-02-21 12:10:00 +01:00
}
\examples{
abname("AMCL")
# "amoxicillin and enzyme inhibitor"
abname("AMCL+GENT")
# "amoxicillin and enzyme inhibitor + gentamicin"
abname(c("AMCL", "GENT"))
# "amoxicillin and enzyme inhibitor" "gentamicin"
2018-02-26 15:53:09 +01:00
abname("AMCL", to = "trivial_nl")
2018-02-21 12:10:00 +01:00
# "Amoxicilline/clavulaanzuur"
abname("AMCL", to = "atc")
# "J01CR02"
abname("J01CR02", from = "atc", to = "umcg")
# "AMCL"
}
\keyword{ab}
\keyword{antibiotics}