@baravak/risloo-profile-cli 4.3.2 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/samples/JPFQ93.js +2 -2
package/package.json
CHANGED
package/src/samples/JPFQ93.js
CHANGED
|
@@ -58,7 +58,7 @@ class JPFQ93 extends Profile {
|
|
|
58
58
|
const clinicalScores = clinicalScoring(dataset.questions)
|
|
59
59
|
const score2 = []
|
|
60
60
|
dataset.score.forEach(score => {
|
|
61
|
-
markSum += score.mark
|
|
61
|
+
markSum += (score.mark ?? 0)
|
|
62
62
|
const s2= {label: {...score.label}}
|
|
63
63
|
s2.mark = clinicalScores[score.label.eng].total
|
|
64
64
|
s2.label.percentage = clinicalScores[score.label.eng].percentage
|
|
@@ -66,7 +66,7 @@ class JPFQ93 extends Profile {
|
|
|
66
66
|
score2.push(s2)
|
|
67
67
|
})
|
|
68
68
|
this.dataset.score.forEach((f, i) => {
|
|
69
|
-
this.dataset.score[i].label.percentage = Math.round(((this.dataset.score[i].mark * 100) / this.dataset.score[i].label.width))
|
|
69
|
+
this.dataset.score[i].label.percentage = Math.round((((this.dataset.score[i].mark ?? 0) * 100) / this.dataset.score[i].label.width))
|
|
70
70
|
})
|
|
71
71
|
let markSum1 = 0
|
|
72
72
|
for(const cs in clinicalScores){
|