cqframework / cql-engine

Clinical Quality Language Evaluation Engine
Apache License 2.0
62 stars 45 forks source link

Report the same location context info for errors as for successes #28

Closed duncand closed 6 years ago

duncand commented 6 years ago

When a CQL named expression is evaluated successfully, the output gives the expression name and line number in the source code, for example:

>> Is Colonoscopy In Last Ten Years [304:1] false

However, when there are runtime errors with an expression, that context is not indicated, for example:

>> Error: HTTP 404 Not Found

The task of this ticket is to update the engine such that the expression name / line number context is always reported regardless of whether the evaluation result is successful or an error.

This information is important for tracking down where in many possible places the error may originate in the source code.

c-schuler commented 6 years ago

This is actually not an engine issue. Please close and re-raise in the CQL Runner. Thanks.

duncand commented 6 years ago

Okay, issue https://github.com/DBCG/cql_runner/issues/20 replaces the current one, closing.