Skip to content

Commit

Permalink
correct pull request review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewanjiru committed Oct 24, 2017
1 parent 86ed533 commit d882b3a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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> obs = new ArrayList<Obs>(enc.getAllObs(includeVoided));
List<Obs> obs = new ArrayList<Obs>(enc.getAllObs(context.getIncludeAll()));
return new NeedsPaging<Obs>(obs, context);
}

Expand Down

0 comments on commit d882b3a

Please sign in to comment.