@medicus.ai/medicus-report-pdf-generator 1.0.240 → 1.0.241
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/index.js +2 -0
- package/locales/wellbeing/fr.json +121 -134
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,6 +2,8 @@ const {generateHTMLStaging, generatePDF, generatePatientQR} = require("./lib/pdf
|
|
|
2
2
|
const {generateHTMLWellbeingReport, generatePDFWellbeingReport} = require("./lib/wellbeing_report_generator");
|
|
3
3
|
const {generateSanusXReport, generateHTMLSanusXReport} = require("./lib/sanusx_report_generator");
|
|
4
4
|
const fs = require('fs');
|
|
5
|
+
const {fork} = require('child_process');
|
|
6
|
+
const {join} = require('path');
|
|
5
7
|
const {sendNascoEmail, sendEmailNotification} = require('./lib/sendEmail')
|
|
6
8
|
const {generatePDFCorporateReport, generateHTMLCorporateReport} = require('./lib/corporate_report_generator')
|
|
7
9
|
module.exports = {
|
|
@@ -1,135 +1,122 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"YourHealthHero": "YourHealthHero",
|
|
123
|
-
"owl": "owl",
|
|
124
|
-
"owlDesc": "owlDesc",
|
|
125
|
-
"owlDetails": "owlDetails",
|
|
126
|
-
"SUPERPOWER": "SUPERPOWER",
|
|
127
|
-
"owlSUPERPOWER-msg": "owlSUPERPOWER-msg",
|
|
128
|
-
"STRENGTH": "STRENGTH",
|
|
129
|
-
"STRENGTH-msg": "STRENGTH-msg",
|
|
130
|
-
"WEAKNESS": "WEAKNESS",
|
|
131
|
-
"WEAKNESS-msg": "WEAKNESS-msg",
|
|
132
|
-
"physicalScore": "physicalScore",
|
|
133
|
-
"psychologicalScore": "psychologicalScore",
|
|
134
|
-
"youPredictedWrong": "youPredictedWrong"
|
|
1
|
+
{
|
|
2
|
+
"yearsOld": {
|
|
3
|
+
"message": "ans",
|
|
4
|
+
"description": "After the patient old in the header"
|
|
5
|
+
},
|
|
6
|
+
"lifeStyle": {
|
|
7
|
+
"message": "Hygiène de vie",
|
|
8
|
+
"description": "my lifestyle part header"
|
|
9
|
+
},
|
|
10
|
+
"body": {
|
|
11
|
+
"message": "Corps",
|
|
12
|
+
"description": "my body part header"
|
|
13
|
+
},
|
|
14
|
+
"mind": {
|
|
15
|
+
"message": "Esprit",
|
|
16
|
+
"description": "my mind part header"
|
|
17
|
+
},
|
|
18
|
+
"psychological": {
|
|
19
|
+
"message": "Psychologique",
|
|
20
|
+
"description": "Psychological title"
|
|
21
|
+
},
|
|
22
|
+
"physical": {
|
|
23
|
+
"message": "Physique",
|
|
24
|
+
"description": "Physical title"
|
|
25
|
+
},
|
|
26
|
+
"weRecommend": {
|
|
27
|
+
"message": "Nous recommandons",
|
|
28
|
+
"description": "tips section title"
|
|
29
|
+
},
|
|
30
|
+
"wellbeingReport": {
|
|
31
|
+
"message": "Rapport de bien-être",
|
|
32
|
+
"description": "Report header"
|
|
33
|
+
},
|
|
34
|
+
"scoresNote": {
|
|
35
|
+
"message": "Plus le score est élevé, plus tu es en bonne santé",
|
|
36
|
+
"description": "scores note"
|
|
37
|
+
},
|
|
38
|
+
"reportHeaderDescription": {
|
|
39
|
+
"message": "Ton score de bien-être est capable d'exploits, mais tes habitudes de vie te freinent. Nous pouvons t'aider à aller plus loin.",
|
|
40
|
+
"description": "Text showing in the report header"
|
|
41
|
+
},
|
|
42
|
+
"sincerely": {
|
|
43
|
+
"message": "Cordialement",
|
|
44
|
+
"description": "part of message showing in email template preview in general configuration page"
|
|
45
|
+
},
|
|
46
|
+
"hospital": {
|
|
47
|
+
"message": "Hôpital",
|
|
48
|
+
"description": "name of field showing at add user"
|
|
49
|
+
},
|
|
50
|
+
"healthRisk": {
|
|
51
|
+
"message": "Risques pour la santé",
|
|
52
|
+
"description": "part header"
|
|
53
|
+
},
|
|
54
|
+
"Disclaimer": {
|
|
55
|
+
"message": "Avertissement:",
|
|
56
|
+
"description": "Label showing in the footer as disclaimer title"
|
|
57
|
+
},
|
|
58
|
+
"Disclaimer Text": {
|
|
59
|
+
"message": "Ce rapport, qui a été préparé spécialement pour toi, présente tes progrès en comparant tes comportements actuels et passés en matière de santé. Ces informations t'aideront à poursuivre ton chemin vers une bonne santé. Ce guide n'est pas destiné remplacer une visite chez le médecin et ne peut pas non plus diagnostiquer une maladie ou un problème médical. Il est conçu pour fournir des informations concernant les risques pour ta santé et ton bien-être général. Ces informations sont fournies pour t'aider à mettre en place un plan d'action pour apporter des changements dans ton hygiène de vie.",
|
|
60
|
+
"description": "text showing in the footer as disclaimer"
|
|
61
|
+
},
|
|
62
|
+
"January": {
|
|
63
|
+
"message": "Janvier",
|
|
64
|
+
"description": "Month name"
|
|
65
|
+
},
|
|
66
|
+
"February": {
|
|
67
|
+
"message": "Février",
|
|
68
|
+
"description": "Month name"
|
|
69
|
+
},
|
|
70
|
+
"March": {
|
|
71
|
+
"message": "Mars",
|
|
72
|
+
"description": "Month name"
|
|
73
|
+
},
|
|
74
|
+
"April": {
|
|
75
|
+
"message": "Avril",
|
|
76
|
+
"description": "Month name"
|
|
77
|
+
},
|
|
78
|
+
"May": {
|
|
79
|
+
"message": "Mai",
|
|
80
|
+
"description": "Month name"
|
|
81
|
+
},
|
|
82
|
+
"June": {
|
|
83
|
+
"message": "Juin",
|
|
84
|
+
"description": "Month name"
|
|
85
|
+
},
|
|
86
|
+
"July": {
|
|
87
|
+
"message": "Juillet",
|
|
88
|
+
"description": "Month name"
|
|
89
|
+
},
|
|
90
|
+
"August": {
|
|
91
|
+
"message": "Août",
|
|
92
|
+
"description": "Month name"
|
|
93
|
+
},
|
|
94
|
+
"September": {
|
|
95
|
+
"message": "Septembre",
|
|
96
|
+
"description": "Month name"
|
|
97
|
+
},
|
|
98
|
+
"October": {
|
|
99
|
+
"message": "Octobre",
|
|
100
|
+
"description": "Month name"
|
|
101
|
+
},
|
|
102
|
+
"November": {
|
|
103
|
+
"message": "Novembre",
|
|
104
|
+
"description": "Month name"
|
|
105
|
+
},
|
|
106
|
+
"December": {
|
|
107
|
+
"message": "Décembre",
|
|
108
|
+
"description": "Month name"
|
|
109
|
+
},
|
|
110
|
+
"Moxie recommends...": {
|
|
111
|
+
"message": "Moxie recommande...",
|
|
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": "Analytique des participants",
|
|
120
|
+
"description": "Section title in corporate report"
|
|
121
|
+
}
|
|
135
122
|
}
|
package/package.json
CHANGED