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
465 stars 246 forks source link

Add Distinct in SQL query instead of kotlin function in search query #2567

Open MJ1998 opened 2 weeks ago

MJ1998 commented 2 weeks ago

Describe the Issue From this line it seems the sql query may return duplicate records.

Update: We do a distinctBy here. So the records are still distinct but we should add DISTINCT clause in the sql query instead.

Would you like to work on the issue?