FHIR Chat · Creating lists in FHIRPath · implementers

Stream: implementers

Topic: Creating lists in FHIRPath


view this post on Zulip Marten Smits (Mar 03 2017 at 09:36):

We want to create a list, lets say 1,2,3,3,4 for FHIRPath evaluation. However, the spec isn't really clear on how to do that. We could use a union operator, however, that removes duplicates. (1|2|3|3|4) results in a list of 1,2,3,4. What can we use to keep duplicates?

view this post on Zulip Grahame Grieve (Mar 03 2017 at 10:52):

combine() - but there is no syntactic short cut for that

view this post on Zulip Marten Smits (Mar 03 2017 at 12:34):

So that would be:

(1|2|3).combine(3).combine(4)

To create 1,2,3,3,4

view this post on Zulip Grahame Grieve (Mar 03 2017 at 18:50):

yes


Last updated: Apr 12 2022 at 19:14 UTC