@@ -30,9 +30,6 @@ mod_patient_profile_UI <- function(id) { # nolint
3030# ' @param id `[character]` Unique shiny ID. Must match the ID provided to [mod_patient_profile_UI()].
3131# ' @param subject_level_dataset `[reactive(data.frame)]` Visit-independent subject information.
3232# ' @param extra_datasets `[reactive(data.frame(n))]` Visit-dependent subject datasets.
33- # ' @param sender_id_info `[NULL | list(2)]` NULL or named list containing original sender ids and the ones identified as available from module list.
34- # ' @param afmm_param `[list(1+) | NULL]` Named list of a selection of arguments from module manager. Expects
35- # ' at least 1 element: \code{module_names}, a character vector whose entries have the corresponding module IDs as names.
3633# ' @inheritParams mod_patient_profile
3734# ' @seealso [mod_patient_profile()] and [mod_patient_profile_UI()]
3835# '
@@ -68,14 +65,6 @@ mod_patient_profile_server <- function(id, subject_level_dataset, extra_datasets
6865 id ,
6966 function (input , output , session ) {
7067 ns <- session [[" ns" ]]
71- testing <- isTRUE(getOption(" shiny.testmode" ))
72- if (testing ) {
73- exported_test_data <<- list ()
74- shiny :: exportTestValues(test_data = exported_test_data )
75- exported_test_data [[" afmm_module_names" ]] <<- afmm_param [[" module_names" ]]
76- exported_test_data [[" sender_ids" ]] <<- sender_id_info [[" sender_ids" ]]
77- exported_test_data [[" known_sender_ids" ]] <<- unlist(sender_id_info [" known_sender_ids" ])
78- }
7968
8069 output [[" ui" ]] <- shiny :: renderUI({
8170 res <- NULL
@@ -381,18 +370,12 @@ mod_patient_profile <- function(module_id = "",
381370 return (datasets [plot_dataset_names ])
382371 })
383372
384- # filter missing sender_ids so app doesn't error.
385- known_sender_ids <- sender_ids
386- if (! is.null(sender_ids )) {
387- known_sender_ids <- intersect(sender_ids , names(afmm [[" module_names" ]]))
388- }
389-
390373 dv.papo :: mod_patient_profile_server(
391374 id = module_id ,
392375 subject_level_dataset = subject_level_dataset ,
393376 extra_datasets = extra_datasets ,
394377 subjid_var = subjid_var ,
395- sender_ids = lapply(known_sender_ids , function (x ) {
378+ sender_ids = lapply(sender_ids , function (x ) {
396379 shiny :: reactive(afmm [[" module_output" ]]()[[x ]])
397380 }),
398381 summary = summary ,
0 commit comments