mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:00:50 +01:00
Apply the EUCAST breakpoints of Vibrio to the species that EUCAST states only
The Vibrio sheet (v12.0 to v16.1) states: "Breakpoints are valid for V. alginolyticus, V. cholerae, V. fluvialis, V. parahaemolyticus and V. vulnificus." The rows of the genus are therefore replaced by rows of these species, with the statement in the note. Other species and isolates identified at genus level give NA, or use PK/PD breakpoints in EUCAST 2022-2023. CLSI is unchanged. Any other wording of "breakpoints are valid for" now stops the script, so that a new statement cannot be missed.
This commit is contained in:
1 parent
81f5aaa7b8
commit
361dfc28f7
14 files changed
+550
-113
No files matched your search
@@ -655,7 +655,9 @@ test_that("clinical_breakpoints: every blocking row of EUCAST has an effect (#32
|
||||
}
|
||||
}
|
||||
# the definition itself, on a constructed set of rows
|
||||
rows <- cb[cb$guideline == latest & as.character(cb$ab) == "CTX" & cb$method == "MIC" & as.character(cb$mo) == "B_VIBRI", , drop = FALSE][1, ]
|
||||
rows <- cb[cb$guideline == latest & as.character(cb$ab) == "CTX" & cb$method == "MIC" & as.character(cb$mo) == "B_VIBRI_CHLR" & cb$type == "human", , drop = FALSE][1, ]
|
||||
rows$mo <- as.mo("Vibrio", info = FALSE)
|
||||
rows$rank_index <- 3
|
||||
blocker <- rows
|
||||
blocker$mo <- as.mo("Vibrio fluvialis", info = FALSE)
|
||||
blocker$rank_index <- 2.1
|
||||
@@ -666,6 +668,22 @@ test_that("clinical_breakpoints: every blocking row of EUCAST has an effect (#32
|
||||
expect_false(blocking_row_is_needed(1, blocker))
|
||||
})
|
||||
|
||||
test_that("clinical_breakpoints: EUCAST breakpoints of Vibrio are for the species that EUCAST states", {
|
||||
skip_on_cran()
|
||||
cb <- as.data.frame(clinical_breakpoints, stringsAsFactors = FALSE)
|
||||
cb$mo <- as.character(cb$mo)
|
||||
cb <- cb[cb$type == "human" & cb$guideline %in% paste("EUCAST", 2022:2026), , drop = FALSE]
|
||||
species <- as.character(as.mo(c("Vibrio alginolyticus", "Vibrio cholerae", "Vibrio fluvialis", "Vibrio parahaemolyticus", "Vibrio vulnificus"), info = FALSE))
|
||||
vibrio <- cb[grepl("^B_VIBRI", cb$mo), , drop = FALSE]
|
||||
expect_identical(sort(unique(vibrio$mo)), sort(species))
|
||||
has_values <- !is.na(vibrio$breakpoint_S) | !is.na(vibrio$breakpoint_R)
|
||||
expect_true(all(grepl("Breakpoints are valid for V. alginolyticus", vibrio$note[has_values], fixed = TRUE)))
|
||||
# all species have the same breakpoints per year, apart from the IE of cefotaxime for V. fluvialis
|
||||
key <- paste(vibrio$guideline, vibrio$ab, vibrio$method, vibrio$breakpoint_S, vibrio$breakpoint_R)[has_values & !(vibrio$ab == "CTX")]
|
||||
expect_true(all(table(key) == 5))
|
||||
expect_false(any(has_values & vibrio$ab == "CTX" & vibrio$mo == as.character(as.mo("Vibrio fluvialis", info = FALSE))))
|
||||
})
|
||||
|
||||
test_that("clinical_breakpoints: EUCAST breakpoints stated in the Notes (#329)", {
|
||||
skip_on_cran()
|
||||
cb <- as.data.frame(clinical_breakpoints, stringsAsFactors = FALSE)
|
||||
|
||||
@@ -870,6 +870,11 @@ test_that("EUCAST blocking rows prevent falling back to broader breakpoints", {
|
||||
# IE for V. fluvialis, while Vibrio spp. has breakpoints
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio fluvialis", "CTX", "EUCAST 2026"), NA_character_)
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio cholerae", "CTX", "EUCAST 2026"), "S")
|
||||
# breakpoints of Vibrio are for 5 species only, so not for other species or for the genus, which can only have PK/PD
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio parahaemolyticus", "CIP", "EUCAST 2026"), "S")
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio harveyi", "CIP", "EUCAST 2026"), NA_character_)
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio", "CIP", "EUCAST 2026"), NA_character_)
|
||||
expect_identical(sir(as.mic(0.125), "Vibrio harveyi", "CIP", "EUCAST 2023"), "S")
|
||||
# fosfomycin zone diameter breakpoints apply to E. coli only
|
||||
expect_identical(sir(as.disk(25), "Klebsiella pneumoniae", "FOS", "EUCAST 2019"), NA_character_)
|
||||
expect_identical(sir(as.disk(25), "Escherichia coli", "FOS", "EUCAST 2019"), "S")
|
||||
|
||||
Reference in new issue
Block a user