code "First trimester pregnancy (finding)": '57630001' from "http://snomed.info/sct"
define "No first trimester finding":
not exists(
[Condition] R
where (R.code ~ "First trimester pregnancy (finding)"))
As mentioned, we don't think the cql is the issue, we think the engine can't read the multiple codings. Any ideas where in the cql-execution engine code it does that check?
As it turns out, the CQL execution engine is handling this correctly (see full thread at chat.fhir.org link above). The issue was in the way the underlying system was passing around data. Not a bug.
From chat.fhir.org:
Hi when we encounter an array of codings like this:
we noticed the CQL execution engine (https://github.com/cqframework/cql-execution) fails to recognize the codes. The same cql works if we have only 1 coding.
Here's the CQL we used:
As mentioned, we don't think the cql is the issue, we think the engine can't read the multiple codings. Any ideas where in the cql-execution engine code it does that check?