@Override
  protected ActionForward performAction(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    DynaActionForm dynaForm = (DynaActionForm) form;

    request.getSession().setAttribute(SAVE_DISABLED, TRUE);

    List<ReferralItem> referralItems = getReferralItems();
    PropertyUtils.setProperty(dynaForm, "referralItems", referralItems);
    PropertyUtils.setProperty(
        dynaForm,
        "referralReasons",
        DisplayListService.getList(DisplayListService.ListType.REFERRAL_REASONS));
    PropertyUtils.setProperty(
        dynaForm,
        "referralOrganizations",
        DisplayListService.getListWithLeadingBlank(
            DisplayListService.ListType.REFERRAL_ORGANIZATIONS));

    // remove at some point
    nonNumericTests = getNonNumericTests(referralItems);

    fillInDictionaryValuesForReferralItems(referralItems);

    return mapping.findForward(IActionConstants.FWD_SUCCESS);
  }
  public List<IdValuePair> getGenders() {
    if (genders == null) {
      genders = DisplayListService.getList(ListType.GENDERS);
    }

    return genders;
  }
  @Override
  protected ActionForward performAction(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    request.setAttribute(ALLOW_EDITS_KEY, "true");
    request.setAttribute(PREVIOUS_DISABLED, "true");
    request.setAttribute(NEXT_DISABLED, "true");
    request.getSession().setAttribute(SAVE_DISABLED, "false");

    DynaActionForm dynaForm = (DynaActionForm) (form);
    dynaForm.initialize(mapping);

    ExchangeConfigurationService configService =
        new ExchangeConfigurationService(ConfigurationDomain.REPORT);

    PropertyUtils.setProperty(dynaForm, "reports", configService.getConfigurations());
    PropertyUtils.setProperty(dynaForm, "hourList", DisplayListService.getList(ListType.HOURS));
    PropertyUtils.setProperty(dynaForm, "minList", DisplayListService.getList(ListType.MINS));
    return mapping.findForward(FWD_SUCCESS);
  }
 public List<IdValuePair> getNationalityList() {
   if (nationalityList == null) {
     nationalityList = DisplayListService.getList(ListType.PATIENT_NATIONALITY);
   }
   return nationalityList;
 }
 public List<IdValuePair> getMaritialList() {
   if (maritialList == null) {
     maritialList = DisplayListService.getList(ListType.PATIENT_MARITAL_STATUS);
   }
   return maritialList;
 }
 public List<IdValuePair> getEducationList() {
   if (educationList == null) {
     educationList = DisplayListService.getList(ListType.PATIENT_EDUCATION);
   }
   return educationList;
 }
 public List<IdValuePair> getHealthRegions() {
   if (healthRegions == null) {
     healthRegions = DisplayListService.getList(ListType.PATIENT_HEALTH_REGIONS);
   }
   return healthRegions;
 }