Clinical Quality Language (CQL) is an HL7 specification for the expression of clinical knowledge that can be used within both the Clinical Decision Support (CDS) and Clinical Quality Measurement (CQM) domains. This repository contains complementary tooling in support of that specification.
toFhirInterval does not support Integer Intervals:
Cql: define "AnyInterval": Interval[2, 7]
switch (getSimpleName(value.getPointType().getTypeName())) {
case "Date":
case "DateTime":
return toFhirPeriod(value);
case "Quantity":
return toFhirRange(value);
default:
throw new IllegalArgumentException(String.format(
"Unsupported interval point type for FHIR conversion %s",
value.getPointType().getTypeName()));
}
toFhirInterval does not support Integer Intervals:
Cql:
define "AnyInterval": Interval[2, 7]