private void updateControlState() { form.ccAuthoringInfo().setEnabledAuthoringHCP(false); form.ccAuthoringInfo().setEnabledDateTime(false); form.ctnNoteDetails().cmbAttendance().setEnabled(false); form.ctnNoteDetails().cmbNoteType().setEnabled(false); form.ctnNoteDetails().cmbDiscipline().setEnabled(false); form.ctnNoteDetails().cmbSpecialty().setEnabled(false); //WDEV-17270 if (AttendanceClinicalNoteType.TRIAGE.equals(form.ctnNoteDetails().cmbNoteType().getValue())) { form.lblDefaultNote().setValue("Use Default Triage Note"); } else if (AttendanceClinicalNoteType.MEDIC.equals(form.ctnNoteDetails().cmbNoteType().getValue())) { form.lblDefaultNote().setValue("Use Default Clinician Note"); } form.lblDefaultNote().setVisible(AttendanceClinicalNoteType.TRIAGE.equals(form.ctnNoteDetails().cmbNoteType().getValue()) || AttendanceClinicalNoteType.MEDIC.equals(form.ctnNoteDetails().cmbNoteType().getValue())); form.chkDefaultTriageNote().setVisible(AttendanceClinicalNoteType.TRIAGE.equals(form.ctnNoteDetails().cmbNoteType().getValue()) || AttendanceClinicalNoteType.MEDIC.equals(form.ctnNoteDetails().cmbNoteType().getValue())); }
@Override protected void onChkDefaultTriageNoteValueChanged() throws ims.framework.exceptions.PresentationLogicException { if(form.chkDefaultTriageNote().getValue() && form.getLocalContext().getPresentingProblem() != null) //WDEV-17299 { if (AttendanceClinicalNoteType.TRIAGE.equals(form.ctnNoteDetails().cmbNoteType().getValue())) { form.getLocalContext().setDefaultTriageNote(domain.getDefaultTriageNote(form.getLocalContext().getPresentingProblem())); form.richTextNote().pasteText( form.getLocalContext().getDefaultTriageNote() != null ? form.getLocalContext().getDefaultTriageNote().getDefaultTriageNote() : null); } else if (AttendanceClinicalNoteType.MEDIC.equals(form.ctnNoteDetails().cmbNoteType().getValue())) { //WDEV-17270 form.getLocalContext().setDefaultClinicianNote(domain.getDefaultClinicianNote(form.getLocalContext().getPresentingProblem())); form.richTextNote().pasteText( form.getLocalContext().getDefaultClinicianNote() != null ? form.getLocalContext().getDefaultClinicianNote().getDefaultClinicianNote() : null); } } }
private AttendanceClinicalNotesForWhiteBoardVo populateClinicalNoteFromScreen(AttendanceClinicalNotesForWhiteBoardVo attendanceClinicalNotesForWhiteBoardVo) { if (!form.richTextComment().isVisible() || !form.richTextComment().isEnabled()) return null; if (attendanceClinicalNotesForWhiteBoardVo==null) attendanceClinicalNotesForWhiteBoardVo = new AttendanceClinicalNotesForWhiteBoardVo(); else attendanceClinicalNotesForWhiteBoardVo=(AttendanceClinicalNotesForWhiteBoardVo) attendanceClinicalNotesForWhiteBoardVo.clone(); attendanceClinicalNotesForWhiteBoardVo.setPatient(form.getGlobalContext().Core.getPatientShort()); attendanceClinicalNotesForWhiteBoardVo.setEpisode(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare()); attendanceClinicalNotesForWhiteBoardVo.setAttendance(form.getGlobalContext().Core.getCurrentCareContext()); attendanceClinicalNotesForWhiteBoardVo.setAuthoringInformation(form.ccAuthoringInfo().getValue()); attendanceClinicalNotesForWhiteBoardVo.setClinicalNote(form.richTextComment().getValue()); attendanceClinicalNotesForWhiteBoardVo.setNoteType(AttendanceClinicalNoteType.WHITEBOARD_COMMENT); attendanceClinicalNotesForWhiteBoardVo.setDiscipline(HcpDisType.NURSING); return attendanceClinicalNotesForWhiteBoardVo; }
@Override protected void onDyngrdWhiteBoardCellButtonClicked(DynamicGridCell cell) { System.out.println("Cell Button Clicked"); form.dyngrdWhiteBoard().setValue(cell.getRow().getValue()); setGlobalContexts((TrackingForClinicianWorklistAndTriageVo)form.dyngrdWhiteBoard().getValue()); engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.NURSE, null,null}); }
@Override protected void onDyngrdWhiteBoardCellValueChanged(DynamicGridCell cell) { System.out.println("Cell value changed"); form.dyngrdWhiteBoard().setValue(cell.getRow().getValue()); setGlobalContexts((TrackingForClinicianWorklistAndTriageVo)form.dyngrdWhiteBoard().getValue()); if (getColumn(COLUMN_OBS_REQUIRED).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog, new Object[] {ims.emergency.vo.enums.EDWhiteBoardEvent.OBS_REQ_COL_VALUE_CHANGED,cell.getValue()}); } else if (getColumn(COLUMN_MEDS_GIVEN).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog, new Object[] {ims.emergency.vo.enums.EDWhiteBoardEvent.MEDS_GIVEN_COL_VALUE_CHANGED,cell.getValue()}); } else if (getColumn(COLUMN_ECG).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog, new Object[] {ims.emergency.vo.enums.EDWhiteBoardEvent.ECG_COL_VALUE_CHANGED,cell.getValue()}); } else if (getColumn(COLUMN_NPO).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog, new Object[] {ims.emergency.vo.enums.EDWhiteBoardEvent.NPO_COL_VALUE_CHANGED,cell.getValue()}); } else if (getColumn(COLUMN_ISOLATION).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog, new Object[] {ims.emergency.vo.enums.EDWhiteBoardEvent.ISOLATION_COL_VALUE_CHANGED,cell.getValue()}); } else if (getColumn(COLUMN_COMMENT).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardDialog, new Object[] {AttendanceClinicalNoteType.NURSE, null,null}); } }
@Override protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { if (args!=null && args.length>0 && args[0]!=null && args[0] instanceof AttendanceClinicalNoteType) { form.ctnNoteDetails().cmbNoteType().setValue((AttendanceClinicalNoteType)args[0]); } if (args!=null && args.length>1 && args[1]!=null) { form.getLocalContext().setSelectedParentRecord((ValueObject)args[1]); } if (args!=null && args.length>2 && args[2]!=null && args[2] instanceof ClinicalProblemRefVo) { form.getLocalContext().setPresentingProblem((ClinicalProblemRefVo) args[2]); } if (args!=null && args.length>3 && args[3]!=null && args[3] instanceof FormMode) { form.getLocalContext().setParentDialogMode((FormMode) args[3]); form.btnSave().setText("OK"); } populateComboBoxes(); updateControlState(); open(); }
private void newAttendanceClinicalNote() { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); form.grdNotes().setValue(null); if (FormMode.EDIT.equals(form.getMode())) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.ALLOCATION,form.getLocalContext().getselectedSeenByHCP(),null,form.getMode()}); } else { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.ALLOCATION,form.getLocalContext().getselectedSeenByHCP()}); } }
private void newAttendanceClinicalNote() { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); form.grdNotes().setValue(null); if (FormMode.EDIT.equals(form.getMode())) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.REFERRAL_TO_SPECIALTY,form.getLocalContext().getSelectedReferralToSpecialty(),null,form.getMode()}); } else { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.REFERRAL_TO_SPECIALTY,form.getLocalContext().getSelectedReferralToSpecialty()}); } }
private void newAttendanceClinicalNote() { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); if (form.getForms().Emergency.EDTriageWorklistToAssessmentForm.equals(form.getLocalContext().getparentFormName())) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.TRIAGE, null, form.getLocalContext().getPresentingProblem()}); } else if (form.getForms().Emergency.EDClinicianWorklistToAssessmentForm.equals(form.getLocalContext().getparentFormName())) { //WDEV-17270 engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.MEDIC, null, form.getLocalContext().getPresentingProblem()}); } }
private boolean userHasRightToCorrect(AttendanceClinicalNotesVo attendanceClinicalNotesVo) { if (form.getForms().Emergency.EDTriageWorklistToAssessmentForm.equals(form.getLocalContext().getparentFormName())) { return AttendanceClinicalNoteType.TRIAGE.equals(attendanceClinicalNotesVo.getNoteType()) && engine.hasRight(AppRight.ED_ALLOW_CORRECTION_OF_ANY_TRIAGE_NOTE); //WDEV-17304 } else if (form.getForms().Emergency.EDClinicianWorklistToAssessmentForm.equals(form.getLocalContext().getparentFormName())) { return AttendanceClinicalNoteType.MEDIC.equals(attendanceClinicalNotesVo.getNoteType()) && engine.hasRight(AppRight.ED_ALLOW_CORRECTION_OF_ANY_MEDIC_NOTE);//WDEV-17304 } return false; }
@Override protected void onDyngrdWhiteBoardCellButtonClicked(DynamicGridCell cell) { form.dyngrdWhiteBoard().setValue(cell.getRow().getValue()); setGlobalContexts((TrackingForClinicianWorklistAndTriageVo)form.dyngrdWhiteBoard().getValue()); engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.NURSE, null,null}); }
private void newAttendanceClinicalNote() { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); form.grdNotes().setValue(null); if (FormMode.EDIT.equals(form.getMode())) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.NURSE,form.getLocalContext().getselectedSeenByHCP(),null,form.getMode()}); } else { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.NURSE,form.getLocalContext().getselectedSeenByHCP()}); } }
private void newAttendanceClinicalNote() //WDEV-20429 { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); form.grdNotes().setValue(null); if (FormMode.EDIT.equals(form.getMode())) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.MEDIC,form.getLocalContext().getselectedSeenByHCP(),null,form.getMode()}); } else { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.MEDIC,form.getLocalContext().getselectedSeenByHCP()}); } }
@Override protected void onDyngrdWhiteBoardCellButtonClicked(ims.framework.controls.DynamicGridCell cell) { engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.NURSE, null,null}); }
@Override protected void onDyngrdWhiteBoardCellValueChanged(DynamicGridCell cell) { form.dyngrdWhiteBoard().setValue(cell.getRow().getValue()); populateGCFromRow(form.dyngrdWhiteBoard().getSelectedRow()); setGlobalContexts((TrackingForClinicianWorklistAndTriageVo)form.dyngrdWhiteBoard().getValue()); if (getColumn(COLUMN_OBS_REQUIRED).equals(cell.getColumn())) { if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.REQUIRED)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setObsRequired(REQUIRED); } else if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.COMPLETE)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setObsRequired(COMPLETE); } else if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.NOT_REQUIRED)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setObsRequired(NOT_REQUIRED); } engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog); } else if (getColumn(COLUMN_MEDS_GIVEN).equals(cell.getColumn())) { if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.REQUIRED)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setMedsGiven(REQUIRED); } else if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.COMPLETE)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setMedsGiven(COMPLETE); } else if (cell.getValue().equals(EDWhiteBoardDynGrdComboValues.NOT_REQUIRED)) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setMedsGiven(NOT_REQUIRED); } engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog); } else if (getColumn(COLUMN_ECG).equals(cell.getColumn())) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setECG((Boolean)cell.getValue()); engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog); } else if (getColumn(COLUMN_NPO).equals(cell.getColumn())) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setNPO((Boolean)cell.getValue()); engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog); } else if (getColumn(COLUMN_ISOLATION).equals(cell.getColumn())) { form.getGlobalContext().Emergency.getWhiteBoardEdit().setIsolation((Boolean)cell.getValue()); engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog); } else if (getColumn(COLUMN_COMMENT).equals(cell.getColumn())) { engine.open(form.getForms().Emergency.EDWhiteBoardDialog, new Object[] {AttendanceClinicalNoteType.NURSE, null,null}); } }
@Override protected void onBtnAddTreatmentNoteClick() throws PresentationLogicException { form.getGlobalContext().Emergency.setAttendanceClinicalNotes(null); engine.open(form.getForms().Emergency.AttendanceClinicalNoteDialog, new Object[] {AttendanceClinicalNoteType.TREATMENT}); }