mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 18:41:58 +02:00
faster determination of abx
This commit is contained in:
@ -40,7 +40,7 @@ test_that("mdro works", {
|
||||
|
||||
# septic_patients should have these finding using Dutch guidelines
|
||||
expect_equal(outcome %>% freq() %>% pull(count),
|
||||
c(1989, 9, 2)) # 1989 neg, 9 pos, 2 unconfirmed
|
||||
c(1969, 25, 6)) # 1969 neg, 25 unconfirmed, 6 pos
|
||||
|
||||
expect_equal(
|
||||
suppressWarnings(
|
||||
|
@ -48,4 +48,6 @@ test_that("looking up ab columns works", {
|
||||
expect_warning(generate_warning_abs_missing(c("AMP", "AMX"), any = TRUE))
|
||||
expect_warning(get_column_abx(septic_patients, hard_dependencies = "FUS"))
|
||||
expect_warning(get_column_abx(septic_patients, soft_dependencies = "FUS"))
|
||||
expect_error(get_column_abx(dplyr::rename(septic_patients, thisone = AMX), amox = "thisone", tmp = "thisone", verbose = TRUE))
|
||||
expect_error(get_column_abx(dplyr::rename(septic_patients, thisone = AMX), amox = "thisone", tmp = "thisone", verbose = FALSE))
|
||||
})
|
||||
|
Reference in New Issue
Block a user