Hi all,
Just to share some differences between the MS SQL queries in Atlas 2.7.0 and Atlas 2.8.0 that you may encounter:
- “invalid_reason” IS NULL in SELECT statement
- Present in Atlas 2.8.0 only for the descendant concepts, e.g.
select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666)
UNION select c.concept_id
from @vocabulary_database_schema.CONCEPT c
join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id
and ca.ancestor_concept_id in (314666)
and c.invalid_reason is null
- Present in Atlas 2.7.0 for both main and descendent concepts, e.g.
select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666)and invalid_reason is null
UNION select c.concept_id
from @vocabulary_database_schema.CONCEPT c
join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id
and ca.ancestor_concept_id in (314666)
and c.invalid_reason is null
- Inserting into Codesets table
- In Atlas 2.8.0, UNION ALL is used to join selection before inserting
- In Atlas 2.7.0 INSERT INTO is used multiple times
- Begin Drug Exposure criteria/ Condition occurrence criteria
- Additional columns are selected in Atlas 2.8.0
C.drug_exposure_start_date as sort_date
C.condition_start_date as sort_date
- No additional columns are selected in Atlas 2.8.0
The differences are quite minor and would probably produce the same cohort counts in either case. However, if your invalid_reason is blank instead of ‘null’, like in our experience, you may encounter the issue that the 2.8.0 version produces nonzero cohort counts while the 2.7.0 version produces 0 count. In that case, do make sure the invalid_reason is null and not blank before running the cohort generation, and it should be fine.
Tagging @Chris_Knoll as well - as always thanks for your help with Atlas set up
Thanks!