From 02f348ddb3e2f1a8d62ba2b82427d30f85b249fa Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 May 2026 07:13:08 +0200 Subject: [PATCH] convert clinical note entrypoints to modules --- public/index.html | 4 ++-- public/js/hospitalCourse.js | 2 -- public/js/soap.js | 2 -- test/module-entrypoints.test.js | 2 ++ 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index 65ee7d2..f06fa6b 100644 --- a/public/index.html +++ b/public/index.html @@ -487,9 +487,9 @@ - + - + diff --git a/public/js/hospitalCourse.js b/public/js/hospitalCourse.js index 4281568..f3d7346 100644 --- a/public/js/hospitalCourse.js +++ b/public/js/hospitalCourse.js @@ -1,4 +1,3 @@ -(function() { var _inited = false; document.addEventListener('tabChanged', function(e) { if (e.detail.tab !== 'hospital' || _inited) return; @@ -221,4 +220,3 @@ console.log('✅ Hospital Course module loaded'); }); -})(); diff --git a/public/js/soap.js b/public/js/soap.js index 4f89838..4753577 100644 --- a/public/js/soap.js +++ b/public/js/soap.js @@ -1,4 +1,3 @@ -(function() { var _inited = false; document.addEventListener('tabChanged', function(e) { if (e.detail.tab !== 'soap' || _inited) return; @@ -222,4 +221,3 @@ console.log('✅ SOAP module loaded'); }); -})(); diff --git a/test/module-entrypoints.test.js b/test/module-entrypoints.test.js index 706f230..c0d3421 100644 --- a/test/module-entrypoints.test.js +++ b/test/module-entrypoints.test.js @@ -9,8 +9,10 @@ const moduleEntrypoints = [ 'public/js/clinicalAssistant.js', 'public/js/admin.js', 'public/js/diagrams.js', + 'public/js/hospitalCourse.js', 'public/js/milestones.js', 'public/js/notes.js', + 'public/js/soap.js', 'public/js/wellVisit.js' ];