Skip to contents

Module that displays the Treatment Pathways from the TreatmentPatterns package.

Super class

DarwinShinyModules::ShinyModule -> TreatmentPathways

Active bindings

colours

(list) Hex colour values used in the Sunburst Plots and Sankey Diagrams.

sunburst

(PlotWidget) Module.

sankey

(PlotWidget) Module.

inputPanel

(InputPanel) Module.

table

Table displaying the treatment_pathways csv-file.

sunburstOverview

(list) Containing Sunburst PlotWidget modules.

treatmentPathways

(data.frame)

cdmSourceInfo

(data.frame)

Methods

Inherited methods


Method new()

Initializer method

Usage

TreatmentPathways$new(treatmentPathways, cdmSourceInfo, ...)

Arguments

treatmentPathways

(data.frame) treatment_pathways field from the TreatmentPatternsResult object.

cdmSourceInfo

(data.frame) cdm_source_info field from the TreatmentPatternsResult object.

...

Additional parameters to set fields from the ShinyModule parent.

Returns

self


Method clone()

The objects of this class are cloneable with this method.

Usage

TreatmentPathways$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

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

    tpr <- TreatmentPatterns::TreatmentPatternsResults$new(
      filePath = system.file(package = "DarwinShinyModules", "dummyData/TreatmentPatterns/3.0.0/")
    )

    treatmentPathways <- TreatmentPathways$new(
      treatmentPathways = tpr$treatment_pathways,
      cdmSourceInfo = tpr$cdm_source_info
    )

    preview(treatmentPathways)
  }
}