Class: EVSS::DisabilityCompensationForm::RatedDisability

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serialization
Defined in:
lib/evss/disability_compensation_form/rated_disability.rb

Overview

Model of an individual rated disability record. The VA assigns veterans disability ratings based on the severity of their disabilities. This rating is used to determine their compensation rates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ RatedDisability

Returns a new instance of RatedDisability.



49
50
51
52
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 49

def initialize(attrs)
  super(attrs)
  self.name = attrs['diagnostic_text']
end

Instance Attribute Details

#decision_codeString

Returns Code for the decision, e.g. [‘NOTSVCCON’, ‘SVCCONNECTED’].

Returns:

  • (String)

    Code for the decision, e.g. [‘NOTSVCCON’, ‘SVCCONNECTED’]



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#decision_textString

Returns Description of the decision, e.g. ‘Service Connected’.

Returns:

  • (String)

    Description of the decision, e.g. ‘Service Connected’



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#diagnostic_codeInteger

Returns Diagnostic Code of each condition used to assign the disability rating.

Returns:

  • (Integer)

    Diagnostic Code of each condition used to assign the disability rating



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#effective_dateDateTime

Returns The date the VA receives an application. Benefits start the first day of the following month.

Returns:

  • (DateTime)

    The date the VA receives an application. Benefits start the first day of the following month.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#nameString

Returns We map ‘attrs’ to #name in order to match the same attribute in the submit endpoint.

Returns:

  • (String)

    We map ‘attrs’ to #name in order to match the same attribute in the submit endpoint



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#rated_disability_idString

Returns Zero-based incremented id for a veterans disability.

Returns:

  • (String)

    Zero-based incremented id for a veterans disability



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#rating_decision_idString

Returns Relational id pointing the decision.

Returns:

  • (String)

    Relational id pointing the decision



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#rating_percentageInteger

Returns For every disability claim, the VA assigns a severity rating ranging from 0-100%.

Returns:

  • (Integer)

    For every disability claim, the VA assigns a severity rating ranging from 0-100%



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

Returns Report date of a related disability.

Returns:

  • (DateTime)

    Report date of a related disability



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

#special_issuesArray<EVSS::DisabilityCompensationForm::SpecialIssue>

Returns List of complicating issues e.g. [‘POW’, ‘PTSD_1’].

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 34

class RatedDisability
  include ActiveModel::Serialization
  include Virtus.model

  attribute :decision_code, String
  attribute :decision_text, String
  attribute :diagnostic_code, Integer
  attribute :name, String
  attribute :effective_date, DateTime
  attribute :rated_disability_id, String
  attribute :rating_decision_id, String
  attribute :rating_percentage, Integer
  attribute :related_disability_date, DateTime
  attribute :special_issues, Array[EVSS::DisabilityCompensationForm::SpecialIssue]

  def initialize(attrs)
    super(attrs)
    self.name = attrs['diagnostic_text']
  end

  # @return [String] Shorthand for rated_disability_id
  #
  def id
    rated_disability_id
  end
end

Instance Method Details

#idString

Returns Shorthand for rated_disability_id.

Returns:

  • (String)

    Shorthand for rated_disability_id



56
57
58
# File 'lib/evss/disability_compensation_form/rated_disability.rb', line 56

def id
  rated_disability_id
end