Class: PdfFill::Forms::Va1010ez

Inherits:
FormBase
  • Object
show all
Includes:
Maps::KeyMap1010Ez
Defined in:
lib/pdf_fill/forms/va1010ez.rb

Constant Summary collapse

GENDERS =
{ NB: '0', M: '1', F: '2', TM: '3', TF: '4', NA: '6', O: 'Off' }.freeze
MARITAL_STATUS =
['Married', 'Never Married', 'Separated', 'Widowed', 'Divorced'].freeze
ETHNICITY_CHOICES =
%w[
  isAmericanIndianOrAlaskanNative
  isAsian
  isBlackOrAfricanAmerican
  isSpanishHispanicLatino
  isNativeHawaiianOrOtherPacificIslander
  isWhite
  hasDemographicNoAnswer
].freeze
SERVICE_HISTORIES =
%w[
  purpleHeartRecipient
  isFormerPow
  postNov111998Combat
  disabledInLineOfDuty
  swAsiaCombat
  vietnamService
  exposedToRadiation
  radiumTreatments
  campLejeune
].freeze

Constants included from Maps::KeyMap1010Ez

Maps::KeyMap1010Ez::KEY

Constants included from Maps::InputMap1010Ez

Maps::InputMap1010Ez::INPUT_MAP

Instance Method Summary collapse

Methods inherited from FormBase

#combine_both_addr, #combine_full_address, #combine_full_address_extras, #combine_full_name, #combine_hash, #combine_name_addr, #combine_name_addr_extras, #combine_postal_code, #combine_previous_names, date_strftime, #expand_checkbox, #expand_date_range, #expand_signature, #initialize

Constructor Details

This class inherits a constructor from PdfFill::Forms::FormBase

Instance Method Details

#merge_fields(_options = {}) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/pdf_fill/forms/va1010ez.rb', line 37

def merge_fields(_options = {})
  @form_data['helpers'] = {
    'veteran' => {},
    'secondaryCaregiverOne' => {},
    'secondaryCaregiverTwo' => {}
  }

  merge_names('veteranFullName')
  merge_names('spouseFullName')
  merge_ethnicity_choices
  merge_place_of_birth
  merge_gender('gender')
  merge_gender('sigiGenders')
  merge_marital_status
  merge_service_histories
  merge_providers
  merge_spouse_address
  merge_dependents
  merge_financial_discloser
  merge_radio_buttons
  format_dates

  @form_data
end