Ejemplo n.º 1
0
  private void populateSearchScreenFromData(SurgicalOPNotesFilterVo record) {
    clearSearchScreen();
    if (record == null) return;

    if (record.getProcedureIsNotNull()) {
      form.qmbProcedure().newRow(record.getProcedure(), record.getProcedure().getProcedureName());
      form.qmbProcedure().setValue(record.getProcedure());
    }

    if (record.getDiagnosisIsNotNull()) {
      form.qmbDiagnosis().newRow(record.getDiagnosis(), record.getDiagnosis().getDiagnosisName());
      form.qmbDiagnosis().setValue(record.getDiagnosis());
    }
    if (record.getDiagramIsNotNull()) {
      form.qmbDiagram().newRow(record.getDiagram(), record.getDiagram().getName());
      form.qmbDiagram().setValue(record.getDiagram());
    }
    if (record.getHospitalIsNotNull()) {
      form.qmbHospital().newRow(record.getHospital(), record.getHospital().getName());
      form.qmbHospital().setValue(record.getHospital());
    }
    if (record.getOperatingSurgeonIsNotNull()) {
      form.qmbOpSurgeon()
          .newRow(record.getOperatingSurgeon(), record.getOperatingSurgeon().getIMosName());
      form.qmbOpSurgeon().setValue(record.getOperatingSurgeon());
    }
    if (record.getCompletingClinicianIsNotNull()) {
      form.qmbCompletingClinian()
          .newRow(record.getCompletingClinician(), record.getCompletingClinician().getIMosName());
      form.qmbCompletingClinian().setValue(record.getCompletingClinician());
    }
    if (record.getConsultantIsNotNull()) {
      form.qmbConsultant().newRow(record.getConsultant(), record.getConsultant().getIMosName());
      form.qmbConsultant().setValue(record.getConsultant());
    }
    form.cmbFollowUpOrdered().setValue(record.getFollowupOrdered());
    form.dteFrom().setValue(record.getDateFrom());
    form.dteTo().setValue(record.getDateTo());
  }