Skip to content

Commit

Permalink
Check Diagnoses Rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
RigobertFrancis committed Jan 17, 2025
1 parent 206014a commit f45f278
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,9 @@ ${this.visitHistory?.visitStopDateTime?.date} at ${this.visitHistory?.visitStopD
// }
// });

frameDoc.document.write(`</tbody></table>`);
if (this.visitHistory?.diagnoses?.PROVISIONAL?.length) {
//......Checking both provisional & confirmed are rendered.............

if (Array.isArray(this.visitHistory?.diagnoses?.PROVISIONAL) && this.visitHistory?.diagnoses?.PROVISIONAL.length) {
frameDoc.document.write(`<div>
<h4>Provisional Diagnoses</h4>
`);
Expand All @@ -791,6 +792,8 @@ ${this.visitHistory?.visitStopDateTime?.date} at ${this.visitHistory?.visitStopD
});
}

// ......End of Rendering.............

frameDoc.document.write(`
<div class="footer">
<div class="userDetails">
Expand Down

0 comments on commit f45f278

Please sign in to comment.