Graphical User Interface

Introduction

After running a study with createOutputFiles = TRUE (or generating summaries with precomputeSummary()), launch the viewer:

exampleDataDir <- system.file("example", "st", package = "CohortContrast", mustWork = TRUE)

CohortContrast::runCohortContrastViewer(
  dataDir = exampleDataDir
)

The bundled example studies include both patient-level and summary-mode outputs:

patientStudyPath <- system.file("example", "st", "lc500", package = "CohortContrast")
summaryStudyPath <- system.file("example", "st", "lc500s", package = "CohortContrast")

# Check which mode the Viewer would detect for each bundled study.
data.frame(
  study = c("lc500", "lc500s"),
  mode = c(
    CohortContrast::checkDataMode(patientStudyPath)$mode,
    CohortContrast::checkDataMode(summaryStudyPath)$mode
  )
)
#>    study    mode
#> 1  lc500 patient
#> 2 lc500s summary

This mirrors the mode badge shown in the Viewer after a study is selected.

Select a study and mode

Use the Studies panel to pick a study. The badge next to the title confirms whether the data is loaded in Patient Level Data mode or Summary Mode.

Studies panel and data mode badge
Studies panel and data mode badge

Main workflow in the UI

Recommended order:

  1. Select study and confirm data mode.
  2. Set filters in the sidebar and click Apply Filters.
  3. Review the composite chart and table in Dashboard.
  4. Optionally refine visibility using the table Show column and click Apply Table Selection.
  5. Inspect Trajectories, Overlap, and Demographics.
  6. Use Mappings (patient mode) for concept merges and review mapping history.

Tabs

See also:

Mappings overview

In patient mode, the Mappings tab includes:

Mappings tab with manual merge
Mappings tab with manual merge
Mappings tab with hierarchy and correlation suggestions
Mappings tab with hierarchy and correlation suggestions