@medicus.ai/medicus-report-pdf-generator 1.0.206 → 1.0.208
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/corporate_report/css/report.css +2 -2
- package/assets/wellbeing/css/nasco_report.css +1 -0
- package/assets/wellbeing/css/nasco_report_rtl.css +2 -2
- package/lib/corporate_report_generator.js +1 -0
- package/lib/wellbeing_report_generator.js +10 -0
- package/locales/wellbeing/de.json +133 -133
- package/package.json +16 -17
|
@@ -397,11 +397,11 @@ td {
|
|
|
397
397
|
padding: 1% 1% 0% 1%;
|
|
398
398
|
box-sizing: border-box;
|
|
399
399
|
color: rgb(0, 0, 153);
|
|
400
|
-
margin-right:
|
|
400
|
+
margin-right: 3%;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.relations-section .single-relation:nth-child(4n) {
|
|
404
|
-
margin-right:
|
|
404
|
+
margin-right: 5%;
|
|
405
405
|
width: 30%;
|
|
406
406
|
}
|
|
407
407
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
body {
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.wellbeing-logo {
|
|
@@ -588,7 +588,7 @@ ul li::before {
|
|
|
588
588
|
|
|
589
589
|
h5.recommended-tips-title {
|
|
590
590
|
float: right;
|
|
591
|
-
padding: 20px
|
|
591
|
+
padding: 20px 40px 7px 0;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
.insight-container.insight-container-with-img .tips-text {
|
|
@@ -183,6 +183,7 @@ let generateHTMLCorporateReport = async (data, isDebugging) => {
|
|
|
183
183
|
"<div class='relation-content-bottom-bg'></div>" +
|
|
184
184
|
"</div>" +
|
|
185
185
|
"</div>");
|
|
186
|
+
$("#" + pageId + ".relation-content").html(relation.text)
|
|
186
187
|
})
|
|
187
188
|
} else {
|
|
188
189
|
$("#" + pageId + " .relations-section-container").remove();
|
|
@@ -227,7 +227,17 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
227
227
|
'.list-item g, .list-item path{fill: ' + list_icons_font_color + ' !important;stroke: ' + list_icons_font_color + ' !important;}' +
|
|
228
228
|
'.fifth-level-font-color{color:' + fifth_level_color + '!important;}' +
|
|
229
229
|
'</style>');
|
|
230
|
+
if (empty(data.photo)) {
|
|
230
231
|
|
|
232
|
+
$('#content').append('<style>' +
|
|
233
|
+
'.user-profile-img{display: none !important;}' +
|
|
234
|
+
'</style>');
|
|
235
|
+
if (genderId === 90) {
|
|
236
|
+
userImage = path.resolve(__dirname + '/../assets/wellbeing/images/user-woman.png');
|
|
237
|
+
} else {
|
|
238
|
+
userImage = path.resolve(__dirname + '/../assets/wellbeing/images/user-man.png');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
231
241
|
$("#chartsData").append("<script> var RANGE_COLORS = ['" + first_level_color + "','" + second_level_color + "','" + third_level_color + "','" + forth_level_color + "','" + fifth_level_color + "'];</script>");
|
|
232
242
|
|
|
233
243
|
/* First section */
|
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
{
|
|
2
|
-
"yearsOld": {
|
|
3
|
-
"message": "Jahre alt",
|
|
4
|
-
"description": "After the patient old in the header"
|
|
5
|
-
},
|
|
6
|
-
"lifeStyle": {
|
|
7
|
-
"message": "Lebensstil",
|
|
8
|
-
"description": "my lifestyle part header"
|
|
9
|
-
},
|
|
10
|
-
"body": {
|
|
11
|
-
"message": "Körper",
|
|
12
|
-
"description": "my body part header"
|
|
13
|
-
},
|
|
14
|
-
"mind": {
|
|
15
|
-
"message": "Geist/Psyche",
|
|
16
|
-
"description": "my mind part header"
|
|
17
|
-
},
|
|
18
|
-
"psychological": {
|
|
19
|
-
"message": "Psychologisch",
|
|
20
|
-
"description": "Psychological title"
|
|
21
|
-
},
|
|
22
|
-
"physical": {
|
|
23
|
-
"message": "Körperlich",
|
|
24
|
-
"description": "Physical title"
|
|
25
|
-
},
|
|
26
|
-
"weRecommend": {
|
|
27
|
-
"message": "Unsere Empfehlung",
|
|
28
|
-
"description": "tips section title"
|
|
29
|
-
},
|
|
30
|
-
"wellbeingReport": {
|
|
31
|
-
"message": "Wellbeing-Bericht",
|
|
32
|
-
"description": "Report header"
|
|
33
|
-
},
|
|
34
|
-
"scoresNote": {
|
|
35
|
-
"message": "Je höher dein Score ist, umso gesünder bist du",
|
|
36
|
-
"description": "scores note"
|
|
37
|
-
},
|
|
38
|
-
"reportHeaderDescription": {
|
|
39
|
-
"message": "Dein Wellbeingscore ist fast medaillenreif, nur dein Lebensstil und deine Gewohnheiten halten dich vom Podium ab. Wir helfen dir, es zu erklimmen!",
|
|
40
|
-
"description": "Text showing in the report header"
|
|
41
|
-
},
|
|
42
|
-
"sincerely": {
|
|
43
|
-
"message": "Mit freundlichen Grüßen",
|
|
44
|
-
"description": "part of message showing in email template preview in general configuration page"
|
|
45
|
-
},
|
|
46
|
-
"hospital": {
|
|
47
|
-
"message": "Krankenhaus",
|
|
48
|
-
"description": "name of field showing at add user"
|
|
49
|
-
},
|
|
50
|
-
"healthRisk": {
|
|
51
|
-
"message": "Gesundheitsrisiken",
|
|
52
|
-
"description": "part header"
|
|
53
|
-
},
|
|
54
|
-
"Disclaimer": {
|
|
55
|
-
"message": "Haftungsausschluss:",
|
|
56
|
-
"description": "Label showing in the footer as disclaimer title"
|
|
57
|
-
},
|
|
58
|
-
"Disclaimer Text": {
|
|
59
|
-
"message": "Dieser Bericht wurde nur für dich erstellt und zeigt deine Fortschritte, indem er dein aktuelles\n und dein früheres Gesundheitsverhalten vergleicht. Das hilft dir, deine Gesundheit immer weiter zu verbessern. Diese Angaben sind\n kein Ersatz für einen Arztbesuch und können keine Krankheiten oder medizinischen Probleme diagnostizieren. Stattdessen sollen sie dir\n Informationen zu deinen gesundheitlichen Risiken und zu deinem Wohlbefinden geben. Sie werden dir zur Verfügung gestellt, um dir beim Planen\n und Umsetzen gesundheitsfördernder neuer Gewohnheiten zu helfen:",
|
|
60
|
-
"description": "text showing in the footer as disclaimer"
|
|
61
|
-
},
|
|
62
|
-
"January": {
|
|
63
|
-
"message": "Januar",
|
|
64
|
-
"description": "Month name"
|
|
65
|
-
},
|
|
66
|
-
"February": {
|
|
67
|
-
"message": "Februar",
|
|
68
|
-
"description": "Month name"
|
|
69
|
-
},
|
|
70
|
-
"March": {
|
|
71
|
-
"message": "März",
|
|
72
|
-
"description": "Month name"
|
|
73
|
-
},
|
|
74
|
-
"April": {
|
|
75
|
-
"message": "April",
|
|
76
|
-
"description": "Month name"
|
|
77
|
-
},
|
|
78
|
-
"May": {
|
|
79
|
-
"message": "Mai",
|
|
80
|
-
"description": "Month name"
|
|
81
|
-
},
|
|
82
|
-
"June": {
|
|
83
|
-
"message": "Juni",
|
|
84
|
-
"description": "Month name"
|
|
85
|
-
},
|
|
86
|
-
"July": {
|
|
87
|
-
"message": "Juli",
|
|
88
|
-
"description": "Month name"
|
|
89
|
-
},
|
|
90
|
-
"August": {
|
|
91
|
-
"message": "August",
|
|
92
|
-
"description": "Month name"
|
|
93
|
-
},
|
|
94
|
-
"September": {
|
|
95
|
-
"message": "September",
|
|
96
|
-
"description": "Month name"
|
|
97
|
-
},
|
|
98
|
-
"October": {
|
|
99
|
-
"message": "Oktober",
|
|
100
|
-
"description": "Month name"
|
|
101
|
-
},
|
|
102
|
-
"November": {
|
|
103
|
-
"message": "November",
|
|
104
|
-
"description": "Month name"
|
|
105
|
-
},
|
|
106
|
-
"December": {
|
|
107
|
-
"message": "Dezember",
|
|
108
|
-
"description": "Month name"
|
|
109
|
-
},
|
|
110
|
-
"Moxie recommends...": {
|
|
111
|
-
"message": "Moxie empfiehlt ...",
|
|
112
|
-
"description": "Title in corporate report"
|
|
113
|
-
},
|
|
114
|
-
"Copyright": {
|
|
115
|
-
"message": "© Copyright NASCO Insurance 2020",
|
|
116
|
-
"description": "Copyright text in corporate report"
|
|
117
|
-
},
|
|
118
|
-
"Participant Analytics": {
|
|
119
|
-
"message": "Teilnehmer-Analytik",
|
|
120
|
-
"description": "Section title in corporate report"
|
|
121
|
-
},
|
|
122
|
-
"Page": {
|
|
123
|
-
"message": "Seite",
|
|
124
|
-
"description": "page number in the corporate report PDF"
|
|
125
|
-
},
|
|
126
|
-
"recommends...": {
|
|
127
|
-
"message": "empfiehlt...",
|
|
128
|
-
"description": "Title in corporate report"
|
|
129
|
-
},
|
|
130
|
-
"Sources": {
|
|
131
|
-
"message": "Quellen",
|
|
132
|
-
"descripition": "sources in the corporate report PDF"
|
|
133
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"yearsOld": {
|
|
3
|
+
"message": "Jahre alt",
|
|
4
|
+
"description": "After the patient old in the header"
|
|
5
|
+
},
|
|
6
|
+
"lifeStyle": {
|
|
7
|
+
"message": "Lebensstil",
|
|
8
|
+
"description": "my lifestyle part header"
|
|
9
|
+
},
|
|
10
|
+
"body": {
|
|
11
|
+
"message": "Körper",
|
|
12
|
+
"description": "my body part header"
|
|
13
|
+
},
|
|
14
|
+
"mind": {
|
|
15
|
+
"message": "Geist/Psyche",
|
|
16
|
+
"description": "my mind part header"
|
|
17
|
+
},
|
|
18
|
+
"psychological": {
|
|
19
|
+
"message": "Psychologisch",
|
|
20
|
+
"description": "Psychological title"
|
|
21
|
+
},
|
|
22
|
+
"physical": {
|
|
23
|
+
"message": "Körperlich",
|
|
24
|
+
"description": "Physical title"
|
|
25
|
+
},
|
|
26
|
+
"weRecommend": {
|
|
27
|
+
"message": "Unsere Empfehlung",
|
|
28
|
+
"description": "tips section title"
|
|
29
|
+
},
|
|
30
|
+
"wellbeingReport": {
|
|
31
|
+
"message": "Wellbeing-Bericht",
|
|
32
|
+
"description": "Report header"
|
|
33
|
+
},
|
|
34
|
+
"scoresNote": {
|
|
35
|
+
"message": "Je höher dein Score ist, umso gesünder bist du",
|
|
36
|
+
"description": "scores note"
|
|
37
|
+
},
|
|
38
|
+
"reportHeaderDescription": {
|
|
39
|
+
"message": "Dein Wellbeingscore ist fast medaillenreif, nur dein Lebensstil und deine Gewohnheiten halten dich vom Podium ab. Wir helfen dir, es zu erklimmen!",
|
|
40
|
+
"description": "Text showing in the report header"
|
|
41
|
+
},
|
|
42
|
+
"sincerely": {
|
|
43
|
+
"message": "Mit freundlichen Grüßen",
|
|
44
|
+
"description": "part of message showing in email template preview in general configuration page"
|
|
45
|
+
},
|
|
46
|
+
"hospital": {
|
|
47
|
+
"message": "Krankenhaus",
|
|
48
|
+
"description": "name of field showing at add user"
|
|
49
|
+
},
|
|
50
|
+
"healthRisk": {
|
|
51
|
+
"message": "Gesundheitsrisiken",
|
|
52
|
+
"description": "part header"
|
|
53
|
+
},
|
|
54
|
+
"Disclaimer": {
|
|
55
|
+
"message": "Haftungsausschluss:",
|
|
56
|
+
"description": "Label showing in the footer as disclaimer title"
|
|
57
|
+
},
|
|
58
|
+
"Disclaimer Text": {
|
|
59
|
+
"message": "Dieser Bericht wurde nur für dich erstellt und zeigt deine Fortschritte, indem er dein aktuelles\n und dein früheres Gesundheitsverhalten vergleicht. Das hilft dir, deine Gesundheit immer weiter zu verbessern. Diese Angaben sind\n kein Ersatz für einen Arztbesuch und können keine Krankheiten oder medizinischen Probleme diagnostizieren. Stattdessen sollen sie dir\n Informationen zu deinen gesundheitlichen Risiken und zu deinem Wohlbefinden geben. Sie werden dir zur Verfügung gestellt, um dir beim Planen\n und Umsetzen gesundheitsfördernder neuer Gewohnheiten zu helfen:",
|
|
60
|
+
"description": "text showing in the footer as disclaimer"
|
|
61
|
+
},
|
|
62
|
+
"January": {
|
|
63
|
+
"message": "Januar",
|
|
64
|
+
"description": "Month name"
|
|
65
|
+
},
|
|
66
|
+
"February": {
|
|
67
|
+
"message": "Februar",
|
|
68
|
+
"description": "Month name"
|
|
69
|
+
},
|
|
70
|
+
"March": {
|
|
71
|
+
"message": "März",
|
|
72
|
+
"description": "Month name"
|
|
73
|
+
},
|
|
74
|
+
"April": {
|
|
75
|
+
"message": "April",
|
|
76
|
+
"description": "Month name"
|
|
77
|
+
},
|
|
78
|
+
"May": {
|
|
79
|
+
"message": "Mai",
|
|
80
|
+
"description": "Month name"
|
|
81
|
+
},
|
|
82
|
+
"June": {
|
|
83
|
+
"message": "Juni",
|
|
84
|
+
"description": "Month name"
|
|
85
|
+
},
|
|
86
|
+
"July": {
|
|
87
|
+
"message": "Juli",
|
|
88
|
+
"description": "Month name"
|
|
89
|
+
},
|
|
90
|
+
"August": {
|
|
91
|
+
"message": "August",
|
|
92
|
+
"description": "Month name"
|
|
93
|
+
},
|
|
94
|
+
"September": {
|
|
95
|
+
"message": "September",
|
|
96
|
+
"description": "Month name"
|
|
97
|
+
},
|
|
98
|
+
"October": {
|
|
99
|
+
"message": "Oktober",
|
|
100
|
+
"description": "Month name"
|
|
101
|
+
},
|
|
102
|
+
"November": {
|
|
103
|
+
"message": "November",
|
|
104
|
+
"description": "Month name"
|
|
105
|
+
},
|
|
106
|
+
"December": {
|
|
107
|
+
"message": "Dezember",
|
|
108
|
+
"description": "Month name"
|
|
109
|
+
},
|
|
110
|
+
"Moxie recommends...": {
|
|
111
|
+
"message": "Moxie empfiehlt ...",
|
|
112
|
+
"description": "Title in corporate report"
|
|
113
|
+
},
|
|
114
|
+
"Copyright": {
|
|
115
|
+
"message": "© Copyright NASCO Insurance 2020",
|
|
116
|
+
"description": "Copyright text in corporate report"
|
|
117
|
+
},
|
|
118
|
+
"Participant Analytics": {
|
|
119
|
+
"message": "Teilnehmer-Analytik",
|
|
120
|
+
"description": "Section title in corporate report"
|
|
121
|
+
},
|
|
122
|
+
"Page": {
|
|
123
|
+
"message": "Seite",
|
|
124
|
+
"description": "page number in the corporate report PDF"
|
|
125
|
+
},
|
|
126
|
+
"recommends...": {
|
|
127
|
+
"message": "empfiehlt...",
|
|
128
|
+
"description": "Title in corporate report"
|
|
129
|
+
},
|
|
130
|
+
"Sources": {
|
|
131
|
+
"message": "Quellen",
|
|
132
|
+
"descripition": "sources in the corporate report PDF"
|
|
133
|
+
}
|
|
134
134
|
}
|
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": "Nasco corporate report - latest update in 2/11/2022 - Fix sanusx coprorate report
|
|
3
|
+
"version": "1.0.208",
|
|
4
|
+
"description": "Nasco corporate report - latest update in 2/11/2022 - Fix sanusx coprorate report issues",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "node index.js"
|
|
@@ -12,26 +12,25 @@
|
|
|
12
12
|
"babel-preset-env": "^1.7.0",
|
|
13
13
|
"babel-register": "^6.26.0",
|
|
14
14
|
"big-text.js": "^1.0.1",
|
|
15
|
-
"body-parser": "^1.
|
|
16
|
-
"canvas": "^2.
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"express": "^4.16.4",
|
|
15
|
+
"body-parser": "^1.20.1",
|
|
16
|
+
"canvas": "^2.10.2",
|
|
17
|
+
"chart.js": "^3.9.1",
|
|
18
|
+
"express": "^4.18.2",
|
|
20
19
|
"get-canvas-context": "^1.0.2",
|
|
21
|
-
"hummus": "1.0.
|
|
22
|
-
"i18n": "^0.
|
|
20
|
+
"hummus": "^1.0.111",
|
|
21
|
+
"i18n": "^0.15.1",
|
|
23
22
|
"i18n-nodejs": "^3.0.0",
|
|
24
|
-
"jquery": "^3.
|
|
25
|
-
"jsdom": "^
|
|
23
|
+
"jquery": "^3.6.1",
|
|
24
|
+
"jsdom": "^20.0.2",
|
|
26
25
|
"memory-streams": "^0.1.3",
|
|
27
|
-
"node-fetch": "^2.
|
|
28
|
-
"node-pdftk": "^2.
|
|
29
|
-
"nodemailer": "^6.
|
|
30
|
-
"puppeteer": "^
|
|
26
|
+
"node-fetch": "^2.6.1",
|
|
27
|
+
"node-pdftk": "^2.1.3",
|
|
28
|
+
"nodemailer": "^6.8.0",
|
|
29
|
+
"puppeteer": "^19.2.2",
|
|
31
30
|
"qr-image": "^3.2.0",
|
|
32
|
-
"qrcode": "^1.
|
|
31
|
+
"qrcode": "^1.5.1",
|
|
33
32
|
"self-adapt-fontsize": "^1.0.6",
|
|
34
|
-
"textfit": "^2.
|
|
33
|
+
"textfit": "^2.4.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@babel/core": "^7.2.2",
|