The CohortGenerator package requires JSON for several reasons. Firstly the cohort will have additional meta-data such as inclusion rules that are used to generate statistics and other base information about a Cohort. The output exploration in shiny also currently requires the definition.
As you mentioned before, it is possible to place “Dummy JSON” in the cohort definition set paramter passed to CohortDiagnostics. However, though this is possible the package has never been designed to run with custom SQL because this isn’t seen to be good practice in phenotyping well defined, reusable cohorts.
Alternative to ATLAS, the Capr
package can be used to generate cohort definitions in R if you don’t wish to use atlas but wish to create cohorts that conform to the OHDSI json standard, and can be easily exported as OHDSI SQL. This should be useful if the reason you’re using custom SQL is for templating purposes, for example.
Furthermore - If you don’t require the full dashboard for information regarding a Cohort and just want quick characterization results it is possible (and significantly faster) to run FeatureExtraction
.