public ChartRequestedVo getChartRequestedByEmergencyAttendance(EmergencyAttendanceRefVo emergencyAttendanceRef) { if (emergencyAttendanceRef == null || emergencyAttendanceRef.getID_EmergencyAttendance() == null) { throw new CodingRuntimeException("Cannot get ChartRequestedVo on null Id for EmergencyAttendance "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select chartReq from ChartRequested as chartReq left join chartReq.emergencyAttendence as emergeAtt where (emergeAtt.id = :emergAttID) "); List<?> list = factory.find(hql.toString(), new String[] { "emergAttID" }, new Object[] { emergencyAttendanceRef.getID_EmergencyAttendance() }); if (list!=null && list.size()>0) { return ChartRequestedVoAssembler.create((ChartRequested) list.get(0)); } return null; }
public void saveAttendance(EmergencyAttendanceBillingVo invoiceBilling, ChartRequestedVo chartRequested, EmergencyAttendanceNonInsuranceHealthCoverVo insuranceDetails) //WDEV-22956 { //WDEV-22956 form.getLocalContext().setInvoiceBillingToSave(invoiceBilling); form.getLocalContext().setChartRequestToSave(chartRequested); form.getLocalContext().setInsuranceDetailsToSave(insuranceDetails); form.getLocalContext().setIsSkippedTriage(null);//WDEV-17248 String[] uiErrors = getUIErrors(); if (uiErrors != null) { engine.showErrors(uiErrors); return; } if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull() && form.getLocalContext().getSelectedRecordIsNotNull()) // wdev-14420 { if (save()) { form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE); form.fireCustomControlValueChanged(); } } else engine.open(form.getForms().Emergency.SendToAreaDialog, new Object[] {Boolean.FALSE}); }
public ChartRequestedVo getChartRequestedByEmergencyAttendance(EmergencyAttendanceRefVo emergencyAttendanceRef) { if (emergencyAttendanceRef == null || emergencyAttendanceRef.getID_EmergencyAttendance() == null) { throw new CodingRuntimeException("Cannot get ChartRequestedVo on null Id for EmergencyAttendance "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select chartReq from ChartRequested as chartReq left join chartReq.emergencyAttendence as emergeAtt where (emergeAtt.id = :emergAttID and (emergeAtt.isRIE is null or emergeAtt.isRIE = 0) ) "); //WDEV-22956 List<?> list = factory.find(hql.toString(), new String[] { "emergAttID" }, new Object[] { emergencyAttendanceRef.getID_EmergencyAttendance() }); if (list!=null && list.size()>0) { return ChartRequestedVoAssembler.create((ChartRequested) list.get(0)); } return null; }
private void populateScreenFromData(ChartRequestedVo chartRequestedVo) { clearScreen(); if (chartRequestedVo==null) return; form.cmbChartRequiredByTriage().setValue(chartRequestedVo.getChartRequiredbyTriage()); form.cmbChartRequestedByReception().setValue(chartRequestedVo.getRequestedbyReception()); form.dtimDateTimeRequested().setValue(chartRequestedVo.getDateTimeRequested()); form.cmbReasonNotRequested().setValue(chartRequestedVo.getReasonnotrequested()); form.cmbChartReceived().setValue(chartRequestedVo.getChartReceived()); form.dtimDateTimeReceived().setValue(chartRequestedVo.getDateTimeReceived()); form.txtComments().setValue(chartRequestedVo.getComment()); }
public ims.emergency.vo.ChartRequestedVo getChartRequested(ims.core.admin.vo.ChartRequestedRefVo chartRequestedRef) { if (chartRequestedRef == null || chartRequestedRef.getID_ChartRequested() == null) { throw new CodingRuntimeException("Cannot get ChartRequestedVo on null Id "); } DomainFactory factory = getDomainFactory(); ChartRequested domainChartRequested = (ChartRequested) factory.getDomainObject(ChartRequested.class, chartRequestedRef.getID_ChartRequested()); return ChartRequestedVoAssembler.create(domainChartRequested); }
public ims.emergency.vo.ChartRequestedVo save(ims.emergency.vo.ChartRequestedVo chartRequestedToSave) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException { if (chartRequestedToSave == null ) { throw new CodingRuntimeException("Cannot get ChartRequestedVo on null Id "); } DomainFactory factory = getDomainFactory(); ChartRequested domainChartRequested = ChartRequestedVoAssembler.extractChartRequested(factory,chartRequestedToSave); factory.save(domainChartRequested); return ChartRequestedVoAssembler.create(domainChartRequested); }
protected void onCcInsuranceDetailsValueChanged() throws PresentationLogicException { if( EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent())) { form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent(); open(); form.getLocalContext().setIsNewAttendanceInstance(null); //WDEV-22801 return; } //WDEV-22956 if (EmergencyAttendanceEvent.FINISH_SAVE.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent())) { form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent(); EmergencyAttendanceBillingVo invoiceBilling = null; if (form.lyrEmergencyAttendance().tabInvoices().isHeaderVisible()) { invoiceBilling = form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getValue(); } ChartRequestedVo chartRequested = null; if (form.lyrEmergencyAttendance().tabChart().isHeaderVisible()) { chartRequested = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getValue(); } EmergencyAttendanceNonInsuranceHealthCoverVo insuranceDetails = form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getValue(); form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().saveAttendance(invoiceBilling, chartRequested, insuranceDetails); } form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent(); FormMode insurancedetailsmode = form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getMode(); form.setMode(insurancedetailsmode); }
public void setValue(ChartRequestedVo chartRequested) { form.getLocalContext().setcurrentChartRequested(chartRequested); populateScreenFromData(form.getLocalContext().getcurrentChartRequested()); }
public ChartRequestedVo getChartRequestedByEmergencyAttendance(EmergencyAttendanceRefVo emergencyAttendanceRef) { IEmergencyHelper impl = (IEmergencyHelper)getDomainImpl(EmergencyHelper.class); return impl.getChartRequestedByEmergencyAttendance(emergencyAttendanceRef); }
public ims.emergency.vo.ChartRequestedVo getChartRequested(ims.core.admin.vo.ChartRequestedRefVo chartRequestedRef) { IEmergencyHelper impl = (IEmergencyHelper)getDomainImpl(EmergencyHelper.class); return impl.getChartRequested(chartRequestedRef); }
@Override //WDEV-16673 protected void onCcChatRequestedValueChanged() throws PresentationLogicException { if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent())) //WDEV-22801 { form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent(); if (!form.lyrEmergencyAttendance().tabInsuranceDetails().isHeaderVisible()) //WDEV-22901 { form.getLocalContext().setIsNewAttendanceInstance(null); } //WDEV-22801 if (Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendanceInstance())) { if (form.lyrEmergencyAttendance().tabInsuranceDetails().isHeaderVisible()) { form.lyrEmergencyAttendance().showtabInsuranceDetails(); form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().newInstance(false); //WDEV-22956 } } else { open(); } return; } else if (EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent())) //WDEV-22801 { form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent(); open(); form.getLocalContext().setIsNewAttendanceInstance(null); return; } //WDEV-22956 if (EmergencyAttendanceEvent.NEXT.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent()) && form.lyrEmergencyAttendance().tabInsuranceDetails().isHeaderVisible()) { form.lyrEmergencyAttendance().showtabInsuranceDetails(); form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().newInstance(true); } if (EmergencyAttendanceEvent.FINISH_SAVE.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent())) { form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent(); EmergencyAttendanceBillingVo invoiceBilling = null; if (form.lyrEmergencyAttendance().tabInvoices().isHeaderVisible()) { invoiceBilling = form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getValue(); } ChartRequestedVo chartRequested = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getValue(); form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().saveAttendance(invoiceBilling, chartRequested, null); } form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent(); FormMode chartReqMode = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getMode(); form.setMode(chartReqMode); }
public ChartRequestedVo getValue() { return populateDataFromScreen(form.getLocalContext().getcurrentChartRequested()); }
public ChartRequestedVo getChartRequestedByEmergencyAttendance(EmergencyAttendanceRefVo emergencyEpisodeRef);
public ims.emergency.vo.ChartRequestedVo getChartRequested(ims.core.admin.vo.ChartRequestedRefVo chartRequestedRef);