@medicus.ai/medicus-report-pdf-generator 1.3.10 → 1.3.12

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/test.js CHANGED
@@ -6,23 +6,21 @@ const {
6
6
 
7
7
  const CLIENTS = {
8
8
  Mediclinic: 'Mediclinic',
9
- PHA: 'pha'
9
+ PHA: 'pha',
10
+ MaisonSante: 'maisonsante'
10
11
  };
11
12
 
12
13
  const client = CLIENTS.PHA;
13
14
 
14
15
  const path = require("path");
15
- const phaReportWithWellbeing = require("./testing-reports/pha/with-wellbeing");
16
- const phaReportWithoutWellbeing = require("./testing-reports/pha/without-wellbeing");
17
- const phaReportWithWellbeingFullData = require("./testing-reports/pha/with-wellbeing-full-data");
18
- const phaReportEx2 = require("./testing-reports/pha/ex2");
19
- const phaReportEx1 = require("./testing-reports/pha/ex1");
16
+ const phaNotesExample = require("./testing-reports/pha/notes-example");
20
17
  const mediclinicReportWithWellbeing = require("./testing-reports/mediclinic/with-wellbeing");
21
18
  const mediclinicDoctorData = require("./testing-reports/mediclinic/doctor-data");
22
19
  const mediclinicArabicData = require("./testing-reports/mediclinic/arabic-data");
23
- // Data objects moved to testing-reports/mediclinic/
24
- // PHA examples: phaReportEx1 | phaReportEx2 | phaReportWithWellbeingFullData | phaReportWithWellbeing | phaReportWithoutWellbeing
25
- const data = phaReportWithWellbeingFullData; // switch to phaReportEx2, phaReportWithWellbeingFullData, etc. to test different PHA examples
20
+ // PHA examples: phaNotesExample
21
+ // Mediclinic examples: mediclinicReportWithWellbeing | mediclinicDoctorData | mediclinicArabicData
22
+ // Using mediclinicDoctorData (IsDoctor:true) so the Big Integral Questionnaire section renders for Maison Sante
23
+ const data = phaNotesExample;
26
24
  const doctorData = mediclinicDoctorData;
27
25
  const arabicData = mediclinicArabicData;
28
26
 
@@ -30,7 +28,7 @@ async function generateTestPDF() {
30
28
  const PDF_FILE_PATH = path.resolve(__dirname, "output/nasco-sample.pdf");
31
29
  const ENCRYPTED_PATH = path.resolve(__dirname, "output/nasco-sample-encrypted.pdf");
32
30
 
33
- // Generate HTML - uses `data` (PHA example: phaEx1, phaEx2, phaReportWithWellbeingFullData, etc.)
31
+ // Generate HTML - uses `data` (swap with any example variable above)
34
32
  const html = await generateHTMLWellbeingReportWithSmartReport(
35
33
  data,
36
34
  true,