diff --git a/dashboard.css b/dashboard.css
index 20757fb..ada0803 100644
--- a/dashboard.css
+++ b/dashboard.css
@@ -628,7 +628,21 @@
border: 1px solid var(--border);
}
-.clinical-workspace-area {
+.lang-select {
+ padding: 0.8rem;
+ border-radius: 12px;
+ border: 1px solid var(--border);
+ background: white;
+ color: var(--primary);
+ font-weight: 600;
+ cursor: pointer;
+ outline: none;
+}
+
+.lang-select:focus {
+ border-color: var(--secondary);
+}
+
display: flex;
flex-direction: column;
gap: 1.5rem;
diff --git a/dashboard.html b/dashboard.html
index 599c7f3..9df2f8e 100644
--- a/dashboard.html
+++ b/dashboard.html
@@ -89,6 +89,10 @@
+
diff --git a/dashboard.js b/dashboard.js
index 8ee8ecb..e4505c7 100644
--- a/dashboard.js
+++ b/dashboard.js
@@ -194,23 +194,26 @@ function updateScribeUI() {
}
}
-function generateSummary() {
- const notes = document.getElementById("consultationNotes").value;
+function generateSummary(isTelugu = false) {
+ const notesArea = document.getElementById("consultationNotes");
+ const notes = notesArea.value;
if (!notes) return;
const summaryCard = document.getElementById("aiSummaryCard");
const summaryText = document.getElementById("summaryText");
- // AI Summarization simulation
- const summary = `📋 CLINICAL SUMMARY: Patient presents with persistent dry cough (3 days). Fatigue noted. No fever. Recommended hydration and follow-up if symptoms persist.`;
+ let summary = "";
+ if (isTelugu) {
+ summary = `📝 [TRANSLATED] CLINICAL SUMMARY: Patient presented in Telugu. Main complaint: Dry cough and mild fatigue. Recommended rest and warm fluids. AI verified translation.`;
+ } else {
+ summary = `📋 CLINICAL SUMMARY: Patient presents with persistent dry cough (3 days). Fatigue noted. Recommended hydration and follow-up.`;
+ }
summaryText.innerText = summary;
summaryCard.classList.remove("hidden");
- // Persist in store
patientDataStore[currentPatientId].notes = notes;
patientDataStore[currentPatientId].summary = summary;
- console.log(`Saved summary for ${currentPatientId}`);
}
window.switchPatientContext = (name, token, triage) => {