Skip to content

Commit

Permalink
Kavitha | add null check to get slots for list of patients
Browse files Browse the repository at this point in the history
  • Loading branch information
kavitha-sundararajan committed Feb 22, 2024
1 parent a20a580 commit 22c35bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ public List<PatientMedicationSummary> getSlotsForPatientListByTime(List<String>
List<Slot> slots = slotService.getSlotsForPatientListByTime(patientUuidList, localStartDate, localEndDate);

List<Slot> previousSlots = null;
if (includePreviousSlot == true) {
if (Boolean.TRUE.equals(includePreviousSlot)) {
previousSlots = slotService.getImmediatePreviousSlotsForPatientListByTime(patientUuidList, localStartDate);
}

List<Object[]> slotsDuration = null;
if (includeSlotDuration == true) {
if (Boolean.TRUE.equals(includeSlotDuration)) {
List<Order> orders = slots.stream()
.map(Slot::getOrder)
.filter(order -> order != null)
Expand Down

0 comments on commit 22c35bd

Please sign in to comment.