Server of the dv.edish module
edish_server.Rdedish_server() contains the server of the dv.edish module.
Usage
edish_server(
module_id,
dataset_list,
subjectid_var = "USUBJID",
arm_var = "ACTARM",
arm_default_vals = NULL,
visit_var = "VISIT",
baseline_visit_val = "VISIT 01",
lb_test_var = "LBTEST",
lb_test_choices = c("Alkaline Phosphatase", "Alanine Aminotransferase",
"Aspartate Aminotransferase", "Bilirubin"),
lb_test_default_x_val = "Aspartate Aminotransferase",
lb_test_default_y_val = "Bilirubin",
lb_result_var = "LBSTRESN",
ref_range_upper_lim_var = "LBSTNRHI",
on_sbj_click = NULL
)Arguments
- module_id
[character(1)]A unique ID string to create a namespace. Must match the ID of
edish_UI().- dataset_list
[shiny::reactive(list(data.frame))]A reactive list of named datasets.
- subjectid_var
[character(1)]Name of the variable containing the unique subject IDs. Defaults to
"USUBJID".- arm_var
[character(1)]Name of the variable containing the arm/treatment information. Defaults to
"ACTARM".- arm_default_vals
[character(1+)]Vector specifying the default value(s) for the arm selector. Defaults to
NULL.- visit_var
[character(1)]Name of the variable containing the visit information. Defaults to
"VISIT".- baseline_visit_val
[character(1)]Character indicating which visit should be used as baseline visit. Defaults to
"VISIT 01".- lb_test_var
[character(1)]Name of the variable containing the laboratory test information. Defaults to
"LBTEST".- lb_test_choices
[character(1+)]Character vector specifying the possible choices of the laboratory test. Defaults to
c("Alkaline Phosphatase", "Alanine Aminotransferase", "Aspartate Aminotransferase", "Bilirubin")- lb_test_default_x_val
[character(1)]Character specifying the default laboratory test choice for the plot's x-axis. Defaults to
"Aspartate Aminotransferase".- lb_test_default_y_val
[character(1)]Character specifying the default laboratory test choice for the plot's y-axis. Defaults to
"Bilirubin".- lb_result_var
[character(1)]Name of the variable containing results of the laboratory test. Defaults to
"LBSTRESN". In case of multiple values inlb_result_varpersubjectid_var,visit_var, andlb_test_var, only the maximum value will be used. Note that a NA value in the considered values will cause a value of NA to be returned as maximum value.- ref_range_upper_lim_var
[character(1)]Name of the variable containing the reference range upper limits. Defaults to
"LBSTNRHI".- on_sbj_click
[function() | NULL]Function to invoke when a subject is clicked on the plot. If
NULL, no action is taken.