From ab2e28b45c063ca407826472b5c3d9ae7ae2034a Mon Sep 17 00:00:00 2001 From: Anthony Sena Date: Thu, 12 Dec 2024 14:30:54 -0500 Subject: [PATCH] Fix syntax error --- inst/sql/sql_server/NegativeControlOutcomes.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/sql/sql_server/NegativeControlOutcomes.sql b/inst/sql/sql_server/NegativeControlOutcomes.sql index 620d8fd..70580d2 100644 --- a/inst/sql/sql_server/NegativeControlOutcomes.sql +++ b/inst/sql/sql_server/NegativeControlOutcomes.sql @@ -67,7 +67,7 @@ FROM ( c.cohort_definition_id, o.observation_date cohort_start_date FROM @cdm_database_schema.observation o - INNER JOIN #Codesets c ON c.concept_id = d.observation_concept_id + INNER JOIN #Codesets c ON c.concept_id = o.observation_concept_id {@occurrence_type == 'first'}?{ ) e }:{}