FHIR Chat · Null argument semantics in includes vs. contains operators · cql

Stream: cql

Topic: Null argument semantics in includes vs. contains operators


view this post on Zulip Zach Smith (Dec 16 2019 at 19:14):

The docs for the includes operator say that for the point overload, the operator is equivalent to the contains operator.

However, these two operators define different semantics when the first argument is null. includes declares that the result is null, while contains declares the result to be false.

A similar discrepancy can be seen in included in vs. in.

view this post on Zulip Bryn Rhodes (Dec 16 2019 at 20:51):

Looked into this and yes, this should be clarified; submitted STU4#1883

view this post on Zulip Zach Smith (Dec 16 2019 at 21:26):

Thanks @Bryn Rhodes !


Last updated: Apr 12 2022 at 19:14 UTC