Stream: fhirpath
Topic: xor
Lloyd McKenzie (Jan 21 2019 at 03:08):
In FHIRPath, why does xor return "false" if either of the arguments is an empty set?
(Technically it returns an empty set, but when evaluating the result as a boolean - as would typically be done for an xor operation - that equates to 'false')
Grahame Grieve (Jan 21 2019 at 11:04):
Because empty set propagates. You need to capture it with empty() or exists()
Last updated: Apr 12 2022 at 19:14 UTC