@medicus.ai/medicus-report-pdf-generator 1.0.203 → 1.0.205
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.
|
@@ -392,7 +392,7 @@ td {
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
.relations-section .single-relation {
|
|
395
|
-
width:
|
|
395
|
+
width: 30%;
|
|
396
396
|
float: left;
|
|
397
397
|
padding: 1% 1% 0% 1%;
|
|
398
398
|
box-sizing: border-box;
|
|
@@ -401,8 +401,8 @@ td {
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.relations-section .single-relation:nth-child(4n) {
|
|
404
|
-
margin-right:
|
|
405
|
-
width:
|
|
404
|
+
margin-right: 2%;
|
|
405
|
+
width: 30%;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.relation-title {
|
|
@@ -453,35 +453,15 @@ table.data-by-gender {
|
|
|
453
453
|
page-break-inside: avoid;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
table.data-by-gender-extended {
|
|
457
|
-
width: 100%;
|
|
458
|
-
margin-top: 3%;
|
|
459
|
-
float: left;
|
|
460
|
-
text-align: left;
|
|
461
|
-
font-size: 91%;
|
|
462
|
-
border-spacing: 0;
|
|
463
|
-
margin-bottom: 25%;
|
|
464
|
-
page-break-inside: avoid;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
456
|
table.data-by-gender tr th:first-child {
|
|
468
457
|
width: 20%;
|
|
469
458
|
}
|
|
470
459
|
|
|
471
|
-
table.data-by-gender-extended tr th:first-child {
|
|
472
|
-
width: 20%;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
460
|
table.data-by-gender tr td {
|
|
476
461
|
color: rgb(51, 51, 51);
|
|
477
462
|
font-size: 80%;
|
|
478
463
|
}
|
|
479
464
|
|
|
480
|
-
table.data-by-gender-extended tr td {
|
|
481
|
-
color: rgb(51, 51, 51);
|
|
482
|
-
font-size: 80%;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
465
|
table.data-by-gender th {
|
|
486
466
|
color: rgb(139, 139, 167);
|
|
487
467
|
font-weight: 600;
|
|
@@ -489,49 +469,24 @@ table.data-by-gender th {
|
|
|
489
469
|
border-spacing: 0;
|
|
490
470
|
}
|
|
491
471
|
|
|
492
|
-
table.data-by-gender-extended th {
|
|
493
|
-
color: rgb(139, 139, 167);
|
|
494
|
-
font-weight: 600;
|
|
495
|
-
border-bottom: 1px solid rgb(0, 0, 153);
|
|
496
|
-
border-spacing: 0;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
472
|
table.data-by-gender tbody tr:first-child td {
|
|
500
473
|
color: rgb(139, 139, 167);
|
|
501
474
|
font-weight: 600;
|
|
502
475
|
font-size: 9px;
|
|
503
476
|
}
|
|
504
477
|
|
|
505
|
-
table.data-by-gender-extended tbody tr:first-child td {
|
|
506
|
-
color: rgb(139, 139, 167);
|
|
507
|
-
font-weight: 600;
|
|
508
|
-
font-size: 9px;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
478
|
table.data-by-gender td, table.data-by-gender th {
|
|
512
479
|
padding: 4px;
|
|
513
480
|
}
|
|
514
481
|
|
|
515
|
-
table.data-by-gender-extended td, table.data-by-gender th {
|
|
516
|
-
padding: 4px;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
482
|
table.data-by-gender tbody tr:nth-child(even) {
|
|
520
483
|
background-color: rgb(237, 237, 248);
|
|
521
484
|
}
|
|
522
485
|
|
|
523
|
-
table.data-by-gender-extended tbody tr:nth-child(even) {
|
|
524
|
-
background-color: rgb(237, 237, 248);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
486
|
table.data-by-gender tr td:last-child {
|
|
528
487
|
text-align: center;
|
|
529
488
|
}
|
|
530
489
|
|
|
531
|
-
table.data-by-gender-extended tr td:last-child {
|
|
532
|
-
text-align: center;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
490
|
.recommends-section {
|
|
536
491
|
width: 62%;
|
|
537
492
|
float: left;
|
package/config/sanusx.json
CHANGED
|
@@ -179,10 +179,9 @@ let generateHTMLCorporateReport = async (data, isDebugging) => {
|
|
|
179
179
|
element.relations.map((relation) => {
|
|
180
180
|
$("#" + pageId + " .relations-section-container .relations-section-titles").append("<div class='single-relation'>" +
|
|
181
181
|
"<div class='relation-title'>" + relation.title + "</div>" +
|
|
182
|
-
"</div>");
|
|
183
|
-
$("#" + pageId + " .relations-section-container .relations-section-content").append("<div class='single-relation'>" +
|
|
184
182
|
"<div class='relation-content'>" + relation.text + "</div>" +
|
|
185
183
|
"<div class='relation-content-bottom-bg'></div>" +
|
|
184
|
+
"</div>" +
|
|
186
185
|
"</div>");
|
|
187
186
|
})
|
|
188
187
|
} else {
|
|
@@ -207,19 +206,10 @@ let generateHTMLCorporateReport = async (data, isDebugging) => {
|
|
|
207
206
|
dataByGenderHTML += "</tr>"
|
|
208
207
|
})
|
|
209
208
|
dataByGenderHTML += "</tbody>"
|
|
210
|
-
if (!empty(element.relations) && element.relations.length > 4) {
|
|
211
|
-
$("#" + pageId + " .data-by-gender-extended").append(tabelHeaderHTML);
|
|
212
|
-
$("#" + pageId + " .data-by-gender-extended").append(dataByGenderHTML);
|
|
213
|
-
$("#" + pageId + " .data-by-gender").remove();
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
209
|
$("#" + pageId + " .data-by-gender").append(tabelHeaderHTML);
|
|
217
210
|
$("#" + pageId + " .data-by-gender").append(dataByGenderHTML);
|
|
218
|
-
$("#" + pageId + " .data-by-gender-extended").remove();
|
|
219
|
-
}
|
|
220
211
|
} else {
|
|
221
212
|
$("#" + pageId + " .data-by-gender").remove();
|
|
222
|
-
$("#" + pageId + " .data-by-gender-extended").remove();
|
|
223
213
|
}
|
|
224
214
|
|
|
225
215
|
if (!empty(element.recommends)) {
|
|
@@ -1,122 +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
|
-
}
|
|
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
|
+
},
|
|
122
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
|
|
3
|
+
"version": "1.0.205",
|
|
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"
|