From ba9564c1fd7ef60594ad0630967f80ee8589fbeb Mon Sep 17 00:00:00 2001 From: Comfort Mwalija <42068747+calmwalija@users.noreply.github.com> Date: Mon, 18 Mar 2024 09:35:32 +0200 Subject: [PATCH] [Quest/Malawi Core] Android App : Duplicate Tasks Fix (#46) --- .../fhircore/engine/sync/SyncListenerManager.kt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/android/engine/src/main/java/org/smartregister/fhircore/engine/sync/SyncListenerManager.kt b/android/engine/src/main/java/org/smartregister/fhircore/engine/sync/SyncListenerManager.kt index bc6ebe8814..1abaaae870 100644 --- a/android/engine/src/main/java/org/smartregister/fhircore/engine/sync/SyncListenerManager.kt +++ b/android/engine/src/main/java/org/smartregister/fhircore/engine/sync/SyncListenerManager.kt @@ -24,7 +24,6 @@ import java.lang.ref.WeakReference import javax.inject.Inject import javax.inject.Singleton import org.hl7.fhir.r4.model.Appointment -import org.hl7.fhir.r4.model.CarePlan import org.hl7.fhir.r4.model.Encounter import org.hl7.fhir.r4.model.ListResource import org.hl7.fhir.r4.model.Observation @@ -173,12 +172,14 @@ private fun ResourceType.filterBasedOnPerResourceType( pairs.addParam(resourceType = this, param = RelatedPerson.SP_ACTIVE, value = true.toString()) ResourceType.Patient -> pairs.addParam(resourceType = this, param = Patient.SP_ACTIVE, value = true.toString()) - ResourceType.CarePlan -> - pairs.addParam( - resourceType = this, - param = CarePlan.SP_STATUS, - value = CarePlan.CarePlanStatus.ACTIVE.toString().lowercase(), - ) + + // ResourceType.CarePlan -> + // pairs.addParam( + // resourceType = this, + // param = CarePlan.SP_STATUS, + // value = CarePlan.CarePlanStatus.ACTIVE.toString().lowercase(), + // ) + ResourceType.Observation -> pairs.addParam( resourceType = this,