/** * Called when a patient context change has been requested. * * @param silent = If true, user interaction is not permitted. */ @Override public String pending(boolean silent) { if (modified && !warned) { if (silent || !PromptDialog.confirm(TX_PROMPT)) { return "Vital entry in progress."; } } return null; }
/** * Delete this and all remaining notifications. */ public void onClick$btnDeleteAll() { if (PromptDialog.confirm(StrUtil.formatMessage("@vistanotification.viewer.delete.all.confirm.prompt"))) { onAction(Action.DELETE_ALL); } }
/** * Delete the selected scheduled notification. */ public void onClick$btnDelete() { if (PromptDialog.confirm("@vistanotification.scheduling.delete.confirm.prompt")) { service.deleteScheduledNotification(getSelected()); } }
/** * Disallow a patient context change while actively processing notifications, unless the context * change request originated from this controller. */ @Override public String pending(boolean silent) { if (!requestingContextChange && !silent && isProcessing() && !PromptDialog.confirm("@vistanotification.processing.cancel.confirm.prompt")) { return StrUtil.formatMessage("@vistanotification.processing.cancel.rejected.message"); } return null; }
/** * Delete the notification. */ public void onClick$btnDelete() { if (PromptDialog.confirm( StrUtil.formatMessage("@vistanotification.viewer.delete.confirm.prompt", notification.getSubject()))) { onAction(Action.DELETE); } }
public static boolean deletePOV(String visitIEN, String povIEN, String icdIEN) { if (!PromptDialog.confirm("Are you sure you want to delete the purpose of visit?", "Remove POV?")) { return false; } String s = VistAUtil.getBrokerSession().callRPC("BGOVPOV DEL", povIEN); if (errorCheck(s)) { return false; } deletePatientEd(visitIEN, icdIEN); return true; }
public void onClick$btnManagedListFilterDelete() { AbstractPatientListFilter filter = managedList.getActiveFilter(); if (filter != null && PromptDialog.confirm(txtDeleteFilterPrompt, MessageFormat.format(txtDeleteFilterTitle, filter.getName()))) { filterManager.removeFilter(filter); lstManagedListFilter.getSelectedItem().detach(); setManagedListFilter(null); } }
public void onDeleteNote$lstNotes(Event event) { event = ZKUtil.getEventOrigin(event); Listitem item = ZKUtil.findAncestor(event.getTarget(), Listitem.class); ProblemNote pn = (ProblemNote) item.getValue(); if (PromptDialog .confirm("Are you sure that you wish to delete this note:\n" + pn.getNumber() + " - " + pn.getNarrative(), "Delete Note?")) { item.detach(); if (VistAUtil.validateIEN(pn)) { changedNotes.add(pn); } else { changedNotes.remove(pn); } } }
private boolean validateAll() { if (!NumberUtils.isDigits(txtID.getValue())) { PromptDialog.showError(BgoConstants.TX_NO_NUMERIC, "Not Numeric"); txtID.setFocus(true); return false; } String txt = VistAUtil.trimNarrative(txtNarrative.getValue()); if (txt.isEmpty()) { PromptDialog.showError(BgoConstants.TX_NO_NARR, BgoConstants.TC_NO_NARR); return false; } if (txt.length() > 80) { if (PromptDialog.confirm(BgoConstants.TX_NARR_TOO_LONG, BgoConstants.TC_NARR_TOO_LONG)) { txt = txt.substring(0, 80); } else { return false; } } txtNarrative.setValue(txt); return true; }
private String deleteProblem(int row) { Problem problem = problemFromRow(row); if (PromptDialog.confirm( "Are you sure that you wish to delete the problem titled:" + StrUtil.CRLF2 + problem.getNumberCode() + " - " + problem.getProviderNarrative(), "Delete Problem?")) { return getBroker().callRPC("BGOPROB DEL", problem.getId().getIdPart()); } return null; }
if (!PromptDialog.confirm( "Do you also want to delete the following related education event" + (v.size() == 1 ? "?" : "s?") + s, "Remove Education Events?")) {
public void delete() { Practitioner provider = getProvider(); IUser user = UserContext.getActiveUser(); if (skinTest != null && provider != null && !user.equals(provider)) { String s = VistAUtil.getBrokerSession().callRPC("BGOVPRV PRIPRV", skinTest.getEncounter().getId().getIdPart()); String[] pcs = StrUtil.split(s, StrUtil.U, 2); if (!user.getLogicalId().equals(pcs[0])) { PromptDialog.showError("To delete the skin test, you must either be the person that entered it or be " + "designated as the primary provider for the visit.\n" + BgoConstants.TC_PRI_PRV + pcs[1] + "\nAdministered By: " + provider.getName(), "Cannot Delete"); return; } } if (PromptDialog.confirm("Are you sure that you wish to delete the skin test:\n" + getTestName(), "Delete Skin Test?")) { PCC.errorCheck(VistAUtil.getBrokerSession().callRPC( "BGOSK DEL", VistAUtil.concatParams(skinTest != null ? skinTest.getId().getIdPart() : null, refusal != null ? refusal .getId().getIdPart() : null))); } }
if (PromptDialog.confirm( StrUtil.piece(s, StrUtil.U, 2) + StrUtil.CRLF + "Are you the primary provider for this visit?", "Change Primary Provider?")) {