Skip to content

Commit

Permalink
Do not generate censor stats when generateStats is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisknoll authored Jan 27, 2021
1 parent 10b2d44 commit da0de42
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ INSERT INTO @target_database_schema.@target_cohort_table (@cohort_id_field_name,
@finalCohortQuery
;

{@generateStats != 0}?{
-- BEGIN: Censored Stats

delete from @results_database_schema.cohort_censor_stats where @cohort_id_field_name = @target_cohort_id;
@cohortCensoredStatsQuery
-- END: Censored Stats

}
{@generateStats != 0 & @ruleTotal != 0}?{

@inclusionRuleTable
Expand Down

0 comments on commit da0de42

Please sign in to comment.