diff --git a/NEWS.md b/NEWS.md index 0d79db3369..1fe479c543 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,7 @@ ### Miscellaneous * Updated `control_incidence_rate` parameter names in `tm_t_events_patyear` from `time_unit_input` and `time_unit_output` to `input_time_unit` and `num_pt_year`, respectively, after parameter names were changed in `tern`. +* Hid the datasets that were not being used by the _patient profile_ modules in the filter panel. Replaced the `datanames = "all"` parameter with the datasets used internally by the module. # teal.modules.clinical 0.8.15 diff --git a/R/tm_g_pp_adverse_events.R b/R/tm_g_pp_adverse_events.R index eaba9e7e9d..59d3cd1b43 100644 --- a/R/tm_g_pp_adverse_events.R +++ b/R/tm_g_pp_adverse_events.R @@ -292,7 +292,7 @@ tm_g_pp_adverse_events <- function(label, ggplot2_args = ggplot2_args ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_g_pp_patient_timeline.R b/R/tm_g_pp_patient_timeline.R index 35d1926b30..19c558204a 100644 --- a/R/tm_g_pp_patient_timeline.R +++ b/R/tm_g_pp_patient_timeline.R @@ -511,7 +511,7 @@ tm_g_pp_patient_timeline <- function(label, ggplot2_args = ggplot2_args ) ), - datanames = "all" + datanames = c(dataname_adcm, dataname_adae, parentname) ) } diff --git a/R/tm_g_pp_therapy.R b/R/tm_g_pp_therapy.R index 72a1197954..c5356c8be4 100644 --- a/R/tm_g_pp_therapy.R +++ b/R/tm_g_pp_therapy.R @@ -389,7 +389,7 @@ tm_g_pp_therapy <- function(label, ggplot2_args = ggplot2_args ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_g_pp_vitals.R b/R/tm_g_pp_vitals.R index cdf538ba10..1b91b4b3b8 100644 --- a/R/tm_g_pp_vitals.R +++ b/R/tm_g_pp_vitals.R @@ -283,7 +283,7 @@ tm_g_pp_vitals <- function(label, ggplot2_args = ggplot2_args ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_t_pp_basic_info.R b/R/tm_t_pp_basic_info.R index 8ef6386c7d..f535393aea 100644 --- a/R/tm_t_pp_basic_info.R +++ b/R/tm_t_pp_basic_info.R @@ -108,7 +108,7 @@ tm_t_pp_basic_info <- function(label, patient_col = patient_col ) ), - datanames = "all" + datanames = dataname ) } diff --git a/R/tm_t_pp_laboratory.R b/R/tm_t_pp_laboratory.R index 919c80c275..84b961e776 100644 --- a/R/tm_t_pp_laboratory.R +++ b/R/tm_t_pp_laboratory.R @@ -196,7 +196,7 @@ tm_t_pp_laboratory <- function(label, patient_col = patient_col ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_t_pp_medical_history.R b/R/tm_t_pp_medical_history.R index 6d95738ba6..f77bd6f17e 100644 --- a/R/tm_t_pp_medical_history.R +++ b/R/tm_t_pp_medical_history.R @@ -155,7 +155,7 @@ tm_t_pp_medical_history <- function(label, patient_col = patient_col ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_t_pp_prior_medication.R b/R/tm_t_pp_prior_medication.R index ccd4e5dd15..4d3c2ab862 100644 --- a/R/tm_t_pp_prior_medication.R +++ b/R/tm_t_pp_prior_medication.R @@ -152,7 +152,7 @@ tm_t_pp_prior_medication <- function(label, patient_col = patient_col ) ), - datanames = "all" + datanames = c(dataname, parentname) ) } diff --git a/R/tm_t_summary.R b/R/tm_t_summary.R index 8971dbc126..191a9a57aa 100644 --- a/R/tm_t_summary.R +++ b/R/tm_t_summary.R @@ -317,7 +317,7 @@ tm_t_summary <- function(label, basic_table_args = basic_table_args ) ), - datanames = dataname + datanames = c(dataname, parentname) ) }