Exports the full SQL query of a CohortPrevalenceAnalysis analysis.

exportPrevalenceQuery(
  prevalenceAnalysisClass,
  executionSettings,
  outputFolder = NULL
)

Arguments

prevalenceAnalysisClass

A CohortPrevalenceAnalysis R6 object with analysis settings (required).

executionSettings

An ExecutionSettings R6 object with database details (required).

outputFolder

Character string specifying the path to the folder where the output files will be saved. If left NULL, will default to current working directory (optional).

Value

Invisibly returns the rendered SQL string.