Skip to content

Commit

Permalink
72706: Add middle name to metadata for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
balexandr committed Mar 26, 2024
1 parent 841c74e commit eccea51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ivc_champva/app/models/ivc_champva/vha_10_7959c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(data)
def metadata
{
'veteranFirstName' => @data.dig('applicants', 'full_name', 'first'),
'veteranMiddleName' => @data.dig('applicants', 'full_name', 'middle'),
'veteranLastName' => @data.dig('applicants', 'full_name', 'last'),
'fileNumber' => @data.dig('applicants', 'ssn_or_tin'),
'zipCode' => @data.dig('applicants', 'address', 'postal_code') || '00000',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(data)
def metadata
{
'veteranFirstName' => @data.dig('veteran', 'full_name', 'first'),
'veteranMiddleName' => @data.dig('veteran', 'full_name', 'middle'),
'veteranLastName' => @data.dig('veteran', 'full_name', 'last'),
'fileNumber' => @data.dig('veteran', 'va_claim_number').presence || @data.dig('veteran', 'ssn'),
'zipCode' => @data.dig('veteran', 'mailing_address', 'postal_code') || '00000',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(data)
def metadata
{
'veteranFirstName' => @data.dig('veteran', 'full_name', 'first'),
'veteranMiddleName' => @data.dig('veteran', 'full_name', 'middle'),
'veteranLastName' => @data.dig('veteran', 'full_name', 'last'),
'fileNumber' => @data.dig('veteran', 'va_claim_number').presence || @data.dig('veteran', 'ssn'),
'zipCode' => @data.dig('veteran', 'mailing_address', 'postal_code') || '00000',
Expand Down

0 comments on commit eccea51

Please sign in to comment.