google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
481 stars 259 forks source link

Return unique include and revInclude resources per search filter match. #2544

Closed aditya-07 closed 2 months ago

aditya-07 commented 4 months ago

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes #2512 #2567

Description

  1. Return distinct included and revIncluded resource per searchIndex.
  2. When user updates a resource, if the resource has an meta.lastUpdated, use that for index value.

Alternative(s) considered Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type Choose one: Bug fix Screenshots (if applicable)

Checklist