Show translated pathogen names instead of microorganism codes in grouped traditional antibiograms, including for unknown species

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-15 10:31:07 +02:00
1 parent 3db586a110
commit b3ecc01657
8 files changed
+22 -17

No files matched your search

+2 -1
View File
@@ -1191,7 +1191,8 @@ antibiogram.grouped_df <- function(x,
antibiogram.default(x,
antimicrobials = antimicrobials,
mo_transform = mo_transform,
# WISCA is pathogen-agnostic and needs the codes, a traditional antibiogram shows the (translated) names as in antibiogram.default()
mo_transform = if (isTRUE(wisca)) NULL else "shortname",
ab_transform = ab_transform,
syndromic_group = ".group",
add_total_n = add_total_n,
BIN
View File
Binary file not shown.
+16 -14
View File
@@ -120,13 +120,14 @@ all_disk_predictors <- function() {
#' @rdname amr-tidymodels
#' @export
step_mic_log2 <- function(
recipe,
...,
role = NA,
trained = FALSE,
columns = NULL,
skip = FALSE,
id = recipes::rand_id("mic_log2")) {
recipe,
...,
role = NA,
trained = FALSE,
columns = NULL,
skip = FALSE,
id = recipes::rand_id("mic_log2")
) {
recipes::add_step(
recipe,
step_mic_log2_new(
@@ -195,13 +196,14 @@ tidy.step_mic_log2 <- function(x, ...) {
#' @rdname amr-tidymodels
#' @export
step_sir_numeric <- function(
recipe,
...,
role = NA,
trained = FALSE,
columns = NULL,
skip = FALSE,
id = recipes::rand_id("sir_numeric")) {
recipe,
...,
role = NA,
trained = FALSE,
columns = NULL,
skip = FALSE,
id = recipes::rand_id("sir_numeric")
) {
recipes::add_step(
recipe,
step_sir_numeric_new(