Skip to contents

CohortCount module that shows characteristics results (table and plot) from the CohortCharacteristics package.

Super class

ShinyModule -> CohortCount

Active bindings

result

(summarised_result) Result of CohortCharacteristics::summariseCohortCount().

Methods

Inherited methods


CohortCount$new()

Initializer method

Usage

CohortCount$new(result, ...)

Arguments

result

(summarised_result) Result of CohortCharacteristics::summariseCohortCount().

...

Additional parameters to set fields from the ShinyModule parent.

Returns

self


CohortCount$clone()

The objects of this class are cloneable with this method.

Usage

CohortCount$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

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

  cdm <- CohortCharacteristics::mockCohortCharacteristics()

  result <- cdm$cohort1 |>
    PatientProfiles::addSex() |>
    CohortCharacteristics::summariseCohortCount(strata = "sex")

  mod <- CohortCount$new(result)

  preview(mod)
}
}