<scriptsrc="../bootstrap-toc.js"></script><!-- Font Awesome icons --><linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk="crossorigin="anonymous">
<p>With the function <code><ahref="../reference/mdro.html">mdro()</a></code>, you can determine which micro-organisms are multi-drug resistant organisms (MDRO).</p>
<ahref="#type-of-input"class="anchor"aria-hidden="true"></a>Type of input</h3>
<p>The <code><ahref="../reference/mdro.html">mdro()</a></code> function takes a data set as input, such as a regular <code>data.frame</code>. It tries to automatically determine the right columns for info about your isolates, such as the name of the species and all columns with results of antimicrobial agents. See the help page for more info about how to set the right settings for your data with the command <code><ahref="../reference/mdro.html">?mdro</a></code>.</p>
<p>The <code><ahref="../reference/mdro.html">mdro()</a></code> function support multiple guidelines. You can select a guideline with the <code>guideline</code> parameter. Currently supported guidelines are (case-insensitive):</p>
<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://www.clinicalmicrobiologyandinfection.com/article/S1198-743X(14)61632-3/fulltext"class="external-link">link</a>)</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>
<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>
<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/tb/publications/pmdt_companionhandbook/en/"class="external-link">link</a>)</p>
<p>The German national guideline - Mueller <em>et al.</em> (2015) Antimicrobial Resistance and Infection Control 4:7. DOI: 10.1186/s13756-015-0047-6</p>
<p>The Dutch national guideline - Rijksinstituut voor Volksgezondheid en Milieu “WIP-richtlijn BRMO (Bijzonder Resistente Micro-Organismen) (ZKH)” (<ahref="https://www.rivm.nl/wip-richtlijn-brmo-bijzonder-resistente-micro-organismen-zkh"class="external-link">link</a>)</p>
<p>Please suggest your own (country-specific) guidelines by letting us know: <ahref="https://github.com/msberends/AMR/issues/new"class="external-link uri">https://github.com/msberends/AMR/issues/new</a>.</p>
<p>You can also use your own custom guideline. Custom guidelines can be set with the <code><ahref="../reference/mdro.html">custom_mdro_guideline()</a></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 <code><ahref="https://dplyr.tidyverse.org/reference/case_when.html"class="external-link">case_when()</a></code> of the <code>dplyr</code> package, you will recognise the input method to set your own rules. Rules must be set using what R considers to be the ‘formula notation’:</p>
<codeclass="sourceCode R"><spanclass="va">custom</span><spanclass="op"><-</span><spanclass="fu"><ahref="../reference/mdro.html">custom_mdro_guideline</a></span><spanclass="op">(</span><spanclass="va">CIP</span><spanclass="op">==</span><spanclass="st">"R"</span><spanclass="op">&</span><spanclass="va">age</span><spanclass="op">></span><spanclass="fl">60</span><spanclass="op">~</span><spanclass="st">"Elderly Type A"</span>,
<spanclass="va">ERY</span><spanclass="op">==</span><spanclass="st">"R"</span><spanclass="op">&</span><spanclass="va">age</span><spanclass="op">></span><spanclass="fl">60</span><spanclass="op">~</span><spanclass="st">"Elderly Type B"</span><spanclass="op">)</span></code></pre></div>
<p>If a row/an isolate matches the first rule, the value after the first <code><ahref="https://rdrr.io/r/base/tilde.html"class="external-link">~</a></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 maximum number of rules is unlimited.</p>
<spanclass="co"># Results will be of class <factor>, with ordered levels: Negative < Elderly Type A < Elderly Type B</span></code></pre></div>
<p>The outcome of the function can be used for the <code>guideline</code> argument in the <code><ahref="../reference/mdro.html">mdro()</a></code> function:</p>
<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>The <code><ahref="../reference/mdro.html">mdro()</a></code> function always returns an ordered <code>factor</code> for predefined guidelines. For example, the output of the default guideline by Magiorakos <em>et al.</em> returns a <code>factor</code> with levels ‘Negative’, ‘MDR’, ‘XDR’ or ‘PDR’ in that order.</p>
<p>The next example uses the <code>example_isolates</code> data set. This is a data set included with this package and contains full antibiograms of 2,000 microbial isolates. It reflects reality and can be used to practise AMR data analysis. If we test the MDR/XDR/PDR guideline on this data set, we get:</p>
<codeclass="sourceCode R"><spanclass="kw"><ahref="https://rdrr.io/r/base/library.html"class="external-link">library</a></span><spanclass="op">(</span><spanclass="va"><ahref="https://dplyr.tidyverse.org"class="external-link">dplyr</a></span><spanclass="op">)</span><spanclass="co"># to support pipes: %>%</span>
<spanclass="kw"><ahref="https://rdrr.io/r/base/library.html"class="external-link">library</a></span><spanclass="op">(</span><spanclass="va"><ahref="https://github.com/msberends/cleaner"class="external-link">cleaner</a></span><spanclass="op">)</span><spanclass="co"># to create frequency tables</span></code></pre></div>
<spanclass="fu"><ahref="https://rdrr.io/pkg/cleaner/man/freq.html"class="external-link">freq</a></span><spanclass="op">(</span><spanclass="op">)</span><spanclass="co"># show frequency table of the result</span>
<spanclass="co"># ℹ Using column 'mo' as input for `col_mo`.</span>
<spanclass="co"># Auto-guessing columns suitable for analysis... OK.</span>
<spanclass="co"># ℹ Reliability would be improved if these antimicrobial results would be</span>
<spanclass="co"># available too: ampicillin/sulbactam (SAM), aztreonam (ATM), cefotetan</span>
<p>Only results with ‘R’ are considered as resistance. Use <code>combine_SI = FALSE</code> to also consider ‘I’ as resistance.</p>
<p>Determining multidrug-resistant organisms (MDRO), according to: Guideline: Multidrug-resistant, extensively drug-resistant and pandrug-resistant bacteria: an international expert proposal for interim standard definitions for acquired resistance. Author(s): Magiorakos AP, Srinivasan A, Carey RB, …, Vatopoulos A, Weber JT, Monnet DL Source: Clinical Microbiology and Infection 18:3, 2012; doi: 10.1111/j.1469-0691.2011.03570.x</p>
GAT <spanclass="op">=</span><spanclass="fu"><ahref="../reference/random.html">random_rsi</a></span><spanclass="op">(</span><spanclass="fl">5000</span><spanclass="op">)</span>,
ETH <spanclass="op">=</span><spanclass="fu"><ahref="../reference/random.html">random_rsi</a></span><spanclass="op">(</span><spanclass="fl">5000</span><spanclass="op">)</span>,
KAN <spanclass="op">=</span><spanclass="fu"><ahref="../reference/random.html">random_rsi</a></span><spanclass="op">(</span><spanclass="fl">5000</span><spanclass="op">)</span><spanclass="op">)</span></code></pre></div>
<p>Developed by <ahref="https://www.rug.nl/staff/m.s.berends/"class="external-link external-link">Matthijs S. Berends</a>, <ahref="https://www.rug.nl/staff/c.f.luz/"class="external-link external-link">Christian F. Luz</a>, <ahref="https://www.rug.nl/staff/a.w.friedrich/"class="external-link external-link">Alexander W. Friedrich</a>, <ahref="https://www.rug.nl/staff/b.sinha/"class="external-link external-link">Bhanu N. M. Sinha</a>, <ahref="https://www.rug.nl/staff/c.j.albers/"class="external-link external-link">Casper J. Albers</a>, <ahref="https://www.rug.nl/staff/c.glasner/"class="external-link external-link">Corinna Glasner</a>.</p>