Details
-
Change Request
-
Resolution: Unresolved
-
Medium
-
FHIRPath (FHIR)
-
1.0
-
Implementable Technology Specifications
-
index
-
3.1 Collections
Description
FHIRPath notes that the order of a collection is important and is preserved,
but provides no mechanism to sort a collection so that certain functions can be performed.
For example, given a collection of Encounters for a given day, there may be multiple encounters for the same patient. I can ensure that there is only one encounter for each patient by using aggregate() as follows:
Encounter.aggregate(iif($total.subject contains $this.subject,{}, $total | $this))
Attachments
Issue Links
- mentioned in
-
Page Loading...