private void setScreenMode() { CareSpellDialogMode mode = form.getGlobalContext().Core.getCareSpellDialogMode(); if(mode.equals(CareSpellDialogMode.NEWEPISODEOFCARE) || mode.equals(CareSpellDialogMode.EDITEPISODEOFCARE)) { form.dteCsStart().setEnabled(false); } else if(mode.equals(CareSpellDialogMode.ADDCONTACTCONTEXTDETAILS) || mode.equals(CareSpellDialogMode.EDITCONTACTCONTEXTDETAILS)) { form.dteCsStart().setEnabled(false); form.dteEcStart().setEnabled(false); form.dteEcEnd().setEnabled(false); form.cmbEcSpecialty().setEnabled(false); form.qmbEcRespHcp().setEnabled(false); form.cmbEcRelationship().setEnabled(false); } else if(mode.equals(CareSpellDialogMode.ADDCONTACT) || mode.equals(CareSpellDialogMode.EDITCONTACT)) { form.dteCsStart().setEnabled(false); form.dteEcStart().setEnabled(false); form.dteEcEnd().setEnabled(false); form.cmbEcSpecialty().setEnabled(false); form.qmbEcRespHcp().setEnabled(false); form.cmbEcRelationship().setEnabled(false); form.dtimCtxStart().setEnabled(false); form.dtimCtxEnd().setEnabled(false); form.cmbCtxContextType().setEnabled(false); form.cmbCtxLocationType().setEnabled(false); form.GroupInpatientStatus().setEnabled(false); } setControlStateForEndedItems(); }
private void addContact() { if (form.dyngrdList().getSelectedRow() != null) { if (form.dyngrdList().getSelectedRow().getValue() != null && form.dyngrdList().getSelectedRow().getValue() instanceof CareContextVo) form.getGlobalContext().Clinical.PatientSummary.setCareContext((CareContextVo) form.dyngrdList().getSelectedRow().getValue()); } form.getGlobalContext().Clinical.PatientSummary.setClinicalContact(null); setCareSpellDialogModeGC(CareSpellDialogMode.ADDCONTACT); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void addContact() { if(form.grdList().getSelectedRow() != null) { if(form.grdList().getSelectedRow().getValue() != null && form.grdList().getSelectedRow().getValue() instanceof CareContextVo) form.getGlobalContext().Clinical.PatientSummary.setCareContext((CareContextVo) form.grdList().getSelectedRow().getValue()); } form.getGlobalContext().Clinical.PatientSummary.setClinicalContact(null); setCareSpellDialogModeGC(CareSpellDialogMode.ADDCONTACT); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void addContact() { if(form.grdList().getSelectedRow() != null) { if(form.grdList().getSelectedRow().getValue() != null && form.grdList().getSelectedRow().getValue() instanceof CareContextVo) form.getGlobalContext().Clinical.PatientSummary.setCareContext((CareContextVo) form.grdList().getSelectedRow().getValue()); } form.getGlobalContext().Clinical.PatientSummary.setClinicalContact(null); setCareSpellDialogModeGC(CareSpellDialogMode.ADDCONTACT); engine.open(form.getForms().Core.CareSpellDialog);//WDEV-20331 }
private void setControlStateForEndedItems() { CareSpellDialogMode mode = form.getGlobalContext().Core.getCareSpellDialogMode(); if(mode == null) throw new CodingRuntimeException("CareSpellDialogMode enumeration not supplied"); //we dont care about any rules if the user is a clinical administrator if(engine.hasRight(AppRight.CAN_ADD_CONTACT_AFTER_ENDDATE_SUPPLIED)) return; if(ConfigFlag.UI.STOP_CLINICAL_DATACREATION_IFENDDATE_SUPPLIED.getValue()) { //check if the selected item is ended and disable and clear all controls below if(mode.equals(CareSpellDialogMode.EDITEPISODEOFCARE) || mode.equals(CareSpellDialogMode.NEWEPISODEOFCARE)) { form.dtimCtxStart().setEnabled(form.dteEcEnd().getValue() == null); form.dtimCtxEnd().setEnabled(form.dteEcEnd().getValue() == null); form.cmbCtxContextType().setEnabled(form.dteEcEnd().getValue() == null); form.cmbCtxLocationType().setEnabled(form.dteEcEnd().getValue() == null); form.dtimConStart().setEnabled(form.dteEcEnd().getValue() == null); form.dtimConEnd().setEnabled(form.dteEcEnd().getValue() == null); form.qmbConSeenBy().setEnabled(form.dteEcEnd().getValue() == null); form.cmbConSpecialty().setEnabled(form.dteEcEnd().getValue() == null); form.cmbConContactType().setEnabled(form.dteEcEnd().getValue() == null); if(form.dteEcEnd().getValue() != null) { form.dtimCtxStart().setValue(null); form.dtimCtxEnd().setValue(null); form.cmbCtxContextType().setValue(null); form.cmbCtxLocationType().setValue(null); form.dtimConStart().setValue(null); form.dtimConEnd().setValue(null); form.qmbConSeenBy().setValue(null); form.cmbConSpecialty().setValue(null); form.cmbConContactType().setValue(null); } if(form.dtimCtxEnd().getValue() != null) { form.dtimConStart().setValue(null); form.dtimConEnd().setValue(null); form.qmbConSeenBy().setValue(null); form.cmbConSpecialty().setValue(null); form.cmbConContactType().setValue(null); form.dtimConStart().setEnabled(form.dtimCtxEnd().getValue() == null); form.dtimConEnd().setEnabled(form.dtimCtxEnd().getValue() == null); form.qmbConSeenBy().setEnabled(form.dtimCtxEnd().getValue() == null); form.cmbConSpecialty().setEnabled(form.dtimCtxEnd().getValue() == null); form.cmbConContactType().setEnabled(form.dtimCtxEnd().getValue() == null); } } else if(mode.equals(CareSpellDialogMode.EDITCONTACTCONTEXTDETAILS) || mode.equals(CareSpellDialogMode.ADDCONTACTCONTEXTDETAILS)) { form.dtimConStart().setEnabled(form.dtimCtxEnd().getValue() == null); form.dtimConEnd().setEnabled(form.dtimCtxEnd().getValue() == null); form.qmbConSeenBy().setEnabled(form.dtimCtxEnd().getValue() == null); form.cmbConSpecialty().setEnabled(form.dtimCtxEnd().getValue() == null); form.cmbConContactType().setEnabled(form.dtimCtxEnd().getValue() == null); if(form.dtimCtxEnd().getValue() != null) { form.dtimConStart().setValue(null); form.dtimConEnd().setValue(null); form.qmbConSeenBy().setValue(null); form.cmbConSpecialty().setValue(null); form.cmbConContactType().setValue(null); } } } }
private void editContact() { setCareSpellDialogModeGC(CareSpellDialogMode.EDITCONTACT); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void editEpisodeofCare() { setCareSpellDialogModeGC(CareSpellDialogMode.EDITEPISODEOFCARE); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void editContactContextDetails() { setCareSpellDialogModeGC(CareSpellDialogMode.EDITCONTACTCONTEXTDETAILS); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void editCareGroup() { setCareSpellDialogModeGC(CareSpellDialogMode.EDITCAREGROUPING); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void addContactContextDetails() { form.getGlobalContext().Clinical.PatientSummary.setCareContext(null); setCareSpellDialogModeGC(CareSpellDialogMode.ADDCONTACTCONTEXTDETAILS); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void newCareGrouping() { clearPatientSummaryContexts(true); setCareSpellDialogModeGC(CareSpellDialogMode.NEWCAREGROUPING); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void newEpisodeofCare() { clearPatientSummaryContexts(false); setCareSpellDialogModeGC(CareSpellDialogMode.NEWEPISODEOFCARE); engine.open(form.getForms().Core.CareSpellDialog, "Episode of Care"); }
private void setCareSpellDialogModeGC(CareSpellDialogMode careSpellDialogMode) { form.getGlobalContext().Core.setCareSpellDialogMode(careSpellDialogMode); }
private void initializeCaption() { if(form.getGlobalContext().Core.getCareSpellDialogModeIsNotNull()) { CareSpellDialogMode careSpellDialogMode = form.getGlobalContext().Core.getCareSpellDialogMode(); if(CareSpellDialogMode.EDITEPISODEOFCARE.equals(careSpellDialogMode)) { engine.setCaption("Edit Episode of Care"); } else if(CareSpellDialogMode.NEWEPISODEOFCARE.equals(careSpellDialogMode)) { engine.setCaption("New Episode of Care"); } else if(CareSpellDialogMode.NEWCAREGROUPING.equals(careSpellDialogMode)) { engine.setCaption("New Problem Group"); } else if(CareSpellDialogMode.EDITCAREGROUPING.equals(careSpellDialogMode)) { engine.setCaption("Edit Problem Group"); } else if(CareSpellDialogMode.ADDCONTACT.equals(careSpellDialogMode)) { engine.setCaption("New Clinical Contact"); } else if(CareSpellDialogMode.EDITCONTACT.equals(careSpellDialogMode)) { engine.setCaption("Edit Clinical Contact"); } else if(CareSpellDialogMode.ADDCONTACTCONTEXTDETAILS.equals(careSpellDialogMode)) { engine.setCaption("New Care Context"); } else if(CareSpellDialogMode.EDITCONTACTCONTEXTDETAILS.equals(careSpellDialogMode)) { engine.setCaption("Edit Care Context"); } } }
private void editContact() { setCareSpellDialogModeGC(CareSpellDialogMode.EDITCONTACT); engine.open(form.getForms().Core.CareSpellDialog);//WDEV-20331 }