FHIR Chat · FHIRPath sort elements · implementers

Stream: implementers

Topic: FHIRPath sort elements


view this post on Zulip Naoyuki Tai (Feb 17 2022 at 01:21):

I'm writing a expression to pick the smallest value of identifiers. This is so that I can pick one element in identifiers stably. ex -

Patient.identifier.where($this.system = "MRN").sort($this.value).first()

If there were sort().
Apparently, there is no sort(). (a) does sort() exist? (b) Is there any example out there? (b) If I'm to implement this as enchancement, what's the likelyhood that this is going to colide with future fhirpath?

view this post on Zulip Grahame Grieve (Feb 17 2022 at 04:30):

I'd take this up on #fhirpath and I'd expect that sort() would take a parameter which was a predicate that provided the sort value


Last updated: Apr 12 2022 at 19:14 UTC