teal Module: Patient Profile Medical History
Source:R/tm_t_pp_medical_history.R
tm_t_pp_medical_history.Rd
This module produces a patient profile medical history report using ADaM datasets.
Usage
tm_t_pp_medical_history(
label,
dataname = "ADMH",
parentname = "ADSL",
patient_col = "USUBJID",
mhterm = NULL,
mhbodsys = NULL,
mhdistat = NULL,
pre_output = NULL,
post_output = NULL
)
Arguments
- label
(
character
)
menu item label of the module in the teal app.- dataname
(
character
)
analysis data used in teal module.- parentname
(
character
)
parent analysis data used in teal module, usually this refers toADSL
.- patient_col
(
character
)
name of patient ID variable.- mhterm
(
teal.transform::choices_selected()
)
object with all available choices and preselected option for theMHTERM
variable fromdataname
.- mhbodsys
(
teal.transform::choices_selected()
)
object with all available choices and preselected option for theMHBODSYS
variable fromdataname
.- mhdistat
(
teal.transform::choices_selected()
)
object with all available choices and preselected option for theMHDISTAT
variable fromdataname
.- pre_output
(
shiny.tag
) optional,
with text placed before the output to put the output into context. For example a title.- post_output
(
shiny.tag
) optional,
with text placed after the output to put the output into context. For example theshiny::helpText()
elements are useful.
Examples
ADSL <- tmc_ex_adsl
ADMH <- tmc_ex_admh
app <- init(
data = cdisc_data(
ADSL = ADSL,
ADMH = ADMH,
code = "
ADSL <- tmc_ex_adsl
ADMH <- tmc_ex_admh
"
),
modules = modules(
tm_t_pp_medical_history(
label = "Medical History",
dataname = "ADMH",
parentname = "ADSL",
patient_col = "USUBJID",
mhterm = choices_selected(
choices = variable_choices(ADMH, c("MHTERM")),
selected = "MHTERM"
),
mhbodsys = choices_selected(
choices = variable_choices(ADMH, "MHBODSYS"),
selected = "MHBODSYS"
),
mhdistat = choices_selected(
choices = variable_choices(ADMH, "MHDISTAT"),
selected = "MHDISTAT"
)
)
)
)
#> Initializing tm_t_pp_medical_history
if (interactive()) {
shinyApp(app$ui, app$server)
}