(v1.6.0.9008) unlike, bugfix for col_mo naming

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-04-23 09:59:36 +02:00
1 parent c6289c3fc3
commit 70b803dbb6
33 files changed
+269 -137

No files matched your search

+1 -1
View File
@@ -389,7 +389,7 @@ as.ab <- function(x, flag_multiple_results = TRUE, info = interactive(), ...) {
# first 5 except for cephalosporins, then first 7 (those cephalosporins all start quite the same!)
found <- suppressWarnings(as.ab(substr(x[i], 1, 5), initial_search = FALSE))
if (!is.na(found) && !ab_group(found, initial_search = FALSE) %like% "cephalosporins") {
if (!is.na(found) && ab_group(found, initial_search = FALSE) %unlike% "cephalosporins") {
x_new[i] <- note_if_more_than_one_found(found, i, from_text)
next
}