mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
Leave EUCAST breakpoints in brackets out of clinical_breakpoints, and document where they are kept (#327)
as.sir() treats them as absent, so it can use PK/PD breakpoints or, for unknown `uti`, UTI breakpoints. The values stay available in data-raw/breakpoints_eucast_raw.csv, to which the manual now points. Organisms that a table excludes stay excluded, since these have their own blocking rows. This also fixes the change for unknown `uti` of the previous commit: a blocking row only gives way to an actual UTI breakpoint, not to a UTI row without breakpoints.
This commit is contained in:
1 parent
4c4a7d4392
commit
fab20c5eaa
5 files changed
+35
-5
No files matched your search
@@ -582,6 +582,16 @@ test_that("microorganisms.codes: unique codes for existing names", {
|
||||
expect_true(all(is.na(microorganisms.codes$source) | grepl("^WHONET \\(.+\\)$", microorganisms.codes$source)))
|
||||
})
|
||||
|
||||
test_that("clinical_breakpoints: no EUCAST breakpoints in brackets (#327)", {
|
||||
skip_on_cran()
|
||||
expect_false(any(grepl("brackets", clinical_breakpoints$note, fixed = TRUE)))
|
||||
expect_false(any(grepl("[( )]", clinical_breakpoints$note, fixed = TRUE)))
|
||||
# e.g., systemic amikacin for Enterobacterales in EUCAST 2026, with only the breakpoint for infections originating from the urinary tract left
|
||||
amk <- subset(clinical_breakpoints, guideline == "EUCAST 2026" & type == "human" & ab == "AMK" & method == "MIC" & mo == "B_[ORD]_ENTRBCTR")
|
||||
expect_identical(nrow(amk), 1L)
|
||||
expect_true(amk$uti)
|
||||
})
|
||||
|
||||
test_that("clinical_breakpoints: EUCAST MIC breakpoints are stored as published (#331)", {
|
||||
skip_on_cran()
|
||||
cb <- as.data.frame(clinical_breakpoints, stringsAsFactors = FALSE)
|
||||
|
||||
Reference in new issue
Block a user