private void bindCmbProviderSystem() { ProviderSystemLiteVoCollection providerSystems = domain.listProviderSystems(); if (providerSystems!=null) { for (ProviderSystemLiteVo providerSystemLiteVo : providerSystems) { form.cmbProviderSystem().newRow(providerSystemLiteVo, providerSystemLiteVo.getSystemName()); } } }
private void initializeOutBoundTab() { form.lyrHL7().tabDemographicFeed().dtimStart().setValue(new DateTime(new Date(), new Time()).addHours(-1)); form.lyrHL7().tabDemographicFeed().dtimEnd().setValue(new DateTime(new Date(), new Time())); ProviderSystemLiteVoCollection providerSystems = domain.listProviderSystems(); if (providerSystems!=null) { for (ProviderSystemLiteVo providerSystemLiteVo : providerSystems) { form.lyrHL7().tabDemographicFeed().cmbProviderSystem().newRow(providerSystemLiteVo, providerSystemLiteVo.getSystemName()); } } }
private boolean isSafetyQuestionnaireCompleted(Sch_BookingVo voBooking) { // Check booking parameter if (voBooking == null || voBooking.getAppointments() == null || voBooking.getAppointments().size() == 0) throw new CodingRuntimeException( "Can not check safety questionnaire for null record."); // Check if booking has OrderInvestigation associated if (voBooking.getAppointments().get(0).getOrderInvestigationIsNotNull()) { OrderInvestigationBookingVo investigation = voBooking .getAppointments().get(0).getOrderInvestigation(); // If the investigation hasn't a provider system then terminate // function and allow to proceed with booking if (investigation == null || investigation.getInvestigation() == null || investigation.getInvestigation().getProviderService() == null || investigation.getInvestigation().getProviderService() .getProviderSystem() == null) return true; ProviderSystemLiteVo providerSystem = investigation .getInvestigation().getProviderService() .getProviderSystem(); // If the investigation provider system has 'Send Questionnaire' // marked as true - then check if the CATS Referral has Safety // Questionnaire completed if (Boolean.TRUE.equals(providerSystem.getSendQuestionnaire())) { LocationServiceLiteVo locationService = investigation .getInvestigation().getProviderService() .getLocationService(); // Check if a service can be reached // WDEV-14580 - Services no longer require to have a speciality if (locationService == null || locationService.getService() == null) return false; // Check if the referral has no documents if (Boolean.TRUE.equals(domain.hasSafetyQuestionnarie( form.getGlobalContext().RefMan.getCatsReferral(), locationService.getService()))) return true; // If the safety questionnaire is required but not found - stop // the booking process return false; } } // Allow booking - can reach this case when safety questionnaire is not // required return true; }
private boolean isSafetyQuestionnaireCompleted(Sch_BookingVo voBooking) { // Check booking parameter if (voBooking == null || voBooking.getAppointments() == null || voBooking.getAppointments().size() == 0) throw new CodingRuntimeException("Can not check safety questionnaire for null record."); // Check if booking has OrderInvestigation associated if (voBooking.getAppointments().get(0).getOrderInvestigationIsNotNull()) { OrderInvestigationBookingVo investigation = voBooking.getAppointments().get(0).getOrderInvestigation(); // If the investigation hasn't a provider system then terminate // function and allow to proceed with booking if (investigation == null || investigation.getInvestigation() == null || investigation.getInvestigation().getProviderService() == null || investigation.getInvestigation().getProviderService().getProviderSystem() == null) return true; ProviderSystemLiteVo providerSystem = investigation.getInvestigation().getProviderService().getProviderSystem(); // If the investigation provider system has 'Send Questionnaire' // marked as true - then check if the CATS Referral has Safety // Questionnaire completed if (Boolean.TRUE.equals(providerSystem.getSendQuestionnaire())) { LocationServiceLiteVo locationService = investigation.getInvestigation().getProviderService().getLocationService(); // Check if a service can be reached // WDEV-14580 - Services no longer require to have a speciality if (locationService == null || locationService.getService() == null) return false; // Check if the referral has no documents if (Boolean.TRUE.equals(domain.hasSafetyQuestionnarie(form.getGlobalContext().RefMan.getCatsReferral(), locationService.getService()))) return true; // If the safety questionnaire is required but not found - stop // the booking process return false; } } // Allow booking - can reach this case when safety questionnaire is not // required return true; }