private void gridProcedureSelChange() { // PatientProcedureShortListVo voPatientProcedureShortList = form.grdProcedure().getValue(); PatientProcedureShortListVo voPatientProcedureShortList = (PatientProcedureShortListVo) form.dyngrdProcedure().getValue(); if (voPatientProcedureShortList == null) { engine.showMessage("Please select a Planned Procedure"); return; } PatientProcedureVo voPatProc = domain.getProcedure(voPatientProcedureShortList); form.getLocalContext().setPatientProcedureVo(voPatProc); form.getGlobalContext().Clinical.setPatientProcedureForIntraOperativeDialog(voPatProc); selectIntraOperativeRecords(voPatProc); populateScreenFromData(voPatProc); enableContextMenu(); }
protected void viewAssociations() { DynamicGridRow row = form.dyngrdProcedure().getSelectedRow(); if (row == null) throw new CodingRuntimeException("No row selected"); DynamicGridCell cell = row.getCells().get(getColByIdentifier(COL_ASSOCS)); if ((cell != null) && (cell.getColumn().equals(getColumn(COL_ASSOCS))) && (cell.getRow() != null) && (cell.getRow().getValue() != null)) { form.getGlobalContext().Clinical.setClinicalDIassociationsFormMode(FormMode.VIEW); form.getGlobalContext().Clinical.PatientSummary.setPrimaryAssociation((PatientProcedureShortListVo) cell.getRow().getValue()); engine.open(form.getForms().Clinical.ClinicalDiAssociations); } }
private boolean isProcedure(ValueObject primary) { return primary instanceof PatientProcedureShortVo || primary instanceof PatientProcedureShortListVo; }