use of uk.gov.hscic.model.appointment.ScheduleDetail in project gpconnect-demonstrator by nhsconnect.
the class ScheduleResourceProvider method getSchedulesForLocationId.
public List<Schedule> getSchedulesForLocationId(String locationId, Date startDateTime, Date endDateTime) {
ArrayList<Schedule> schedules = new ArrayList<>();
List<ScheduleDetail> scheduleDetails = scheduleSearch.findScheduleForLocationId(Long.valueOf(locationId), startDateTime, endDateTime);
if (scheduleDetails != null && !scheduleDetails.isEmpty()) {
for (ScheduleDetail scheduleDetail : scheduleDetails) {
schedules.add(scheduleDetailToScheduleResourceConverter(scheduleDetail));
}
}
return schedules;
}
Aggregations