Skip to content

Commit

Permalink
Merge pull request #183 from hopetambala/PLATFORM-194
Browse files Browse the repository at this point in the history
fix: remove validation on environmental health config
  • Loading branch information
hopetambala authored Nov 11, 2020
2 parents 1a728cf + 192d209 commit 8ce1055
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const configArray = {
value: 'moreThan10'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.yearsLived.house',
Expand Down Expand Up @@ -58,14 +58,14 @@ const configArray = {
value: 'moreThan10'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.biggestProblemComm',
formikKey: 'biggestproblemofcommunity',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'environmentalHealth.waterAccess.label',
Expand Down Expand Up @@ -98,7 +98,7 @@ const configArray = {
value: 'Never'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.typeOfWater.label',
Expand All @@ -119,7 +119,7 @@ const configArray = {
value: 'filtered'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.bathroomAccess',
Expand All @@ -136,7 +136,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.latrineAccess',
Expand All @@ -153,7 +153,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.clinicAccess',
Expand All @@ -170,35 +170,35 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.medicalProblemsGo',
formikKey: 'medicalproblemswheredoyougo',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'environmentalHealth.dentalProblemsGo',
formikKey: 'dentalproblemswheredoyougo',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'environmentalHealth.timesPerWeekTrash',
formikKey: 'timesperweektrashcollected',
value: '',
fieldType: 'numberInput',
validation: true
validation: false
},
{
label: 'environmentalHealth.trashBetweenPickups',
formikKey: 'wheretrashleftbetweenpickups',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'environmentalHealth.houseOwnership',
Expand All @@ -215,7 +215,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.floorCondition.label',
Expand All @@ -240,7 +240,7 @@ const configArray = {
value: 'cementWorking'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.roofCondition.label',
Expand All @@ -257,7 +257,7 @@ const configArray = {
value: 'working'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.typeStove.label',
Expand All @@ -278,7 +278,7 @@ const configArray = {
value: 'openfire-noVentilation'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.houseMaterials.label',
Expand All @@ -303,7 +303,7 @@ const configArray = {
value: 'block'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.electricityAccess.label',
Expand All @@ -324,7 +324,7 @@ const configArray = {
value: 'always'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.foodSecurity',
Expand All @@ -345,7 +345,7 @@ const configArray = {
value: 'not_sure'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.govAssistance.label',
Expand All @@ -366,21 +366,21 @@ const configArray = {
value: 'other'
}
],
validation: true
validation: false
},
{
label: 'environmentalHealth.numberIndividualsHouse',
formikKey: 'numberofIndividualsLivingintheHouse',
value: '',
fieldType: 'numberInput',
validation: true
validation: false
},
{
label: 'environmentalHealth.numberChildrenUnder5',
formikKey: 'numberofChildrenLivinginHouseUndertheAgeof5',
value: '',
fieldType: 'numberInput',
validation: true
validation: false
},
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.chronicDiabetes',
Expand All @@ -35,7 +35,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.chronicOther',
Expand All @@ -52,7 +52,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.doctor',
Expand All @@ -69,14 +69,14 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'global.notes',
formikKey: 'received_treatment_notes',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'evaluationMedical.statusOfHealth.label',
Expand Down Expand Up @@ -105,7 +105,7 @@ const configArray = {
value: 'other'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.partOfBody.label',
Expand Down Expand Up @@ -154,14 +154,14 @@ const configArray = {
value: ''
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.partOfBodyDescription',
formikKey: 'part_of_body_description',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'evaluationMedical.duration.label',
Expand All @@ -186,7 +186,7 @@ const configArray = {
value: 'after_5_years'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.problemSuddenness.label',
Expand All @@ -207,7 +207,7 @@ const configArray = {
value: 'gradually'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.progressionOfCondition.label',
Expand All @@ -228,14 +228,14 @@ const configArray = {
value: 'constant'
}
],
validation: true
validation: false
},
{
label: 'global.notes',
formikKey: 'notes',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'evaluationMedical.generalHealthConsult',
Expand All @@ -252,7 +252,7 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.surgicalRequired',
Expand All @@ -269,14 +269,14 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.yourGuess',
formikKey: 'AssessmentandEvaluation_Surgical_Guess',
value: '',
fieldType: 'input',
validation: true
validation: false
},
{
label: 'evaluationMedical.immediateFollowupRequired',
Expand All @@ -293,14 +293,14 @@ const configArray = {
value: 'No'
}
],
validation: true
validation: false
},
{
label: 'evaluationMedical.plan',
formikKey: 'planOfAction',
value: '',
fieldType: 'input',
validation: true
validation: false
},
]
};
Expand Down

0 comments on commit 8ce1055

Please sign in to comment.