calculationMode and circeJsonPath parameters have been removed from createTargetCohort() and CohortPrevalenceExperiment$addCohorts(). All SQL files with “_occurrence” pattern have been deleted.
calculationMode and circeJsonPath arguments from any calls to createTargetCohort()
TargetCohort$validateCirceJson() method has been removed.createPrevalenceType() when mode = “rough” then counts based on the cohort_end_datecreatePrevalenceType() when mode = “formal” then counts based on the cohort_start_dateCohortInfo R6 class has been removed. It has been replaced by two purpose-specific classes:
TargetCohort — for the prevalence numerator and incidence target cohort.PopulationCohort — for the denominator population cohort.createPrevalenceCohort() has been renamed to createTargetCohort().createPopulationCohort() now constructs a PopulationCohort object instead of a CohortInfo object. The function signature is unchanged.createTargetCohort() signature simplified: createTargetCohort(cohortId, cohortName) (removed calculationMode and circeJsonPath parameters)CohortPrevalenceExperiment$addCohorts() tibble columns simplified: now requires only cohortId and cohortName (removed optional calculationMode and circeJsonPath columns)CohortPrevalenceExperiment$setCommonParameters adds minimumObservationLength and useOnlyFirstObservationPeriod as common parameters to the experiment..addExecutedQuery() for provenance trackingstandardizePrevalence() method (modifies in-place, returns self)stdPrev slot preserves crude prevalencestandardize_prevalence() function (snake_case)tidyr::expand_grid() with automatic analysisId generationdefine() materializes analysis objects from specificationsviewDesign() displays specification (console text or reactable HTML)drugConceptSets slot added to CohortPrevalenceAnalysisgeneratePrevalence() accepts only prevalenceAnalysisList (single input)exp$define() → generatePrevalence()