Skip to content

Commit

Permalink
[Quest/Malawi Core] Android App : Duplicate Tasks Fix (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmwalija committed Mar 18, 2024
1 parent b835858 commit ba9564c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ba9564c

Please sign in to comment.