@medicus.ai/medicus-report-pdf-generator 1.3.14 → 1.3.16

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.
Files changed (169) hide show
  1. package/.vscode/settings.json +3 -3
  2. package/README.md +26 -26
  3. package/app/i18n.config.js +20 -20
  4. package/app/i18n_wellbeing.config.js +20 -20
  5. package/app/services/localeService.js +28 -28
  6. package/assets/Mediclinic/css/nasco_report.css +6297 -6297
  7. package/assets/Mediclinic/css/nasco_report_rtl.css +851 -851
  8. package/assets/Mediclinic/css/style.css +33 -33
  9. package/assets/Mediclinic/js/js.js +112 -112
  10. package/assets/Mediclinic/js/raphael.js +8437 -8437
  11. package/assets/arabic.css +275 -275
  12. package/assets/charts.min.js +7 -7
  13. package/assets/corporate_report/css/report.css +582 -582
  14. package/assets/corporate_report/css/report_rtl.css +144 -144
  15. package/assets/corporate_report/js/js.js +14 -14
  16. package/assets/data/data.json +124 -124
  17. package/assets/data/data2.json +675 -675
  18. package/assets/data/pdf_data_with_history.json +1255 -1255
  19. package/assets/doctor-note-insight-icon.svg +11 -11
  20. package/assets/imc/css/style.css +61 -61
  21. package/assets/jquery-1.4.min.js +151 -151
  22. package/assets/jquery-2.1.0.min.js +3 -3
  23. package/assets/js.js +201 -201
  24. package/assets/medicus_pdf/arabic.css +444 -444
  25. package/assets/medicus_pdf/styles.css +2427 -2427
  26. package/assets/print.css +4 -4
  27. package/assets/qr-code-style.css +68 -68
  28. package/assets/qrcode.min.js +3 -3
  29. package/assets/raphael-min.js +10 -10
  30. package/assets/sanusx/css/sanusx_report.css +707 -707
  31. package/assets/sizing.js +2 -2
  32. package/assets/styles.css +1545 -1545
  33. package/assets/styles.min.css +1358 -1358
  34. package/assets/translation.js +30 -30
  35. package/assets/wellbeing/css/nasco_report.css +3472 -3472
  36. package/assets/wellbeing/css/nasco_report_rtl.css +679 -679
  37. package/assets/wellbeing/js/js.js +111 -111
  38. package/assets/wellbeing/js/raphael.js +8437 -8437
  39. package/base64/cairo-font.js +2 -2
  40. package/config/Mediclinic.json +37 -37
  41. package/config/Najeeb.ai.json +35 -35
  42. package/config/Pha.json +64 -64
  43. package/config/bionext.json +37 -37
  44. package/config/default.json +35 -35
  45. package/config/diagnostikare.json +34 -34
  46. package/config/maisonsante.json +39 -39
  47. package/config/nasco.json +35 -35
  48. package/config/sanitas.json +35 -35
  49. package/config/sanusx.json +34 -34
  50. package/config/test.txt +4 -4
  51. package/data converter.js +53 -53
  52. package/downloadfile.js +6 -6
  53. package/example.txt +1188 -1188
  54. package/index.js +481 -481
  55. package/lib/big_integral_questionnaire.js +367 -298
  56. package/lib/corporate_report_generator.js +399 -399
  57. package/lib/pdf_generator.min.js +525 -525
  58. package/lib/sanusx_report_generator.js +533 -533
  59. package/lib/sendEmail.js +343 -343
  60. package/lib/template.js +2227 -2227
  61. package/lib/wellbeing_report_generator.js +2164 -2134
  62. package/locales/ar-AE.json +169 -169
  63. package/locales/ar-SA.json +169 -169
  64. package/locales/ar.json +397 -397
  65. package/locales/de.json +169 -169
  66. package/locales/en.json +229 -229
  67. package/locales/fr.json +168 -168
  68. package/locales/pt.json +165 -165
  69. package/locales/wellbeing/ar-AE.json +149 -149
  70. package/locales/wellbeing/ar-SA.json +257 -257
  71. package/locales/wellbeing/de.json +301 -301
  72. package/locales/wellbeing/en.json +423 -423
  73. package/locales/wellbeing/es.json +133 -133
  74. package/locales/wellbeing/fr.json +121 -121
  75. package/locales/wellbeing/it-IT.json +121 -121
  76. package/locales/wellbeing/pt.json +121 -121
  77. package/locales/wellbeing/tr.json +121 -121
  78. package/locales/wellbeing/zh-CN.json +121 -121
  79. package/locales/zh-CN.json +165 -165
  80. package/package.json +47 -47
  81. package/preview-big-integral.js +75 -75
  82. package/run.js +15 -15
  83. package/templates/Mediclinic/blocks/first-section.html +205 -205
  84. package/templates/Mediclinic/blocks/footer.html +7 -7
  85. package/templates/Mediclinic/blocks/header-template.html +5 -5
  86. package/templates/Mediclinic/blocks/header.html +20 -20
  87. package/templates/Mediclinic/blocks/patient-table.html +38 -38
  88. package/templates/Mediclinic/blocks/pdf-header.html +9 -9
  89. package/templates/Mediclinic/blocks/tips.html +8 -8
  90. package/templates/Mediclinic/ltr_no_pages.html +37 -37
  91. package/templates/Mediclinic/rtl_no_pages.html +42 -42
  92. package/templates/Mediclinic/wellbeing_template.html +41 -41
  93. package/templates/Pha/blocks/first-section.html +207 -207
  94. package/templates/Pha/blocks/footer.html +7 -7
  95. package/templates/Pha/blocks/header-template.html +5 -5
  96. package/templates/Pha/blocks/header.html +20 -20
  97. package/templates/Pha/blocks/patient-table.html +38 -38
  98. package/templates/Pha/blocks/pdf-header.html +8 -8
  99. package/templates/Pha/blocks/tips.html +8 -8
  100. package/templates/Pha/ltr_no_pages.html +37 -37
  101. package/templates/Pha/rtl_no_pages.html +42 -42
  102. package/templates/Pha/wellbeing_template.html +41 -41
  103. package/templates/base.html +23 -23
  104. package/templates/blocks/ar-first-page-header.html +68 -68
  105. package/templates/blocks/ar-footer.html +54 -54
  106. package/templates/blocks/ar-header.html +67 -67
  107. package/templates/blocks/biomarker-compact-ar.html +27 -27
  108. package/templates/blocks/biomarker-compact.html +27 -27
  109. package/templates/blocks/biomarker-details.html +41 -41
  110. package/templates/blocks/biomarker-insight.html +22 -22
  111. package/templates/blocks/biomarker-min.html +9 -9
  112. package/templates/blocks/doctor-note.html +11 -11
  113. package/templates/blocks/footer.html +35 -35
  114. package/templates/blocks/header-first-page.html +46 -46
  115. package/templates/blocks/header.html +49 -49
  116. package/templates/blocks/panel-compact.html +38 -38
  117. package/templates/blocks/panel-details.html +16 -16
  118. package/templates/blocks/report-summary.html +16 -16
  119. package/templates/blocks/section-title.html +4 -4
  120. package/templates/blocks/signature.html +16 -16
  121. package/templates/blocks/summary-insight.html +15 -15
  122. package/templates/blocks/summary.html +9 -9
  123. package/templates/corporate_report/cover_page.html +23 -23
  124. package/templates/corporate_report/footer.html +9 -9
  125. package/templates/corporate_report/ltr_no_pages.html +20 -20
  126. package/templates/corporate_report/page.html +24 -24
  127. package/templates/corporate_report/participant_analytics.html +5 -5
  128. package/templates/corporate_report/rtl_no_pages.html +20 -20
  129. package/templates/empty.html +10 -10
  130. package/templates/first_page_head.html +157 -157
  131. package/templates/imc/first-header-template.html +53 -53
  132. package/templates/ltr.html +1368 -1368
  133. package/templates/ltr_no_pages.html +89 -89
  134. package/templates/maisonsante/blocks/first-section.html +151 -207
  135. package/templates/maisonsante/blocks/footer.html +7 -7
  136. package/templates/maisonsante/blocks/header-template.html +5 -5
  137. package/templates/maisonsante/blocks/header.html +20 -20
  138. package/templates/maisonsante/blocks/patient-table.html +38 -38
  139. package/templates/maisonsante/blocks/pdf-header.html +8 -8
  140. package/templates/maisonsante/blocks/tips.html +8 -8
  141. package/templates/maisonsante/ltr_no_pages.html +38 -38
  142. package/templates/maisonsante/rtl_no_pages.html +43 -43
  143. package/templates/maisonsante/wellbeing_template.html +41 -41
  144. package/templates/no_pages.html +1224 -1224
  145. package/templates/popup/popup-template.html +129 -129
  146. package/templates/rtl_no_pages.html +92 -92
  147. package/templates/sanusx/blocks/footer.html +6 -6
  148. package/templates/sanusx/blocks/header.html +20 -20
  149. package/templates/sanusx/blocks/personal-details.html +123 -123
  150. package/templates/sanusx/blocks/predictions-section.html +57 -57
  151. package/templates/sanusx/blocks/recommendations-section.html +6 -6
  152. package/templates/sanusx/blocks/super-power-section.html +29 -29
  153. package/templates/sanusx/blocks/tips.html +8 -8
  154. package/templates/sanusx/ltr_no_pages.html +26 -26
  155. package/templates/sanusx/rtl_no_pages.html +36 -36
  156. package/templates/template.html +1377 -1377
  157. package/templates/wellbeing/blocks/first-section.html +106 -106
  158. package/templates/wellbeing/blocks/footer.html +7 -7
  159. package/templates/wellbeing/blocks/header.html +37 -37
  160. package/templates/wellbeing/blocks/tips.html +8 -8
  161. package/templates/wellbeing/ltr_no_pages.html +35 -35
  162. package/templates/wellbeing/rtl_no_pages.html +36 -36
  163. package/templates/wellbeing/wellbeing_template.html +43 -43
  164. package/test.js +74 -74
  165. package/.claude/settings.local.json +0 -16
  166. package/testing-reports/mediclinic/arabic-data.js +0 -439
  167. package/testing-reports/mediclinic/doctor-data.js +0 -523
  168. package/testing-reports/mediclinic/with-wellbeing.js +0 -415
  169. package/testing-reports/pha/notes-example.js +0 -397
@@ -1,170 +1,170 @@
1
- {
2
- "APPROVED BY": {
3
- "message": "تمت الموافقة",
4
- "description": "before the doctor signature in the bottom of the PDF file"
5
- },
6
- "PREPARED FOR": {
7
- "message": "محضّر لـِ",
8
- "description": "the label before the patient name, in the header of the pages of the PDF file"
9
- },
10
- "REFERENCE": {
11
- "message": "الرقم المرجعي",
12
- "description": "the label before the reference ID number of the patient. in the header of the pages of the PDF file"
13
- },
14
- "BRANCH": {
15
- "message": "الفرع",
16
- "description": "the label before the branch name of the patient. in the header of the pages of the PDF file"
17
- },
18
- "REPORT DATE": {
19
- "message": "تاريخ التقرير",
20
- "description": "The label before the report date. in the header of the pages of the PDF file"
21
- },
22
- "LAB": {
23
- "message": "المختبر",
24
- "description": "The label before the lab name, title, and number. in the header of the first page of the PDF file"
25
- },
26
- "Laboratory Report": {
27
- "message": "تقرير المختبر",
28
- "description": "The title of the report PDF file"
29
- },
30
- "There's more...": {
31
- "message": "هنالك المزيد...",
32
- "description": "The title of a section in the PDF to show links to the lab website,the PIN, and the QR code"
33
- },
34
- "Access a detailed report online or in our app.": {
35
- "message": "الوصول إلى التقرير أونلاين أو من خلال تطبيقنا",
36
- "description": "this sentence shows before the links to the lab website or app"
37
- },
38
- "1) Visit": {
39
- "message": "1) زيارة",
40
- "description": "A prefix before the link to the lab website"
41
- },
42
- "2) Enter this PIN code:": {
43
- "message": "2) يرجى إدخال رمز التعريف الشخصي PIN",
44
- "description": "before the pin code which will be used to access the app"
45
- },
46
- "Details": {
47
- "message": "التفاصيل",
48
- "description": "The title of the detailed report section"
49
- },
50
- "Summary": {
51
- "message": "الملخص",
52
- "description": "The title of the section which contains the summary of the report"
53
- },
54
- "Page": {
55
- "message": "صفحة",
56
- "description": "The page number in the footer of the pages in the PDf file"
57
- },
58
- "of": {
59
- "message": "من",
60
- "description": "The page number in the footer of the pages in the PDf file"
61
- },
62
- "Reference range": {
63
- "message": "المجال المرجعي",
64
- "description": "Reference range in the table biomarker header in the PDf file"
65
- },
66
- "Last reading": {
67
- "message": "آخر قراءة",
68
- "description": "Last reading in the table biomarker header in the PDf file"
69
- },
70
- "Last reading date": {
71
- "message": "تاريخ آخر قراءة",
72
- "description": "Last reading date in the table biomarker header in the PDf file"
73
- },
74
- "dates": {
75
- "message": "تواريخ",
76
- "description": "last reading of the history dates"
77
- },
78
- "smartReportBy": {
79
- "message": "تقرير ذكي من",
80
- "description": "text showing at the footer of pdf"
81
- },
82
- "Log in with a myLAB account": {
83
- "message": "2) Log in with a myLAB account",
84
- "description": "text showing at the header of pdf"
85
- },
86
- "doctorContent": {
87
- "message": "محتوى موجه للطبيب",
88
- "description": "text showing above the detailed list section (CR) as header"
89
- },
90
- "mostCommonCausesOfTheObservedValue": {
91
- "message": "الأسباب الأكثر شيوعاً للقيم:",
92
- "description": "text showing above the detailed list section (CR) as a subheader"
93
- },
94
- "January": {
95
- "message": "يناير",
96
- "description": "Month name"
97
- },
98
- "February": {
99
- "message": "فبراير",
100
- "description": "Month name"
101
- },
102
- "March": {
103
- "message": "مارس",
104
- "description": "Month name"
105
- },
106
- "April": {
107
- "message": "أبريل",
108
- "description": "Month name"
109
- },
110
- "May": {
111
- "message": "مايو",
112
- "description": "Month name"
113
- },
114
- "June": {
115
- "message": "يونيو",
116
- "description": "Month name"
117
- },
118
- "July": {
119
- "message": "يوليو",
120
- "description": "Month name"
121
- },
122
- "August": {
123
- "message": "أغسطس",
124
- "description": "Month name"
125
- },
126
- "September": {
127
- "message": "سبتمبر",
128
- "description": "Month name"
129
- },
130
- "October": {
131
- "message": "أكتوبر",
132
- "description": "Month name"
133
- },
134
- "November": {
135
- "message": "نوفمبر",
136
- "description": "Month name"
137
- },
138
- "December": {
139
- "message": "ديسمبر",
140
- "description": "Month name"
141
- },
142
- "am": {
143
- "message": "صباحاً",
144
- "description": "AM"
145
- },
146
- "pm": {
147
- "message": "مساءً",
148
- "description": "PM"
149
- },
150
- "reportSummary": {
151
- "message": "ملخص التقرير",
152
- "description": "name of field showing at the bottom of report if there is a summary for report"
153
- },
154
- "reportProperties": {
155
- "message": "خصائص التقرير",
156
- "description": "Report Properties Label showing at add report page"
157
- },
158
- "noteFromDoctor": {
159
- "message": "ملاحظة من د.",
160
- "description": "Doctor App - Insight header text showing for doctor note type"
161
- },
162
- "signedBy": {
163
- "message": "تم توقيعه من قِبَل",
164
- "description": "Label showing above the doctors who signed on this report"
165
- },
166
- "hospital": {
167
- "message": "المستشفى",
168
- "description": "name of field showing at add user"
169
- }
1
+ {
2
+ "APPROVED BY": {
3
+ "message": "تمت الموافقة",
4
+ "description": "before the doctor signature in the bottom of the PDF file"
5
+ },
6
+ "PREPARED FOR": {
7
+ "message": "محضّر لـِ",
8
+ "description": "the label before the patient name, in the header of the pages of the PDF file"
9
+ },
10
+ "REFERENCE": {
11
+ "message": "الرقم المرجعي",
12
+ "description": "the label before the reference ID number of the patient. in the header of the pages of the PDF file"
13
+ },
14
+ "BRANCH": {
15
+ "message": "الفرع",
16
+ "description": "the label before the branch name of the patient. in the header of the pages of the PDF file"
17
+ },
18
+ "REPORT DATE": {
19
+ "message": "تاريخ التقرير",
20
+ "description": "The label before the report date. in the header of the pages of the PDF file"
21
+ },
22
+ "LAB": {
23
+ "message": "المختبر",
24
+ "description": "The label before the lab name, title, and number. in the header of the first page of the PDF file"
25
+ },
26
+ "Laboratory Report": {
27
+ "message": "تقرير المختبر",
28
+ "description": "The title of the report PDF file"
29
+ },
30
+ "There's more...": {
31
+ "message": "هنالك المزيد...",
32
+ "description": "The title of a section in the PDF to show links to the lab website,the PIN, and the QR code"
33
+ },
34
+ "Access a detailed report online or in our app.": {
35
+ "message": "الوصول إلى التقرير أونلاين أو من خلال تطبيقنا",
36
+ "description": "this sentence shows before the links to the lab website or app"
37
+ },
38
+ "1) Visit": {
39
+ "message": "1) زيارة",
40
+ "description": "A prefix before the link to the lab website"
41
+ },
42
+ "2) Enter this PIN code:": {
43
+ "message": "2) يرجى إدخال رمز التعريف الشخصي PIN",
44
+ "description": "before the pin code which will be used to access the app"
45
+ },
46
+ "Details": {
47
+ "message": "التفاصيل",
48
+ "description": "The title of the detailed report section"
49
+ },
50
+ "Summary": {
51
+ "message": "الملخص",
52
+ "description": "The title of the section which contains the summary of the report"
53
+ },
54
+ "Page": {
55
+ "message": "صفحة",
56
+ "description": "The page number in the footer of the pages in the PDf file"
57
+ },
58
+ "of": {
59
+ "message": "من",
60
+ "description": "The page number in the footer of the pages in the PDf file"
61
+ },
62
+ "Reference range": {
63
+ "message": "المجال المرجعي",
64
+ "description": "Reference range in the table biomarker header in the PDf file"
65
+ },
66
+ "Last reading": {
67
+ "message": "آخر قراءة",
68
+ "description": "Last reading in the table biomarker header in the PDf file"
69
+ },
70
+ "Last reading date": {
71
+ "message": "تاريخ آخر قراءة",
72
+ "description": "Last reading date in the table biomarker header in the PDf file"
73
+ },
74
+ "dates": {
75
+ "message": "تواريخ",
76
+ "description": "last reading of the history dates"
77
+ },
78
+ "smartReportBy": {
79
+ "message": "تقرير ذكي من",
80
+ "description": "text showing at the footer of pdf"
81
+ },
82
+ "Log in with a myLAB account": {
83
+ "message": "2) Log in with a myLAB account",
84
+ "description": "text showing at the header of pdf"
85
+ },
86
+ "doctorContent": {
87
+ "message": "محتوى موجه للطبيب",
88
+ "description": "text showing above the detailed list section (CR) as header"
89
+ },
90
+ "mostCommonCausesOfTheObservedValue": {
91
+ "message": "الأسباب الأكثر شيوعاً للقيم:",
92
+ "description": "text showing above the detailed list section (CR) as a subheader"
93
+ },
94
+ "January": {
95
+ "message": "يناير",
96
+ "description": "Month name"
97
+ },
98
+ "February": {
99
+ "message": "فبراير",
100
+ "description": "Month name"
101
+ },
102
+ "March": {
103
+ "message": "مارس",
104
+ "description": "Month name"
105
+ },
106
+ "April": {
107
+ "message": "أبريل",
108
+ "description": "Month name"
109
+ },
110
+ "May": {
111
+ "message": "مايو",
112
+ "description": "Month name"
113
+ },
114
+ "June": {
115
+ "message": "يونيو",
116
+ "description": "Month name"
117
+ },
118
+ "July": {
119
+ "message": "يوليو",
120
+ "description": "Month name"
121
+ },
122
+ "August": {
123
+ "message": "أغسطس",
124
+ "description": "Month name"
125
+ },
126
+ "September": {
127
+ "message": "سبتمبر",
128
+ "description": "Month name"
129
+ },
130
+ "October": {
131
+ "message": "أكتوبر",
132
+ "description": "Month name"
133
+ },
134
+ "November": {
135
+ "message": "نوفمبر",
136
+ "description": "Month name"
137
+ },
138
+ "December": {
139
+ "message": "ديسمبر",
140
+ "description": "Month name"
141
+ },
142
+ "am": {
143
+ "message": "صباحاً",
144
+ "description": "AM"
145
+ },
146
+ "pm": {
147
+ "message": "مساءً",
148
+ "description": "PM"
149
+ },
150
+ "reportSummary": {
151
+ "message": "ملخص التقرير",
152
+ "description": "name of field showing at the bottom of report if there is a summary for report"
153
+ },
154
+ "reportProperties": {
155
+ "message": "خصائص التقرير",
156
+ "description": "Report Properties Label showing at add report page"
157
+ },
158
+ "noteFromDoctor": {
159
+ "message": "ملاحظة من د.",
160
+ "description": "Doctor App - Insight header text showing for doctor note type"
161
+ },
162
+ "signedBy": {
163
+ "message": "تم توقيعه من قِبَل",
164
+ "description": "Label showing above the doctors who signed on this report"
165
+ },
166
+ "hospital": {
167
+ "message": "المستشفى",
168
+ "description": "name of field showing at add user"
169
+ }
170
170
  }