tm_t_pp_medical_history {teal.modules.clinical} | R Documentation |
teal Module: Patient Profile Medical History
Description
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 |
( |
dataname |
( |
parentname |
( |
patient_col |
( |
mhterm |
( |
mhbodsys |
( |
mhdistat |
( |
pre_output |
( |
post_output |
( |
Value
a teal_module
object.
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"
)
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}