Skip to content

Commit

Permalink
Abi | fix. method name based on functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
abinaya-u committed Jan 8, 2024
1 parent fcf6cfe commit ba49841
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ public interface SlotService extends OpenmrsService {

List<Slot> getSlotsByPatientAndVisitAndServiceType(Reference subject, Visit visit, Concept serviceType);

List<Slot> getSlotsBySubjectReferenceIdAndForTheGivenTimeFrameAndServiceType(Reference reference, LocalDateTime localStartDate, LocalDateTime localEndDate);
List<Slot> getSlotsBySubjectReferenceIdAndForTheGivenTimeFrame(Reference reference, LocalDateTime localStartDate, LocalDateTime localEndDate);
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public List<Slot> getSlotsByPatientAndVisitAndServiceType(Reference subject, Vis
return slotDAO.getSlotsByPatientAndVisitAndServiceType(subject, visit, serviceType);
}
@Override
public List<Slot> getSlotsBySubjectReferenceIdAndForTheGivenTimeFrameAndServiceType(Reference subject, LocalDateTime localStartDate, LocalDateTime localEndDate) {
public List<Slot> getSlotsBySubjectReferenceIdAndForTheGivenTimeFrame(Reference subject, LocalDateTime localStartDate, LocalDateTime localEndDate) {
return slotDAO.getSlotsBySubjectReferenceIdAndForTheGivenTimeFrame(subject, localStartDate, localEndDate);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.*;
import java.util.stream.Collectors;

import static org.openmrs.module.ipd.api.model.Slot.SlotStatus.SCHEDULED;

Expand Down Expand Up @@ -120,6 +119,6 @@ public List<Slot> getMedicationSlotsForTheGivenTimeFrame(String patientUuid, Loc
Optional<Reference> subjectReference = referenceService.getReferenceByTypeAndTargetUUID(Patient.class.getTypeName(), patientUuid);
if(!subjectReference.isPresent())
return Collections.emptyList();
return slotService.getSlotsBySubjectReferenceIdAndForTheGivenTimeFrameAndServiceType(subjectReference.get(), localStartDate,localEndDate);
return slotService.getSlotsBySubjectReferenceIdAndForTheGivenTimeFrame(subjectReference.get(), localStartDate,localEndDate);
}
}

0 comments on commit ba49841

Please sign in to comment.