Skip to content

Commit 4a49f7c

Browse files
author
mschuemi
committed
Fix #337
1 parent 82bdcea commit 4a49f7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎inst/sql/sql_server/MeasObsValueAsConcept.sql‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ FROM (
5353
{@aggregated} ? {
5454
) grouped_1
5555
}
56-
{@included_cov_table != ''} ? {WHERE (CAST(@domain_concept_id AS BIGINT) * 10000) + (range_group * 1000) + @analysis_id IN (SELECT id FROM @included_cov_table)}
56+
{@included_cov_table != ''} ? { AND (CAST(@domain_concept_id * 2654435769 / 4096 AS BIGINT) & 1048575)*4194304000 +
57+
(CAST(value_as_concept_id * 2654435769 / 1024 AS BIGINT) & 4194303)*1000 +
58+
@analysis_id IN (SELECT id FROM @included_cov_table)}
5759
GROUP BY @domain_concept_id,
5860
value_as_concept_id
5961
{@aggregated} ? {

0 commit comments

Comments
 (0)