public static void fillFormValues(EctConsultationFormRequestForm thisForm, Integer requestId) {
    ConsultationRequestDao consultDao =
        (ConsultationRequestDao) SpringUtils.getBean("consultationRequestDao");
    ConsultationRequest consult = consultDao.find(requestId);

    thisForm.setAllergies(consult.getAllergies());
    thisForm.setReasonForConsultation(consult.getReasonForReferral());
    thisForm.setClinicalInformation(consult.getClinicalInfo());
    thisForm.setCurrentMedications(consult.getCurrentMeds());
    Date date = consult.getReferralDate();
    thisForm.setReferalDate(DateFormatUtils.ISO_DATE_FORMAT.format(date));
    thisForm.setSendTo(consult.getSendTo());
    thisForm.setService(consult.getServiceId().toString());
    thisForm.setStatus(consult.getStatus());

    setAppointmentDateTime(thisForm, consult);

    thisForm.setConcurrentProblems(consult.getConcurrentProblems());
    thisForm.setAppointmentNotes(consult.getStatusText());
    thisForm.setUrgency(consult.getUrgency());
    thisForm.setPatientWillBook(String.valueOf(consult.isPatientWillBook()));

    date = consult.getFollowUpDate();
    if (date != null) {
      thisForm.setFollowUpDate(DateFormatUtils.ISO_DATE_FORMAT.format(date));
    } else {
      thisForm.setFollowUpDate("");
    }

    DemographicDao demoDao = (DemographicDao) SpringUtils.getBean("demographicDao");
    Demographic demo = demoDao.getDemographicById(consult.getDemographicId());

    thisForm.setPatientAddress(demo.getAddress());
    thisForm.setPatientDOB(demo.getFormattedDob());
    thisForm.setPatientHealthNum(demo.getHin());
    thisForm.setPatientHealthCardVersionCode(demo.getVer());
    thisForm.setPatientHealthCardType(demo.getHcType());
    thisForm.setPatientFirstName(demo.getFirstName());
    thisForm.setPatientLastName(demo.getLastName());
    thisForm.setPatientPhone(demo.getPhone());
    thisForm.setPatientSex(demo.getSex());
    thisForm.setPatientWPhone(demo.getPhone2());
    thisForm.setPatientEmail(demo.getEmail());
    thisForm.setPatientAge(demo.getAge());

    ProviderDao provDao = (ProviderDao) SpringUtils.getBean("providerDao");
    Provider prov = provDao.getProvider(consult.getProviderNo());
    thisForm.setProviderName(prov.getFormattedName());

    thisForm.seteReferral(false);
  }
  public static void fillFormValues(
      EctConsultationFormRequestForm thisForm, EctConsultationFormRequestUtil consultUtil) {
    thisForm.setAllergies(consultUtil.allergies);
    thisForm.setReasonForConsultation(consultUtil.reasonForConsultation);
    thisForm.setClinicalInformation(consultUtil.clinicalInformation);
    thisForm.setCurrentMedications(consultUtil.currentMedications);
    thisForm.setReferalDate(consultUtil.referalDate);
    thisForm.setSendTo(consultUtil.sendTo);
    thisForm.setService(consultUtil.service);
    thisForm.setStatus(consultUtil.status);
    thisForm.setAppointmentDay(consultUtil.appointmentDay);
    thisForm.setAppointmentMonth(consultUtil.appointmentMonth);
    thisForm.setAppointmentYear(consultUtil.appointmentYear);
    thisForm.setAppointmentHour(consultUtil.appointmentHour);
    thisForm.setAppointmentMinute(consultUtil.appointmentMinute);
    thisForm.setAppointmentPm(consultUtil.appointmentPm);
    thisForm.setConcurrentProblems(consultUtil.concurrentProblems);
    thisForm.setAppointmentNotes(consultUtil.appointmentNotes);
    thisForm.setUrgency(consultUtil.urgency);
    thisForm.setPatientWillBook(consultUtil.pwb);

    if (consultUtil.sendTo != null && !consultUtil.teamVec.contains(consultUtil.sendTo)) {
      consultUtil.teamVec.add(consultUtil.sendTo);
    }

    // ---

    thisForm.setPatientAddress(consultUtil.patientAddress);
    thisForm.setPatientDOB(consultUtil.patientDOB);
    thisForm.setPatientHealthNum(consultUtil.patientHealthNum);
    thisForm.setPatientHealthCardVersionCode(consultUtil.patientHealthCardVersionCode);
    thisForm.setPatientHealthCardType(consultUtil.patientHealthCardType);
    thisForm.setPatientFirstName(consultUtil.patientFirstName);
    thisForm.setPatientLastName(consultUtil.patientLastName);
    thisForm.setPatientPhone(consultUtil.patientPhone);
    thisForm.setPatientSex(consultUtil.patientSex);
    thisForm.setPatientWPhone(consultUtil.patientWPhone);
    thisForm.setPatientEmail(consultUtil.patientEmail);
    thisForm.setPatientAge(consultUtil.patientAge);

    thisForm.setProviderName(consultUtil.getProviderName(consultUtil.providerNo));

    thisForm.seteReferral(false);
  }