From d882b3af9c1b05374a580232959d65923ded1622 Mon Sep 17 00:00:00 2001 From: Eunice Wanjiru Date: Tue, 24 Oct 2017 09:00:04 +0300 Subject: [PATCH] correct pull request review feedback --- .../rest/web/v1_0/resource/openmrs1_8/ObsResource1_8.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/ObsResource1_8.java b/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/ObsResource1_8.java index 3afea6128e..5b2e7b2d20 100644 --- a/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/ObsResource1_8.java +++ b/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/ObsResource1_8.java @@ -479,14 +479,13 @@ protected PageableResult doSearch(RequestContext context) { } String encounterUuid = context.getRequest().getParameter("encounter"); - boolean includeVoided = context.getIncludeAll(); if (encounterUuid != null) { Encounter enc = ((EncounterResource1_8) Context.getService(RestService.class).getResourceBySupportedClass( Encounter.class)).getByUniqueId(encounterUuid); if (enc == null) return new EmptySearchResult(); - List obs = new ArrayList(enc.getAllObs(includeVoided)); + List obs = new ArrayList(enc.getAllObs(context.getIncludeAll())); return new NeedsPaging(obs, context); }