private void addRowToPlannedPerformedProcedureRow(PatientProcedureForSurgicalAuditPreOpChecksVo tempVo ,Boolean action) { if( tempVo != null) { grdPlannedPerformedProcedureRow row = form.grdPlannedPerformedProcedure().getRows().newRow(); row.setColumnProcedureName(tempVo.getProcedureDescription()); row.setTooltipForColumnProcedureName(tempVo.getProcedureDescription()); row.setColumnProcedureStatus(tempVo.getProcedureStatusIsNotNull() ? tempVo.getProcedureStatus().toString():null); row.setTooltipForColumnProcedureStatus(tempVo.getProcedureStatusIsNotNull() ? tempVo.getProcedureStatus().toString():null); row.setColumnConsultatntName((tempVo.getConsultantIsNotNull() && tempVo.getConsultant().getMosIsNotNull() && tempVo.getConsultant().getMos().getNameIsNotNull()) ? tempVo.getConsultant().getMos().getName().toString():""); row.setTooltipForColumnConsultatntName((tempVo.getConsultantIsNotNull() && tempVo.getConsultant().getMosIsNotNull() && tempVo.getConsultant().getMos().getNameIsNotNull()) ? tempVo.getConsultant().getMos().getName().toString():""); row.setColumnSurgeon(tempVo.getPeformedByIsNotNull() && tempVo.getPeformedBy().getMosIsNotNull() && tempVo.getPeformedBy().getMos().getNameIsNotNull() ? tempVo.getPeformedBy().getMos().getName().toString():""); row.setTooltipForColumnSurgeon(tempVo.getPeformedByIsNotNull() && tempVo.getPeformedBy().getMosIsNotNull() && tempVo.getPeformedBy().getMos().getNameIsNotNull() ? tempVo.getPeformedBy().getMos().getName().toString():""); tempVo.setIsSaved(action); row.setValue(tempVo); } }
@Override protected void onGrdPlannedProceduresGridCheckBoxClicked(int column, grdPlannedProceduresRow row, boolean isChecked) throws PresentationLogicException { PatientProcedureForSurgicalAuditPreOpChecksVo tempvo1 = row.getValue(); tempvo1.setIsPrimary(row.getcolPrimary()); for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++) { grdPlannedProceduresRow row1 = form.grdPlannedProcedures().getRows().get(i); if (!row1.getValue().equals(row.getValue()) && row1.getcolPrimary() == true) { row1.setcolPrimary(false); PatientProcedureForSurgicalAuditPreOpChecksVo tempvo = row1.getValue(); tempvo.setIsPrimary(false); row1.setValue(tempvo); } } }
private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record) { PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record); if (collProcedure == null) return; if( collProcedure.size() > 0) { for(int i = 0; i < collProcedure.size();i++) { PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i); if( tempVo != null) { grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow(); row.setColumnProcedures(tempVo.getProcedureDescription()); row.setTooltipForColumnProcedures(tempVo.getProcedureDescription()); row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE); row.setValue(tempVo); } } } }
protected void onGrdPlannedProceduresGridCheckBoxClicked(int column, grdPlannedProceduresRow row, boolean isChecked) throws PresentationLogicException { PatientProcedureForSurgicalAuditPreOpChecksVo tempvo1 = row.getValue(); tempvo1.setIsPrimary(row.getColumnPrimary()); for(int i = 0;i < form.grdPlannedProcedures().getRows().size();i++) { grdPlannedProceduresRow row1 = form.grdPlannedProcedures().getRows().get(i); if(!row1.getValue().equals(row.getValue()) && row1.getColumnPrimary() == true) { row1.setColumnPrimary(false); PatientProcedureForSurgicalAuditPreOpChecksVo tempvo = row1.getValue(); tempvo.setIsPrimary(false); row1.setValue(tempvo); } } }
boolean isPerformedOrCancelled(PatientProcedureForSurgicalAuditPreOpChecksVo patproc ) { if( PatientProcedureStatus.PERFORMED.equals(patproc.getProcedureStatus()) || PatientProcedureStatus.CANCELLED.equals(patproc.getProcedureStatus())) return true; else return false; }
private void populateProceduresGrid(PatientProcedureForSurgicalAuditPreOpChecksVoCollection recordColl) { if( recordColl == null || recordColl.size() == 0 ) return; for(int i = 0; i < recordColl.size();i++) { PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = recordColl.get(i); addRowToPlannedPerformedProcedureRow(tempVo,Boolean.TRUE); } }
private PatientProcedureForSurgicalAuditPreOpChecksVo getPatientProcedureMarkedAsPrimary() { for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++) { if (form.grdPlannedProcedures().getRows().get(i).getcolPrimary() == true) { return form.grdPlannedProcedures().getRows().get(i).getValue(); } } return null; }
private void addRowToProcedureGrid(PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedure, Boolean action) { if (patientProcedure == null) return; grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow(); row.setcolListOfProc(patientProcedure.getProcedureDescription()); row.setTooltipForcolListOfProc(patientProcedure.getProcedureDescription()); row.setcolPrimary(patientProcedure.getIsPrimary()); patientProcedure.setIsSaved(action); //wdev-15831 row.setValue(patientProcedure); }
private void updateRowToProcedureGrid(PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedure ,Boolean action) //wdev-15831 { PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedureTemp; //wdev-15831 grdPlannedProceduresRow row = form.grdPlannedProcedures().getSelectedRow(); patientProcedureTemp = row.getValue(); if( patientProcedureTemp != null && !Boolean.TRUE.equals(patientProcedureTemp.getIsSaved())) patientProcedure.setIsSaved(action); //wdev-15831 row.setcolListOfProc(patientProcedure.getProcedureDescription()); row.setTooltipForcolListOfProc(patientProcedure.getProcedureDescription()); row.setcolPrimary(patientProcedure.getIsPrimary()); row.setValue(patientProcedure); }
private void populateScreenFromData(PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedure) { if(patientProcedure == null) return; form.ccProcedure().setValue(patientProcedure); form.ccProcedure().setParentEditing(true); if(patientProcedure.getConsultantIsNotNull()) { form.ccConsultantName().setValue(domain.getMedicVo(patientProcedure.getConsultant())); } if( patientProcedure.getPeformedByIsNotNull()) { //WDEV-15687 //form.ccSurgeon().setValue(domain.getMedicVo(patientProcedure.getPeformedBy())); MedicLiteVo surgeon = domain.getMedicLiteVo(patientProcedure.getPeformedBy()); if (form.cmbSurgeon().getValues().contains(surgeon)) form.cmbSurgeon().setValue(domain.getMedicLiteVo(patientProcedure.getPeformedBy())); else { form.cmbSurgeon().newRow(surgeon, surgeon.getName().toString()); form.cmbSurgeon().setValue(surgeon); } } /*if( patientProcedure.getProcedureStatusIsNotNull() && patientProcedure.getProcedureStatus().equals(PatientProcedureStatus.CANCELLED)) form.GroupStaus().setValue(GroupStausEnumeration.rdoStatusCancelled); else if( patientProcedure.getProcedureStatusIsNotNull() && patientProcedure.getProcedureStatus().equals(PatientProcedureStatus.PERFORMED)) form.GroupStaus().setValue(GroupStausEnumeration.rdoStatusPerformed); */ //check if "Set Status to Performed" option was selected if( Boolean.FALSE.equals(form.getGlobalContext().Clinical.getSurgicalAuditAddEditActualPlannedProcedure()) ) //wdev-15739 { form.GroupStaus().setValue(GroupStausEnumeration.rdoStatusPerformed); enableDisablePerformedCancelledRadioButtons(false); form.ccProcedure().setEnabled(false); radioButtonGroupStausValueChanged(); } }
private void populateScreenFromData(PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedure) { if(patientProcedure == null) return; form.ccProcedure().setValue(patientProcedure); form.ccProcedure().setParentEditing(true); form.chkPrimary().setValue(patientProcedure.getIsPrimary()); }
private boolean save() { PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedureToSave =null; if (form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit() != null) patientProcedureToSave = populateDataFromScreen((PatientProcedureForSurgicalAuditPreOpChecksVo)form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit().clone()); else patientProcedureToSave = populateDataFromScreen(null); //String[] errors = patientProcedureToSave.validate(validateUIRules()); String[] errors = patientProcedureToSave.validate(); if(errors != null && errors.length > 0) { engine.showErrors(errors); return false; } form.getGlobalContext().Clinical.setSelectedPatientProcedureFromSurgicalAudit(patientProcedureToSave); /* try { form.getGlobalContext().Clinical.setSelectedPatientProcedureFromSurgicalAudit(domain.save(patientProcedureToSave)); } catch (StaleObjectException e) { engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); engine.close(DialogResult.ABORT); return false; } */ return true; }
private void updateRowToProcedureGrid(PatientProcedureForSurgicalAuditPreOpChecksVo patientProcedure) { grdPlannedProceduresRow row = form.grdPlannedProcedures().getSelectedRow(); row.setColumnProcedures(patientProcedure.getProcedureDescription()); row.setTooltipForColumnProcedures(patientProcedure.getProcedureDescription()); row.setColumnPrimary(patientProcedure.getIsPrimary()); row.setValue(patientProcedure); }
private PatientProcedureForSurgicalAuditPreOpChecksVo getPatientProcedureMarkedAsPrimary() { for (int i=0;i<form.grdPlannedProcedures().getRows().size();i++) { if (form.grdPlannedProcedures().getRows().get(i).getColumnPrimary()== true) { return form.grdPlannedProcedures().getRows().get(i).getValue(); } } return null; }