Пример #1
0
  private void populateSearchCriteriaFromData(EndoscopyVettingWorklistSearchCritVo searchCrit) {
    if (searchCrit == null) return;

    if (ElectiveAdmissionType.PLANNED_TYPE13.equals(searchCrit.getElectiveAdmissionType())) {
      form.GroupElectiveListType()
          .setValue(GroupElectiveListTypeEnumeration.rdoPlannedSurveillance);

    } else if (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(
        searchCrit.getElectiveAdmissionType())) {
      form.GroupElectiveListType().setValue(GroupElectiveListTypeEnumeration.rdoWaitingBooked);
    } else form.GroupElectiveListType().setValue(GroupElectiveListTypeEnumeration.None);

    form.cmbUrgency().setValue(searchCrit.getUrgency());
    form.cmbProcedureType().setValue(searchCrit.getProcedureType());

    form.intRTTBreachDateIn().setValue(searchCrit.getRTTBreachDateIn());
    form.cmbRTTBreachDateIn().setValue(searchCrit.getRTTBReachDateUnits());
    form.chkIncludePatientsBreachedRTTDate().setValue(searchCrit.getIncludePatientsBreached());

    form.intPlannedDateIn().setValue(searchCrit.getPlannedDateInt());
    form.cmbPlannedDateIn().setValue(searchCrit.getPlaneDateUnits());
    form.chkIncludePastPlannedDates().setValue(searchCrit.getIncludePatientsBreached());

    if (YesNo.YES.equals(searchCrit.getGeneralAnaesthetic())) {
      form.chkGeneralAnaesthetic().setValue(Boolean.TRUE);
    } else {
      form.chkGeneralAnaesthetic().setValue(Boolean.FALSE);
    }
  }
Пример #2
0
 @Override
 protected void onContextMenuItemClick(int menuItemID, Control sender)
     throws PresentationLogicException {
   switch (menuItemID) {
     case ims.RefMan.forms
         .endoscopyvettingworklist
         .GenForm
         .ContextMenus
         .RefManNamespace
         .EndoscopyVettingWorklist
         .VIEW_Endoscopy_Request:
       editWaitingElectiveListCardDialog();
       break;
     case ims.RefMan.forms
         .endoscopyvettingworklist
         .GenForm
         .ContextMenus
         .RefManNamespace
         .EndoscopyVettingWorklist
         .ADD_EDIT_COMMENTS: // WDEV-22488
       PatientElectiveListAddLaterVo tempVo =
           domain.getPatientElectiveList(
               (PatientElectiveListRefVo) form.dyngrdResults().getSelectedRow().getValue());
       form.getGlobalContext().RefMan.setCatsReferral(tempVo.getReferral());
       if (tempVo.getElectiveAdmissionTypeIsNotNull()
           && (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(tempVo.getElectiveAdmissionType())
               || ElectiveAdmissionType.BOOKED_TYPE12.equals(tempVo.getElectiveAdmissionType()))) {
         engine.open(
             form.getForms().RefMan.ElectiveListAddLaterDialog,
             new Object[] {
               ims.admin.vo.enums.ElectiveListDetails.ADDTOWAITINGLIST,
               tempVo.getCreatingAppointment(),
               tempVo,
               ElectiveListAddLaterDlgOpenMode.READ_ONLY,
               true
             },
             "Waiting List Details");
       } else if (tempVo.getElectiveAdmissionTypeIsNotNull()
           && ElectiveAdmissionType.PLANNED_TYPE13.equals(tempVo.getElectiveAdmissionType())) {
         engine.open(
             form.getForms().RefMan.ElectiveListAddLaterDialog,
             new Object[] {
               ims.admin.vo.enums.ElectiveListDetails.ADDTOPLANNEDLIST,
               tempVo.getCreatingAppointment(),
               tempVo,
               ElectiveListAddLaterDlgOpenMode.READ_ONLY,
               true
             },
             "Planned List Details");
       }
       break;
   }
 }
Пример #3
0
  private void editWaitingElectiveListCardDialog() {
    PatientElectiveListAddLaterVo tempVo =
        domain.getPatientElectiveList(
            (PatientElectiveListRefVo) form.dyngrdResults().getSelectedRow().getValue());
    if (tempVo != null) {
      HcpLiteVo tempUsrVo = (HcpLiteVo) domain.getHcpLiteUser();
      boolean isEndoscopist =
          tempUsrVo != null && Boolean.TRUE.equals(tempUsrVo.getIsHCPaEndoscopist());

      if (isEndoscopist) {
        form.getGlobalContext().RefMan.setCatsReferral(tempVo.getReferral());
        if (tempVo.getElectiveAdmissionTypeIsNotNull()
            && (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(tempVo.getElectiveAdmissionType())
                || ElectiveAdmissionType.BOOKED_TYPE12.equals(tempVo.getElectiveAdmissionType()))) {
          engine.open(
              form.getForms().RefMan.ElectiveListAddLaterDialog,
              new Object[] {
                ims.admin.vo.enums.ElectiveListDetails.ADDTOWAITINGLIST,
                tempVo.getCreatingAppointment(),
                tempVo,
                ElectiveListAddLaterDlgOpenMode.EDIT
              },
              "Waiting List Details");
        } else if (tempVo.getElectiveAdmissionTypeIsNotNull()
            && ElectiveAdmissionType.PLANNED_TYPE13.equals(tempVo.getElectiveAdmissionType())) {
          engine.open(
              form.getForms().RefMan.ElectiveListAddLaterDialog,
              new Object[] {
                ims.admin.vo.enums.ElectiveListDetails.ADDTOPLANNEDLIST,
                tempVo.getCreatingAppointment(),
                tempVo,
                ElectiveListAddLaterDlgOpenMode.EDIT
              },
              "Planned List Details");
        }
      } else {
        form.getGlobalContext().RefMan.setCatsReferral(tempVo.getReferral());
        if (tempVo.getElectiveAdmissionTypeIsNotNull()
            && (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(tempVo.getElectiveAdmissionType())
                || ElectiveAdmissionType.BOOKED_TYPE12.equals(tempVo.getElectiveAdmissionType()))) {
          engine.open(
              form.getForms().RefMan.ElectiveListAddLaterDialog,
              new Object[] {
                ims.admin.vo.enums.ElectiveListDetails.ADDTOWAITINGLIST,
                tempVo.getCreatingAppointment(),
                tempVo,
                ElectiveListAddLaterDlgOpenMode.READ_ONLY
              },
              "Waiting List Details");
        } else if (tempVo.getElectiveAdmissionTypeIsNotNull()
            && ElectiveAdmissionType.PLANNED_TYPE13.equals(tempVo.getElectiveAdmissionType())) {
          engine.open(
              form.getForms().RefMan.ElectiveListAddLaterDialog,
              new Object[] {
                ims.admin.vo.enums.ElectiveListDetails.ADDTOPLANNEDLIST,
                tempVo.getCreatingAppointment(),
                tempVo,
                ElectiveListAddLaterDlgOpenMode.READ_ONLY
              },
              "Planned List Details");
        }
      }
    }
  }