Java 类ims.core.vo.ServiceLiteVo 实例源码
项目:AvoinApotti
文件:Logic.java
private void populateService(Specialty specialty)
{
form.cmbService().clear();
if (specialty == null)
return;
ServiceLiteVoCollection services = domain.getServicesBySpecialty(specialty);
if (services != null)
{
for (ServiceLiteVo service : services)
{
form.cmbService().newRow(service, service.getServiceName());
}
if (services.size() == 1)
form.cmbService().setValue(services.get(0));
}
}
项目:AvoinApotti
文件:Logic.java
@Override
protected void onQmbServiceTextSubmited(String value) throws PresentationLogicException
{
form.qmbService().clear();
ServiceLiteVoCollection voCollService = domain.listActiveServiceByName(value);
if(voCollService != null)
{
for(ServiceLiteVo voService : voCollService)
form.qmbService().newRow(voService, voService.getServiceName());
if(voCollService.size() == 1)
form.qmbService().setValue(voCollService.get(0));
else if(voCollService.size() > 1)
form.qmbService().showOpened();
else
engine.showErrors(new String[] {"No matching records found"});
}
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:Logic.java
private void addDisciplineInGridDiscipline(ServiceLiteVo serviceLiteVo)
{
if(serviceLiteVo == null)
return;
grdDisciplineRow parentRow = getParentRow(serviceLiteVo);
if(parentRow == null)
return;
grdDisciplineRow newRow = parentRow.getRows().newRow();
newRow.setValue(serviceLiteVo);
newRow.setColumnName(serviceLiteVo.getServiceName());
newRow.setColumnSelect(isDisciplineSelected(serviceLiteVo));
}
项目:AvoinApotti
文件:Logic.java
private boolean isDisciplineSelected(ServiceLiteVo serviceLiteVo)
{
if(serviceLiteVo == null)
return false;
if(form.getGlobalContext().OCRR.getSelectedDisciplines() == null || form.getGlobalContext().OCRR.getSelectedDisciplines().size() == 0)
return false;
for(ServiceLiteVo selected : form.getGlobalContext().OCRR.getSelectedDisciplines())
{
if(selected == null)
continue;
if(selected.equals(serviceLiteVo))
return true;
}
return false;
}
项目:AvoinApotti
文件:Logic.java
private ServiceLiteVoCollection getSelectedDisciplinesFromGridDiscipline()
{
grdDisciplineRowCollection rows = form.grdDiscipline().getRows();
if (rows == null || rows.size() == 0)
return null;
ServiceLiteVoCollection values = new ServiceLiteVoCollection();
for (int i = 0; i < rows.size(); i++)
{
grdDisciplineRow categoryRow = rows.get(i);
for(int j = 0; j<categoryRow.getRows().size(); j++)
{
grdDisciplineRow disciplineRow = categoryRow.getRows().get(j);
if (disciplineRow.getColumnSelect() == true && disciplineRow.getValue() instanceof ServiceLiteVo)
{
values.add((ServiceLiteVo) disciplineRow.getValue());
}
}
}
return values;
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if (disciplines == null)
return;
for (ServiceLiteVo dis : disciplines)
{
if (dis == null)
continue;
if (!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:AvoinApotti
文件:MyOrderQuestionsPopulation.java
private ServiceQuestionAnswerVo createDummyServiceQuaetionAnswerVo(InvestigationOcsQuestionsVo voInvOcs)
{
ServiceQuestionAnswerVo voServiceQuestionAnswer = new ServiceQuestionAnswerVo();
voServiceQuestionAnswer.setService(new ServiceLiteVo());
voServiceQuestionAnswer.getService().setServiceName("No Service");
voServiceQuestionAnswer.getService().setServiceCategory(ServiceCategory.CLINICAL);
voServiceQuestionAnswer.setInvestigationQuestionAnswers(new InvestigationQuestionAnswerVoCollection());
voServiceQuestionAnswer.getInvestigationQuestionAnswers().add(new InvestigationQuestionAnswerVo());
voServiceQuestionAnswer.getInvestigationQuestionAnswers().get(0).setInvestigationQuestionAnswers(new GeneralQuestionAnswerVoCollection());
voServiceQuestionAnswer.getInvestigationQuestionAnswers().get(0).setInvestigation(voInvOcs);
GeneralQuestionAnswerVoCollection voGQAColl = getInvestigationQuestions(voInvOcs);
for( GeneralQuestionAnswerVo voItem : voGQAColl)
voServiceQuestionAnswer.getInvestigationQuestionAnswers().get(0).getInvestigationQuestionAnswers().add(voItem);
return voServiceQuestionAnswer;
}
项目:AvoinApotti
文件:MyOrderQuestionsPopulation.java
private GeneralQuestionAnswerVoCollection getServiceQuestions(ServiceQuestionShortVoCollection serviceConfigQuestions, ServiceLiteVo voServiceLite)
{
GeneralQuestionAnswerVoCollection serviceQuestions = new GeneralQuestionAnswerVoCollection();
for (int i = 0; serviceConfigQuestions != null && i < serviceConfigQuestions.size(); i++)
{
ServiceQuestionShortVo serviceQuestionShortVo = serviceConfigQuestions.get(i);
boolean askedForEveryInvestigation = serviceQuestionShortVo.getAskForInvestigationsIsNotNull() && serviceQuestionShortVo.getAskForInvestigations().booleanValue();
if(askedForEveryInvestigation == false && serviceQuestionShortVo.getService().equals(voServiceLite))
{
GeneralQuestionAnswerVo voGQA = createNewServiceQuestion(serviceQuestionShortVo);
if(voGQA != null)
serviceQuestions.add(voGQA);
}
}
return serviceQuestions;
}
项目:AvoinApotti
文件:NewResultsSearchImpl.java
private String getDisciplineList(ServiceLiteVoCollection disciplines)
{
if (disciplines == null)
return null;
String disciplineList = "";
for (ServiceLiteVo dis : disciplines)
{
if (dis == null)
continue;
disciplineList += disciplineList.length() == 0 ? dis.getID_Service() : "," + dis.getID_Service();
}
return disciplineList;
}
项目:AvoinApotti
文件:PrintOrderImpl.java
@SuppressWarnings("rawtypes")
public ServiceLiteVo getModality(OrderInvestigationRefVo orderInv)
{
if(orderInv == null || orderInv.getID_OrderInvestigation() == null)
throw new CodingRuntimeException("orderInv parameter is null in method getModality");
DomainFactory factory = getDomainFactory();
String hql = "select o2_1.discipline from OrderInvestigation as o1_1 join o1_1.specimen as o2_1 where (o1_1.id = (:ID)) ";
List list = factory.find(hql,new String[] {"ID"},new Object[] {orderInv.getID_OrderInvestigation()});
if(list.size() > 0)
return ServiceLiteVoAssembler.create((Service) list.get(0));
//if current OrderInvestigation doesn't have a specimen we get the modality as follows:
//OrderInvestigation.investigation.providerService.locationService.service
hql = "select l2_1.service from OrderInvestigation as o1_1 left join o1_1.investigation as i1_1 left join i1_1.providerService as l1_1 left join l1_1.locationService as l2_1 left join l2_1.service as s1_1 where (o1_1.id = :ID)";
list = factory.find(hql,new String[] {"ID"},new Object[] {orderInv.getID_OrderInvestigation()});
if(list.size() > 0)
return ServiceLiteVoAssembler.create((Service) list.get(0));
return null;
}
项目:AvoinApotti
文件:PhelbotomyDefaultCollectorImpl.java
public ServiceLiteVo getModality(Integer orderInvId)
{
if(orderInvId == null)
throw new CodingRuntimeException("orderInv parameter is null in method getModality");
DomainFactory factory = getDomainFactory();
String hql = "select o2_1.discipline from OrderInvestigation as o1_1 join o1_1.specimen as o2_1 where (o1_1.id = (:ID)) ";
List list = factory.find(hql,new String[] {"ID"},new Object[] {orderInvId});
if(list.size() > 0)
return ServiceLiteVoAssembler.create((Service) list.get(0));
//if current OrderInvestigation doesn't have a specimen we get the modality as follows:
//OrderInvestigation.investigation.providerService.locationService.service
hql = "select l2_1.service from OrderInvestigation as o1_1 left join o1_1.investigation as i1_1 left join i1_1.providerService as l1_1 left join l1_1.locationService as l2_1 left join l2_1.service as s1_1 where (o1_1.id = :ID)";
list = factory.find(hql,new String[] {"ID"},new Object[] {orderInvId});
if(list.size() > 0)
return ServiceLiteVoAssembler.create((Service) list.get(0));
return null;
}
项目:AvoinApotti
文件:Logic.java
private void populateElectiveListConfigGrid(ServiceLiteVo serviceLite, LocationLiteVo locationLite, String listIdHcp)
{
ElectiveListConfigurationLiteVoCollection collElectiveListConfiguration=null;
collElectiveListConfiguration = domain.listElectiveListConfiguration(serviceLite,locationLite , listIdHcp, null);
if (collElectiveListConfiguration!=null && collElectiveListConfiguration.size()>0)
{
addRowsToGrdElectiveListConfig(collElectiveListConfiguration);
}
else
{
collElectiveListConfiguration = domain.listOtherElectiveListConfiguration(serviceLite,serviceLite!=null ? serviceLite.getSpecialty() : null,listIdHcp, null);
addRowsToGrdElectiveListConfig(collElectiveListConfiguration);
}
}
项目:AvoinApotti
文件:ReferralAppointmentDetailsComponentImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo appt)
{
if (appt == null || appt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment)getDomainFactory().getDomainObject(appt);
if(doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:AvoinApotti
文件:ElectiveListManagementImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo voAppt)
{
if (voAppt == null || voAppt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment)getDomainFactory().getDomainObject(voAppt);
if(doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:AvoinApotti
文件:TheatreListImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo appt)
{
if (appt == null || appt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment) getDomainFactory().getDomainObject(appt);
if (doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:openMAXIMS
文件:ElectiveListManagementImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo voAppt)
{
if (voAppt == null || voAppt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment)getDomainFactory().getDomainObject(voAppt);
if(doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:openMAXIMS
文件:Logic.java
private boolean checkIfParentAlreadyExistsinDynGrid(ServiceLiteVo parent) //WDEV-20181
{
if(parent == null )
return false;
for (int i = 0; i < form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getRows().size(); i++)
{
Object obj = form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getRows().get(i).getValue();
if ((obj != null) && (obj instanceof ServiceLiteVo))
{
ServiceLiteVo serviceVo = (ServiceLiteVo) obj;
if ((serviceVo.getID_ServiceIsNotNull()) && (serviceVo.getID_Service().equals(parent.getID_Service())))
{
return true;
}
}
}
return false;
}
项目:openMAXIMS
文件:Logic.java
private CareSpellRepatriationVo createCareSpell(PatientRefVo patient, PasEventRepatriationVo pasEvent, DateTime startDateTime, HcpLiteVo hcp, LocationRefVo location, ServiceLiteVo service, SourceOfReferral sourceOfReferral)
{
CareSpellRepatriationVo careSpell = new CareSpellRepatriationVo();
careSpell.setPatient(patient);
careSpell.setStartDate(startDateTime.getDate());
careSpell.setEndDate(null);
CareSpellStatusHistoryVo firstStatus = new CareSpellStatusHistoryVo();
firstStatus.setStatus(ProblemGroupStatus.OPEN);
firstStatus.setStatusDateTime(startDateTime);
careSpell.setCurrentStatus(firstStatus);
careSpell.setStatusHistory(new CareSpellStatusHistoryVoCollection());
careSpell.getStatusHistory().add(firstStatus);
careSpell.setEpisodes(new EpisodeOfCareRepatriationVoCollection());
careSpell.getEpisodes().add(createEpisodeOfCare(patient, careSpell, pasEvent, startDateTime, hcp, location, service, sourceOfReferral));
return careSpell;
}
项目:openMAXIMS
文件:Logic.java
private EpisodeOfCareRepatriationVo createEpisodeOfCare(PatientRefVo patient, CareSpellRefVo careSpell, PasEventRepatriationVo pasEvent, DateTime startDateTime, HcpLiteVo hcp, LocationRefVo location, ServiceLiteVo service, SourceOfReferral sourceOfReferral)
{
EpisodeOfCareRepatriationVo episodeOfCare = new EpisodeOfCareRepatriationVo();
episodeOfCare.setCareSpell(careSpell);
episodeOfCare.setResponsibleHCP(hcp);
episodeOfCare.setSpecialty(service != null ? service.getSpecialty() : null);
episodeOfCare.setRelationship(CareSpelltoEpisodeRelationship.PRIMARY);
episodeOfCare.setStartDate(startDateTime.getDate());
episodeOfCare.setEndDate(null);
EpisodeOfCareStatusHistoryVo firstStatus = new EpisodeOfCareStatusHistoryVo();
firstStatus.setStatus(EpisodeOfCareStatus.OPEN);
firstStatus.setStatusDateTime(startDateTime);
episodeOfCare.setCurrentStatus(firstStatus);
episodeOfCare.setStatusHistory(new EpisodeOfCareStatusHistoryVoCollection());
episodeOfCare.getStatusHistory().add(firstStatus);
episodeOfCare.setCareContexts(new CareContextRepatriationVoCollection());
episodeOfCare.getCareContexts().add(createCareContext(patient, episodeOfCare, pasEvent, startDateTime, hcp, location, service, sourceOfReferral));
return episodeOfCare;
}
项目:openMAXIMS
文件:Logic.java
private CareContextRepatriationVo createCareContext(PatientRefVo patient, EpisodeOfCareRefVo episodeOfCare, PasEventRepatriationVo pasEvent, DateTime startDateTime, HcpLiteVo hcp, LocationRefVo location, ServiceLiteVo service, SourceOfReferral sourceOfReferral)
{
CareContextRepatriationVo careContext = new CareContextRepatriationVo();
careContext.setPasEvent(pasEvent);
careContext.setContext(ContextType.REFERRAL);
careContext.setEpisodeOfCare(episodeOfCare);
careContext.setStartDateTime(startDateTime);
careContext.setEndDateTime(null);
careContext.setResponsibleHCP(hcp);
CareContextStatusHistoryVo firstStatus = new CareContextStatusHistoryVo();
firstStatus.setStatus(CareContextStatus.OPEN);
firstStatus.setStatusDateTime(startDateTime);
careContext.setCurrentStatus(firstStatus);
careContext.setStatusHistory(new CareContextStatusHistoryVoCollection());
careContext.getStatusHistory().add(firstStatus);
return careContext;
}
项目:openmaxims-linux
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if(disciplines == null)
return;
for(ServiceLiteVo dis : disciplines)
{
if(dis == null)
continue;
if(!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}
项目:openMAXIMS
文件:Logic.java
private boolean isARequestForServiceAlreadyAddedWithSameServiceAndUrgency(ServiceLiteVo service, ReferralUrgency urgency, LinkedCatsReferralForOutcomeVo currentRecord)
{
LinkedCatsReferralForOutcomeVoCollection collRequestsForServices = domain.listLinkedReferral(form.getLocalContext().getParentCatsReferral(), form.getLocalContext().getAppointmentOutcome(), ReferralRelationType.REQUEST_FOR_SERVICE);
for (int i=0;i<form.grdReqForService().getRows().size(); i++)
{
collRequestsForServices.add(form.grdReqForService().getRows().get(i).getValue());
}
if (collRequestsForServices==null || collRequestsForServices.size()==0)
return false;
if (currentRecord != null && collRequestsForServices.indexOf(currentRecord) != -1)
collRequestsForServices.remove(collRequestsForServices.indexOf(currentRecord));
for (int i=0;i<collRequestsForServices.size();i++)
{
LinkedCatsReferralForOutcomeVo reqForService = collRequestsForServices.get(i);
if (reqForService!=null && reqForService.getReferralIsNotNull() && urgency!=null && service!=null && reqForService.getReferral().getReferralDetailsIsNotNull() && service.equals(reqForService.getReferral().getReferralDetails().getService()) && urgency.equals(reqForService.getReferral().getUrgency()))
{
return true;
}
}
return false;
}
项目:openMAXIMS
文件:Logic.java
private void populateServices(ServiceLiteVoCollection services)
{
form.qmbService().clear();
if (services == null)
return;
for (ServiceLiteVo service : services)
{
form.qmbService().newRow(service, service.getServiceName());
}
if (services.size() == 1)
form.qmbService().setValue(services.get(0));
else
form.qmbService().showOpened();
}
项目:openMAXIMS
文件:Logic.java
private void populateServices(ServiceLiteVoCollection services)
{
form.qmbService().clear();
if (services == null)
return;
for (ServiceLiteVo service : services)
{
form.qmbService().newRow(service, service.getServiceName());
}
if (services.size() == 1)
form.qmbService().setValue(services.get(0));
else
form.qmbService().showOpened();
}
项目:openMAXIMS
文件:Logic.java
private void populateServices(String value)
{
form.qmbService().clear();
if (value == null)
return;
ServiceLiteVoCollection services = domain.listServices(value);
if (services == null)
{
form.qmbService().showOpened();
return;
}
for (ServiceLiteVo serv: services)
{
form.qmbService().newRow(serv, serv.getServiceName());
}
if (services.size() == 1)
{
form.qmbService().setValue(services.get(0));
serviceValueChanged();
}
else
form.qmbService().showOpened();
}
项目:openMAXIMS
文件:Logic.java
private void serviceValueChanged()
{
form.cmbSpecialty().clear();
ServiceLiteVo selectedService = form.qmbService().getValue() ;
if (selectedService != null && selectedService.getSpecialtyIsNotNull())
{
form.cmbSpecialty().newRow(selectedService.getSpecialty(), selectedService.getSpecialty().getText());
form.cmbSpecialty().setValue(selectedService.getSpecialty());
}
form.ccConsultant().clear();
if (form.qmbService().getValue() != null)
{
form.ccConsultant().initializeResponsibleHcp(MosType.MEDIC, null, form.qmbService().getValue(), null);
}
else
{
form.ccConsultant().initialize(MosType.MEDIC);
}
}
项目:openMAXIMS
文件:AcuteTheatreListImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo appt)
{
if (appt == null || appt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment)getDomainFactory().getDomainObject(appt);
if(doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:openMAXIMS
文件:Logic.java
private void populateServices(ServiceLiteVoCollection listServices)
{
form.qmbService().clear();
if (listServices == null)
{
form.qmbService().showOpened();
return;
}
for (ServiceLiteVo service : listServices)
{
form.qmbService().newRow(service, service.getServiceName());
}
if (listServices.size() == 1)
{
form.qmbService().setValue(listServices.get(0));
serviceValueChanged();
}
else
{
form.qmbService().showOpened();
}
}
项目:openMAXIMS
文件:Logic.java
private void populateElectiveListConfigGrid(ServiceLiteVo serviceLite, LocationForTheatreSessionVo locationLite, String listIdHcp)
{
ElectiveListConfigurationLiteVoCollection collElectiveListConfiguration=null;
collElectiveListConfiguration = domain.listElectiveListConfiguration(serviceLite,locationLite , listIdHcp, null);
if (collElectiveListConfiguration!=null && collElectiveListConfiguration.size()>0)
{
addRowsToGrdElectiveListConfig(collElectiveListConfiguration);
}
else
{
collElectiveListConfiguration = domain.listOtherElectiveListConfiguration(serviceLite,serviceLite!=null ? serviceLite.getSpecialty() : null,listIdHcp, null, null);
addRowsToGrdElectiveListConfig(collElectiveListConfiguration);
}
}
项目:openMAXIMS
文件:NewResultsSearchImpl.java
private String getDisciplineList(ServiceLiteVoCollection disciplines)
{
if (disciplines == null)
return null;
String disciplineList = "";
for (ServiceLiteVo dis : disciplines)
{
if (dis == null)
continue;
disciplineList += disciplineList.length() == 0 ? dis.getID_Service() : "," + dis.getID_Service();
}
return disciplineList;
}
项目:openMAXIMS
文件:ElectiveListManagementImpl.java
public TheatreProcedureServiceAndConsultantLiteVo getTheatreServiceProcedureAndConsultant(Booking_AppointmentRefVo voAppt)
{
if (voAppt == null || voAppt.getID_Booking_Appointment() == null)
throw new CodingRuntimeException("appt is null or id not provided in method getTheatreServiceProcedureAndConsultant");
TheatreProcedureServiceAndConsultantLiteVo voPsc = null;
Booking_Appointment doAppt = (Booking_Appointment)getDomainFactory().getDomainObject(voAppt);
if(doAppt != null)
{
ServiceLiteVo voService = ServiceLiteVoAssembler.create(doAppt.getSession() != null ? doAppt.getSession().getService() : null);
ProcedureLiteVo voProc = ProcedureLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getProcedure() : null);
HcpLiteVo voMos = HcpLiteVoAssembler.create(doAppt.getTheatreBooking() != null ? doAppt.getTheatreBooking().getConsultant() : null);
voPsc = new TheatreProcedureServiceAndConsultantLiteVo();
voPsc.setService(voService);
voPsc.setProcedure(voProc);
voPsc.setConsultant(voMos);
}
return voPsc;
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onBtnLinkedAppointmentsClick() throws PresentationLogicException
{
form.getGlobalContext().Scheduling.setLinkedOPA(form.getLocalContext().getSelectedFutureAppointment());
ServiceAndFunctionForFutureApptsVo serviceAndFunction = form.getLocalContext().getServiceAndFunctionForAppt();
ServiceLiteVo service = serviceAndFunction != null ? serviceAndFunction.getService() : null;
ServiceFunction function = serviceAndFunction != null && serviceAndFunction.getFunction() != null ? serviceAndFunction.getFunction().getFunction() : null;
Integer numberOfLinkedAppts = 0;
if (GroupNoLinkedApptsEnumeration.rdo2.equals(form.lyrTabs().tabLinkedOpa().GroupNoLinkedAppts().getValue()))
numberOfLinkedAppts = 2;
else if (GroupNoLinkedApptsEnumeration.rdo3.equals(form.lyrTabs().tabLinkedOpa().GroupNoLinkedAppts().getValue()))
numberOfLinkedAppts = 3;
engine.open(form.getForms().Scheduling.LinkedAppointmentDetails, new Object[] {numberOfLinkedAppts, service , function , form.getMode() , Boolean.TRUE});
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onChkNamedConsultantValueChanged() throws PresentationLogicException
{
uncheckToSeeForOPA(form.lyrTabs().tabOPA().chkNamedConsultant());
ServiceLiteVo service = form.lyrTabs().tabOPA().cmbService().getValue();
if(form.lyrTabs().tabOPA().chkNamedConsultant().getValue())
{
if(form.getLocalContext().getLoggedHCP() != null && service != null)
{
if(Boolean.TRUE.equals(domain.checkIfUserIsResponsibleHcpAndLinkedWithService(form.getLocalContext().getLoggedHCP(), service)))
{
form.lyrTabs().tabOPA().ccNamedConsultant().setValue(form.getLocalContext().getLoggedHCP());
}
}
}
else
{
form.lyrTabs().tabOPA().ccNamedConsultant().clear();
}
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onRadioButtonGroupSameDayValueChanged() throws PresentationLogicException
{
ServiceLiteVo originalService = null;
ServiceFunction originalFunction = null;
if(form.GroupSameService().getValue().equals(GroupSameServiceEnumeration.rdoYes))
{
originalService = form.getLocalContext().getOriginalService();
originalFunction = form.getLocalContext().getOriginalFunction();
}
form.cc1().initialise(form.getGlobalContext().RefMan.getCatsReferral(), true, 1, form.getLocalContext().getOriginalService(), originalFunction, getOtherDayValue(), form.getLocalContext().getCABApptDate(), false, GroupSameServiceEnumeration.rdoYes.equals(form.GroupSameService().getValue()) ? false : true);
form.cc2().initialise(form.getGlobalContext().RefMan.getCatsReferral(), true, 2, originalService, originalFunction, getOtherDayValue(), form.getLocalContext().getCABApptDate(), false, GroupSameServiceEnumeration.rdoYes.equals(form.GroupSameService().getValue()) ? false : true);
form.cc3().initialise(form.getGlobalContext().RefMan.getCatsReferral(), true, 3, originalService, originalFunction, getOtherDayValue(), form.getLocalContext().getCABApptDate(), false, GroupSameServiceEnumeration.rdoYes.equals(form.GroupSameService().getValue()) ? false : true);
updateControlsState();
}
项目:openMAXIMS
文件:Logic.java
private void populateDisciplineGrid(ServiceLiteVoCollection disciplines)
{
form.grdDisciplines().getRows().clear();
if (disciplines == null)
return;
for (ServiceLiteVo dis : disciplines)
{
if (dis == null)
continue;
if (!disciplineIsAdded(dis))
{
grdDisciplinesRow newRow = form.grdDisciplines().getRows().newRow();
newRow.setColDis(dis.getServiceName());
newRow.setValue(dis);
}
}
}