This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Naming conventions and linting (#50)
* standardize naming conventions - personal * linting * standardize naming conventions - expedited * nameing conventions - name * standardize naming conventions - conditions * standardize naming conventions - medications * remove unused macros * standardize naming conventions - treatments * standardize naming conventions - overall health * standardize naming conventions - documents * standardize naming conventions - employment * standardize naming conventions - declaration * automatic linting fixes * standardize naming conventions - model/migration
- Loading branch information
1 parent
252b204
commit 6f85898
Showing
47 changed files
with
263 additions
and
324 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,5 @@ module.exports = sails => { | |
} | ||
}); | ||
}, | ||
} | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ module.exports = function (req, res, next) { | |
return res.redirect(sails.route('start')); | ||
} | ||
next(); | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
module.exports = { | ||
name_of_condition: { | ||
conditionName: { | ||
presence: { | ||
allowEmpty: false, | ||
message: '^errors.name_of_condition.length' | ||
} | ||
}, | ||
symptoms_began: { | ||
symptomsBegan: { | ||
presence: { | ||
allowEmpty: false, | ||
message: '^errors.symptoms_began.length' | ||
} | ||
}, | ||
clinically_impair: { | ||
clinicallyImpair: { | ||
presence: { | ||
allowEmpty: false, | ||
message: '^errors.clinically_impair' | ||
} | ||
}, | ||
condition_outlook: { | ||
conditionOutlook: { | ||
presence: { | ||
message: '^errors.condition_outlook_required' | ||
} | ||
}, | ||
condition_outlook_unknown: function (value, attributes) { | ||
const condition_outlook = attributes.condition_outlook; | ||
if (condition_outlook && condition_outlook === '4') { | ||
conditionOutlookUnknown: function (value, attributes) { | ||
const conditionOutlook = attributes.conditionOutlook; | ||
if (conditionOutlook && conditionOutlook === '4') { | ||
return { | ||
presence: { | ||
allowEmpty: false, | ||
message: '^errors.condition_outlook_unknown' | ||
} | ||
} | ||
}; | ||
} | ||
}, | ||
condition_last: { | ||
conditionLast: { | ||
presence: { | ||
message: '^errors.condition_last_required' | ||
} | ||
// also validate options | ||
}, | ||
symptoms_occur: { | ||
symptomsOccur: { | ||
presence: { | ||
message: '^errors.symptoms_occur_required' | ||
} | ||
}, | ||
symptoms_occur_unknown: function (value, attributes) { | ||
const symptoms_occur = attributes.symptoms_occur; | ||
if (symptoms_occur && symptoms_occur === '3') { | ||
symptomsOccurUnknown: function (value, attributes) { | ||
const symptomsOccur = attributes.symptomsOccur; | ||
if (symptomsOccur && symptomsOccur === '3') { | ||
return { | ||
presence: { | ||
allowEmpty: false, | ||
message: '^errors.symptoms_occur_unknown_required' | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ module.exports = { | |
message: '^Signature is Required if you Consent', | ||
allowEmpty: false | ||
} | ||
} | ||
}; | ||
} | ||
}, | ||
} | ||
}; |
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
Oops, something went wrong.