FHIR Chat · Implementation of iif () ? · fhirpath.js

Stream: fhirpath.js

Topic: Implementation of iif () ?


view this post on Zulip Stoyan Halkaliev (May 22 2020 at 09:51):

Hi, first I want to say thank you for this great library. It is surely very helpful, especially in single page applications.

I do have one question: What is the status of the support for iif () in fhirpath.js, as specified here:

http://hl7.org/fhirpath/#iifcriterion-expression-true-result-collection-otherwise-result-collection-collection

It looks very handy, but we get "not implemented". This information is very clear by itself, just wanted to make sure I have not missed something.

view this post on Zulip Paul Lynch (May 22 2020 at 13:15):

On the demo page at https://hl7.github.io/fhirpath.js/, if you enter the expression, iif(true, 2, 3), you get [2]. So, it is implemented. Can you provide an example where you get the "not implemented" message?

view this post on Zulip Stoyan Halkaliev (May 23 2020 at 15:31):

I'm a little embarrassed to admit, but I seem to have tried iff instead of iif. Thank you @Paul Lynch for the quick reply.

view this post on Zulip Stoyan Halkaliev (May 23 2020 at 15:34):

Maybe it is good idea to update the implementation status of the readme on https://github.com/HL7/fhirpath.js to include the 5.5.1. There I checked first and just assumed it is not implemented yet.

view this post on Zulip Paul Lynch (Jun 01 2020 at 20:54):

Yes, good point.


Last updated: Apr 12 2022 at 19:14 UTC