Details
-
Technical Correction
-
Resolution: Persuasive
-
Medium
-
FHIR Core (FHIR)
-
R4B
-
Modeling & Methodology
-
Datatypes
-
2.25.0.17
-
-
Correction
-
R5
Description
The `tim-9` invariant invokes the `in` operator with `Timing.when` as the left operand.
`Timing.when` , however, is a collection, and according to the FhirPath specification of the `in` operator, this is not allowed (http://hl7.org/fhirpath/N1/#in-membership):
> If the left operand is a collection with a single item, this operator returns true if the item is in the right operand using equality semantics. If the left-hand side of the operator is empty, the result is empty, if the right-hand side is empty, the result is false. If the left operand has multiple items, an exception is thrown.
We should probably use `select($this in (.....)).anyTrue()` here.