342 lines
14 KiB
HTML
342 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>AI Clinical Assistant — Doctor-Patient Consultation</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="layout-container">
|
|
|
|
<!-- SIDEBAR NAVIGATION -->
|
|
<aside class="sidebar" id="sidebar">
|
|
<div class="sidebar-brand">
|
|
<div class="brand-icon-box">
|
|
<svg class="brand-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/>
|
|
<path d="M12 5v14M5 12h14" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round"/>
|
|
</svg>
|
|
</div>
|
|
<div class="brand-text">
|
|
<h1 class="brand-title">AI Clinical Assistant</h1>
|
|
<span class="brand-subtitle">Doctor-Patient Conversation</span>
|
|
</div>
|
|
</div>
|
|
|
|
<nav class="sidebar-nav">
|
|
<a href="#dashboard" class="nav-item" data-tab="dashboard">
|
|
<span class="nav-icon">📊</span>
|
|
<span class="nav-label">Dashboard</span>
|
|
</a>
|
|
<a href="#new-consultation" class="nav-item active" data-tab="new-consultation">
|
|
<span class="nav-icon">🎙️</span>
|
|
<span class="nav-label">New Consultation</span>
|
|
</a>
|
|
<a href="#past-recordings" class="nav-item" data-tab="past-recordings">
|
|
<span class="nav-icon">📁</span>
|
|
<span class="nav-label">Past Recordings</span>
|
|
</a>
|
|
<a href="#patients" class="nav-item" data-tab="patients">
|
|
<span class="nav-icon">👥</span>
|
|
<span class="nav-label">Patients</span>
|
|
</a>
|
|
<a href="#doctors" class="nav-item" data-tab="doctors">
|
|
<span class="nav-icon">🩺</span>
|
|
<span class="nav-label">Doctors</span>
|
|
</a>
|
|
<a href="#transcripts" class="nav-item" data-tab="transcripts">
|
|
<span class="nav-icon">📄</span>
|
|
<span class="nav-label">Transcripts</span>
|
|
</a>
|
|
<a href="#clinical-summaries" class="nav-item" data-tab="clinical-summaries">
|
|
<span class="nav-icon">📋</span>
|
|
<span class="nav-label">Clinical Summaries</span>
|
|
</a>
|
|
<a href="#settings" class="nav-item" data-tab="settings">
|
|
<span class="nav-icon">⚙️</span>
|
|
<span class="nav-label">Settings</span>
|
|
</a>
|
|
</nav>
|
|
|
|
<div class="sidebar-footer">
|
|
<div class="system-status-card">
|
|
<div class="status-indicator-row">
|
|
<span class="status-pulse-dot"></span>
|
|
<span class="status-title">System Online</span>
|
|
</div>
|
|
<div class="status-meta">Sarvam AI Cloud (v3 STT)</div>
|
|
<div class="status-tag">Online Mode • Ready</div>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- MAIN APP WRAPPER -->
|
|
<div class="main-wrapper">
|
|
<header class="top-header">
|
|
<div class="header-left">
|
|
<button class="menu-toggle-btn" id="menuToggle" aria-label="Toggle Navigation">
|
|
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2.2" fill="none">
|
|
<line x1="3" y1="12" x2="21" y2="12"></line>
|
|
<line x1="3" y1="6" x2="21" y2="6"></line>
|
|
<line x1="3" y1="18" x2="21" y2="18"></line>
|
|
</svg>
|
|
</button>
|
|
<h2 class="page-title" id="pageHeading">New Consultation</h2>
|
|
</div>
|
|
|
|
<div class="header-right">
|
|
<div class="lang-selector-wrapper">
|
|
<span class="lang-globe-icon">🌐</span>
|
|
<select id="langSelect" class="lang-dropdown">
|
|
<option value="auto" selected>Auto (मराठी / Hindi / English)</option>
|
|
<option value="mr-IN">मराठी (mr-IN)</option>
|
|
<option value="hi-IN">हिंदी (hi-IN)</option>
|
|
<option value="en-IN">English (en-IN)</option>
|
|
</select>
|
|
<span class="dropdown-arrow">▾</span>
|
|
</div>
|
|
|
|
<button class="notif-btn" id="notifBtn" title="Notifications">
|
|
<span class="notif-icon">🔔</span>
|
|
<span class="notif-badge">3</span>
|
|
</button>
|
|
|
|
<div class="doctor-profile-card">
|
|
<img class="doctor-avatar" src="https://images.unsplash.com/photo-1622253692010-333f2da6031d?w=100&auto=format&fit=crop&q=80" alt="Dr. Sharma">
|
|
<div class="doctor-meta">
|
|
<span class="doctor-name">Dr. Sharma</span>
|
|
<span class="doctor-spec">Cardiologist</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="content-area">
|
|
<section class="tab-view active" id="view-new-consultation">
|
|
<!-- CARD 1: CONSULTATION DETAILS -->
|
|
<div class="card details-card">
|
|
<div class="card-header-row">
|
|
<div class="card-title-group">
|
|
<span class="card-header-icon">📋</span>
|
|
<h3 class="card-title">Consultation Details</h3>
|
|
</div>
|
|
<button class="btn-link-action" id="openAddPatientBtn">
|
|
<span>+ Add New Patient</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="details-form-grid">
|
|
<div class="form-group">
|
|
<label for="patientName" class="form-label">Patient Name</label>
|
|
<div class="input-icon-box">
|
|
<span class="input-icon">👤</span>
|
|
<input type="text" id="patientName" placeholder="Select or type patient name..." value="Ramesh Patil" autocomplete="off">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="patientId" class="form-label">Patient ID</label>
|
|
<div class="input-icon-box">
|
|
<span class="input-icon">🪪</span>
|
|
<input type="text" id="patientId" value="PT-2026-00124" readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="doctorName" class="form-label">Doctor Name</label>
|
|
<div class="input-icon-box select-box">
|
|
<span class="input-icon">🩺</span>
|
|
<select id="doctorName">
|
|
<option value="Dr. Sharma" selected>Dr. Sharma</option>
|
|
<option value="Dr. Kulkarni">Dr. Kulkarni</option>
|
|
<option value="Dr. Joshi">Dr. Joshi</option>
|
|
</select>
|
|
<span class="select-chevron">▾</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="consultationDate" class="form-label">Date</label>
|
|
<div class="input-icon-box">
|
|
<span class="input-icon">📅</span>
|
|
<input type="text" id="consultationDate" value="09-09-2026">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- CARD 2: LIVE RECORDING & CONTROLS -->
|
|
<div class="card recording-card">
|
|
<div class="rec-status-line">
|
|
<span class="rec-pulse-bubble" id="recPulse"></span>
|
|
<div class="timer-display" id="timer">00:00:00</div>
|
|
</div>
|
|
|
|
<div class="rec-substatus" id="recSubStatus">
|
|
<span class="mic-glyph">🎙️</span>
|
|
<span id="recStatusText">Ready to record consultation...</span>
|
|
</div>
|
|
|
|
<div class="visualizer-container" id="visualizerContainer">
|
|
<canvas id="waveformCanvas" width="560" height="42"></canvas>
|
|
</div>
|
|
|
|
<div class="rec-error-banner" id="recError" style="display:none;"></div>
|
|
|
|
<div class="action-buttons-row">
|
|
<button class="btn btn-record" id="startBtn">
|
|
<span class="btn-icon">▶</span>
|
|
<span class="btn-text">START RECORDING</span>
|
|
</button>
|
|
|
|
<button class="btn btn-stop" id="stopBtn" disabled>
|
|
<span class="btn-icon">⏹</span>
|
|
<span class="btn-text">STOP & AUTO-SUMMARIZE</span>
|
|
</button>
|
|
|
|
<button class="btn btn-upload" id="uploadAudioBtn">
|
|
<span class="btn-icon">📁</span>
|
|
<span class="btn-text">UPLOAD AUDIO</span>
|
|
</button>
|
|
<input type="file" id="audioFileInput" accept="audio/*,.wav,.mp3,.m4a,.ogg,.webm" style="display:none;">
|
|
|
|
<button class="btn btn-demo" id="demoBtn">
|
|
<span class="btn-icon">⚡</span>
|
|
<span class="btn-text">DEMO</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- CARD 3: TRANSCRIPT (FULL & REAL-TIME AUDIO SYNCHRONIZED) -->
|
|
<div class="card transcript-card">
|
|
<div class="card-header-row">
|
|
<div class="card-title-group">
|
|
<h3 class="card-title-section">TRANSCRIPT</h3>
|
|
<span class="live-realtime-badge" id="liveRealtimeBadge" style="display:none;">
|
|
<span class="live-blink-dot"></span> LIVE SYNC
|
|
</span>
|
|
</div>
|
|
<div class="header-actions">
|
|
<div class="transcript-search-box">
|
|
<span class="search-icon">🔍</span>
|
|
<input type="text" id="transcriptSearch" placeholder="Search dialogue..." autocomplete="off">
|
|
</div>
|
|
<button class="btn-sm-action" id="copyTranscriptBtn">
|
|
<span class="sm-icon">📋</span> Copy
|
|
</button>
|
|
<button class="btn-sm-action" id="clearTranscriptBtn">
|
|
<span class="sm-icon">↺</span> Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="audio-playback-bar" id="audioPlaybackBar" style="display:none;">
|
|
<button class="btn-play-pause" id="playAudioBtn" title="Play / Pause Audio">
|
|
<span id="playIcon">▶</span>
|
|
</button>
|
|
<div class="audio-progress-container">
|
|
<input type="range" class="audio-scrubber" id="audioScrubber" min="0" max="100" value="0" step="0.1">
|
|
<div class="audio-time-row">
|
|
<span id="audioCurrentTime">00:00</span>
|
|
<span class="sync-hint">💡 Click any dialogue line to jump audio</span>
|
|
<span id="audioTotalDuration">00:00</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="transcript-filter-bar">
|
|
<button class="filter-pill active" data-filter="all">All Dialogue</button>
|
|
<button class="filter-pill" data-filter="doctor">🧑⚕️ Doctor</button>
|
|
<button class="filter-pill" data-filter="patient">🧑 Patient</button>
|
|
</div>
|
|
|
|
<div class="transcript-viewport" id="transcriptBody">
|
|
<div class="transcript-placeholder" id="transcriptPlaceholder">
|
|
<div class="placeholder-icon">🎙️</div>
|
|
<p>Recording in progress… Transcript will appear here in real time.</p>
|
|
<span class="placeholder-sub">Speak into the microphone or click DEMO to see full real-time audio synchronization.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- CARD 4: AI CLINICAL SUMMARY -->
|
|
<div class="card summary-card" id="summaryCard">
|
|
<div class="card-header-row">
|
|
<div class="card-title-group">
|
|
<span class="card-header-icon">📋</span>
|
|
<h3 class="card-title-section">AI CLINICAL SUMMARY</h3>
|
|
</div>
|
|
<div class="header-actions">
|
|
<button class="btn-sm-action" id="copySummaryBtn">
|
|
<span class="sm-icon">📋</span> Copy Summary
|
|
</button>
|
|
<button class="btn-sm-action" id="printSummaryBtn">
|
|
<span class="sm-icon">🖨️</span> Print / PDF
|
|
</button>
|
|
<button class="btn-sm-action" id="exportJsonBtn">
|
|
<span class="sm-icon">📥</span> Export JSON
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="summary-content-grid" id="summaryBody">
|
|
<div class="summary-col-card">
|
|
<div class="col-card-header">Chief Complaint</div>
|
|
<div class="col-card-body" id="sumChiefComplaint"><p class="empty-field">—</p></div>
|
|
</div>
|
|
|
|
<div class="summary-col-card">
|
|
<div class="col-card-header">Symptoms Discussed</div>
|
|
<div class="col-card-body" id="sumSymptoms"><p class="empty-field">—</p></div>
|
|
</div>
|
|
|
|
<div class="summary-col-card">
|
|
<div class="col-card-header">Doctor's Recommendation / Diagnosis</div>
|
|
<div class="col-card-body" id="sumAssessment"><p class="empty-field">—</p></div>
|
|
</div>
|
|
|
|
<div class="summary-col-card full-span">
|
|
<div class="col-card-header">Patient History & Comorbidities</div>
|
|
<div class="col-card-body" id="sumHistory"><p class="empty-field">—</p></div>
|
|
</div>
|
|
|
|
<div class="summary-col-card full-span highlight-plan">
|
|
<div class="col-card-header">Prescription, Tests & Treatment Plan (Rx)</div>
|
|
<div class="col-card-body" id="sumPlan"><p class="empty-field">—</p></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="patientModal">
|
|
<div class="modal-card">
|
|
<div class="modal-header">
|
|
<h3>Add New Patient</h3>
|
|
<button class="modal-close-btn" id="closePatientModal">×</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group mb-3">
|
|
<label class="form-label">Full Name</label>
|
|
<input type="text" id="newPatientName" placeholder="e.g. Ramesh Patil">
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn-cancel" id="cancelPatientModal">Cancel</button>
|
|
<button class="btn-save-patient" id="savePatientBtn">Save Patient</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="toast-notification" id="toastBox">Notification</div>
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|