@medicus.ai/medicus-report-pdf-generator 1.0.283 → 1.0.285
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/assets/wellbeing/css/nasco_report.css +7 -0
- package/lib/wellbeing_report_generator.js +19 -15
- package/package.json +1 -1
- package/output/LOGS.txt +6 -1535
- package/output/nasco-pdf1696416021211.html +0 -441
- package/output/nasco-pdf1696416068526.html +0 -441
- package/output/nasco-pdf1696416466026.html +0 -441
- package/output/nasco-pdf1696416485387.html +0 -441
- package/output/nasco-pdf1696416748161.html +0 -441
- package/output/nasco-pdf1696416896572.html +0 -441
- package/output/nasco-pdf1696417460704.html +0 -441
- package/output/nasco-pdf1696419225867.html +0 -441
- package/output/nasco-pdf1696419342513.html +0 -441
- package/output/nasco-pdf1696419418677.html +0 -441
- package/output/nasco-pdf1696419608924.html +0 -441
- package/output/nasco-pdf1696419674835.html +0 -441
- package/output/nasco-sample.pdf +0 -0
|
@@ -3428,4 +3428,11 @@ div[key="mind"] .score-details-title {
|
|
|
3428
3428
|
.score-main {
|
|
3429
3429
|
width: 100%;
|
|
3430
3430
|
float: left;
|
|
3431
|
+
}
|
|
3432
|
+
.es .insight-container.insight-container-with-img .tips-text,
|
|
3433
|
+
.es .insight-container.insight-container-without-img .tips-text{
|
|
3434
|
+
font-size:9px
|
|
3435
|
+
}
|
|
3436
|
+
.es .disclaimer-text{
|
|
3437
|
+
font-size:7px
|
|
3431
3438
|
}
|
|
@@ -147,7 +147,7 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
147
147
|
let firstSectionTemplate = fs.readFileSync(path.resolve(__dirname + '/../templates/wellbeing/blocks/first-section.html'), 'utf8');
|
|
148
148
|
|
|
149
149
|
let tipsTemplate = fs.readFileSync(path.resolve(__dirname + '/../templates/wellbeing/blocks/tips.html'), 'utf8');
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
/*create the dom element*/
|
|
152
152
|
const dom = new JSDOM(html);
|
|
153
153
|
let historyData = [];
|
|
@@ -292,6 +292,7 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
292
292
|
$(".first-section-scores .physical-score-section .part-1,.first-section-scores .physical-score-section .part-2").addClass('inactive')
|
|
293
293
|
}
|
|
294
294
|
$(".score-main").addClass(client);
|
|
295
|
+
$(".score-main").addClass(language);
|
|
295
296
|
/* Second section*/
|
|
296
297
|
let partScores = data.partsScore;
|
|
297
298
|
let allScores = {'lifeStyle': [], 'body': [], 'mind': [], healthRisk: []}
|
|
@@ -349,20 +350,23 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
349
350
|
let mindTips = []
|
|
350
351
|
let bodyTips = []
|
|
351
352
|
let i = 0;
|
|
352
|
-
|
|
353
|
-
if (key
|
|
354
|
-
|
|
355
|
-
key
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
key
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
key
|
|
364
|
-
|
|
365
|
-
|
|
353
|
+
Object.entries(partScores).map(([key, value], index) => {
|
|
354
|
+
if (key === 'bodyInsights' || key === 'lifeStyleInsights' || key === 'mindInsights') {
|
|
355
|
+
partScores[key]['tips'].map((tip, index) => {
|
|
356
|
+
if (key === 'lifeStyleInsights') {
|
|
357
|
+
tip.type = 'lifeStyleInsights'
|
|
358
|
+
lifeStyleTips.push(tip)
|
|
359
|
+
}
|
|
360
|
+
if (key === 'bodyInsights') {
|
|
361
|
+
tip.type = 'bodyInsights'
|
|
362
|
+
bodyTips.push(tip)
|
|
363
|
+
}
|
|
364
|
+
if (key === 'mindInsights') {
|
|
365
|
+
tip.type = 'mindInsights'
|
|
366
|
+
mindTips.push(tip)
|
|
367
|
+
}
|
|
368
|
+
i++;
|
|
369
|
+
})
|
|
366
370
|
}
|
|
367
371
|
});
|
|
368
372
|
|
package/package.json
CHANGED