cqframework / cql-engine

Clinical Quality Language Evaluation Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translator fails to handle result types of Width()

duncand opened this issue · comments

Run the following CQL:

define x1: width of Interval[DateTime(2012, 1, 5), DateTime(2012, 1, 25)]
define x2: Equivalent(x1, 20 days)
define y1: width of Interval[@T05:59:59.999, @T15:59:59.999]
define y2: Equivalent(x1, 36000000 milliseconds)

Expected result:

x1: 20 days
x2: true
y1: 36000000 milliseconds
y2: true

Actual result:

x1: 20 days
x2: Could not resolve call to operator Equivalent with signature (System.DateTime,System.Quantity)
y1: 36000000 milliseconds
y2: Could not resolve call to operator Equivalent with signature (System.Time,System.Quantity)

This problem is demonstrated by these failing CQL Engine tests:

  • CqlIntervalOperatorsTest.xml -> DateTimeWidth
  • CqlIntervalOperatorsTest.xml -> TimeWidth