Stream: cql
Topic: Filtering queries with single code
Dave Carlson (Apr 20 2018 at 14:57):
The current CQL spec indicates in section 2.2 that retrieve expressions can be filtered using a single code. This works in http://cql-runner.dataphoria.org/ but fails with an error in the cql-to-elm tooling (built from either master or v13 branch in clinical_quality_language. My example looks like this:
Dave Carlson (Apr 20 2018 at 14:58):
codesystem "LOINC": 'http://loinc.org'
code "Body weight": '29463-7' from "LOINC"
define "Last Body Weight":
Last( [Observation: "Body weight"] )
Dave Carlson (Apr 20 2018 at 14:59):
cql-to-elm tooling returns an error: Could not resolve membership operator for terminology target of the retrieve.
Dave Carlson (Apr 21 2018 at 03:47):
Turns out that it is OK to ignore these errors, ELM xml was generated and executes as expected on cqf-ruler server.
Bryn Rhodes (Apr 22 2018 at 18:55):
What that warning is saying is that the translator could not resolve an operator to deal with the filter inside the retrieve. It's only a warning because effectively, the data access layer is responsible for implementing that filter.
Last updated: Apr 12 2022 at 19:14 UTC