-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds 2.3 to All Claims 526 form - follow-up questions for disabilities.
- Loading branch information
1 parent
3b7fed1
commit 1671b0e
Showing
12 changed files
with
434 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/applications/disability-benefits/all-claims/content/newDisabilityFollowUp.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react'; | ||
import Modal from '@department-of-veterans-affairs/formation/Modal'; | ||
import { getDisabilityName } from '../utils'; | ||
|
||
export class CauseTitle extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { modalVisible: false }; | ||
} | ||
|
||
openModal = () => this.setState({ modalVisible: true }); | ||
|
||
closeModal = () => this.setState({ modalVisible: false }); | ||
|
||
render() { | ||
return ( | ||
<div> | ||
What caused this{' '} | ||
<button | ||
type="button" | ||
className="va-button-link" | ||
onClick={this.openModal} | ||
> | ||
service-connected | ||
</button>{' '} | ||
disability? | ||
<Modal | ||
title="Service-connected disability" | ||
onClose={this.closeModal} | ||
visible={this.state.modalVisible} | ||
id="service-connected-modal" | ||
> | ||
<p> | ||
To be eligible for disability benefits, you’ll need to show that | ||
your condition was caused by an illness or injury connected to your | ||
military service. You’ll need to show your condition is linked to | ||
your service by submitting evidence, such as medical reports or lay | ||
statements, with your claim. We may ask you to have a claim exam if | ||
you don’t submit evidence or if we need more information to decide | ||
your claim. | ||
</p> | ||
</Modal> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export const disabilityNameTitle = ({ formData }) => ( | ||
<legend className="schemaform-block-title schemaform-title-underline"> | ||
{getDisabilityName(formData.condition)} | ||
</legend> | ||
); |
17 changes: 17 additions & 0 deletions
17
src/applications/disability-benefits/all-claims/content/newPTSDFollowUp.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
|
||
export const newPTSDFollowUpDescription = ( | ||
<div> | ||
<p> | ||
If you’re filing a claim for PTSD, you’ll need to provide additional | ||
documents and details about the traumatic (or “stressor”) event that | ||
caused your PTSD. You may also need to provide treatment records and | ||
contact information for any relevant supporting statements. | ||
</p> | ||
<p> | ||
If you need more time to prepare your evidence for your PTSD claim, you | ||
can save your application and return to it later when you have your | ||
evidence ready to upload. | ||
</p> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/applications/disability-benefits/all-claims/content/summaryOfDisabilities.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import { getDisabilityName } from '../utils'; | ||
|
||
export const summaryOfDisabilitiesDescription = ({ formData }) => { | ||
const { ratedDisabilities, newDisabilities } = formData; | ||
const ratedDisabilityNames = ratedDisabilities | ||
? ratedDisabilities.map(disability => getDisabilityName(disability.name)) | ||
: []; | ||
const newDisabilityNames = newDisabilities | ||
? newDisabilities.map(disability => getDisabilityName(disability.condition)) | ||
: []; | ||
const selectedDisabilitiesList = ratedDisabilityNames | ||
.concat(newDisabilityNames) | ||
.map((name, i) => <li key={`"${name}-${i}"`}>{name}</li>); | ||
return ( | ||
<div> | ||
<p> | ||
Below is the list of disabilities you’re claiming in this application. | ||
If a disability is missing from the list, please go back one screen and | ||
add it. | ||
</p> | ||
<ul>{selectedDisabilitiesList}</ul> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.