Skip to contents

ProportionOfPatientsCovered module that shows tables and plots

Super class

ShinyModule -> ProportionOfPatientsCovered

Active bindings

result

(summarised_result) Object created by DrugUtilisation::summariseProportionOfPatientsCovered().

table

(Flextable) ShinyModule

plot

(PlotStatic) ShinyModule

Methods

Inherited methods


ProportionOfPatientsCovered$new()

Initializer method.

Usage

Arguments

result

(summarised_result) Object created by DrugUtilisation::summariseProportionOfPatientsCovered().

...

Additional parameters to set fields from the ShinyModule parent.

Returns

self


ProportionOfPatientsCovered$clone()

The objects of this class are cloneable with this method.

Usage

ProportionOfPatientsCovered$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

{
if (interactive()) {
  library(DarwinShinyModules)
  library(DrugUtilisation)

  cdm <- DrugUtilisation::mockDrugUtilisation(numberIndividuals = 100)

  res <- cdm$cohort1 |>
    DrugUtilisation::summariseProportionOfPatientsCovered(followUpDays = 365)

  mod <- ProportionOfPatientsCovered$new(res)
  preview(mod)
}
}