-
Question
-
Resolution: Answered
-
Moderate
-
None
-
BONNIE
-
Bonnie QDM
-
CONTROLLING HIGH BLOOD PRESSURE
-
CMS165v11
-
QDM/CQL
-
NUMERPass BPB4InpatientEnc
-
Yes
Hello Bonnie team,
I am testing a CQL definition using the "without... such that" query and it appears that the "without" clause is being evaluated prior to the "such that" condition.
For example, in the screenshot attached, an encounter with no relevantPeriod meets the "without" clause but not the "such that" condition.
Is this an expected behavior? Per CQL author's guide, "when multiple with or without clauses appear in a single query, the result will only include elements that meet the such that conditions for all the relationship clauses". Or, are unpopulated intervals being treated as null inclusive (maximum/minimum datetime values) which may explain the executed result?
Thank you in advance!