@medicus.ai/medicus-report-pdf-generator 1.3.12 → 1.3.13
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/lib/template.js +5 -17
- package/package.json +1 -1
package/lib/template.js
CHANGED
|
@@ -1331,23 +1331,11 @@ function renderDetailsListV3(detailsList, nestingLevel, isCompactView) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
function renderNoteV3(note, nestingLevel, isCompactView, showInCompactView, showInDetailsView) {
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
let plusPadding = 18;
|
|
1340
|
-
if (nestingLevel > 0) {
|
|
1341
|
-
let extraPadding = ((nestingLevel + 10 % 10) + 1);
|
|
1342
|
-
plusPadding = isCompactView ? 18 : 29;
|
|
1343
|
-
let levelNesting = extraPadding + nestingLevel * INDENTATION.BIOMARKER_DETAILS + plusPadding;
|
|
1344
|
-
blockStyle = `padding-left: ${levelNesting}px`;
|
|
1345
|
-
}
|
|
1346
|
-
if (useMonospace) {
|
|
1347
|
-
const monoStyle = `padding: 2px 0; clear: both; margin-bottom: 3px; font-style: normal; display: block; font-size: 13px; color: #333; font-family: 'Roboto Mono', monospace; white-space: pre-wrap; overflow-x: auto;`;
|
|
1348
|
-
return `<div style="padding: 2px ${plusPadding}px; ${blockStyle}" class="note-block"><span style="${monoStyle}">${note}</span></div>`;
|
|
1349
|
-
}
|
|
1350
|
-
return `<div style="padding: 2px ${plusPadding}px; ${blockStyle}" class="note-block">${note}</div>`;
|
|
1334
|
+
// Standalone biomarkerNote items duplicate the note already rendered inside
|
|
1335
|
+
// renderBiomarkerV3 (biomarker.notes), so they are intentionally suppressed
|
|
1336
|
+
// here to avoid every note appearing twice. Monospace styling for PHA is
|
|
1337
|
+
// handled where biomarker.notes is rendered.
|
|
1338
|
+
return '';
|
|
1351
1339
|
}
|
|
1352
1340
|
|
|
1353
1341
|
function renderAllergyClasses(allergyClasses, isRtl = false) {
|