Skip to content

Commit 131d2ac

Browse files
ellykitsdubdabasodubapld
authored
Filter map service points by selected locations (#3392)
Signed-off-by: Elly Kitoto <[email protected]> Co-authored-by: Benjamin Mwalimu <[email protected]> Co-authored-by: Peter Lubell-Doughtie <[email protected]>
1 parent 9b51114 commit 131d2ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

android/engine/src/main/java/org/smartregister/fhircore/engine/configuration/geowidget/GeoWidgetConfiguration.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ data class GeoWidgetConfiguration(
4242
val summaryBottomSheetConfig: SummaryBottomSheetConfig? = null,
4343
val actions: List<ActionConfig>? = emptyList(),
4444
val noResults: NoResultsConfig? = null,
45+
val filterDataByRelatedEntityLocation: Boolean? = null,
4546
) : Configuration()
4647

4748
@Serializable

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/launcher/GeoWidgetLauncherViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ constructor(
141141
fhirResourceConfig = geoWidgetConfig.resourceConfig,
142142
configRules = null,
143143
secondaryResourceConfigs = null,
144-
filterByRelatedEntityLocationMetaTag = false,
144+
filterByRelatedEntityLocationMetaTag =
145+
geoWidgetConfig.filterDataByRelatedEntityLocation == true,
145146
)
146147
}
147148
.await()

0 commit comments

Comments
 (0)