Stream: implementers
Topic: Creating lists in FHIRPath
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?
Grahame Grieve (Mar 03 2017 at 10:52):
combine() - but there is no syntactic short cut for that
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
Grahame Grieve (Mar 03 2017 at 18:50):
yes
Last updated: Apr 12 2022 at 19:14 UTC