Stream: fhirpath
Topic: sort()
Naoyuki Tai (Feb 18 2022 at 02:00):
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(). (well, assuming some collation is given as a default.)
Apparently, there is no sort(). (a) does sort() exist? (b) Is there any example out there? (b) If I'm to implement this as an enhancement to in-house fhirpath implementation, what's the likelyhood that this is going to colide with future fhirpath?
Richard Townley-O'Neill (Feb 18 2022 at 04:18):
Have you seen https://hl7.org/fhirpath ?
Bryn Rhodes (Feb 21 2022 at 15:42):
There is an open tracker to add sort capability: https://jira.hl7.org/browse/FHIR-28447
Last updated: Apr 12 2022 at 19:14 UTC