cqframework / cql-engine

Clinical Quality Language Evaluation Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After and Before comparisons are being done for ONLY the specified precision

c-schuler opened this issue · comments

Instead of comparing DateTime/Time values UP TO the specified precision as the spec states, the Engine is only comparing the values specified by the precision.

For example, the following expressions evaluate to false when they should be evaluate to true:

define AfterTest: @2010-12-10 after day of @2009-12-12
define BeforeTest: @2009-12-10 before day of @2010-12-09

I have confirmed that pull request #67 fixes the concerns of this issue, and also doesn't seem to have introduced any new test suite errors.