Shiny module for cohort counts. Displays reactable table of cohort counts

cohortCountsModule(
  id,
  dataSource,
  cohortTable = dataSource$cohortTable,
  databaseTable = dataSource$dbTable,
  selectedCohorts,
  selectedDatabaseIds,
  cohortIds
)

Arguments

id

namespace id

dataSource

Backend Data source (DatabaseConnection)

cohortTable

data.frame of all cohorts

databaseTable

data.frame of all databases

selectedCohorts

shiny::reactive - should return cohorts selected or NULL

selectedDatabaseIds

shiny::reactive - should return cohorts selected or NULL

cohortIds

shiny::reactive - should return cohorts selected integers or NULL