diff --git a/omod/src/main/java/org/openmrs/module/ipd/service/impl/IPDScheduleServiceImpl.java b/omod/src/main/java/org/openmrs/module/ipd/service/impl/IPDScheduleServiceImpl.java index 89fefc9..3e07ce7 100644 --- a/omod/src/main/java/org/openmrs/module/ipd/service/impl/IPDScheduleServiceImpl.java +++ b/omod/src/main/java/org/openmrs/module/ipd/service/impl/IPDScheduleServiceImpl.java @@ -193,7 +193,7 @@ private List groupSlotsByMedicationsAndPatients(List prescribedOrderSlotsSummaryList = entry.getValue().entrySet().stream() - .filter(subEntry -> subEntry.getKey() != null) + .filter(subEntry -> subEntry.getKey() != null && !subEntry.getKey().equals("emergencyMedications")) .map(subEntry -> { PrescribedOrderSlotSummary prescribedOrderSlotSummary = new PrescribedOrderSlotSummary(); prescribedOrderSlotSummary.setOrderUuid(subEntry.getKey());