@medicus.ai/medicus-report-pdf-generator 1.0.198 → 1.0.199
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.
|
@@ -242,13 +242,13 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
242
242
|
const rotatePsychologicalAmount = (psychologicalScore / 100) * psychologicalAmount;
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
let firstSectionlHtml = firstSectionTemplate.replace("{{physicalScore}}", parseFloat(data.calculation.physicalScore)
|
|
245
|
+
let firstSectionlHtml = firstSectionTemplate.replace("{{physicalScore}}", parseFloat(Math.floor(data.calculation.physicalScore)))
|
|
246
246
|
.replace("{{physicalScoreDecimalPart}}", parseFloat((data.calculation.physicalScore).toFixed(1) % 1).toFixed(1).substring(1))
|
|
247
247
|
.replace("{{physicalScoreStatement}}", data.calculation.physicalScoreStatement)
|
|
248
248
|
.replace("{{PhysicalWord}}", localeService.t('physical'))
|
|
249
249
|
.replace(/{{rotatePhysicalAmount}}/gi, rotatePhysicalAmount)
|
|
250
250
|
.replace(/{{physicalColor}}/gi, physicalColor)
|
|
251
|
-
.replace("{{psychologicalScore}}", data.calculation.psychologicalScore
|
|
251
|
+
.replace("{{psychologicalScore}}", Math.floor(data.calculation.psychologicalScore))
|
|
252
252
|
.replace("{{psychologicalScoreDecimalPart}}", parseFloat((data.calculation.psychologicalScore).toFixed(1) % 1).toFixed(1).substring(1))
|
|
253
253
|
.replace("{{psychologicalWord}}", localeService.t('psychological'))
|
|
254
254
|
.replace("{{psychologicalScoreStatement}}", data.calculation.psychologicalScoreStatement)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicus.ai/medicus-report-pdf-generator",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.199",
|
|
4
|
+
"description": "Nasco patient report - latest update in 29/8/2022 - fix scores",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "node index.js"
|