Skip to content

Commit

Permalink
Refactor. add encounter filer in Immunization
Browse files Browse the repository at this point in the history
  • Loading branch information
SanoferSameera committed May 9, 2024
1 parent 9070da0 commit c675cc5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public List<ImmunizationRecordBundle> getImmunizationRecordsForVisit(String pati

return visit.getEncounters().stream()
.filter(e -> startDate == null || e.getEncounterDatetime().after(startDate))
.filter(e-> endDate == null || e.getEncounterDatetime().before(endDate))
.map(immunizationTransformer::build)
.flatMap(Collection::stream)
.collect(Collectors.toList());
Expand Down

0 comments on commit c675cc5

Please sign in to comment.