1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 14:01:55 +02:00

faster determination of abx

This commit is contained in:
2019-05-20 19:12:41 +02:00
parent 6eb08a2ea3
commit 07d26cd485
25 changed files with 491 additions and 498 deletions

View File

@ -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(

View File

@ -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))
})