From dc91383631cbaf7811e1d52150532ddc86ec438b Mon Sep 17 00:00:00 2001 From: Donahue <42574@icf.com> Date: Mon, 16 May 2022 14:30:34 -0600 Subject: [PATCH] CQF-1270 Updated test expression in testCQLAggregate. Note: cql aggregate fn not implemented yet. --- .../org/hl7/fhirpath/cql/CqlAggregateTest.xml | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/engine.fhir/src/test/resources/org/hl7/fhirpath/cql/CqlAggregateTest.xml b/engine.fhir/src/test/resources/org/hl7/fhirpath/cql/CqlAggregateTest.xml index 5cca51084..c3b84bdc0 100644 --- a/engine.fhir/src/test/resources/org/hl7/fhirpath/cql/CqlAggregateTest.xml +++ b/engine.fhir/src/test/resources/org/hl7/fhirpath/cql/CqlAggregateTest.xml @@ -1,21 +1,22 @@ - - - ({ 1, 2, 3, 4, 5 }) Num aggregate Result starting 1: Result * Num - 120 - - - MedicationRequestIntervals M - aggregate R starting (null as List<Interval<DateTime>>): R union ({ - M X - let S: Max({ end of Last(R) + 1 day, start of X }), - E: S + duration in days of X - return Interval[S, E] - }) - TODO - - - + name="CqlAggregateTest" reference="http://build.fhir.org/ig/HL7/cql/03-developersguide.html#aggregate-queries"> + + + ({ 1, 2, 3, 4, 5 }) Num aggregate Result starting 1: Result * Num + 120 + + + ({Interval[DateTime(2022, 1, 8, 13, 0, 0, 0), DateTime(2022, 1, 15, 16, 0, 0, 0)], + Interval[DateTime(2022, 1,10, 15, 0, 0, 0), DateTime(2022, 1, 20, 20, 0, 0, 0)], + Interval[DateTime(2022, 1,25, 10, 0, 0, 0), DateTime(2022, 1, 30, 15, 0, 0, 0)]}) M + aggregate R starting (null as List<Interval <DateTime> >): + R union ({M X + let S: Max({ end of Last(R) + 1 day, start of X }), + E: S + duration in days of X + return Interval[S, E] + }) + TODO pending implementation of CQL aggregate function + +