We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scoreSmoking
Score
1 parent b979164 commit 28a43a9Copy full SHA for 28a43a9
src/index.js
@@ -14,10 +14,7 @@ export class Scorer {
14
this._healthLevel = 0;
15
this._highMedicalRiskFlag = false;
16
17
- if (this._medicalExam.isSmoker) {
18
- this._healthLevel += 10;
19
- this._highMedicalRiskFlag = true;
20
- }
+ this.scoreSmoking();
21
22
this._certificationGrade = 'regular';
23
if (this._scoringGuide.stateWithLowCertification(this._candidate.originState)) {
@@ -30,4 +27,11 @@ export class Scorer {
30
27
31
28
return this._result;
32
29
}
+
+ scoreSmoking() {
+ if (this._medicalExam.isSmoker) {
33
+ this._healthLevel += 10;
34
+ this._highMedicalRiskFlag = true;
35
+ }
36
37
0 commit comments