private void populateOtherDiagnosisControls(PatientAbsentDiagnosisVoCollection otherDiagnoses) { for (int i=0; i < otherDiagnoses.size(); i++) { PatientAbsentDiagnosisVo voPatientAbsentDiagnosis = otherDiagnoses.get(i); GenForm.grdChecklistRow row = form.grdChecklist().getRows().newRow(); if (voPatientAbsentDiagnosis.getDiagnosisIsNotNull()) { row.setColDiagnosis(voPatientAbsentDiagnosis.getDiagnosis().getDiagnosisName()); row.setTooltipForColDiagnosis(voPatientAbsentDiagnosis.getDiagnosis().getDiagnosisName()); } if(voPatientAbsentDiagnosis.getStatusIsNotNull()) row.setColSelect(voPatientAbsentDiagnosis.getStatus()); if(voPatientAbsentDiagnosis.getSourceofInformationIsNotNull()) row.setColSource(voPatientAbsentDiagnosis.getSourceofInformation()); row.setValue(voPatientAbsentDiagnosis); setGridUIForAbsent(row); } }
private PatientAbsentDiagnosisVo populateAbsentDiagnosisData(grdChecklistRow row) { PatientAbsentDiagnosisVo voPatientAbsentDiagnosis = new PatientAbsentDiagnosisVo(); DiagLiteVo diagnosis = null; if (row.getValue() != null) { if (row.getValue() instanceof PatientDiagnosisVo) { diagnosis = (((PatientDiagnosisVo)row.getValue()).getDiagnosis()); } else if (row.getValue() instanceof PatientAbsentDiagnosisVo) { diagnosis = (((PatientAbsentDiagnosisVo)row.getValue()).getDiagnosis()); } else if (row.getValue() instanceof DiagLiteVo) { diagnosis =((DiagLiteVo) row.getValue()); } } voPatientAbsentDiagnosis.setDiagnosis(diagnosis); voPatientAbsentDiagnosis.setStatus(row.getColSelect()); voPatientAbsentDiagnosis.setSourceofInformation(row.getColSource()); return voPatientAbsentDiagnosis; }