private VTERiskAssessmentShortVo getVTEAssess(VTERiskAssessmentVo voVTERiskAss , VTERiskAssessmentShortVoCollection temVoColl) { if(temVoColl == null) return null; for(int i = 0; i < temVoColl.size();i++) { if(temVoColl.get(i) != null && voVTERiskAss != null) { if(voVTERiskAss.getID_VTERiskAssessmentIsNotNull() && temVoColl.get(i).getID_VTERiskAssessmentIsNotNull() && voVTERiskAss.getID_VTERiskAssessment().equals( temVoColl.get(i).getID_VTERiskAssessment())) return temVoColl.get(i); } } return null; }
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVo( InpatientEpisodeRefVo inpatEpRef) { if(inpatEpRef == null) return null; DomainFactory factory = getDomainFactory(); List vteriskassess = factory.find("select v1_1 from InpatientEpisode as i1_1 left join i1_1.vTERiskAssessment as v1_1 where( i1_1.id = :idInpatEp )", new String[] {"idInpatEp"}, new Object[] {inpatEpRef.getID_InpatientEpisode()}); if( vteriskassess != null && vteriskassess.size() > 0 ) { VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess); if ( tempColl != null && tempColl.size() > 0) return tempColl.get(0); } return null; }
public VTERiskAssessmentShortVo getVTERiskAssessmentShortByDischargeEpisode(DischargedEpisodeRefVo dischargeRef) { if(dischargeRef == null) return null; DomainFactory factory = getDomainFactory(); List<?> vteriskassess = factory.find("select v1_1 from DischargedEpisode as dis left join dis.vTERiskAssessment as vte where( dis.id = :idDisEp )", new String[] {"idDisEp"}, new Object[] {dischargeRef.getID_DischargedEpisode()}); if( vteriskassess != null && vteriskassess.size() > 0 ) { VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess); if ( tempColl != null && tempColl.size() > 0) return tempColl.get(0); } return null; }
public VTERiskAssessmentShortVo getValidPreOpVteFromPatientSummaryForValidation(PatientRefVo patientRef) { ims.framework.utils.Date today = new ims.framework.utils.Date(); VTEAssessmentConfigVo vteConfig = getVteConfig(); if (vteConfig != null && vteConfig.getPreOpAssessmentValidPeriod() != null) { today.addDay(-1*vteConfig.getPreOpAssessmentValidPeriod()); } List list = getDomainFactory().find("select preOpVte from PatientSummaryRecord as summaryRecord left join summaryRecord.patient as pat left join summaryRecord.preOpVTEAssessment as preOpVte where pat.id = :patientID and " + " (preOpVte.isRIE is null or preOpVte.isRIE = 0) and summaryRecord.preOpVTECompletedDate >= :invalidDate and summaryRecord.preOpVTEValidationDate is null", new String[] {"patientID", "invalidDate"}, new Object[] {patientRef.getID_Patient(), today.getDate()}); if (list == null || list.size() == 0 || list.get(0) == null) return null; return VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(list).get(0); }
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk) { form.recbrVTEAssessment().clear(); if(collVTERisk == null) return; for(int i=0; i<collVTERisk.size(); i++) { VTERiskAssessmentShortVo voVTERiskAssShort = collVTERisk.get(i); if(voVTERiskAssShort != null) { String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():""; String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():""; if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment())) { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ,Color.Green); } //WDEV-15414 else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment())) { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ,Color.Green); } else { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ); } } } }
public ims.clinical.vo.VTERiskAssessmentShortVo getVTERiskAssessmentShortVo(ims.core.clinical.vo.VTERiskAssessmentRefVo vTERiskRef) { if(vTERiskRef == null) return null; DomainFactory factory = getDomainFactory(); return VTERiskAssessmentShortVoAssembler.create((VTERiskAssessment)factory.getDomainObject(VTERiskAssessment.class, vTERiskRef.getID_VTERiskAssessment())); }
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk) { form.recbrVTEAssessment().clear(); if(collVTERisk == null) return; for(int i=0; i<collVTERisk.size(); i++) { VTERiskAssessmentShortVo voVTERiskAssShort = collVTERisk.get(i); if(voVTERiskAssShort != null) { String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():""; String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():""; if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment())) { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ,Color.Green); form.recbrVTEAssessment().setValue(voVTERiskAssShort); } //WDEV-15414 else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment())) { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ,Color.Green); form.recbrVTEAssessment().setValue(voVTERiskAssShort); } else { form.recbrVTEAssessment().newRow(voVTERiskAssShort, strDateTime + strUserName ); } } } }
protected void onBtnVTERiskAssesssmentClick() throws PresentationLogicException { form.getGlobalContext().Core.setInpatientEpisodeForVTERiskAssessmentWorklistVo(domain.getVTERiskAssessmentWorklistById(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo())); InpatientEpisodeForVTERiskAsessmentVo tempVo = domain.getInpatEpisodeForVTERiskAssessment(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo()); //wdev-14858 form.getGlobalContext().Core.setCreateVTERiskAssessmentOnDischarge(Boolean.TRUE); if( tempVo == null ) { if( form.getGlobalContext().Core.getVTERiskAssessmentShortVoIsNotNull() && form.getGlobalContext().Core.getInpatientEpisodeForVTERiskAssessmentWorklistVoIsNotNull()) //WDEV-16200 { form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.VIEW}); } else { form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(null); form.getGlobalContext().Core.setVTERiskAssessmentShortVo(new VTERiskAssessmentShortVo()); if (form.getGlobalContext().Core.getDischargeEpisodeBedInfoIsNotNull()) //WDEV-16200 { if (form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getPasEventIsNotNull()) { form.getGlobalContext().Core.setDischargeEpisodeBedInfo(domain.getDischargedEpisodeADT(form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getPasEvent())); } if (VTEAsessmentStatus.REQUIRED.equals(form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getVTEAssessmentStatus())) { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.EDIT }); } else { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.VIEW }); } } else { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.VIEW }); } } } else if(tempVo.getVTERiskAssessment() == null) { form.getGlobalContext().Core.setVTERiskAssessmentShortVo(null); form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.VIEW}); } else if( tempVo != null && tempVo.getVTERiskAssessmentIsNotNull()) { form.getGlobalContext().Core.setVTERiskAssessmentShortVo(null); form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.VIEW}); } }
protected void onBtnVTERiskAssesssmentClick() throws PresentationLogicException { form.getGlobalContext().Core.setInpatientEpisodeForVTERiskAssessmentWorklistVo(domain.getVTEForInpatient(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo())); InpatientEpisodeForVTERiskAsessmentVo tempVo = domain.getInpatEpisodeForVTERiskAssessment(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo()); //wdev-14858 form.getGlobalContext().Core.setCreateVTERiskAssessmentOnDischarge(Boolean.TRUE); if( tempVo == null ) { if( form.getGlobalContext().Core.getVTERiskAssessmentShortVoIsNotNull() && form.getGlobalContext().Core.getInpatientEpisodeForVTERiskAssessmentWorklistVoIsNotNull()) //WDEV-16200 { form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.VIEW}); } else { form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(null); form.getGlobalContext().Core.setVTERiskAssessmentShortVo(new VTERiskAssessmentShortVo()); if (form.getGlobalContext().Core.getDischargeEpisodeBedInfoIsNotNull()) //WDEV-16200 { if (form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getPasEventIsNotNull()) { form.getGlobalContext().Core.setDischargeEpisodeBedInfo(domain.getDischargedEpisodeADT(form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getPasEvent())); } if (VTEAsessmentStatus.REQUIRED.equals(form.getGlobalContext().Core.getDischargeEpisodeBedInfo().getVTEAssessmentStatus())) { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.EDIT }); } else { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.VIEW }); } } else { engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] { FormMode.VIEW }); } } } else if(tempVo.getVTERiskAssessment() == null && VTEAsessmentStatus.REQUIRED.equals(tempVo.getVTEAssessmentStatus())) //WDEV-22218 { form.getGlobalContext().Core.setVTERiskAssessmentShortVo(null); form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.EDIT}); } else if( tempVo != null && tempVo.getVTERiskAssessmentIsNotNull()) { form.getGlobalContext().Core.setVTERiskAssessmentShortVo(null); form.getGlobalContext().Core.setEditVTERiskAssessmentFromInpatientEpisode(true); engine.open(form.getForms().Clinical.VTERiskAssessmentDialog, new Object[] {FormMode.VIEW}); } }
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVoBYId( VTERiskAssessmentRefVo vTERef) { if(vTERef == null || vTERef.getID_VTERiskAssessment() == null) //wdev-14944 return null; DomainFactory factory = getDomainFactory(); VTERiskAssessment doVTERiskAssessment =(VTERiskAssessment) factory.getDomainObject(VTERiskAssessment.class, vTERef.getID_VTERiskAssessment()); return VTERiskAssessmentShortVoAssembler.create(doVTERiskAssessment); }