Skip to content

QA Keyword Starts vs Start

Darren Duncan edited this page Oct 12, 2017 · 1 revision

Questions and Answers


Q&A - Keyword Starts vs Start

Question

In the Production version of Bonnie, this patient is a Denominator Exclusion, while in Bonnie Alpha, this patient is in the Denominator. To get this patient into the Denominator Exclusion, the first listed Diagnosis in the patient history needs to have an abatement date, which is not required in Bonnie Production. Should these versions of Bonnie provide consistent results?

Answer

What's happening is that the "such that" clause says "start" instead of "starts":

  define "Ex1":
    ["Diagnosis": "Alcohol and Drug Dependence"] FAD
      with ("FirstAlcoholDrugDependenceDx") FADD
        such that FAD.prevalencePeriod start 60 days or less before start of FADD.prevalencePeriod

Because it's not one of the expected keywords, the parser is interpreting that as a query alias, which is basically a no-op, so it's really saying:

  define "Ex1":
    ["Diagnosis": "Alcohol and Drug Dependence"] FAD
      with ("FirstAlcoholDrugDependenceDx") FADD
        such that FAD.prevalencePeriod 60 days or less before start of FADD.prevalencePeriod

And when you use an interval in a "before" like that, it chooses the end of the interval to do the comparison. So, the immediate fix is to just correct the keyword to "starts" instead of "start".

Wiki Index

Home

Authoring Patterns - QICore v4.1.1

Authoring Patterns - QICore v5.0.0

Authoring Patterns - QICore v6.0.0

Authoring Measures in CQL

Composite Measure Development

Cooking with CQL Examples

Cooking with CQL Q&A All Categories
Additional Q&A Examples

CQL 1.3 Impact Guidance

CQL Error Messages

Developers Introduction to CQL

Discussion Items

Example Measures

Formatting and Usage Topics

Formatting Conventions

Library Versioning

Negation in QDM

QDM Known Issues

Specific Occurrences

Specifying Population Criteria

Supplemental Data Elements

Terminology in CQL

Translator Options For Measure Development

Unions in CQL

Clone this wiki locally