private PatientProcedureVo getInstantiatedProcedure(ProcedureListVo procedure, Specialty specialty, PatientProcedureVoCollection list) { if(list == null) return null; for (int i = 0; i < list.size(); i++) { if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getProcedure().getID_Procedure())) return list.get(i); } return null; }
private grdChecklistRow findProcedureRow(ProcedureListVo vo) { GenForm.grdChecklistRow row = null; for (int i=0; i < form.grdChecklist().getRows().size(); i++) { if (form.grdChecklist().getRows().get(i).getColProcedure() != null && form.grdChecklist().getRows().get(i).getColProcedure().equals(vo.getProcedure().getProcedureName())) { row = form.grdChecklist().getRows().get(i); break; } } return row; }