public TriageListForClinicianWorklistVo(
     ims.emergency.vo.beans.TriageListForClinicianWorklistVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.currenttriagepriority =
       bean.getCurrentTriagePriority() == null
           ? null
           : ims.emergency.vo.lookups.TriagePriority.buildLookup(bean.getCurrentTriagePriority());
   this.mainpresentingproblem =
       bean.getMainPresentingProblem() == null ? null : bean.getMainPresentingProblem().buildVo();
   this.triagestartdatetime =
       bean.getTriageStartDateTime() == null
           ? null
           : bean.getTriageStartDateTime().buildDateTime();
   this.medicinterventionstartdatetime =
       bean.getMedicInterventionStartDateTime() == null
           ? null
           : bean.getMedicInterventionStartDateTime().buildDateTime();
 }
Exemplo n.º 2
0
  protected final void oncmbUrgencyValueSet(Object value) {
    java.util.ArrayList listOfValues =
        this.form.lyrWorklist().tabTriageWorklist().cmbUrgency().getValues();

    if (value == null) {
      if (listOfValues != null && listOfValues.size() > 0) {
        for (int x = 0; x < listOfValues.size(); x++) {
          ims.emergency.vo.lookups.TriagePriority existingInstance =
              (ims.emergency.vo.lookups.TriagePriority) listOfValues.get(x);
          if (!existingInstance.isActive()) {
            bindcmbUrgencyLookup();
            return;
          }
        }
      }
    } else if (value instanceof ims.emergency.vo.lookups.TriagePriority) {
      ims.emergency.vo.lookups.TriagePriority instance =
          (ims.emergency.vo.lookups.TriagePriority) value;

      if (listOfValues != null) {
        if (listOfValues.size() == 0) bindcmbUrgencyLookup();

        for (int x = 0; x < listOfValues.size(); x++) {
          ims.emergency.vo.lookups.TriagePriority existingInstance =
              (ims.emergency.vo.lookups.TriagePriority) listOfValues.get(x);
          if (existingInstance.equals(instance)) return;
        }
      }

      this.form
          .lyrWorklist()
          .tabTriageWorklist()
          .cmbUrgency()
          .newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor());
    }
  }