mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
(v1.2.0.9019) ab_from_text() dose and administration
This commit is contained in:
1 parent
240d817b4e
commit
329a0eb0b6
40 files changed
+350
-170
No files matched your search
@@ -29,4 +29,9 @@ test_that("ab_from_text works", {
|
||||
"Amoxicillin")
|
||||
expect_identical(ab_from_text("administered amoxi/clav and cipro", collapse = ", ")[[1]],
|
||||
"AMX, CIP")
|
||||
|
||||
expect_identical(ab_from_text("28/03/2020 regular amoxicilliin 500mg po tds", type = "dose")[[1]],
|
||||
500)
|
||||
expect_identical(ab_from_text("28/03/2020 regular amoxicilliin 500mg po tds", type = "admin")[[1]],
|
||||
"oral")
|
||||
})
|
||||
Reference in new issue
Block a user