Open juliangruendner opened 3 months ago
I found a simpler way to test via equivalence:
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'
codesystem loinc: 'http://loinc.org/'
codesystem uiccstadiumcs: 'http://dktk.dkfz.de/fhir/onco/core/CodeSystem/UiccstadiumCS'
context Patient
define Criterion:
exists (from [Observation: Code '21908-9' from loinc] O
where O.value ~ Code 'IIA' from uiccstadiumcs)
define InInitialPopulation:
Criterion
It's just possible to apply the equivalence operator to a FHIR CodeableConcept and a CQL Code.
We have to wait until all sites have at least the v0.29 of Blaze deployed.
IS:
Qualitative values are currently filtered for with the version, as the generated cql query uses "contains", which compares using equal.
SHOULD:
Qualitative values should be filtered for without the version. The generated cql query should then use "equivalent" instead of "contains.
Examples
CQL with contains (IS)
CQL with equivalent (SHOULD)
Example FHIR resource as json which contains value code