cql-execution
cql-execution copied to clipboard
A JavaScript framework for executing CQL
There is an outstanding ticket for implementing the `implies` operator in the engine at #158. I don't think any measure previously has used the operator. That changed recently with the...
The CQL team has recently updated the CQL tests, including fixing some that expected the wrong answers ([link](https://github.com/cqframework/clinical_quality_language/pull/1346)). Our engine is actually passing a few of the tests with wrong...
Asserting that something was _not done_ can be challenging in FHIR. It's relatively easy to say that a specific thing (with a specific code) wasn't done, but harder to say...
We are in the process of implementing NCQA HEDIS dQMs behind a web service. NCQA references this project as the cql + elm execution engine they had used. They directly...
Currently, the [DataProvider](https://github.com/cqframework/cql-execution/blob/487797e67d473dffc3966cd3f73ad1fb96e4ddd1/src/types/cql-patient.interfaces.ts) (a.k.a. `PatientSource`) API provides two functions: ```ts export interface DataProvider { currentPatient(): PatientObject | undefined | Promise; nextPatient(): PatientObject | undefined | Promise; } ``` The `PatientObject`,...
Currently, the [TerminologyProvider](https://github.com/cqframework/cql-execution/blob/487797e67d473dffc3966cd3f73ad1fb96e4ddd1/src/types/cql-code-service.interfaces.ts#L26-L32) (a.k.a. `CodeService`) API in cql-execution is quite simple: ```ts export interface TerminologyProvider { findValueSetsByOid: (oid: string) => ValueSet[] | Promise; findValueSet: (oid: string, version?: string) => ValueSet...
See: https://cql.hl7.org/09-b-cqlreference.html#implies
There are a number of `Retrieve` properties listed in [chapter 4, section 11.1](https://cql.hl7.org/04-logicalspecification.html#retrieve) that don't seem to be supported by the CQL-to-ELM translator yet (nor are their CQL constructs well...
The `Retrieve` operator provides a `codeComparator` to indicate how the code should be matched. According to [chapter 4, section 11.1.14](https://cql.hl7.org/04-logicalspecification.html#codecomparator): > The codeComparator attribute specifies how elements of the code...
The [PointFrom](https://cql.hl7.org/09-b-cqlreference.html#point-from) operator extracts the point from a unit interval (and throws an error otherwise). It can be invoked via the following syntax: ``` define PointFromUnit2Interval: point from Interval[2,2] ```