1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-27 08:46:12 +01:00
AMR/man/mdro.Rd

250 lines
9.3 KiB
Plaintext
Raw Normal View History

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdro.R
2018-11-16 20:50:50 +01:00
\name{mdro}
\alias{mdro}
\alias{brmo}
\alias{mrgn}
\alias{eucast_exceptional_phenotypes}
\title{Determine multidrug-resistant organisms (MDRO)}
\usage{
2018-11-16 20:50:50 +01:00
mdro(tbl, country = NULL, col_mo = NULL, info = TRUE,
2018-04-25 15:33:58 +02:00
amcl = "amcl", amik = "amik", amox = "amox", ampi = "ampi",
azit = "azit", aztr = "aztr", cefa = "cefa", cfra = "cfra",
cfep = "cfep", cfot = "cfot", cfox = "cfox", cfta = "cfta",
cftr = "cftr", cfur = "cfur", chlo = "chlo", cipr = "cipr",
clar = "clar", clin = "clin", clox = "clox", coli = "coli",
czol = "czol", dapt = "dapt", doxy = "doxy", erta = "erta",
eryt = "eryt", fosf = "fosf", fusi = "fusi", gent = "gent",
imip = "imip", kana = "kana", levo = "levo", linc = "linc",
line = "line", mero = "mero", metr = "metr", mino = "mino",
moxi = "moxi", nali = "nali", neom = "neom", neti = "neti",
nitr = "nitr", novo = "novo", norf = "norf", oflo = "oflo",
2018-11-01 20:23:33 +01:00
peni = "peni", pipe = "pipe", pita = "pita", poly = "poly",
qida = "qida", rifa = "rifa", roxi = "roxi", siso = "siso",
teic = "teic", tetr = "tetr", tica = "tica", tige = "tige",
2018-12-22 22:39:34 +01:00
tobr = "tobr", trim = "trim", trsu = "trsu", vanc = "vanc")
2018-11-16 20:50:50 +01:00
brmo(..., country = "nl")
2018-11-16 20:50:50 +01:00
mrgn(tbl, country = "de", ...)
2018-04-25 15:33:58 +02:00
2018-11-16 20:50:50 +01:00
eucast_exceptional_phenotypes(tbl, country = "EUCAST", ...)
}
\arguments{
\item{tbl}{table with antibiotic columns, like e.g. \code{amox} and \code{amcl}}
2018-04-25 15:33:58 +02:00
\item{country}{country code to determine guidelines. EUCAST rules will be used when left empty, see Details. Should be or a code from the \href{https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements}{list of ISO 3166-1 alpha-2 country codes}. Case-insensitive. Currently supported are \code{de} (Germany) and \code{nl} (the Netherlands).}
2018-11-01 20:50:10 +01:00
\item{col_mo}{column name of the unique IDs of the microorganisms (see \code{\link{mo}}), defaults to the first column of class \code{mo}. Values will be coerced using \code{\link{as.mo}}.}
\item{info}{print progress}
2018-12-07 12:04:55 +01:00
\item{amcl}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{amik}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{amox}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{ampi}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{azit}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{aztr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cefa}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfra}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfep}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfot}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfox}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfta}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cftr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cfur}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{chlo}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{cipr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{clar}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{clin}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{clox}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{coli}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{czol}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{dapt}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{doxy}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{erta}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{eryt}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{fosf}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{fusi}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{gent}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{imip}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{kana}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{levo}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{linc}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{line}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{mero}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{metr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{mino}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{moxi}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{nali}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{neom}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{neti}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{nitr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{novo}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{norf}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{oflo}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{peni}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{pipe}{column name of an antibiotic, see Antibiotics}
2018-11-01 20:23:33 +01:00
2018-12-07 12:04:55 +01:00
\item{pita}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{poly}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{qida}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{rifa}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{roxi}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{siso}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{teic}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{tetr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{tica}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{tige}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{tobr}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{trim}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{trsu}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-12-07 12:04:55 +01:00
\item{vanc}{column name of an antibiotic, see Antibiotics}
2018-08-31 13:36:19 +02:00
2018-04-25 15:33:58 +02:00
\item{...}{parameters that are passed on to methods}
}
\value{
2018-11-16 20:50:50 +01:00
Ordered factor with levels \code{Negative < Positive, unconfirmed < Positive}.
}
\description{
Determine which isolates are multidrug-resistant organisms (MDRO) according to country-specific guidelines.
}
2018-04-25 15:33:58 +02:00
\details{
When \code{country} will be left blank, guidelines will be taken from EUCAST Expert Rules Version 3.1 "Intrinsic Resistance and Exceptional Phenotypes Tables" (\url{http://www.eucast.org/fileadmin/src/media/PDFs/EUCAST_files/Expert_Rules/Expert_rules_intrinsic_exceptional_V3.1.pdf}).
}
2018-08-31 13:36:19 +02:00
\section{Antibiotics}{
2018-12-07 12:04:55 +01:00
To define antibiotics column names, input a text (case-insensitive) or use \code{NULL} to skip a column (e.g. \code{tica = NULL}). Non-existing columns will anyway be skipped with a warning.
2018-10-18 12:10:10 +02:00
Abbrevations of the column containing antibiotics in the form: \strong{abbreviation}: generic name (\emph{ATC code})
2018-08-31 13:36:19 +02:00
2018-10-17 17:32:34 +02:00
\strong{amcl}: amoxicillin+clavulanic acid (\emph{J01CR02}),
2018-08-31 13:36:19 +02:00
\strong{amik}: amikacin (\emph{J01GB06}),
\strong{amox}: amoxicillin (\emph{J01CA04}),
\strong{ampi}: ampicillin (\emph{J01CA01}),
\strong{azit}: azithromycin (\emph{J01FA10}),
\strong{azlo}: azlocillin (\emph{J01CA09}),
\strong{aztr}: aztreonam (\emph{J01DF01}),
\strong{cefa}: cefaloridine (\emph{J01DB02}),
\strong{cfep}: cefepime (\emph{J01DE01}),
\strong{cfot}: cefotaxime (\emph{J01DD01}),
\strong{cfox}: cefoxitin (\emph{J01DC01}),
\strong{cfra}: cefradine (\emph{J01DB09}),
\strong{cfta}: ceftazidime (\emph{J01DD02}),
\strong{cftr}: ceftriaxone (\emph{J01DD04}),
\strong{cfur}: cefuroxime (\emph{J01DC02}),
\strong{chlo}: chloramphenicol (\emph{J01BA01}),
\strong{cipr}: ciprofloxacin (\emph{J01MA02}),
\strong{clar}: clarithromycin (\emph{J01FA09}),
\strong{clin}: clindamycin (\emph{J01FF01}),
\strong{clox}: flucloxacillin (\emph{J01CF05}),
\strong{coli}: colistin (\emph{J01XB01}),
\strong{czol}: cefazolin (\emph{J01DB04}),
\strong{dapt}: daptomycin (\emph{J01XX09}),
\strong{doxy}: doxycycline (\emph{J01AA02}),
\strong{erta}: ertapenem (\emph{J01DH03}),
\strong{eryt}: erythromycin (\emph{J01FA01}),
\strong{fosf}: fosfomycin (\emph{J01XX01}),
\strong{fusi}: fusidic acid (\emph{J01XC01}),
\strong{gent}: gentamicin (\emph{J01GB03}),
2018-10-17 17:32:34 +02:00
\strong{imip}: imipenem (\emph{J01DH51}),
2018-08-31 13:36:19 +02:00
\strong{kana}: kanamycin (\emph{J01GB04}),
\strong{levo}: levofloxacin (\emph{J01MA12}),
\strong{linc}: lincomycin (\emph{J01FF02}),
\strong{line}: linezolid (\emph{J01XX08}),
\strong{mero}: meropenem (\emph{J01DH02}),
\strong{mezl}: mezlocillin (\emph{J01CA10}),
\strong{mino}: minocycline (\emph{J01AA08}),
\strong{moxi}: moxifloxacin (\emph{J01MA14}),
\strong{nali}: nalidixic acid (\emph{J01MB02}),
\strong{neom}: neomycin (\emph{J01GB05}),
\strong{neti}: netilmicin (\emph{J01GB07}),
\strong{nitr}: nitrofurantoin (\emph{J01XE01}),
\strong{norf}: norfloxacin (\emph{J01MA06}),
\strong{novo}: novobiocin (an ATCvet code: \emph{QJ01XX95}),
\strong{oflo}: ofloxacin (\emph{J01MA01}),
2018-10-17 17:32:34 +02:00
\strong{peni}: penicillin (\emph{J01RA01}),
2018-11-01 17:06:08 +01:00
\strong{pipe}: piperacillin (\emph{J01CA12}),
2018-10-17 17:32:34 +02:00
\strong{pita}: piperacillin+tazobactam (\emph{J01CR05}),
2018-08-31 13:36:19 +02:00
\strong{poly}: polymyxin B (\emph{J01XB02}),
\strong{pris}: pristinamycin (\emph{J01FG01}),
\strong{qida}: quinupristin/dalfopristin (\emph{J01FG02}),
\strong{rifa}: rifampicin (\emph{J04AB02}),
\strong{roxi}: roxithromycin (\emph{J01FA06}),
\strong{siso}: sisomicin (\emph{J01GB08}),
\strong{teic}: teicoplanin (\emph{J01XA02}),
\strong{tetr}: tetracycline (\emph{J01AA07}),
\strong{tica}: ticarcillin (\emph{J01CA13}),
\strong{tige}: tigecycline (\emph{J01AA12}),
\strong{tobr}: tobramycin (\emph{J01GB01}),
\strong{trim}: trimethoprim (\emph{J01EA01}),
\strong{trsu}: sulfamethoxazole and trimethoprim (\emph{J01EE01}),
\strong{vanc}: vancomycin (\emph{J01XA01}).
}
2018-04-25 15:33:58 +02:00
\examples{
library(dplyr)
septic_patients \%>\%
2018-11-16 20:50:50 +01:00
mutate(EUCAST = mdro(.),
BRMO = brmo(.))
2018-04-25 15:33:58 +02:00
}