FHIR Chat · GF#20167 · fhirpath

Stream: fhirpath

Topic: GF#20167


view this post on Zulip Bryn Rhodes (Mar 15 2019 at 00:06):

Applying GF#20167, which is to add an .any(criteria) function. But I'm realizing that this is exactly the same as the .exists(criteria) function, so by adding this, we'll be supporting two different ways of saying exactly the same thing. Thoughts?

view this post on Zulip Grahame Grieve (Mar 15 2019 at 00:12):

doesn't that mean we already have .exists() and .any()?

view this post on Zulip Bryn Rhodes (Mar 15 2019 at 00:52):

No, we have .exists() and .anyTrue()

view this post on Zulip Richard Townley-O'Neill (Mar 15 2019 at 02:18):

http://hl7.org/fhirpath/ does not mention any(criteria), just exists(criteria)

view this post on Zulip Bryn Rhodes (Mar 15 2019 at 03:12):

Yes, that's the currently published spec, which supports both .exists(), and .exists(criteria). The tracker I referenced is an approved comment against the spec to add .any(criteria), but I'm suggesting we shouldn't do that, because it's adding an unnecessary synonym for .exists(criteria).

view this post on Zulip Richard Townley-O'Neill (Mar 15 2019 at 05:27):

I agree with not creating an unnecessary synonym.

view this post on Zulip Bryn Rhodes (Mar 16 2019 at 00:48):

So this is the last tracker to be applied, so unless there are objections raised, I'm going to bring it to ITS and recommend it be reopened and found not persuasive.

view this post on Zulip Bryn Rhodes (Mar 16 2019 at 00:48):

(I'm the one who submitted it, and it's not a ballot comment).

view this post on Zulip Bryn Rhodes (Mar 22 2019 at 02:11):

ITS approved reopening this and finding it persuasive with mod to add a note that "exists" is sometimes known as "any" in other path query languages.


Last updated: Apr 12 2022 at 19:14 UTC