Skip to content

Tech Framework

jwildfire edited this page Oct 16, 2018 · 8 revisions

Typical Shiny Workflow for creating an eDish chart

Load a file

  • User opens shiny app
    • Data Tab is shown by default
  • User loads anly data file
  • File appears in file list
  • User selects data domain as "Lab"
    • System tests whether data file is SDTM or AdAM:
      • standard = redish::detectStandard(anly) //returns "ADaM", "SDTM" or "None"
    • System generates default settings based on standard:
      • settings = redish::generateSettings(standard) //returns a settings object
    • System validates the default settings vs. the anly data file. Returns a status ("valid" or "invalid") and, if needed an array of of discrepancies.
      • status = redish::validateSettings(anly, standard, settings)
    • System renders the settings page
      • renderSettingsPage(anly, standard, settings)
    • If status = valid, system renders the chart also.
      • renderChart(anly, settings)
    • System determines the current view - show chart if settings are valid, config if not.
      • setView(ifelse(status=="valid", "chart", "settings")

Update a setting (not data standard)

coming soon

Update a data standard

coming soon

use functions to support widget creation

load(anly) standard <- detectStandard(anly) settings <- makeSettings(standard) makeWidget(settings, anly)

Clone this wiki locally