@Seed(version = "5.0", priority = 4) public void migrateProviders() { List<Provider> providerList = providerService.getAll(); for (Provider provider : providerList) { providerReportingService.reportProvider(provider); } }
private void setupDashboardModel(Model uiModel, HttpServletRequest request, Patient patient) { PhaseStartDates phaseStartDates = new PhaseStartDates(patient); Treatment currentTreatment = patient.getCurrentTherapy().getCurrentTreatment(); Provider provider = providerService.findByProviderId(currentTreatment.getProviderId()); uiModel.addAttribute("patient", patientInfoMapper.map(patient, provider)); uiModel.addAttribute("phaseStartDates", phaseStartDates); uiModel.addAttribute("today", WHPDate.date(today()).value()); uiModel.addAttribute("cmfAdminRemarks", patientService.getCmfAdminRemarks(patient)); uiModel.addAttribute("providerRemarks", providerRemarksService.getRemarks(patient)); String messages = in(WHPConstants.NOTIFICATION_MESSAGE, request); if (isNotEmpty(messages)) { uiModel.addAttribute(WHPConstants.NOTIFICATION_MESSAGE, messages); } }