Пример #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
  private EndoscopyVettingWorklistSearchCritVo populateSearchCriteriaFromScreen() {
    EndoscopyVettingWorklistSearchCritVo searchCrit = new EndoscopyVettingWorklistSearchCritVo();
    if (ims.RefMan.forms.endoscopyvettingworklist.GenForm.GroupElectiveListTypeEnumeration
        .rdoPlannedSurveillance.equals(form.GroupElectiveListType().getValue())) {
      searchCrit.setElectiveAdmissionType(ElectiveAdmissionType.PLANNED_TYPE13);
    } else if (ims.RefMan.forms.endoscopyvettingworklist.GenForm.GroupElectiveListTypeEnumeration
        .rdoWaitingBooked.equals(form.GroupElectiveListType().getValue())) {
      searchCrit.setElectiveAdmissionType(ElectiveAdmissionType.ELECTIVE_TYPE11);
    } else searchCrit.setElectiveAdmissionType(null);

    if (form.cmbUrgency().getVisible()) {
      searchCrit.setUrgency(form.cmbUrgency().getValue());
    } else {
      searchCrit.setUrgency(null);
    }

    searchCrit.setProcedureType(form.cmbProcedureType().getValue());

    searchCrit.setRTTBreachDateIn(form.intRTTBreachDateIn().getValue());
    searchCrit.setRTTBReachDateUnits(form.cmbRTTBreachDateIn().getValue());
    searchCrit.setIncludePatientsBreached(form.chkIncludePatientsBreachedRTTDate().getValue());

    if (form.intPlannedDateIn().isVisible()) {
      searchCrit.setPlannedDateInt(form.intPlannedDateIn().getValue());
    } else searchCrit.setPlannedDateInt(null);

    if (form.cmbPlannedDateIn().getVisible()) {
      searchCrit.setPlaneDateUnits(form.cmbPlannedDateIn().getValue());
    } else searchCrit.setPlaneDateUnits(null);

    if (form.chkIncludePastPlannedDates().isVisible()) {
      searchCrit.setIncludePastPlannedDates(form.chkIncludePastPlannedDates().getValue());
    } else searchCrit.setIncludePastPlannedDates(null);

    /*if( GroupGeneralAnaestheticEnumeration.rdoYes.equals(form.GroupGeneralAnaesthetic().getValue()))
    {
    	searchCrit.setGeneralAnaesthetic(YesNo.YES);
    }
    else if(GroupGeneralAnaestheticEnumeration.rdoNo.equals(form.GroupGeneralAnaesthetic().getValue()))
    {
    	searchCrit.setGeneralAnaesthetic(YesNo.NO);
    }
    else
    	searchCrit.setGeneralAnaesthetic(null); */

    if (Boolean.TRUE.equals(form.chkGeneralAnaesthetic().getValue())) {
      searchCrit.setGeneralAnaesthetic(YesNo.YES);
    } else {
      searchCrit.setGeneralAnaesthetic(null);
    }

    return searchCrit;
  }