mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
Make anaerobes more specific than a Gram stain in rank_index
Anaerobes now have rank_index 5.5 (5.6 for a blocking row), and a Gram stain stays at 6. They had the same rank, so the order of sites could make the Gram-negative row with site Parenteral (CLSI Table 2B-5) precede the anaerobe row without a site (CLSI Table 2J), e.g., for ceftriaxone in B. fragilis. A rebuild changes rank_index in 884 rows and nothing else.
This commit is contained in:
1 parent
e7077081b9
commit
81f5aaa7b8
16 files changed
+900
-890
No files matched your search
@@ -730,6 +730,11 @@ test_that("as.sir() takes the site of a breakpoint into account", {
|
||||
expect_true(sir_site_rank("Intravenous, Meningitis") < sir_site_rank("Intravenous, Non-meningitis"))
|
||||
expect_true(sir_site_rank("Intravenous, Non-meningitis") < sir_site_rank("Meningitis"))
|
||||
|
||||
# the order of sites does not make a Gram stain precede the more specific anaerobes: CLSI Table 2J, not Table 2B-5
|
||||
expect_identical(sir(as.mic(16), "Bacteroides fragilis", "CRO", guideline = "CLSI 2022"), "S")
|
||||
# and it does make a meningitis breakpoint precede a non-meningitis breakpoint of another taxon of the same rank
|
||||
expect_identical(sir(as.mic(0.25), "Streptococcus agalactiae", "PEN", guideline = "EUCAST 2024"), "R")
|
||||
|
||||
# "other" in as.sir(): takes the breakpoint for other infections, or without a site
|
||||
expect_identical(sir(as.mic(0.25), "Streptococcus pneumoniae", "PEN", site = "other", guideline = "EUCAST 2012"), "I")
|
||||
expect_identical(sir(as.mic(0.25), "Streptococcus pneumoniae", "PEN", site = "meningitis", guideline = "EUCAST 2012"), "R")
|
||||
|
||||
Reference in new issue
Block a user