Stream: fhirpath
Topic: startsWith({})
Paul Lynch (Apr 27 2021 at 21:48):
What happens if the "prefix" passed to startsWith is empty (not the empty string, but the empty collection)?
Paul Lynch (Apr 28 2021 at 18:27):
@Bryn Rhodes
Aaron Nash (Apr 28 2021 at 22:11):
I think 4.4.1. Propagation of empty results in expressions covers this.
If a single-input operator or function is passed an empty collection as an argument, the result is an empty collection
...
When functions or operators behave differently from these general principles, (for example the count() and empty() functions), this is clearly documented in the next sections.
Paul Lynch (Apr 28 2021 at 23:15):
That sounds correct -- thanks.
Last updated: Apr 12 2022 at 19:14 UTC