Class: EVSS::DisabilityCompensationForm::RatedDisability
- Inherits:
-
Object
- Object
- EVSS::DisabilityCompensationForm::RatedDisability
- 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
-
#decision_code ⇒ String
Code for the decision, e.g.
-
#decision_text ⇒ String
Description of the decision, e.g.
-
#diagnostic_code ⇒ Integer
Diagnostic Code of each condition used to assign the disability rating.
-
#effective_date ⇒ DateTime
The date the VA receives an application.
- #name ⇒ String
-
#rated_disability_id ⇒ String
Zero-based incremented id for a veterans disability.
-
#rating_decision_id ⇒ String
Relational id pointing the decision.
-
#rating_percentage ⇒ Integer
For every disability claim, the VA assigns a severity rating ranging from 0-100%.
-
#related_disability_date ⇒ DateTime
Report date of a related disability.
-
#special_issues ⇒ Array<EVSS::DisabilityCompensationForm::SpecialIssue>
List of complicating issues e.g.
Instance Method Summary collapse
-
#id ⇒ String
Shorthand for rated_disability_id.
-
#initialize(attrs) ⇒ RatedDisability
constructor
A new instance of RatedDisability.
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_code ⇒ String
Returns 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_text ⇒ String
Returns 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_code ⇒ Integer
Returns 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_date ⇒ DateTime
Returns 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 |
#name ⇒ String
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_id ⇒ String
Returns 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_id ⇒ String
Returns 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_percentage ⇒ Integer
Returns 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 |
#related_disability_date ⇒ DateTime
Returns 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_issues ⇒ Array<EVSS::DisabilityCompensationForm::SpecialIssue>
Returns List of complicating issues e.g. [‘POW’, ‘PTSD_1’].
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
#id ⇒ String
Returns 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 |