FHIR Chat · Filtering queries with single code · cql

Stream: cql

Topic: Filtering queries with single code


view this post on Zulip 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:

view this post on Zulip 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"] )

view this post on Zulip 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.

view this post on Zulip 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.

view this post on Zulip 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