Skip to content

Commit

Permalink
Mobile LH claims - contention list field fix (#12807)
Browse files Browse the repository at this point in the history
  • Loading branch information
aherzberg authored May 26, 2023
1 parent 9c2cea3 commit e51084b
Show file tree
Hide file tree
Showing 7 changed files with 2,978 additions and 1,150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def parse(claim)
current_phase_back: attributes.dig('claimPhaseDates', 'currentPhaseBack'),
requested_decision: attributes['evidenceWaiverSubmitted5103'],
claim_type: attributes['claimType'],
contention_list: attributes['contentionList'],
contention_list: attributes['contentions'].pluck('name'),
va_representative: 'Contact your VA regional office for more information.',
events_timeline:,
updated_at: nil
Expand Down
4,048 changes: 2,901 additions & 1,147 deletions modules/mobile/docs/index.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion modules/mobile/docs/schemas/Claim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ properties:
type: array
items:
type: string
example: 'Abdominal pain, etiology unknown (New)'
eventsTimeline:
type: array
items:
type: object
$ref: "./claimEventTimeline.yml"
phaseChangeDate:
type: string, null
example: "2017-12-08"
Expand Down
17 changes: 17 additions & 0 deletions modules/mobile/docs/schemas/claimDocument.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
type: object
properties:
tracked_item_id:
type: integer
example: 360_052
file_type:
type: integer
example: 'Civilian Police Reports'
document_type:
type: null
example: null
filename:
type: string
example: '7B434B58-477C-4379-816F-05E6D3A10487.pdf'
upload_date:
type: string
example: '2023-03-01'
51 changes: 51 additions & 0 deletions modules/mobile/docs/schemas/claimEventTimeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
type: object
properties:
type:
type: string
example: 'received_from_you_list'
tracked_item_id:
type: integer
example: 360_052
description:
type: string
example: 'The information provided concerning your prior marital history is inconsistent. In order to resolve these inconsistencies you should submit certified copies of the public record of the termination (death, divorce or annulment) for each of your prior marriages.'
display_name:
type: string
example: 'Claimant marital history inconsistent - need proof'
overdue:
type: boolean
example: true
status:
type: string
example: 'NEEDED'
uploaded:
type: boolean
example: true
uploads_allowed:
type: boolean
example: true
opened_date:
type: string
example: '2022-09-30'
requested_date:
type: string
example: '2022-09-30'
received_date:
type: string
example: '2023-10-30'
closed_date:
type: string
example: '2023-11-30'
suspense_date:
type: string
example: '2023-05-30'
documents:
type: array
items:
$ref: "./claimDocument.yml"
upload_date:
type: string
example: '2023-05-30'
date:
type: string
example: '2023-05-30'
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def claim_data
it 'returns expected fields' do
expect(under_review_claim[:phase]).to eq(2)
expect(under_review_claim[:open]).to eq(true)
expect(under_review_claim[:contention_list]).to eq(['Post Traumatic Stress Disorder (PTSD) ' \
'Combat - Mental Disorders (New)'])
end
end

Expand Down Expand Up @@ -128,6 +130,9 @@ def claim_data
it 'returns expected fields' do
expect(complete_claim[:phase]).to eq(8)
expect(complete_claim[:open]).to eq(false)
expect(complete_claim[:contention_list]).to eq(['Abdominal pain, etiology unknown (New)',
'Post Traumatic Stress Disorder (PTSD) ' \
'Combat - Mental Disorders (New)'])
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
{"data":{"id":"600334872","type":"claim","attributes":{"claimTypeCode":"020NEW","claimDate":"2022-09-27","claimPhaseDates":{"phaseChangeDate":"2022-09-30","currentPhaseBack":false,"latestPhaseType":"GATHERING_OF_EVIDENCE","previousPhases":{"phase2CompleteDate":"2022-09-30","phase1CompleteDate":"2022-09-30"}},"claimType":"Compensation","closeDate":null,"contentions":[{"name":"Accommodation, paralysis of (eye) (New)"}],"decisionLetterSent":false,"developmentLetterSent":true,"documentsNeeded":true,"endProductCode":"020","evidenceWaiverSubmitted5103":false,"errors":[],"jurisdiction":"National Work Queue","lighthouseId":null,"maxEstClaimDate":"2023-08-14","minEstClaimDate":"2023-03-22","status":"EVIDENCE_GATHERING_REVIEW_DECISION","submitterApplicationCode":"VBMS","submitterRoleCode":"VBA","supportingDocuments":[{"documentId":"{7AF4C5E0-EBCE-49B2-9544-999ECA2904FD}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":"2D7E2C41-CE81-44F2-9908-20E7EA7DAC1E.pdf","trackedItemId":360053,"uploadDate":"2022-10-11"},{"documentId":"{32E31191-5EAA-4304-AE43-AB99426C4C8D}","documentTypeLabel":"Medical Treatment Record - Non-Government Facility","originalFileName":"rn_image_picker_lib_temp_83fdc9e3-6241-47f2-ad35-0d802cdc5b9c.pdf","trackedItemId":360054,"uploadDate":"2022-10-13"},{"documentId":"{264AD79C-BDF3-4865-93D0-1D07EDC30F2D}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":"multifile.pdf","trackedItemId":360047,"uploadDate":"2022-10-13"},{"documentId":"{92932CE1-A184-473F-9657-F3E500ED6017}","documentTypeLabel":"Correspondence","originalFileName":"multifile.pdf","trackedItemId":360050,"uploadDate":"2022-12-12"},{"documentId":"{883B6CC8-D726-4911-9C65-2EB360E12F52}","documentTypeLabel":"Civilian Police Reports","originalFileName":"7B434B58-477C-4379-816F-05E6D3A10487.pdf","trackedItemId":360052,"uploadDate":"2023-03-01"},{"documentId":"{6A6DFA79-4EC9-4E58-9653-25BDCFB06A03}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{B38D3F6B-CEB9-4B96-8B66-72B34366C3E0}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{2AED4DB3-B31F-4584-9692-E872563812A0}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{25531877-D5B1-4E5B-B7DB-91CE056CE829}","documentTypeLabel":"Correspondence","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{0C994A8F-F2FE-4963-B013-870E420EFFD1}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{13336C3E-A180-420A-A8A6-81AA3D866621}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{9B19566F-98ED-4C5F-895E-0EA588E81669}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{798F828C-3B4A-4EB5-8883-F7C49205BD98}","documentTypeLabel":"VA 21-526EZ, Fully Developed Claim (Compensation)","originalFileName":null,"trackedItemId":null,"uploadDate":null}],"tempJurisdiction":null,"trackedItems":[{"closedDate":"2022-10-30","description":null,"displayName":"Reserve or Guard service claimed - unit info needed","overdue":false,"receivedDate":null,"requestedDate":"2022-09-30","status":"NO_LONGER_REQUIRED","suspenseDate":"2022-10-30","id":360047,"uploadsAllowed":false},{"closedDate":null,"description":"The number of previous marriages indicated on your application for benefits did not equal the former spouses listed. On the enclosed VA Form 21-686c, Declaration of Status of Dependents, please provide your complete marital history, listing the date and place of each prior marriage, and its termination.","displayName":"Claimant marital history inconsistent - need 21-686c","overdue":true,"receivedDate":null,"requestedDate":"2022-09-30","status":"SUBMITTED_AWAITING_REVIEW","suspenseDate":"2022-10-30","id":360050,"uploadsAllowed":true},{"closedDate":null,"description":"On your application for benefits you did not provide a complete history of your previous marriages. On the enclosed VA Form 21-686c, Declaration of Status of Dependents, please provide a complete marital history, listing the date and place of each prior marriage, and its termination.","displayName":"History of prior marriages of claimant needed","overdue":true,"receivedDate":null,"requestedDate":"2022-09-30","status":"NEEDED_FROM_YOU","suspenseDate":"2022-10-30","id":360051,"uploadsAllowed":true},{"closedDate":null,"description":"The information provided concerning your prior marital history is inconsistent. In order to resolve these inconsistencies you should submit certified copies of the public record of the termination (death, divorce or annulment) for each of your prior marriages.","displayName":"Claimant marital history inconsistent - need proof","overdue":true,"receivedDate":null,"requestedDate":"2022-09-30","status":"SUBMITTED_AWAITING_REVIEW","suspenseDate":"2022-10-30","id":360052,"uploadsAllowed":true},{"closedDate":null,"description":"Provide the type of termination (death/annulment/divorce) for your marriage to <name of former spouse>.","displayName":"Claimant - previous marriage termination type needed","overdue":true,"receivedDate":null,"requestedDate":"2022-09-30","status":"SUBMITTED_AWAITING_REVIEW","suspenseDate":"2022-10-30","id":360053,"uploadsAllowed":true},{"closedDate":"2022-10-30","description":null,"displayName":"Claim based on other agency disability grant","overdue":false,"receivedDate":null,"requestedDate":"2022-09-30","status":"NO_LONGER_REQUIRED","suspenseDate":"2022-10-30","id":360054,"uploadsAllowed":false},{"closedDate":"2022-10-30","description":null,"displayName":"Spouse claimant biological relationship to child needed","overdue":false,"receivedDate":null,"requestedDate":"2022-09-30","status":"NO_LONGER_REQUIRED","suspenseDate":"2022-10-30","id":360055,"uploadsAllowed":false},{"closedDate":"2022-10-30","description":null,"displayName":"Stepchild - clarify % of support from claimant","overdue":false,"receivedDate":null,"requestedDate":"2022-09-30","status":"NO_LONGER_REQUIRED","suspenseDate":"2022-10-30","id":360056,"uploadsAllowed":false}]}}},
{"data":{"id":"600358594","type":"claim","attributes":{"claimTypeCode":"020NEW","claimDate":"2023-01-11","claimPhaseDates":{"phaseChangeDate":"2023-01-12","currentPhaseBack":false,"latestPhaseType":"REVIEW_OF_EVIDENCE","previousPhases":{"phase3CompleteDate":"2023-01-12","phase2CompleteDate":"2023-01-11","phase1CompleteDate":"2023-01-11"}},"claimType":"Compensation","closeDate":null,"contentions":[{"name":"Meningitis (New)"},{"name":"GERD (New)"},{"name":"bilateral pes planus (New)"},{"name":"gallbladder removal (New)"},{"name":"hearing loss (New)"},{"name":"IBS (New)"},{"name":"gunshot wound, left thigh (New)"},{"name":"hepatitis C (New)"},{"name":"Lou Gehrig's Disease (New)"},{"name":"hemorrhoids (New)"},{"name":"asthma (New)"},{"name":"Gastric ulcer (New)"},{"name":"type II diabetes mellitus (New)"},{"name":"Endometriosis (New)"},{"name":"leukemia (New)"},{"name":"hypertension (New)"},{"name":"UTI (New)"}],"decisionLetterSent":false,"developmentLetterSent":true,"documentsNeeded":false,"endProductCode":"020","evidenceWaiverSubmitted5103":false,"errors":[],"jurisdiction":"National Work Queue","lighthouseId":null,"maxEstClaimDate":"2023-06-01","minEstClaimDate":"2023-03-12","status":"EVIDENCE_GATHERING_REVIEW_DECISION","submitterApplicationCode":"VBMS","submitterRoleCode":"VBA","supportingDocuments":[],"tempJurisdiction":"Pittsburgh","trackedItems":[{"closedDate":"2023-01-11","description":null,"displayName":"Exam Request - Processing","overdue":false,"receivedDate":null,"requestedDate":"2023-01-11","status":"NO_LONGER_REQUIRED","suspenseDate":"2023-01-13","id":376996,"uploadsAllowed":false},{"closedDate":"2023-01-11","description":null,"displayName":"Exam Request - Request for Clarification","overdue":false,"receivedDate":null,"requestedDate":"2023-01-11","status":"NO_LONGER_REQUIRED","suspenseDate":"2023-01-11","id":377000,"uploadsAllowed":false}]}}},
{"data":{"id":"600323223","type":"claim","attributes":{"claimTypeCode":"110LCOMP7","claimDate":"2022-05-01","claimPhaseDates":{"phaseChangeDate":"2022-08-10","currentPhaseBack":false,"latestPhaseType":"PREPARATION_FOR_DECISION","previousPhases":{"phase1CompleteDate":"2022-08-10"}},"claimType":"Compensation","closeDate":null,"contentions":[],"decisionLetterSent":false,"developmentLetterSent":false,"documentsNeeded":false,"endProductCode":"111","evidenceWaiverSubmitted5103":false,"errors":[],"jurisdiction":"National Work Queue","lighthouseId":null,"maxEstClaimDate":"2023-01-31","minEstClaimDate":"2022-10-20","status":"EVIDENCE_GATHERING_REVIEW_DECISION","submitterApplicationCode":"VBMS","submitterRoleCode":"VBA","supportingDocuments":[{"documentId":"{883B6CC8-D726-4911-9C65-2EB360E12F52}","documentTypeLabel":"Civilian Police Reports","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{92932CE1-A184-473F-9657-F3E500ED6017}","documentTypeLabel":"Correspondence","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{264AD79C-BDF3-4865-93D0-1D07EDC30F2D}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{32E31191-5EAA-4304-AE43-AB99426C4C8D}","documentTypeLabel":"Medical Treatment Record - Non-Government Facility","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{7AF4C5E0-EBCE-49B2-9544-999ECA2904FD}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{6A6DFA79-4EC9-4E58-9653-25BDCFB06A03}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{B38D3F6B-CEB9-4B96-8B66-72B34366C3E0}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{2AED4DB3-B31F-4584-9692-E872563812A0}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{25531877-D5B1-4E5B-B7DB-91CE056CE829}","documentTypeLabel":"Correspondence","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{0C994A8F-F2FE-4963-B013-870E420EFFD1}","documentTypeLabel":"5103 Notice Acknowledgement","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{13336C3E-A180-420A-A8A6-81AA3D866621}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{9B19566F-98ED-4C5F-895E-0EA588E81669}","documentTypeLabel":"VA 21-0781a, Statement in Support of Claim for PTSD Secondary to Personal Assault","originalFileName":null,"trackedItemId":null,"uploadDate":null},{"documentId":"{798F828C-3B4A-4EB5-8883-F7C49205BD98}","documentTypeLabel":"VA 21-526EZ, Fully Developed Claim (Compensation)","originalFileName":null,"trackedItemId":null,"uploadDate":null}],"tempJurisdiction":null,"trackedItems":[]}}},
{"data":{"id":"600288458","type":"claim","attributes":{"claimTypeCode":"020NEW","claimDate":"2022-02-10","claimPhaseDates":{"phaseChangeDate":"2022-02-15","currentPhaseBack":false,"latestPhaseType":"COMPLETE","previousPhases":{"phase7CompleteDate":"2022-02-15"}},"claimType":"Compensation","closeDate":"2022-02-15","contentions":[{"name":"Abdominal pain, etiology unknown (New)"}],"decisionLetterSent":false,"developmentLetterSent":false,"documentsNeeded":false,"endProductCode":"021","evidenceWaiverSubmitted5103":false,"errors":[],"jurisdiction":"National Work Queue","lighthouseId":null,"maxEstClaimDate":null,"minEstClaimDate":null,"status":"COMPLETE","submitterApplicationCode":"VBMS","submitterRoleCode":"VBA","supportingDocuments":[],"tempJurisdiction":null,"trackedItems":[]}}}]
{"data":{"id":"600288458","type":"claim","attributes":{"claimTypeCode":"020NEW","claimDate":"2022-02-10","claimPhaseDates":{"phaseChangeDate":"2022-02-15","currentPhaseBack":false,"latestPhaseType":"COMPLETE","previousPhases":{"phase7CompleteDate":"2022-02-15"}},"claimType":"Compensation","closeDate":"2022-02-15","contentions":[{"name":"Abdominal pain, etiology unknown (New)"},{"name":"Post Traumatic Stress Disorder (PTSD) Combat - Mental Disorders (New)"}],"decisionLetterSent":false,"developmentLetterSent":false,"documentsNeeded":false,"endProductCode":"021","evidenceWaiverSubmitted5103":false,"errors":[],"jurisdiction":"National Work Queue","lighthouseId":null,"maxEstClaimDate":null,"minEstClaimDate":null,"status":"COMPLETE","submitterApplicationCode":"VBMS","submitterRoleCode":"VBA","supportingDocuments":[],"tempJurisdiction":null,"trackedItems":[]}}}]

0 comments on commit e51084b

Please sign in to comment.