<!-- Generated by pkgdown: do not edit by hand --><htmllang="en"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Determine Multidrug-Resistant Organisms (MDRO) — mdro • AMR (for R)</title><!-- favicons --><linkrel="icon"type="image/png"sizes="16x16"href="../favicon-16x16.png"><linkrel="icon"type="image/png"sizes="32x32"href="../favicon-32x32.png"><linkrel="apple-touch-icon"type="image/png"sizes="180x180"href="../apple-touch-icon.png"><linkrel="apple-touch-icon"type="image/png"sizes="120x120"href="../apple-touch-icon-120x120.png"><linkrel="apple-touch-icon"type="image/png"sizes="76x76"href="../apple-touch-icon-76x76.png"><linkrel="apple-touch-icon"type="image/png"sizes="60x60"href="../apple-touch-icon-60x60.png"><scriptsrc="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><linkhref="../deps/bootstrap-5.3.1/bootstrap.min.css"rel="stylesheet"><scriptsrc="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><linkhref="../deps/Lato-0.4.9/font.css"rel="stylesheet"><linkhref="../deps/Fira_Code-0.4.9/font.css"rel="stylesheet"><linkhref="../deps/font-awesome-6.5.2/css/all.min.css"rel="stylesheet"><linkhref="../deps/font-awesome-6.5.2/css/v4-shims.min.css"rel="stylesheet"><scriptsrc="../deps/headroom-0.11.0/headroom.min.js"></script><scriptsrc="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><scriptsrc="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><scriptsrc="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><scriptsrc="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><scriptsrc="../deps/search-1.0.0/fuse.min.js"></script><scriptsrc="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><scriptsrc="../pkgdown.js"></script><linkhref="../extra.css"rel="stylesheet"><scriptsrc="../extra.js"></script><metaproperty="og:title"content="Determine Multidrug-Resistant Organisms (MDRO) — mdro"><metaname="description"content="Determine which isolates are multidrug-resistant organisms (MDRO) according to international, national, or custom guidelines."><metaproperty="og:description"content="Determine which isolates are multidrug-resistant organisms (MDRO) according to international, national, or custom guidelines."><metaproperty="og:image"content="https://msberends.github.io/AMR/logo.svg"></head><body>
<buttonclass="nav-link dropdown-toggle"type="button"id="dropdown-how-to"data-bs-toggle="dropdown"aria-expanded="false"aria-haspopup="true"><spanclass="fa fa-question-circle"></span> How to</button>
<ulclass="dropdown-menu"aria-labelledby="dropdown-how-to"><li><aclass="dropdown-item"href="../articles/AMR.html"><spanclass="fa fa-directions"></span> Conduct AMR Analysis</a></li>
<li><aclass="dropdown-item"href="../articles/AMR_with_tidymodels.html"><spanclass="fa fa-square-root-variable"></span> Use AMR for Predictive Modelling (tidymodels)</a></li>
<span> info <spanclass="op">=</span><spanclass="fu"><ahref="https://rdrr.io/r/base/interactive.html"class="external-link">interactive</a></span><spanclass="op">(</span><spanclass="op">)</span>,</span>
<p>See the supported guidelines above for the <ahref="https://rdrr.io/r/base/list.html"class="external-link">list</a> of publications used for this function.</p>
<dd><p>a <ahref="https://rdrr.io/r/base/data.frame.html"class="external-link">data.frame</a> with antibiotics columns, like <code>AMX</code> or <code>amox</code>. Can be left blank for automatic determination.</p></dd>
<dd><p>a specific guideline to follow, see sections <em>Supported international / national guidelines</em> and <em>Using Custom Guidelines</em> below. When left empty, the publication by Magiorakos <em>et al.</em> (see below) will be followed.</p></dd>
<dd><p>column name of the names or codes of the microorganisms (see <code><ahref="as.mo.html">as.mo()</a></code>) - the default is the first column of class <code><ahref="as.mo.html">mo</a></code>. Values will be coerced using <code><ahref="as.mo.html">as.mo()</a></code>.</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of an ESBL gene (or production of its proteins)</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of a carbapenemase gene (or production of its proteins)</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of a <em>mecA</em> gene (or production of its proteins)</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of a <em>mecC</em> gene (or production of its proteins)</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of a <em>vanA</em> gene (or production of its proteins)</p></dd>
<dd><p><ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> values, or a column name containing logical values, indicating the presence of a <em>vanB</em> gene (or production of its proteins)</p></dd>
<dd><p>a <ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> to indicate whether progress should be printed to the console - the default is only print while in interactive sessions</p></dd>
<dd><p>minimal required percentage of antimicrobial classes that must be available per isolate, rounded down. For example, with the default guideline, 17 antimicrobial classes must be available for <em>S. aureus</em>. Setting this <code>pct_required_classes</code> argument to <code>0.5</code> (default) means that for every <em>S. aureus</em> isolate at least 8 different classes must be available. Any lower number of available classes will return <code>NA</code> for that isolate.</p></dd>
<dd><p>a <ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> to indicate whether all values of S and I must be merged into one, so resistance is only considered when isolates are R, not I. As this is the default behaviour of the <code>mdro()</code> function, it follows the redefinition by EUCAST about the interpretation of I (increased exposure) in 2019, see section 'Interpretation of S, I and R' below. When using <code>combine_SI = FALSE</code>, resistance is considered when isolates are R or I.</p></dd>
<dd><p>a <ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> to turn Verbose mode on and off (default is off). In Verbose mode, the function does not return the MDRO results, but instead returns a data set in logbook form with extensive info about which isolates would be MDRO-positive, or why they are not.</p></dd>
<dd><p>a <ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> to indicate whether only antibiotic columns must be detected that were transformed to class <code>sir</code> (see <code><ahref="as.sir.html">as.sir()</a></code>) on beforehand (default is <code>FALSE</code>)</p></dd>
<dd><p>in case of <code>custom_mdro_guideline()</code>: a set of rules, see section <em>Using Custom Guidelines</em> below. Otherwise: column name of an antibiotic, see section <em>Antibiotics</em> below.</p></dd>
<dd><p>a <ahref="https://rdrr.io/r/base/logical.html"class="external-link">logical</a> to indicate whether the returned value should be an ordered <ahref="https://rdrr.io/r/base/factor.html"class="external-link">factor</a> (<code>TRUE</code>, default), or otherwise a <ahref="https://rdrr.io/r/base/character.html"class="external-link">character</a> vector</p></dd>
<ul><li><p>CMI 2012 paper - function <code>mdr_cmi2012()</code> or <code>mdro()</code>:<br>
Ordered <ahref="https://rdrr.io/r/base/factor.html"class="external-link">factor</a> with levels <code>Negative</code><<code>Multi-drug-resistant (MDR)</code><<code>Extensively drug-resistant (XDR)</code><<code>Pandrug-resistant (PDR)</code></p></li>
<li><p>TB guideline - function <code>mdr_tb()</code> or <code>mdro(..., guideline = "TB")</code>:<br>
Ordered <ahref="https://rdrr.io/r/base/factor.html"class="external-link">factor</a> with levels <code>Negative</code><<code>Mono-resistant</code><<code>Poly-resistant</code><<code>Multi-drug-resistant</code><<code>Extensively drug-resistant</code></p></li>
<li><p>German guideline - function <code>mrgn()</code> or <code>mdro(..., guideline = "MRGN")</code>:<br>
Ordered <ahref="https://rdrr.io/r/base/factor.html"class="external-link">factor</a> with levels <code>Negative</code><<code>3MRGN</code><<code>4MRGN</code></p></li>
<li><p>Everything else, except for custom guidelines:<br>
Ordered <ahref="https://rdrr.io/r/base/factor.html"class="external-link">factor</a> with levels <code>Negative</code><<code>Positive, unconfirmed</code><<code>Positive</code>. The value <code>"Positive, unconfirmed"</code> means that, according to the guideline, it is not entirely sure if the isolate is multi-drug resistant and this should be confirmed with additional (e.g. molecular) tests</p></li>
<p>These functions are context-aware. This means that the <code>x</code> argument can be left blank if used inside a <ahref="https://rdrr.io/r/base/data.frame.html"class="external-link">data.frame</a> call, see <em>Examples</em>.</p>
<p>For the <code>pct_required_classes</code> argument, values above 1 will be divided by 100. This is to support both fractions (<code>0.75</code> or <code>3/4</code>) and percentages (<code>75</code>).</p>
<p><strong>Note:</strong> Every test that involves the Enterobacteriaceae family, will internally be performed using its newly named <em>order</em> Enterobacterales, since the Enterobacteriaceae family has been taxonomically reclassified by Adeolu <em>et al.</em> in 2016. Before that, Enterobacteriaceae was the only family under the Enterobacteriales (with an i) order. All species under the old Enterobacteriaceae family are still under the new Enterobacterales (without an i) order, but divided into multiple families. The way tests are performed now by this <code>mdro()</code> function makes sure that results from before 2016 and after 2016 are identical.</p>
</div>
<divclass="section level2">
<h2id="supported-international-national-guidelines">Supported International / National Guidelines<aclass="anchor"aria-label="anchor"href="#supported-international-national-guidelines"></a></h2>
<p>Magiorakos AP, Srinivasan A <em>et al.</em> "Multidrug-resistant, extensively drug-resistant and pandrug-resistant bacteria: an international expert proposal for interim standard definitions for acquired resistance." Clinical Microbiology and Infection (2012) (<ahref="https://doi.org/10.1111/j.1469-0691.2011.03570.x"class="external-link">doi:10.1111/j.1469-0691.2011.03570.x</a>
<p>The European international guideline - EUCAST Expert Rules Version 3.3 "Intrinsic Resistance and Unusual Phenotypes" (<ahref="https://www.eucast.org/fileadmin/src/media/PDFs/EUCAST_files/Expert_Rules/2021/Intrinsic_Resistance_and_Unusual_Phenotypes_Tables_v3.3_20211018.pdf"class="external-link">link</a>)</p></li>
<li><p><code>guideline = "EUCAST3.2"</code></p>
<p>The European international guideline - EUCAST Expert Rules Version 3.2 "Intrinsic Resistance and Unusual Phenotypes" (<ahref="https://www.eucast.org/fileadmin/src/media/PDFs/EUCAST_files/Expert_Rules/2020/Intrinsic_Resistance_and_Unusual_Phenotypes_Tables_v3.2_20200225.pdf"class="external-link">link</a>)</p></li>
<li><p><code>guideline = "EUCAST3.1"</code></p>
<p>The European international guideline - EUCAST Expert Rules Version 3.1 "Intrinsic Resistance and Exceptional Phenotypes Tables" (<ahref="https://www.eucast.org/fileadmin/src/media/PDFs/EUCAST_files/Expert_Rules/Expert_rules_intrinsic_exceptional_V3.1.pdf"class="external-link">link</a>)</p></li>
<li><p><code>guideline = "TB"</code></p>
<p>The international guideline for multi-drug resistant tuberculosis - World Health Organization "Companion handbook to the WHO guidelines for the programmatic management of drug-resistant tuberculosis" (<ahref="https://www.who.int/publications/i/item/9789241548809"class="external-link">link</a>)</p></li>
<li><p><code>guideline = "MRGN"</code></p>
<p>The German national guideline - Mueller et al. (2015) Antimicrobial Resistance and Infection Control 4:7; <ahref="https://doi.org/10.1186/s13756-015-0047-6"class="external-link">doi:10.1186/s13756-015-0047-6</a></p></li>
<p>The former Dutch national guideline - Werkgroep Infectiepreventie (WIP), RIVM, last revision as of 2017: "Bijzonder Resistente Micro-Organismen (BRMO)"</p></li>
</ul></li>
</ul><p>Please suggest to implement guidelines by letting us know: <ahref="https://github.com/msberends/AMR/issues/new"class="external-link">https://github.com/msberends/AMR/issues/new</a>.</p>
<p>Custom guidelines can be set with the <code>custom_mdro_guideline()</code> function. This is of great importance if you have custom rules to determine MDROs in your hospital, e.g., rules that are dependent on ward, state of contact isolation or other variables in your data.</p>
<p>If you are familiar with the <code><ahref="https://dplyr.tidyverse.org/reference/case_when.html"class="external-link">case_when()</a></code> function of the <code>dplyr</code> package, you will recognise the input method to set your own rules. Rules must be set using what <spanstyle="R">R</span> considers to be the 'formula notation'. The rule is written <em>before</em> the tilde (<code>~</code>) and the consequence of the rule is written <em>after</em> the tilde:</p>
<p></p><divclass="sourceCode"><pre><code><spanid="cb1-1"><ahref="#cb1-1"tabindex="-1"></a>custom <spanclass="ot"><-</span><spanclass="fu">custom_mdro_guideline</span>(CIP <spanclass="sc">==</span><spanclass="st">"R"</span><spanclass="sc">&</span> age <spanclass="sc">></span><spanclass="dv">60</span><spanclass="sc">~</span><spanclass="st">"Elderly Type A"</span>,</span>
<spanid="cb1-2"><ahref="#cb1-2"tabindex="-1"></a> ERY <spanclass="sc">==</span><spanclass="st">"R"</span><spanclass="sc">&</span> age <spanclass="sc">></span><spanclass="dv">60</span><spanclass="sc">~</span><spanclass="st">"Elderly Type B"</span>)</span></code></pre><p></p></div>
<p>If a row/an isolate matches the first rule, the value after the first <code>~</code> (in this case <em>'Elderly Type A'</em>) will be set as MDRO value. Otherwise, the second rule will be tried and so on. The number of rules is unlimited.</p>
<p>You can print the rules set in the console for an overview. Colours will help reading it if your console supports colours.</p>
<spanid="cb1-3"><ahref="#cb1-3"tabindex="-1"></a><spanclass="fu">custom_mdro_guideline</span>(ERY <spanclass="sc">==</span><spanclass="st">"R"</span><spanclass="sc">&</span> age <spanclass="sc">></span><spanclass="dv">50</span><spanclass="sc">~</span><spanclass="st">"Elderly Type C"</span>)))</span>
<p>The rules set (the <code>custom</code> object in this case) could be exported to a shared file location using <code><ahref="https://rdrr.io/r/base/readRDS.html"class="external-link">saveRDS()</a></code> if you collaborate with multiple users. The custom rules set could then be imported using <code><ahref="https://rdrr.io/r/base/readRDS.html"class="external-link">readRDS()</a></code>.</p>
<p>To define antibiotics column names, leave as it is to determine it automatically with <code><ahref="guess_ab_col.html">guess_ab_col()</a></code> or input a text (case-insensitive), or use <code>NULL</code> to skip a column (e.g. <code>TIC = NULL</code> to skip ticarcillin). Manually defined but non-existing columns will be skipped with a warning.</p>
<p>The following antibiotics are eligible for the functions <code><ahref="eucast_rules.html">eucast_rules()</a></code> and <code>mdro()</code>. These are shown below in the format 'name (<code>antimicrobial ID</code>, <ahref="https://atcddd.fhi.no/atc/structure_and_principles/"class="external-link">ATC code</a>)', sorted alphabetically:</p>
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<ahref="https://www.eucast.org/newsiandr"class="external-link">https://www.eucast.org/newsiandr</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent.</p></li>
A microorganism is categorised as "Susceptible, Increased exposure</em>" when there is a high likelihood of therapeutic success because exposure to the agent is increased by adjusting the dosing regimen or by its concentration at the site of infection.</p></li>
<li><p><strong>R = Resistant</strong><br>
A microorganism is categorised as "Resistant" when there is a high likelihood of therapeutic failure even when there is increased exposure.</p><ul><li><p><em>Exposure</em> is a function of how the mode of administration, dose, dosing interval, infusion time, as well as distribution and excretion of the antimicrobial agent will influence the infecting organism at the site of infection.</p></li>
</ul><p>This AMR package honours this insight. Use <code><ahref="proportion.html">susceptibility()</a></code> (equal to <code><ahref="proportion.html">proportion_SI()</a></code>) to determine antimicrobial susceptibility and <code><ahref="count.html">count_susceptible()</a></code> (equal to <code><ahref="count.html">count_SI()</a></code>) to count susceptible isolates.</p>
<spanclass="r-wrn co"><spanclass="r-pr">#></span><spanclass="warning">Warning: </span>in mdro(): NA introduced for isolates where the available percentage of</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span> antimicrobial classes was below 50% (set with pct_required_classes)</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span><spanclass="warning">Warning: </span>There was 1 warning in `mutate()`.</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span><spanstyle="color: #00BBBB;">ℹ</span> In argument: `MDRO = mdro()`.</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span> Caused by warning:</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span><spanstyle="color: #BBBB00;">!</span> in mdro(): NA introduced for isolates where the available percentage of</span>
<spanclass="r-wrn co"><spanclass="r-pr">#></span> antimicrobial classes was below 50% (set with pct_required_classes)</span>
<p><code>AMR</code> (for R). Free and open-source, licenced under the <atarget="_blank"href="https://github.com/msberends/AMR/blob/main/LICENSE"class="external-link">GNU General Public License version 2.0 (GPL-2)</a>.<br>Developed at the <atarget="_blank"href="https://www.rug.nl"class="external-link">University of Groningen</a> and <atarget="_blank"href="https://www.umcg.nl"class="external-link">University Medical Center Groningen</a> in The Netherlands.</p>