@medicus.ai/medicus-report-pdf-generator 1.0.262 → 1.0.263
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.
|
@@ -148,7 +148,7 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
148
148
|
.replace("{{lowestElementScore}}", lowestElementScore.name)
|
|
149
149
|
|
|
150
150
|
/* Personal Details section */
|
|
151
|
-
let physicalScoreRounded =
|
|
151
|
+
let physicalScoreRounded = data.calculation.physicalScore
|
|
152
152
|
let physicalScore = Number(Math.round(physicalScoreRounded + 'e' + 1) + 'e-' + 1)
|
|
153
153
|
let physicalAmount = ((physicalScore > 40 && physicalScore < 70) ? 255 : (physicalScore >= 70) ? 253 : 214);
|
|
154
154
|
let physicalColor = (physicalScore > 40 && physicalScore < 70) ? second_level_color : (physicalScore >= 70) ? third_level_color : first_level_color;
|
package/package.json
CHANGED