revert back to pre-antibiogram

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-09 13:07:39 +01:00
1 parent aa48c6bf53
commit 1a0dc4bf46
53 files changed
+984 -1996

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ av_url <- function(x, open = FALSE, ...) {
av_property <- function(x, property = "name", language = get_AMR_locale(), ...) {
meet_criteria(x, allow_NA = TRUE)
meet_criteria(property, is_in = colnames(AMR::antivirals), has_length = 1)
language <- validate_language(language)
meet_criteria(language, is_in = c(LANGUAGES_SUPPORTED, ""), has_length = 1, allow_NULL = TRUE, allow_NA = TRUE)
translate_into_language(av_validate(x = x, property = property, ...), language = language)
}