opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 39 forks source link

Nested Filter not filtering the resource based on last resource #3233

Open syedowaisali opened 1 month ago

syedowaisali commented 1 month ago

Describe the bug On the main register screen resources are filtered with the nested search but do not correctly pick the nested resource for example if we have multiple related resources then we can't have the option to provide the config to sort and pick up the right related to filter out the parent resource. Moreover, we also need an option to provide a static filter config

To Reproduce Steps to reproduce the behavior:

  1. Go to the Main screen
  2. Click on the filter icon button
  3. Apply some filter
  4. see the wrong filtered result

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.