base

Base project for CQL modules

License

License

GroupId

GroupId

org.opencds.cqf.cql
ArtifactId

ArtifactId

base
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

base
Base project for CQL modules
Project URL

Project URL

https://github.com/DBCG/org-opencds-cqf-cql/tree/master

Download base

Filename Size
base-1.0.0.pom 11 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/org.opencds.cqf.cql/base/ -->
<dependency>
    <groupId>org.opencds.cqf.cql</groupId>
    <artifactId>base</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.opencds.cqf.cql/base/
implementation 'org.opencds.cqf.cql:base:1.0.0'
// https://jarcasting.com/artifacts/org.opencds.cqf.cql/base/
implementation ("org.opencds.cqf.cql:base:1.0.0")
'org.opencds.cqf.cql:base:pom:1.0.0'
<dependency org="org.opencds.cqf.cql" name="base" rev="1.0.0">
  <artifact name="base" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.opencds.cqf.cql', module='base', version='1.0.0')
)
libraryDependencies += "org.opencds.cqf.cql" % "base" % "1.0.0"
[org.opencds.cqf.cql/base "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • service
  • cli
  • rest
  • measure

CQL Evaluator

This project provides a Java-based CQL evaluation service and related components.

The front-end of the evaluator is the cql-to-elm translator (which provides translation of CQL to ELM) and the backend is the cql-engine (which provides ELM execution). The evaluator glues those two components together and provides DataProvider and TerminologyProvider implementations that allow execution of CQL against a filesystem, FHIR server, and in-process FHIR resources.

Prerequisites

Java 11+

Maven 3.5+

Usage

The cql-evaluator project includes a cli tool that allows execution of CQL from the command line. You can build this tool with:

mvn package

Then you can run the cli with:

java -jar ./evaluator.cli/target/evaluator.cli-1.0.0-SNAPSHOT-shaded.jar --help

That will list the command line options. There is some CQL content available in the Connectathon IG repository. If you have that repository checked out as a sibling repo to this one, you can execute a sample Measure test case by running:

java -jar ./evaluator.cli/target/evaluator.cli-1.0.0-SNAPSHOT-shaded.jar \
--lu ../connectathon/fhir4/input/pagecontent/cql \
--ln EXM104_FHIR4 \
-m FHIR=../connectathon/fhir4/input/tests/EXM104_FHIR4-8.1.000 \
-t ../connectathon/fhir4/input/vocabulary/valueset \
-c Patient=numer-EXM104-FHIR4

License

Copyright 2020 Dynamic Content Group

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

org.opencds.cqf.cql

Database Consulting Group

Alphora Open Source Sponsor

Versions

Version
1.0.0