public static boolean checkActiveVisit() { if (!ensureEncounter(EF1)) { PromptDialog.showError(TX_NO_ACTIVE_VISIT, TC_NO_ACTIVE_VISIT); return false; } return true; }
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; }
/** * @see org.carewebframework.api.security.ISecurityService#changePassword() */ @Override public void changePassword() { if (canChangePassword()) { if (PopupDialog.popup(passwordChangeUrl, false, false) == null) { PromptDialog.showError(StrUtil.getLabel("password.change.dialog.unavailable")); } } else { PromptDialog.showWarning(StrUtil.getLabel(Constants.LBL_PASSWORD_CHANGE_UNAVAILABLE)); } }
public void onClick$btnSearch() { String text = txtSearch.getText().trim(); if (text.isEmpty() && !lookupParams.isLookupNull()) { PromptDialog.showWarning(BgoConstants.TX_NO_SEARCH_TEXT, BgoConstants.TC_NO_SEARCH); return; } doSearch(text); if (!lbResults.isVisible()) { PromptDialog.showInfo(BgoConstants.TX_NO_MATCHES, "Find Record"); } }
/** * 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; }
/** * @see org.carewebframework.api.security.ISecurityService#changePassword() */ @Override public void changePassword() { if (canChangePassword()) { ChangePasswordController.show(); } else { PromptDialog.showWarning(Labels.getLabel(Constants.LBL_CHANGE_PASSWORD_UNAVAILABLE)); } }
} else { doCancel(); PromptDialog.showInfo("@password.change.dialog.password.changed", "@password.change.dialog.password.changed.dialog.title");
/** * 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); } }
/** * Change the encounter context to the selected encounter and close the dialog. */ public void onClick$btnOK() { Encounter encounter = selector.getEncounter(); if (encounter != null) { String s = EncounterUtil.validEncounter(encounter, flags); if (s != null) { PromptDialog.showWarning(s); return; } EncounterContext.changeEncounter(encounter); close(); } }
} else { doCancel(); PromptDialog.showInfo(Labels.getLabel("change.password.dialog.password.changed"), Labels.getLabel("change.password.dialog.password.changed.dialog.title"));
public static boolean checkActiveVisit() { if (!EncounterSelection.ensureEncounter(EF1)) { PromptDialog.showError(TX_NO_ACTIVE_VISIT, TC_NO_ACTIVE_VISIT); return false; } return true; }
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))); } }
/** * Delete the selected scheduled notification. */ public void onClick$btnDelete() { if (PromptDialog.confirm("@vistanotification.scheduling.delete.confirm.prompt")) { service.deleteScheduledNotification(getSelected()); } }
PromptDialog.showWarning(s); return;
/** * Form invokable via direct call. */ public static void show() { if (PopupDialog.popup(DIALOG_CHANGE_PASSWORD, false, false) == null) { PromptDialog.showError(Labels.getLabel("change.password.dialog.unavailable")); } }
/** * 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; }
public static boolean errorCheck(String data) { try { BgoUtil.errorCheck(data); return false; } catch (BgoException e) { PromptDialog.showError(e.getMessage()); return true; } }
/** * Delete the notification. */ public void onClick$btnDelete() { if (PromptDialog.confirm( StrUtil.formatMessage("@vistanotification.viewer.delete.confirm.prompt", notification.getSubject()))) { onAction(Action.DELETE); } }
public void onClick$btnOK() { String text = VistAUtil.trimNarrative(txtNote.getValue()); if (text.length() < 3) { PromptDialog.showError("Note must be at least 3 characters in length.", "Note too Short"); txtNote.setValue(text); return; } result = text; close(false); }
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; }