Update Diabetic Dost clinical workflow and hospital branding

This commit is contained in:
Sanika Gurav
2026-10-15 11:11:15 +05:30
parent 88d38f23da
commit cf231d12ec
16 changed files with 101 additions and 84 deletions
+40 -30
View File
@@ -4,11 +4,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KEM Hospital — Diabetes Dost 🩺</title>
<link rel="icon" type="image/png" sizes="32x32" href="/static/kem_hospital_logo.png?v=kem">
<link rel="icon" type="image/png" sizes="16x16" href="/static/kem_hospital_logo.png?v=kem">
<link rel="shortcut icon" href="/static/kem_hospital_logo.png?v=kem">
<link rel="apple-touch-icon" href="/static/kem_hospital_logo.png?v=kem">
<title>Chellaram Hospital — Diabetes Dost 🩺</title>
<link rel="icon" type="image/png" sizes="32x32" href="/static/chellaram_hospital_logo.png?v=chellaram">
<link rel="icon" type="image/png" sizes="16x16" href="/static/chellaram_hospital_logo.png?v=chellaram">
<link rel="shortcut icon" href="/static/chellaram_hospital_logo.png?v=chellaram">
<link rel="apple-touch-icon" href="/static/chellaram_hospital_logo.png?v=chellaram">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
@@ -92,15 +92,16 @@
}
.brand-logo-img {
width: 48px;
height: 48px;
border-radius: 12px;
width: auto;
max-width: 190px;
border-radius: 10px;
object-fit: contain;
box-shadow: 0 4px 12px rgba(14, 165, 168, 0.25);
border: 1px solid rgba(14, 165, 168, 0.2);
box-shadow: 0 2px 8px rgba(14, 165, 168, 0.18);
border: 1px solid rgba(14, 165, 168, 0.18);
flex-shrink: 0;
background: #ffffff;
padding: 2px;
padding: 2px 6px;
}
.brand-logo-icon {
@@ -2048,9 +2049,9 @@
======================================================== -->
<header class="main-header">
<div class="header-left">
<img src="/static/kem_hospital_logo.png?v=kem" alt="KEM Hospital Logo" class="brand-logo-img">
<img src="/static/chellaram_hospital_logo.png?v=chellaram" alt="Chellaram Hospital Logo" class="brand-logo-img">
<div class="brand-titles">
<h1>KEM Hospital</h1>
<h1>Chellaram Hospital</h1>
<p>Diabetes Dost — Care Companion</p>
</div>
</div>
@@ -2065,7 +2066,7 @@
</button>
<button id="lang-btn-mr" onclick="setLanguageMode('mr-IN')"
style="background: transparent; color: var(--text-muted); border: none; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s;">
🚩 मराठी
मराठी
</button>
</div>
@@ -2442,7 +2443,7 @@
<div class="bilingual-grid" style="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));">
<div class="summary-column">
<h4>🚩 Consultation Summary (Marathi / मराठी)</h4>
<h4>Consultation Summary (Marathi / मराठी)</h4>
<div id="modal-summary-mr" class="summary-text">परामर्श सारांश उपलब्ध आहे.</div>
</div>
<div class="summary-column">
@@ -4118,28 +4119,34 @@
style="background:#fff; border-radius:20px; padding:26px 24px; max-width:520px; width:92%; box-shadow:0 25px 70px rgba(0,0,0,0.22); border:1px solid #e2e8f0; max-height:92vh; overflow-y:auto; text-align:left; font-family:'Inter',sans-serif;">
<!-- Hospital & Title Header -->
<div style="display:flex; align-items:center; gap:12px; margin-bottom:14px; border-bottom:1px solid #f1f5f9; padding-bottom:12px;">
<div
style="display:flex; align-items:center; gap:12px; margin-bottom:14px; border-bottom:1px solid #f1f5f9; padding-bottom:12px;">
<div
style="width:50px; height:50px; background:linear-gradient(135deg,#25d366,#128c7e); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fff; box-shadow:0 6px 18px rgba(37,211,102,0.35); flex-shrink:0;">
📲
</div>
<div>
<div style="font-size:0.68rem; font-weight:800; color:#0b8082; text-transform:uppercase; letter-spacing:0.5px;">
🏥 KEM Hospital
<div
style="font-size:0.68rem; font-weight:800; color:#0b8082; text-transform:uppercase; letter-spacing:0.5px;">
🏥 Chellaram Hospital
</div>
<h3 style="font-family:'Outfit',sans-serif; font-size:1.18rem; font-weight:800; color:#0f172a; margin:2px 0 0 0;">
<h3
style="font-family:'Outfit',sans-serif; font-size:1.18rem; font-weight:800; color:#0f172a; margin:2px 0 0 0;">
डॉक्टरांना WhatsApp सारांश पाठवा
</h3>
</div>
<button onclick="closeWhatsAppModal()" style="margin-left:auto; background:transparent; border:none; color:#94a3b8; font-size:1.4rem; cursor:pointer; padding:4px;">
<button onclick="closeWhatsAppModal()"
style="margin-left:auto; background:transparent; border:none; color:#94a3b8; font-size:1.4rem; cursor:pointer; padding:4px;">
✕
</button>
</div>
<!-- Patient Vitals Chip -->
<div id="wa-patient-chip" style="background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:10px 14px; margin-bottom:14px;">
<div id="wa-patient-chip"
style="background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:10px 14px; margin-bottom:14px;">
<div style="display:flex; justify-content:space-between; align-items:center;">
<span style="font-weight:700; color:#334155; font-size:0.85rem;">👤 रुग्ण पूर्व-तपासणी माहिती लोड होत आहे...</span>
<span style="font-weight:700; color:#334155; font-size:0.85rem;">👤 रुग्ण पूर्व-तपासणी माहिती लोड होत
आहे...</span>
</div>
</div>
@@ -4149,12 +4156,12 @@
<label style="font-size:0.75rem; font-weight:700; color:#1e293b; text-transform:uppercase;">
📞 डॉक्टरांचा WhatsApp नंबर (Physician Number)
</label>
<span style="font-size:0.72rem; color:#0ea5a8; font-weight:600; cursor:pointer;" onclick="document.getElementById('wa-phone-input').value='+918830578295'">
<span style="font-size:0.72rem; color:#0ea5a8; font-weight:600; cursor:pointer;"
onclick="document.getElementById('wa-phone-input').value='+918830578295'">
+918830578295 (Default)
</span>
</div>
<input type="tel" id="wa-phone-input" placeholder="+918830578295 किंवा 9876543210"
value="+918830578295"
<input type="tel" id="wa-phone-input" placeholder="+918830578295 किंवा 9876543210" value="+918830578295"
style="width:100%; padding:10px 14px; border:1.5px solid #cbd5e1; border-radius:10px; font-size:0.92rem; outline:none; font-family:'Inter',sans-serif; font-weight:600; color:#0f172a;"
onfocus="this.style.borderColor='#25d366'">
<div style="font-size:0.7rem; color:#64748b; margin-top:4px;">
@@ -4169,13 +4176,15 @@
<span>👁️ संपूर्ण क्लिनिकल सारांश पूर्वावलोकन (Preview Message)</span>
<span style="font-size:0.7rem;">▼</span>
</button>
<div id="wa-preview-box" style="display:none; margin-top:8px; background:#0f172a; color:#f8fafc; padding:14px; border-radius:12px; font-family:'Courier New', monospace; font-size:0.76rem; max-height:160px; overflow-y:auto; white-space:pre-wrap; line-height:1.45; border:1px solid #334155;">
<div id="wa-preview-box"
style="display:none; margin-top:8px; background:#0f172a; color:#f8fafc; padding:14px; border-radius:12px; font-family:'Courier New', monospace; font-size:0.76rem; max-height:160px; overflow-y:auto; white-space:pre-wrap; line-height:1.45; border:1px solid #334155;">
<div id="wa-preview-text">लोड होत आहे...</div>
</div>
</div>
<!-- Status Feedback Area -->
<div id="wa-send-status" style="min-height:24px; font-size:0.82rem; font-weight:600; margin-bottom:14px; line-height:1.4;"></div>
<div id="wa-send-status"
style="min-height:24px; font-size:0.82rem; font-weight:600; margin-bottom:14px; line-height:1.4;"></div>
<!-- Primary Action Buttons -->
<div style="display:flex; flex-direction:column; gap:8px;">
@@ -4200,7 +4209,8 @@
<!-- View PDF Report -->
<button type="button" onclick="openWhatsAppReportPdf()"
style="background:#f8fafc; border:1px solid #cbd5e1; color:#0284c7; padding:10px 14px; border-radius:10px; font-size:0.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:6px;" title="View PDF">
style="background:#f8fafc; border:1px solid #cbd5e1; color:#0284c7; padding:10px 14px; border-radius:10px; font-size:0.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:6px;"
title="View PDF">
<span>📄</span> PDF
</button>
</div>
@@ -4223,10 +4233,10 @@
onclick="if(event.target.id === 'admin-login-modal') closeAdminLoginModal()">
<div
style="background: #ffffff; border-radius: 16px; padding: 28px 24px; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--card-border);">
<img src="/static/kem_hospital_logo.png?v=kem" alt="KEM Hospital"
style="width: 58px; height: 58px; border-radius: 14px; object-fit: contain; margin: 0 auto 12px auto; display: block; box-shadow: 0 4px 12px rgba(14, 165, 168, 0.25); border: 1px solid rgba(14, 165, 168, 0.2); background: #ffffff; padding: 3px;">
<img src="/static/chellaram_hospital_logo.png?v=chellaram" alt="Chellaram Hospital"
style="height: 54px; width: auto; max-width: 220px; border-radius: 12px; object-fit: contain; margin: 0 auto 12px auto; display: block; box-shadow: 0 4px 12px rgba(14, 165, 168, 0.2); border: 1px solid rgba(14, 165, 168, 0.2); background: #ffffff; padding: 4px 10px;">
<h3 style="font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--blue-navy);">
KEM Hospital Admin
Chellaram Hospital Admin
</h3>
<p style="font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 18px;">
Sign in to view all patient consultations & SQLite records