diff --git a/Src/java/engine-fhir/src/test/java/org/hl7/fhirpath/CQLOperationsR4Test.java b/Src/java/engine-fhir/src/test/java/org/hl7/fhirpath/CQLOperationsR4Test.java
index ec3dd1b79..8f93cf54e 100644
--- a/Src/java/engine-fhir/src/test/java/org/hl7/fhirpath/CQLOperationsR4Test.java
+++ b/Src/java/engine-fhir/src/test/java/org/hl7/fhirpath/CQLOperationsR4Test.java
@@ -112,17 +112,25 @@ public static Object[][] dataMethod() {
"cql/CqlDateTimeOperatorsTest/Uncertainty tests/DurationInDaysA",
"cql/CqlDateTimeOperatorsTest/Uncertainty tests/DurationInDaysAA",
"cql/CqlDateTimeOperatorsTest/Uncertainty tests/TimeDurationBetweenHourDiffPrecision",
+ "cql/CqlIntervalOperatorsTest/Intersect/TestIntersectNull",
+ "cql/CqlIntervalOperatorsTest/Intersect/TestIntersectNull1",
+ "cql/CqlIntervalOperatorsTest/Intersect/TestIntersectNull2",
+ "cql/CqlIntervalOperatorsTest/Intersect/TestIntersectNull3",
+ "cql/CqlIntervalOperatorsTest/Intersect/TestIntersectNull4",
"cql/CqlIntervalOperatorsTest/Expand/ExpandIntervalPer2",
"cql/CqlIntervalOperatorsTest/Expand/ExpandPer0D1",
"cql/CqlIntervalOperatorsTest/Expand/ExpandPer1",
"cql/CqlIntervalOperatorsTest/Expand/ExpandPer2Days",
"cql/CqlIntervalOperatorsTest/Expand/ExpandPerMinute",
+ "cql/CqlListOperatorsTest/Contains/ContainsABNullHasNull",
"cql/CqlListOperatorsTest/Distinct/DistinctANullANull",
"cql/CqlListOperatorsTest/Distinct/DistinctNullNullNull",
"cql/CqlListOperatorsTest/Equivalent/Equivalent123AndABC",
"cql/CqlListOperatorsTest/Equivalent/Equivalent123AndString123",
"cql/CqlListOperatorsTest/Equivalent/EquivalentABCAnd123",
"cql/CqlListOperatorsTest/Flatten/FlattenListNullAndNull",
+ "cql/CqlListOperatorsTest/In/InNullAnd1Null",
+ "cql/CqlListOperatorsTest/In/InNullEmpty",
"cql/CqlListOperatorsTest/IncludedIn/IncludedInNullRight",
"cql/CqlListOperatorsTest/Includes/IncludesNullLeft",
"cql/CqlListOperatorsTest/Includes/IncludesNullRight",
@@ -142,7 +150,9 @@ public static Object[][] dataMethod() {
"cql/CqlTypeOperatorsTest/As/CastAsQuantity",
"cql/CqlTypeOperatorsTest/Convert/StringToDateTimeMalformed",
"cql/CqlTypeOperatorsTest/Convert/StringToIntegerError",
+ "cql/CqlTypeOperatorsTest/ToDateTime/ToDateTimeDate",
"cql/CqlTypeOperatorsTest/ToDateTime/ToDateTimeMalformed",
+ "cql/CqlTypeOperatorsTest/ToDateTime/ToDateTimeTimeUnspecified",
"cql/CqlTypeOperatorsTest/ToTime/ToTime2",
"cql/CqlTypeOperatorsTest/ToTime/ToTime3",
"cql/CqlTypeOperatorsTest/ToTime/ToTime4",
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTest.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTest.xml
index 91b7c404d..8f73b6fb5 100644
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTest.xml
+++ b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTest.xml
@@ -75,7 +75,6 @@
1'cm' = 0.01'm'
-
2.0'cm' = 2.00'cm'
@@ -133,6 +132,10 @@
@2014-01-25T14:30:14.559+01:00 = @2014-01-25T14:30:14.559+01:00
+
+ @2022-02-22T00:00:00.000-05:00 same day as @2022-02-22T04:59:00.000Z
+
+
@T10:00:00.000 = @T10:00:00.000
@@ -167,6 +170,10 @@
0.0 > -1.0
+
+ 1.0 > 2
+
+
0'cm' > 0'cm'
@@ -182,12 +189,10 @@
1'm' > 1'cm'
-
1'm' > 10'cm'
-
'a' > 'a'
@@ -267,6 +272,10 @@
0.0 >= -1.0
+
+ 1.0 >= 2
+
+
0'cm' >= 0'cm'
@@ -282,12 +291,10 @@
1'm' >= 1'cm'
-
1'm' >= 10'cm'
-
'a' >= 'a'
@@ -375,6 +382,10 @@
0.0 < -1.0
+
+ 1.0 < 2
+
+
0'cm' < 0'cm'
@@ -390,12 +401,10 @@
1'm' < 1'cm'
-
1'm' < 10'cm'
-
'a' < 'a'
@@ -475,6 +484,10 @@
0.0 <= -1.0
+
+ 1.0 <= 2
+
+
0'cm' <= 0'cm'
@@ -490,12 +503,10 @@
1'm' <= 1'cm'
-
1'm' <= 10'cm'
-
'a' <= 'a'
@@ -626,7 +637,6 @@
1'cm' ~ 0.01'm'
-
Tuple { Id : 1, Name : 'John' } ~ Tuple { Id : 1, Name : 'John' }
@@ -729,7 +739,6 @@
1'cm' != 0.01'm'
-
Tuple{ Id : 1, Name : 'John' } != Tuple{ Id : 1, Name : 'John' }
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTestsFailing.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTestsFailing.xml
deleted file mode 100644
index 3850243d4..000000000
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlComparisonOperatorsTestsFailing.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
- (1'cm' = 0.01'm')
-
-
-
-
- (1'm' > 1'cm')
-
-
-
-
- (1'm' > 10'cm')
-
-
-
-
- 1'm' >= 1'cm'
-
-
-
-
- (1'm' >= 10'cm')
-
-
-
-
- (1'm' < 1'cm')
-
-
-
-
- (1'm' < 10'cm')
-
-
-
-
- 1'm' <= 1'cm'
-
-
-
-
- (1'm' <= 10'cm')
-
-
-
-
- 1'cm' ~ 0.01'm'
-
-
-
-
- (1'cm' != 0.01'm')
-
-
-
-
-
\ No newline at end of file
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlIntervalOperatorsTest.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlIntervalOperatorsTest.xml
index 099db4057..f8ff51140 100644
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlIntervalOperatorsTest.xml
+++ b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlIntervalOperatorsTest.xml
@@ -666,8 +666,23 @@
Interval[1, 10] intersect Interval[5, null)
-
-
+
+
+
+ start of (Interval[1, 10] intersect Interval[5, null)) <= 10
+
+
+
+ start of (Interval[1, 10] intersect Interval[5, null)) >= 5
+
+
+
+ start of (Interval[1, 10] intersect Interval[5, null)) > 10
+
+
+
+ start of (Interval[1, 10] intersect Interval[5, null)) < 5
+
Interval[1, 10] intersect Interval[4, 10]
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlListOperatorsTest.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlListOperatorsTest.xml
index 2eda1759f..8ba68d1fe 100644
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlListOperatorsTest.xml
+++ b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlListOperatorsTest.xml
@@ -50,7 +50,7 @@
{ 'a', 'b', null } contains null
-
+
{ null, 'b', 'c' } contains 'a'
@@ -279,11 +279,11 @@
null in {}
-
+
null in { 1, null }
-
+
1 in null
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypeOperatorsTest.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypeOperatorsTest.xml
index 4e325870d..03c922e73 100644
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypeOperatorsTest.xml
+++ b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypeOperatorsTest.xml
@@ -96,6 +96,14 @@
ToDateTime('2014/01/01T12:05:05.955Z')
+
+ ToDateTime(@2014-01-01)
+
+
+
+ hour from ToDateTime(@2014-01-01) is null
+
+
diff --git a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypesTest.xml b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypesTest.xml
index f3a281788..3ad647960 100644
--- a/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypesTest.xml
+++ b/Src/java/engine-fhir/src/test/resources/org/hl7/fhirpath/cql/CqlTypesTest.xml
@@ -92,6 +92,10 @@
DateTime(9999, 12, 31, 23, 59, 59, 999)
+
+ hour from @2015-02-10T is null
+
+