@medicus.ai/medicus-report-pdf-generator 1.0.364 → 1.0.366
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/Mediclinic/css/nasco_report.css +4 -5
- package/assets/Mediclinic/css/nasco_report_rtl.css +23 -6
- package/lib/template.js +2 -1
- package/lib/wellbeing_report_generator.js +15 -51
- package/package.json +1 -1
- package/templates/Mediclinic/blocks/first-section.html +2 -2
- package/templates/Mediclinic/rtl_no_pages.html +3 -3
- package/test.js +1 -3
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
body {
|
|
2
2
|
margin: 0;
|
|
3
3
|
padding: 0;
|
|
4
|
-
/*background: url(../../wellbeing/images/report-sample.png);*/
|
|
5
|
-
/*background-repeat: no-repeat;*/
|
|
6
|
-
/*background-size: 211mm;*/
|
|
7
|
-
/*background-position: center top;*/
|
|
8
4
|
box-sizing: border-box;
|
|
9
5
|
width: 240mm;
|
|
10
6
|
height: 297mm;
|
|
11
7
|
margin: auto;
|
|
12
8
|
font-family: "Open Sans", sans-serif;
|
|
9
|
+
font-feature-settings: normal !important;
|
|
10
|
+
-webkit-font-feature-settings: normal !important;
|
|
11
|
+
-moz-font-feature-settings: normal !important;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
html {
|
|
@@ -3727,7 +3726,7 @@ div[key="mind"] .score-details-title {
|
|
|
3727
3726
|
padding: 7px;
|
|
3728
3727
|
font-size: 13px;
|
|
3729
3728
|
display: flex;
|
|
3730
|
-
align-items: center;
|
|
3729
|
+
align-items: center;
|
|
3731
3730
|
}
|
|
3732
3731
|
|
|
3733
3732
|
.details-label {
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
body {
|
|
2
|
+
font-family: 'Cairo',serif !important;
|
|
2
3
|
direction: rtl;
|
|
4
|
+
font-feature-settings: normal !important;
|
|
5
|
+
-webkit-font-feature-settings: normal !important;
|
|
6
|
+
-moz-font-feature-settings: normal !important;
|
|
3
7
|
}
|
|
4
8
|
|
|
9
|
+
.biom-unit .biom-parent-unit.unit-text {
|
|
10
|
+
direction: rtl !important;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.biom-unit .biom-parent-unit.unit-text {
|
|
15
|
+
direction: rtl !important;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
5
20
|
.span.bio-name-info{
|
|
6
21
|
direction: ltr;
|
|
7
22
|
text-align: right;
|
|
@@ -10,17 +25,17 @@ body {
|
|
|
10
25
|
.panel-title-text{
|
|
11
26
|
direction: ltr;
|
|
12
27
|
text-align: right;
|
|
13
|
-
|
|
28
|
+
/*font-family: 'Open Sans', sans-serif;*/
|
|
14
29
|
}
|
|
15
30
|
|
|
16
31
|
.speedometer-value{
|
|
17
32
|
top: 62px;
|
|
18
|
-
font-family: "Open Sans", sans-serif !important
|
|
33
|
+
/*font-family: "Open Sans", sans-serif !important;*/
|
|
19
34
|
}
|
|
20
35
|
|
|
21
36
|
.speedometer-value2{
|
|
22
37
|
top:37px;
|
|
23
|
-
font-family: "Open Sans", sans-serif !important
|
|
38
|
+
/*font-family: "Open Sans", sans-serif !important;*/
|
|
24
39
|
}
|
|
25
40
|
|
|
26
41
|
.biom-bar.big .labels td{
|
|
@@ -38,7 +53,8 @@ body {
|
|
|
38
53
|
.score-text {
|
|
39
54
|
color: #124374;
|
|
40
55
|
font-size: 12px;
|
|
41
|
-
font-family: "
|
|
56
|
+
font-family: "Cairo", sans-serif !important;
|
|
57
|
+
letter-spacing: -0.5px;
|
|
42
58
|
font-weight: 400;
|
|
43
59
|
word-wrap: break-word;
|
|
44
60
|
margin-left: 0;
|
|
@@ -76,7 +92,7 @@ body {
|
|
|
76
92
|
}
|
|
77
93
|
|
|
78
94
|
.info-value{
|
|
79
|
-
font-family: "Open Sans", sans-serif !important
|
|
95
|
+
/*font-family: "Open Sans", sans-serif !important;*/
|
|
80
96
|
padding: 0;
|
|
81
97
|
}
|
|
82
98
|
|
|
@@ -463,7 +479,7 @@ ul li::before {
|
|
|
463
479
|
|
|
464
480
|
.privacy-policy-page p {
|
|
465
481
|
margin-bottom: 10px;
|
|
466
|
-
font-family: OpenSans
|
|
482
|
+
/*font-family: OpenSans;*/
|
|
467
483
|
font-size: 15px;
|
|
468
484
|
font-stretch: normal;
|
|
469
485
|
font-style: normal;
|
|
@@ -550,6 +566,7 @@ ul li::before {
|
|
|
550
566
|
}
|
|
551
567
|
|
|
552
568
|
.score-description {
|
|
569
|
+
font-family: "Cairo",sans-serif !important;
|
|
553
570
|
text-align: right;
|
|
554
571
|
}
|
|
555
572
|
|
package/lib/template.js
CHANGED
|
@@ -1104,6 +1104,7 @@ function renderBiomarkerV3(biomarker, nestingLevel, isChildBiomarker, isCompactV
|
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
let biomarkerNameAlign = isRtl ? 'text-align: right;' : '';
|
|
1107
|
+
const RTL_FLAG = '\u200E';
|
|
1107
1108
|
newBiomarkerHtml += `<table id="${biomarkerCssId}" style="width:100%; margin: 0 auto;" class="biomarker-block biomarker-block-row ${biomarkerClass}">
|
|
1108
1109
|
<tr>
|
|
1109
1110
|
<td style="width:${firstTdWidth}">
|
|
@@ -1113,7 +1114,7 @@ function renderBiomarkerV3(biomarker, nestingLevel, isChildBiomarker, isCompactV
|
|
|
1113
1114
|
<td class="biom-value value" style="width:max-content;">
|
|
1114
1115
|
<span class="biom-parent-value value-text" style="${biomarkerParentValueStyle}">${biomarkerValue.replace(/\r\n/g, "<br/>")}</span>
|
|
1115
1116
|
</td>
|
|
1116
|
-
${biomarkerUnit ? `<td class="biom-unit unit"><div class="biom-parent-unit unit-text" style="padding: 0 6px;">${biomarkerUnit}</div></td>` : ''}
|
|
1117
|
+
${biomarkerUnit ? `<td class="biom-unit unit"><div class="biom-parent-unit unit-text" style="padding: 0 6px;">${isRtl ?RTL_FLAG+biomarkerUnit:biomarkerUnit}</div></td>` : ''}
|
|
1117
1118
|
${rangePlaceholder ? `<td class="biom-bar listing" style="width:${tdWidth}px; margin: 0;"><div class="range-placeholder b">${rangePlaceholder}</div></td>` : ''}
|
|
1118
1119
|
<td class="biom-range biom-range-data" style="width:${tdWidth}px; margin: 0;"><div class="parent-reference-range range">${referenceRange}</div></td>
|
|
1119
1120
|
|
|
@@ -253,7 +253,8 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
253
253
|
rotatePsychologicalAmount = 336
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
let firstSectionlHtml =
|
|
256
|
+
let firstSectionlHtml =
|
|
257
|
+
firstSectionTemplate.replace("{{physicalScore}}", parseFloat(Math.floor(data.calculation.physicalScore)))
|
|
257
258
|
.replace("{{physicalScoreDecimalPart}}", parseFloat((data.calculation.physicalScore)?.toFixed(1) % 1)?.toFixed(1).substring(1))
|
|
258
259
|
.replace("{{physicalScoreStatement}}", data.calculation.physicalScoreStatement)
|
|
259
260
|
.replace("{{PhysicalWord}}", localeService.t('physical'))
|
|
@@ -269,9 +270,6 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
269
270
|
.replace(/{{firstLevelColor}}/g, client === 'nasco' ? second_level_color : first_level_color)
|
|
270
271
|
.replace("{{psychologicalColor}}", psychologicalColor)
|
|
271
272
|
.replace(/{{listIconsFontColor}}/g, list_icons_font_color)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
273
|
|
|
276
274
|
let footerTemplateHTML = footerTemplate.replace("{{Disclaimer}}", localeService.t('Disclaimer'))
|
|
277
275
|
.replace("{{Disclaimer Text}}", localeService.t('Disclaimer Text'));
|
|
@@ -405,7 +403,6 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
405
403
|
}
|
|
406
404
|
|
|
407
405
|
let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clientName, language) => {
|
|
408
|
-
|
|
409
406
|
debug = isDebugging;
|
|
410
407
|
OUT_FILE = path.resolve(__dirname + `/../output/${clientName}-pdf` + Date.now() + '.html');
|
|
411
408
|
Pdf_file = `/output/${clientName}-pdf` + Date.now() + '.html'
|
|
@@ -621,7 +618,6 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
621
618
|
$(".score-main").addClass(language);
|
|
622
619
|
/* Second section*/
|
|
623
620
|
let partScores = wellbeingData.partsScore;
|
|
624
|
-
|
|
625
621
|
let allScores = {'lifeStyle': [], 'body': [], 'mind': [], healthRisk: []}
|
|
626
622
|
let tempScore = {
|
|
627
623
|
'lifeStyle': partScores.lifeStyle,
|
|
@@ -634,7 +630,6 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
634
630
|
let mind = [];
|
|
635
631
|
let healthRisk = []
|
|
636
632
|
Object.entries(partScores).map(([key, value], index) => {
|
|
637
|
-
|
|
638
633
|
if (key === 'body' || key === 'lifeStyle' || key === 'mind') {
|
|
639
634
|
partScores[key].map((item, index) => {
|
|
640
635
|
let iconName = item['icon'].split(" ").join("")
|
|
@@ -643,14 +638,12 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
643
638
|
if (empty(value)) {
|
|
644
639
|
console.log("missing icon", name)
|
|
645
640
|
}
|
|
646
|
-
|
|
647
641
|
let tempScore = {
|
|
648
642
|
percentage: Math.round(item['score']/(item['base']/5)),
|
|
649
643
|
icon: value,
|
|
650
644
|
scoreText: item['scoreText'],
|
|
651
645
|
key
|
|
652
646
|
};
|
|
653
|
-
|
|
654
647
|
if (key === 'body') {
|
|
655
648
|
body.push(tempScore)
|
|
656
649
|
} else if (key === 'lifeStyle') {
|
|
@@ -660,7 +653,6 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
660
653
|
} else {
|
|
661
654
|
healthRisk.push(tempScore)
|
|
662
655
|
}
|
|
663
|
-
|
|
664
656
|
})
|
|
665
657
|
}
|
|
666
658
|
});
|
|
@@ -670,13 +662,9 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
670
662
|
tempScore['healthRisk'] = healthRisk;
|
|
671
663
|
$('#content').append("<div class='row scores-parts' style='width:99.5% !important;'>" + renderItems(allScores, partScores) + "</div>");
|
|
672
664
|
debugLog("after signature");
|
|
673
|
-
/*Footer*/
|
|
674
665
|
let tips = wellbeingData.insights.tips
|
|
675
|
-
|
|
676
666
|
if(!empty(tips))
|
|
677
667
|
$('#content').after("<h5 class='recommended-tips-title'>" + localeService.t('weRecommend') + "</h5>");
|
|
678
|
-
// $('.footer').append(footerTemplateHTML);
|
|
679
|
-
/*tips*/
|
|
680
668
|
let allTips = []
|
|
681
669
|
let lifeStyleTips = []
|
|
682
670
|
let mindTips = []
|
|
@@ -872,10 +860,9 @@ let generatePDFWellbeingReport = async (data) => {
|
|
|
872
860
|
|
|
873
861
|
|
|
874
862
|
const generatePDFReport = async (data) => {
|
|
875
|
-
|
|
876
863
|
try {
|
|
877
864
|
let contentHtml = data.html;
|
|
878
|
-
|
|
865
|
+
|
|
879
866
|
const footerTemplate = `
|
|
880
867
|
<div style="width: 100%; font-size:7.3px; font-family: Inter, sans-serif; color: #B5B5B5; padding: 0 20px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center;">
|
|
881
868
|
<div style="display: flex; align-items: center;">
|
|
@@ -888,32 +875,6 @@ const generatePDFReport = async (data) => {
|
|
|
888
875
|
</div>
|
|
889
876
|
</div>
|
|
890
877
|
`;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
const headerTemplate=`
|
|
894
|
-
<div style="width: 400px; height: 61.50px; position: relative">
|
|
895
|
-
<div style="left: 0px; top: 18px; position: absolute; color: #555555; font-size: 14px; font-family: Metropolis; font-weight: 700; text-transform: uppercase; word-wrap: break-word">Health Risk Assessment</div>
|
|
896
|
-
<img style="width: 97px; height: 32px; left: 450px; top: 0px; position: absolute" src="https://placehold.co/97x32" />
|
|
897
|
-
<div style="width: 547px; padding-left: 8px; padding-right: 8px; padding-top: 5px; padding-bottom: 5px; left: 0px; top: 43.50px; position: absolute; background: #F2F5F8; justify-content: space-between; align-items: center; display: inline-flex">
|
|
898
|
-
<div style="justify-content: flex-start; align-items: center; gap: 2px; display: flex">
|
|
899
|
-
<div style="color: #333333; font-size: 8px; font-family: Metropolis; font-weight: 500; word-wrap: break-word">LAB:</div>
|
|
900
|
-
<div style="justify-content: center; display: flex; flex-direction: column; color: #2F2F2F; font-size: 7.50px; font-family: Metropolis; font-weight: 400; word-wrap: break-word">Mediclinic</div>
|
|
901
|
-
</div>
|
|
902
|
-
<div style="justify-content: flex-start; align-items: center; gap: 2px; display: flex">
|
|
903
|
-
<div style="color: #333333; font-size: 8px; font-family: Metropolis; font-weight: 500; word-wrap: break-word">REFERENCE:</div>
|
|
904
|
-
<div style="color: #2F2F2F; font-size: 7.50px; font-family: Metropolis; font-weight: 400; word-wrap: break-word">MR-EAAA792</div>
|
|
905
|
-
</div>
|
|
906
|
-
<div style="justify-content: flex-start; align-items: center; gap: 2px; display: flex">
|
|
907
|
-
<div style="color: #333333; font-size: 8px; font-family: Metropolis; font-weight: 500; word-wrap: break-word">PATIENT:</div>
|
|
908
|
-
<div style="color: #2F2F2F; font-size: 7.50px; font-family: Metropolis; font-weight: 400; word-wrap: break-word">Amir - EU</div>
|
|
909
|
-
</div>
|
|
910
|
-
<div style="justify-content: flex-start; align-items: center; gap: 2px; display: flex">
|
|
911
|
-
<div style="color: #333333; font-size: 8px; font-family: Metropolis; font-weight: 500; word-wrap: break-word">REPORT DATE:</div>
|
|
912
|
-
<div style="color: #2F2F2F; font-size: 7.50px; font-family: Metropolis; font-weight: 400; word-wrap: break-word">17/10/2023</div>
|
|
913
|
-
</div>
|
|
914
|
-
</div>
|
|
915
|
-
</div>
|
|
916
|
-
`
|
|
917
878
|
|
|
918
879
|
const OUT_FILE = data.outputFile;
|
|
919
880
|
const browser = await puppeteer.launch({
|
|
@@ -927,14 +888,17 @@ const generatePDFReport = async (data) => {
|
|
|
927
888
|
});
|
|
928
889
|
const page = await browser.newPage();
|
|
929
890
|
debugLog("page launched!");
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
891
|
+
await page.evaluate(async () => {
|
|
892
|
+
await document.fonts.ready;
|
|
893
|
+
await Promise.all([
|
|
894
|
+
document.fonts.load('400 12px "Open Sans"'),
|
|
895
|
+
document.fonts.load('400 12px "Cairo"')
|
|
896
|
+
]);
|
|
897
|
+
});
|
|
898
|
+
debugLog("fonts loaded!");
|
|
933
899
|
|
|
934
900
|
await page.addScriptTag({ url: 'https://code.jquery.com/jquery-3.3.1.min.js' });
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
await page.setContent(contentHtml, { waitUntil: 'networkidle2',timeout: 30000000, });
|
|
901
|
+
await page.setContent(contentHtml, { waitUntil: 'networkidle2', timeout: 30000 });
|
|
938
902
|
await page.goto("file:///" + path.resolve(__dirname + `/../${Pdf_file}`), {
|
|
939
903
|
timeout: 30000000,
|
|
940
904
|
waitUntil: 'networkidle2'
|
|
@@ -948,11 +912,11 @@ const generatePDFReport = async (data) => {
|
|
|
948
912
|
format: 'A4',
|
|
949
913
|
printBackground: true,
|
|
950
914
|
displayHeaderFooter: true,
|
|
951
|
-
footerTemplate,
|
|
915
|
+
footerTemplate:footerTemplate,
|
|
952
916
|
width: "220mm",
|
|
953
917
|
margin: {
|
|
954
|
-
top: '20px',
|
|
955
|
-
bottom: '50px',
|
|
918
|
+
top: '20px',
|
|
919
|
+
bottom: '50px',
|
|
956
920
|
left: '20px',
|
|
957
921
|
right: '20px'
|
|
958
922
|
}
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<path d="M12.816 11.2807C12.6497 11.2854 12.5359 11.3466 12.4642 11.4785C12.3887 11.6181 12.4088 11.7739 12.5015 11.8733C12.6707 12.0511 12.8342 12.2395 13.0359 12.3838C13.1267 12.4498 13.2376 12.4746 13.3408 12.423C13.6591 12.2643 13.6429 11.9728 13.4488 11.773C13.3198 11.6391 13.1831 11.513 13.0473 11.3858C12.9785 11.3208 12.8992 11.2711 12.816 11.2807ZM5.81284 4.28133C5.82049 4.17427 5.76982 4.09684 5.69717 4.0261C5.5404 3.87506 5.40083 3.70586 5.22685 3.57299C5.08155 3.46401 4.88272 3.47644 4.76323 3.59975C4.63991 3.72498 4.59403 3.93242 4.71256 4.07772C4.86551 4.26413 5.03662 4.43141 5.21825 4.58819C5.33965 4.69047 5.48782 4.69525 5.63026 4.62069C5.766 4.54995 5.80902 4.42377 5.81284 4.28133ZM8.74755 2.42013C8.74755 2.58646 8.74182 2.70118 8.74851 2.81589C8.75807 2.99369 8.90528 3.12944 9.08786 3.14091C9.29912 3.1562 9.45399 3.03384 9.47788 2.85221C9.51134 2.59985 9.50656 2.3427 9.47597 2.09034C9.45877 1.94026 9.32111 1.82363 9.16721 1.80738C8.99227 1.78826 8.84697 1.86856 8.78005 2.01482C8.71314 2.16394 8.75998 2.31976 8.74755 2.42013ZM3.62662 7.60033C3.52243 7.60033 3.41823 7.59842 3.31499 7.60033C3.10182 7.60511 2.94887 7.75901 2.946 7.96836C2.94409 8.1672 3.10851 8.34309 3.30925 8.34787C3.51382 8.35265 3.71744 8.35169 3.92201 8.34882C4.12371 8.345 4.28717 8.17676 4.29195 7.97505C4.29673 7.77335 4.13709 7.60702 3.92774 7.60033C3.82737 7.59746 3.727 7.60033 3.62662 7.60033ZM14.6189 8.345V8.34882C14.7269 8.34882 14.834 8.35265 14.941 8.34787C15.1179 8.34118 15.2861 8.16337 15.288 7.98748C15.2909 7.77909 15.1485 7.60893 14.9525 7.60224C14.7336 7.59555 14.5147 7.59555 14.2967 7.6032C14.0941 7.60989 13.9421 7.77049 13.9411 7.96263C13.9392 8.16337 14.0855 8.32875 14.2862 8.34404C14.3962 8.35265 14.508 8.345 14.6189 8.345ZM9.13088 15.3816V15.3797C8.99418 15.3797 8.85748 15.3759 8.72174 15.3807C8.54011 15.3864 8.35753 15.3606 8.17686 15.4189C7.91685 15.5021 7.8203 15.851 8.01053 16.0479C8.11759 16.1597 8.2476 16.198 8.39768 16.198C8.88616 16.198 9.37369 16.1903 9.86217 16.2009C10.0256 16.2037 10.1795 16.1425 10.2694 15.9848C10.3602 15.8261 10.342 15.678 10.2273 15.5365C10.1346 15.4227 10.0094 15.3864 9.87364 15.3835C9.62701 15.3778 9.37847 15.3816 9.13088 15.3816ZM9.12037 12.7748C8.6749 12.7748 8.23039 12.7738 7.78588 12.7757C7.72566 12.7757 7.66352 12.7805 7.60426 12.7939C7.34615 12.8541 7.21424 13.16 7.34998 13.377C7.44748 13.5328 7.59661 13.5892 7.76963 13.5892C8.67012 13.5902 9.56965 13.5902 10.4701 13.5892C10.496 13.5892 10.5208 13.5892 10.5457 13.5854C10.7636 13.5596 10.9347 13.3904 10.9395 13.1992C10.9452 12.9602 10.756 12.7757 10.4969 12.7757C10.0381 12.7738 9.57921 12.7748 9.12037 12.7748ZM7.45322 14.788C7.52778 14.8645 7.62433 14.895 7.72566 14.896C8.65387 14.8979 9.58304 14.8989 10.5122 14.895C10.7846 14.8941 10.9672 14.6819 10.9385 14.4247C10.9156 14.2259 10.7149 14.072 10.4768 14.071C9.59451 14.071 8.71218 14.071 7.82986 14.072C7.75816 14.0729 7.68455 14.0739 7.61668 14.0911C7.45035 14.1303 7.3366 14.2326 7.29931 14.4027C7.26968 14.5375 7.29836 14.658 7.4102 14.7497C7.41211 14.7765 7.42645 14.7899 7.45322 14.788ZM11.9738 5.4275L11.97 5.42463C11.9576 5.39213 11.9413 5.36249 11.9098 5.34529C11.905 5.33859 11.8993 5.33477 11.8916 5.33477C11.884 5.32808 11.8763 5.32139 11.8677 5.31374C11.7454 5.16079 11.6029 5.03174 11.4366 4.92754C11.4299 4.90938 11.4156 4.9046 11.3984 4.90364C11.3831 4.87306 11.3649 4.8482 11.3267 4.85203C11.3267 4.84629 11.3228 4.84342 11.3171 4.84342C11.3028 4.81092 11.2789 4.78989 11.2425 4.78798C11.2253 4.77746 11.2091 4.76695 11.1928 4.75643C11.0925 4.6704 10.9797 4.60635 10.8544 4.56333L10.8525 4.56142C10.6384 4.43046 10.408 4.33965 10.1633 4.28707L10.1595 4.2842C9.99982 4.2364 9.84209 4.17905 9.67194 4.18383C9.649 4.18192 9.62605 4.18 9.60311 4.17714C9.39185 4.12074 9.17772 4.12743 8.96359 4.14272C8.94639 4.14368 8.92918 4.14464 8.91197 4.14655C8.83263 4.11882 8.75711 4.15611 8.68064 4.16375C8.50666 4.18192 8.32694 4.18478 8.16539 4.26699C8.14914 4.26891 8.13384 4.27082 8.11855 4.27177C7.97803 4.29472 7.84611 4.3406 7.71992 4.40656L7.71323 4.40465L7.70845 4.40943C7.6683 4.41325 7.63198 4.42663 7.60139 4.4534C7.59087 4.45914 7.5794 4.46583 7.56984 4.47156C7.55837 4.47539 7.54786 4.47826 7.53734 4.48208C7.49337 4.48973 7.45417 4.50502 7.42072 4.53561C6.98099 4.744 6.60244 5.03461 6.27742 5.39404C5.77747 5.94561 5.45914 6.58895 5.33487 7.32693C5.24693 7.84983 5.26413 8.3689 5.37789 8.88606C5.48687 9.38314 5.69622 9.83625 5.97726 10.2559C6.21242 10.6077 6.49633 10.9222 6.76304 11.2491C6.96474 11.4967 7.15975 11.7443 7.21232 12.0779C7.24196 12.2748 7.40733 12.3829 7.60043 12.3809C7.79736 12.38 7.93883 12.2758 7.99332 12.0903C8.03538 11.9441 7.98854 11.8055 7.9503 11.6678C7.84133 11.2749 7.58896 10.9633 7.33755 10.6564C7.11291 10.383 6.88157 10.1163 6.677 9.82574C6.28985 9.27703 6.09388 8.67097 6.09484 8.00373C6.09675 7.08699 6.43706 6.31556 7.12629 5.70472C7.63198 5.25734 8.2237 5.01167 8.89763 4.961C9.3039 4.92946 9.69679 4.98394 10.083 5.11204C10.559 5.27072 10.9701 5.53456 11.3114 5.89686C11.7033 6.31365 11.9595 6.80404 12.0761 7.37186C12.1774 7.86895 12.1545 8.35647 12.0274 8.84113C11.8763 9.41947 11.5408 9.89648 11.1622 10.3458C10.8994 10.6574 10.6174 10.9547 10.4271 11.3199C10.3248 11.5168 10.2359 11.7223 10.2283 11.9508C10.2254 12.0674 10.2541 12.1764 10.3392 12.2653C10.5399 12.4756 10.9691 12.4048 11.0294 12.0502C11.0657 11.8408 11.1565 11.6563 11.2817 11.4862C11.5523 11.1201 11.8687 10.7912 12.1382 10.4242C12.642 9.73779 12.9288 8.974 12.9565 8.12131C12.9804 7.38142 12.8103 6.68646 12.4298 6.04694C12.3361 5.82803 12.1937 5.64258 12.0207 5.48007C12.0197 5.47338 12.0168 5.4686 12.0101 5.46669C12.0082 5.4447 11.9958 5.43132 11.9738 5.4275ZM5.20965 12.3771C5.22303 12.3781 5.22877 12.3743 5.22685 12.3609L5.23163 12.3561C5.26509 12.3446 5.2995 12.3331 5.31193 12.294C5.43238 12.1639 5.57386 12.0559 5.68952 11.9192C5.85872 11.7194 5.8549 11.5369 5.66085 11.3476C5.65893 11.338 5.65416 11.3323 5.64364 11.338C5.63312 11.3342 5.62357 11.3304 5.61305 11.3275C5.4687 11.2405 5.32531 11.2549 5.20869 11.3677C5.202 11.3724 5.19435 11.3763 5.1867 11.3801C5.17523 11.3763 5.17332 11.381 5.17619 11.3906C5.17045 11.3916 5.16854 11.3954 5.1695 11.4011C5.14082 11.4088 5.12266 11.425 5.11979 11.4566C5.10736 11.468 5.09398 11.4805 5.08155 11.4929C5.03089 11.49 5.00317 11.511 5.00221 11.5627L4.97353 11.598C4.95537 11.598 4.94963 11.6095 4.94868 11.6248L4.94963 11.6238C4.93147 11.6248 4.92 11.6325 4.91809 11.6516C4.9114 11.6516 4.90853 11.6554 4.90853 11.6611L4.90088 11.6602L4.90184 11.6669C4.8961 11.6745 4.89037 11.6812 4.88463 11.6889L4.86169 11.7118C4.855 11.7156 4.8483 11.7194 4.84257 11.7233C4.83014 11.7204 4.82823 11.7252 4.8311 11.7357C4.82536 11.7366 4.82345 11.7395 4.82441 11.7443C4.80529 11.7462 4.79955 11.7596 4.79764 11.7768C4.79095 11.7816 4.78521 11.7864 4.77948 11.7921C4.7508 11.7969 4.73933 11.815 4.7355 11.8418H4.73455C4.64278 11.9221 4.60932 12.1085 4.67337 12.228C4.69344 12.2643 4.6858 12.336 4.76036 12.3303L4.76227 12.3351H4.76801C4.84735 12.4603 4.99839 12.4985 5.11501 12.423C5.12648 12.4201 5.137 12.4163 5.14847 12.4144C5.15994 12.4201 5.16472 12.4144 5.16759 12.4039C5.17523 12.401 5.18288 12.3982 5.18957 12.3953C5.202 12.3982 5.20678 12.3934 5.20582 12.3809L5.20965 12.3771ZM12.7252 3.8483L12.7261 3.84734C12.7185 3.85499 12.7118 3.86264 12.7042 3.87028L12.7051 3.86933C12.6975 3.87697 12.6898 3.88367 12.6822 3.89131L12.6831 3.89036C12.6764 3.898 12.6688 3.90565 12.6611 3.9133V3.91234C12.5904 3.95727 12.5359 4.0175 12.491 4.08728C12.4709 4.10353 12.4623 4.12456 12.4652 4.15037C12.3954 4.29472 12.425 4.44862 12.5206 4.55186C12.6592 4.7029 12.9374 4.70863 13.0731 4.54039C13.1171 4.48495 13.1773 4.44193 13.2232 4.38744C13.337 4.2517 13.5043 4.16471 13.5702 3.98595C13.6171 3.8569 13.5578 3.64755 13.4402 3.5749C13.25 3.45828 13.1009 3.47548 12.9307 3.63512C12.9269 3.64182 12.924 3.64851 12.9202 3.65424C12.8915 3.66858 12.8667 3.68674 12.8552 3.71829C12.8475 3.72594 12.8409 3.73263 12.8342 3.74028C12.8265 3.74792 12.8189 3.75461 12.8122 3.76226V3.76131C12.7931 3.76704 12.7816 3.77756 12.7816 3.79763L12.7845 3.79859C12.7692 3.79859 12.7606 3.80815 12.7567 3.82249L12.75 3.8244C12.7414 3.83205 12.7338 3.84065 12.7252 3.8483ZM17.9962 9.20056C17.8155 14.723 13.2032 18.1318 8.81638 17.9961C3.2691 17.824 -0.170339 13.1782 0.0065085 8.73311C0.108793 6.15783 1.10965 3.98404 3.03108 2.27005C4.80911 0.683205 6.92459 -0.0863209 9.30486 0.0102291C14.6762 0.226269 18.131 4.70863 17.9962 9.20056Z" fill="#0092D2"/>
|
|
59
59
|
</svg>
|
|
60
60
|
</div>
|
|
61
|
-
<div class="score-text"
|
|
61
|
+
<div class="score-text">
|
|
62
62
|
{{ScoreText}}
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
<path d="M12.816 11.2807C12.6497 11.2854 12.5359 11.3466 12.4642 11.4785C12.3887 11.6181 12.4088 11.7739 12.5015 11.8733C12.6707 12.0511 12.8342 12.2395 13.0359 12.3838C13.1267 12.4498 13.2376 12.4746 13.3408 12.423C13.6591 12.2643 13.6429 11.9728 13.4488 11.773C13.3198 11.6391 13.1831 11.513 13.0473 11.3858C12.9785 11.3208 12.8992 11.2711 12.816 11.2807ZM5.81284 4.28133C5.82049 4.17427 5.76982 4.09684 5.69717 4.0261C5.5404 3.87506 5.40083 3.70586 5.22685 3.57299C5.08155 3.46401 4.88272 3.47644 4.76323 3.59975C4.63991 3.72498 4.59403 3.93242 4.71256 4.07772C4.86551 4.26413 5.03662 4.43141 5.21825 4.58819C5.33965 4.69047 5.48782 4.69525 5.63026 4.62069C5.766 4.54995 5.80902 4.42377 5.81284 4.28133ZM8.74755 2.42013C8.74755 2.58646 8.74182 2.70118 8.74851 2.81589C8.75807 2.99369 8.90528 3.12944 9.08786 3.14091C9.29912 3.1562 9.45399 3.03384 9.47788 2.85221C9.51134 2.59985 9.50656 2.3427 9.47597 2.09034C9.45877 1.94026 9.32111 1.82363 9.16721 1.80738C8.99227 1.78826 8.84697 1.86856 8.78005 2.01482C8.71314 2.16394 8.75998 2.31976 8.74755 2.42013ZM3.62662 7.60033C3.52243 7.60033 3.41823 7.59842 3.31499 7.60033C3.10182 7.60511 2.94887 7.75901 2.946 7.96836C2.94409 8.1672 3.10851 8.34309 3.30925 8.34787C3.51382 8.35265 3.71744 8.35169 3.92201 8.34882C4.12371 8.345 4.28717 8.17676 4.29195 7.97505C4.29673 7.77335 4.13709 7.60702 3.92774 7.60033C3.82737 7.59746 3.727 7.60033 3.62662 7.60033ZM14.6189 8.345V8.34882C14.7269 8.34882 14.834 8.35265 14.941 8.34787C15.1179 8.34118 15.2861 8.16337 15.288 7.98748C15.2909 7.77909 15.1485 7.60893 14.9525 7.60224C14.7336 7.59555 14.5147 7.59555 14.2967 7.6032C14.0941 7.60989 13.9421 7.77049 13.9411 7.96263C13.9392 8.16337 14.0855 8.32875 14.2862 8.34404C14.3962 8.35265 14.508 8.345 14.6189 8.345ZM9.13088 15.3816V15.3797C8.99418 15.3797 8.85748 15.3759 8.72174 15.3807C8.54011 15.3864 8.35753 15.3606 8.17686 15.4189C7.91685 15.5021 7.8203 15.851 8.01053 16.0479C8.11759 16.1597 8.2476 16.198 8.39768 16.198C8.88616 16.198 9.37369 16.1903 9.86217 16.2009C10.0256 16.2037 10.1795 16.1425 10.2694 15.9848C10.3602 15.8261 10.342 15.678 10.2273 15.5365C10.1346 15.4227 10.0094 15.3864 9.87364 15.3835C9.62701 15.3778 9.37847 15.3816 9.13088 15.3816ZM9.12037 12.7748C8.6749 12.7748 8.23039 12.7738 7.78588 12.7757C7.72566 12.7757 7.66352 12.7805 7.60426 12.7939C7.34615 12.8541 7.21424 13.16 7.34998 13.377C7.44748 13.5328 7.59661 13.5892 7.76963 13.5892C8.67012 13.5902 9.56965 13.5902 10.4701 13.5892C10.496 13.5892 10.5208 13.5892 10.5457 13.5854C10.7636 13.5596 10.9347 13.3904 10.9395 13.1992C10.9452 12.9602 10.756 12.7757 10.4969 12.7757C10.0381 12.7738 9.57921 12.7748 9.12037 12.7748ZM7.45322 14.788C7.52778 14.8645 7.62433 14.895 7.72566 14.896C8.65387 14.8979 9.58304 14.8989 10.5122 14.895C10.7846 14.8941 10.9672 14.6819 10.9385 14.4247C10.9156 14.2259 10.7149 14.072 10.4768 14.071C9.59451 14.071 8.71218 14.071 7.82986 14.072C7.75816 14.0729 7.68455 14.0739 7.61668 14.0911C7.45035 14.1303 7.3366 14.2326 7.29931 14.4027C7.26968 14.5375 7.29836 14.658 7.4102 14.7497C7.41211 14.7765 7.42645 14.7899 7.45322 14.788ZM11.9738 5.4275L11.97 5.42463C11.9576 5.39213 11.9413 5.36249 11.9098 5.34529C11.905 5.33859 11.8993 5.33477 11.8916 5.33477C11.884 5.32808 11.8763 5.32139 11.8677 5.31374C11.7454 5.16079 11.6029 5.03174 11.4366 4.92754C11.4299 4.90938 11.4156 4.9046 11.3984 4.90364C11.3831 4.87306 11.3649 4.8482 11.3267 4.85203C11.3267 4.84629 11.3228 4.84342 11.3171 4.84342C11.3028 4.81092 11.2789 4.78989 11.2425 4.78798C11.2253 4.77746 11.2091 4.76695 11.1928 4.75643C11.0925 4.6704 10.9797 4.60635 10.8544 4.56333L10.8525 4.56142C10.6384 4.43046 10.408 4.33965 10.1633 4.28707L10.1595 4.2842C9.99982 4.2364 9.84209 4.17905 9.67194 4.18383C9.649 4.18192 9.62605 4.18 9.60311 4.17714C9.39185 4.12074 9.17772 4.12743 8.96359 4.14272C8.94639 4.14368 8.92918 4.14464 8.91197 4.14655C8.83263 4.11882 8.75711 4.15611 8.68064 4.16375C8.50666 4.18192 8.32694 4.18478 8.16539 4.26699C8.14914 4.26891 8.13384 4.27082 8.11855 4.27177C7.97803 4.29472 7.84611 4.3406 7.71992 4.40656L7.71323 4.40465L7.70845 4.40943C7.6683 4.41325 7.63198 4.42663 7.60139 4.4534C7.59087 4.45914 7.5794 4.46583 7.56984 4.47156C7.55837 4.47539 7.54786 4.47826 7.53734 4.48208C7.49337 4.48973 7.45417 4.50502 7.42072 4.53561C6.98099 4.744 6.60244 5.03461 6.27742 5.39404C5.77747 5.94561 5.45914 6.58895 5.33487 7.32693C5.24693 7.84983 5.26413 8.3689 5.37789 8.88606C5.48687 9.38314 5.69622 9.83625 5.97726 10.2559C6.21242 10.6077 6.49633 10.9222 6.76304 11.2491C6.96474 11.4967 7.15975 11.7443 7.21232 12.0779C7.24196 12.2748 7.40733 12.3829 7.60043 12.3809C7.79736 12.38 7.93883 12.2758 7.99332 12.0903C8.03538 11.9441 7.98854 11.8055 7.9503 11.6678C7.84133 11.2749 7.58896 10.9633 7.33755 10.6564C7.11291 10.383 6.88157 10.1163 6.677 9.82574C6.28985 9.27703 6.09388 8.67097 6.09484 8.00373C6.09675 7.08699 6.43706 6.31556 7.12629 5.70472C7.63198 5.25734 8.2237 5.01167 8.89763 4.961C9.3039 4.92946 9.69679 4.98394 10.083 5.11204C10.559 5.27072 10.9701 5.53456 11.3114 5.89686C11.7033 6.31365 11.9595 6.80404 12.0761 7.37186C12.1774 7.86895 12.1545 8.35647 12.0274 8.84113C11.8763 9.41947 11.5408 9.89648 11.1622 10.3458C10.8994 10.6574 10.6174 10.9547 10.4271 11.3199C10.3248 11.5168 10.2359 11.7223 10.2283 11.9508C10.2254 12.0674 10.2541 12.1764 10.3392 12.2653C10.5399 12.4756 10.9691 12.4048 11.0294 12.0502C11.0657 11.8408 11.1565 11.6563 11.2817 11.4862C11.5523 11.1201 11.8687 10.7912 12.1382 10.4242C12.642 9.73779 12.9288 8.974 12.9565 8.12131C12.9804 7.38142 12.8103 6.68646 12.4298 6.04694C12.3361 5.82803 12.1937 5.64258 12.0207 5.48007C12.0197 5.47338 12.0168 5.4686 12.0101 5.46669C12.0082 5.4447 11.9958 5.43132 11.9738 5.4275ZM5.20965 12.3771C5.22303 12.3781 5.22877 12.3743 5.22685 12.3609L5.23163 12.3561C5.26509 12.3446 5.2995 12.3331 5.31193 12.294C5.43238 12.1639 5.57386 12.0559 5.68952 11.9192C5.85872 11.7194 5.8549 11.5369 5.66085 11.3476C5.65893 11.338 5.65416 11.3323 5.64364 11.338C5.63312 11.3342 5.62357 11.3304 5.61305 11.3275C5.4687 11.2405 5.32531 11.2549 5.20869 11.3677C5.202 11.3724 5.19435 11.3763 5.1867 11.3801C5.17523 11.3763 5.17332 11.381 5.17619 11.3906C5.17045 11.3916 5.16854 11.3954 5.1695 11.4011C5.14082 11.4088 5.12266 11.425 5.11979 11.4566C5.10736 11.468 5.09398 11.4805 5.08155 11.4929C5.03089 11.49 5.00317 11.511 5.00221 11.5627L4.97353 11.598C4.95537 11.598 4.94963 11.6095 4.94868 11.6248L4.94963 11.6238C4.93147 11.6248 4.92 11.6325 4.91809 11.6516C4.9114 11.6516 4.90853 11.6554 4.90853 11.6611L4.90088 11.6602L4.90184 11.6669C4.8961 11.6745 4.89037 11.6812 4.88463 11.6889L4.86169 11.7118C4.855 11.7156 4.8483 11.7194 4.84257 11.7233C4.83014 11.7204 4.82823 11.7252 4.8311 11.7357C4.82536 11.7366 4.82345 11.7395 4.82441 11.7443C4.80529 11.7462 4.79955 11.7596 4.79764 11.7768C4.79095 11.7816 4.78521 11.7864 4.77948 11.7921C4.7508 11.7969 4.73933 11.815 4.7355 11.8418H4.73455C4.64278 11.9221 4.60932 12.1085 4.67337 12.228C4.69344 12.2643 4.6858 12.336 4.76036 12.3303L4.76227 12.3351H4.76801C4.84735 12.4603 4.99839 12.4985 5.11501 12.423C5.12648 12.4201 5.137 12.4163 5.14847 12.4144C5.15994 12.4201 5.16472 12.4144 5.16759 12.4039C5.17523 12.401 5.18288 12.3982 5.18957 12.3953C5.202 12.3982 5.20678 12.3934 5.20582 12.3809L5.20965 12.3771ZM12.7252 3.8483L12.7261 3.84734C12.7185 3.85499 12.7118 3.86264 12.7042 3.87028L12.7051 3.86933C12.6975 3.87697 12.6898 3.88367 12.6822 3.89131L12.6831 3.89036C12.6764 3.898 12.6688 3.90565 12.6611 3.9133V3.91234C12.5904 3.95727 12.5359 4.0175 12.491 4.08728C12.4709 4.10353 12.4623 4.12456 12.4652 4.15037C12.3954 4.29472 12.425 4.44862 12.5206 4.55186C12.6592 4.7029 12.9374 4.70863 13.0731 4.54039C13.1171 4.48495 13.1773 4.44193 13.2232 4.38744C13.337 4.2517 13.5043 4.16471 13.5702 3.98595C13.6171 3.8569 13.5578 3.64755 13.4402 3.5749C13.25 3.45828 13.1009 3.47548 12.9307 3.63512C12.9269 3.64182 12.924 3.64851 12.9202 3.65424C12.8915 3.66858 12.8667 3.68674 12.8552 3.71829C12.8475 3.72594 12.8409 3.73263 12.8342 3.74028C12.8265 3.74792 12.8189 3.75461 12.8122 3.76226V3.76131C12.7931 3.76704 12.7816 3.77756 12.7816 3.79763L12.7845 3.79859C12.7692 3.79859 12.7606 3.80815 12.7567 3.82249L12.75 3.8244C12.7414 3.83205 12.7338 3.84065 12.7252 3.8483ZM17.9962 9.20056C17.8155 14.723 13.2032 18.1318 8.81638 17.9961C3.2691 17.824 -0.170339 13.1782 0.0065085 8.73311C0.108793 6.15783 1.10965 3.98404 3.03108 2.27005C4.80911 0.683205 6.92459 -0.0863209 9.30486 0.0102291C14.6762 0.226269 18.131 4.70863 17.9962 9.20056Z" fill="#0092D2"/>
|
|
201
201
|
</svg>
|
|
202
202
|
</div>
|
|
203
|
-
<div class="score-text"
|
|
203
|
+
<div class="score-text">
|
|
204
204
|
{{lowScoreText}}
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
|
5
5
|
<title>TEMPLATE</title>
|
|
6
|
-
<link rel="preload" href="../assets/Mediclinic/
|
|
7
|
-
|
|
6
|
+
<link rel="preload" href="../assets/Mediclinic/css/style.css" as="style">
|
|
7
|
+
|
|
8
8
|
<link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report.css" type="text/css">
|
|
9
9
|
<link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report_rtl.css" type="text/css">
|
|
10
10
|
<link rel="stylesheet" href="../assets/Mediclinic/css/style.css" type="text/css">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div id="chartsData" style="font-family: 'Cairo',serif;"></div>
|
|
16
16
|
<body>
|
|
17
17
|
<!--********************** PAGE 1 ********************-->
|
|
18
|
-
<div class='score-main'
|
|
18
|
+
<div class='score-main'>
|
|
19
19
|
<div id="content" class="content">
|
|
20
20
|
</div>
|
|
21
21
|
<div class="footer footer-background">
|
package/test.js
CHANGED
|
@@ -59,10 +59,8 @@ async function tttt() {
|
|
|
59
59
|
|
|
60
60
|
// Write original PDF
|
|
61
61
|
fs.writeFileSync(PDF_FILE_PATH, fileBuffer);
|
|
62
|
-
|
|
63
|
-
(async () => {
|
|
62
|
+
await (async () => {
|
|
64
63
|
const qpdf = await import('node-qpdf2');
|
|
65
|
-
|
|
66
64
|
qpdf.encrypt({
|
|
67
65
|
input: PDF_FILE_PATH,
|
|
68
66
|
output: ENCRYPTED_PATH,
|