cqframework / clinical_quality_language

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.
https://confluence.hl7.org/display/CDS/Clinical+Quality+Language
Apache License 2.0
267 stars 123 forks source link

BaseFhirTypeConverter Does Not Support Integer Intervals #1454

Open jreyno77 opened 4 days ago

jreyno77 commented 4 days ago

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()));
        }