Add 1 files
Browse files- index.html +108 -914
index.html
CHANGED
|
@@ -1,939 +1,133 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="fr" class="h-full">
|
| 3 |
<head>
|
| 4 |
-
<
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
<
|
| 8 |
-
|
| 9 |
<script>
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
800: '#5b21b6',
|
| 37 |
-
900: '#4c1d95',
|
| 38 |
-
}
|
| 39 |
-
}
|
| 40 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
}
|
| 43 |
-
</script>
|
| 44 |
-
<style>
|
| 45 |
-
.sidebar-collapsed {
|
| 46 |
-
width: 70px !important;
|
| 47 |
-
}
|
| 48 |
-
.sidebar-collapsed .nav-text {
|
| 49 |
-
display: none !important;
|
| 50 |
-
}
|
| 51 |
-
.sidebar-collapsed .logo-text {
|
| 52 |
-
display: none !important;
|
| 53 |
-
}
|
| 54 |
-
.sidebar-collapsed .user-info {
|
| 55 |
-
display: none !important;
|
| 56 |
-
}
|
| 57 |
-
.sidebar-collapsed .nav-item {
|
| 58 |
-
justify-content: center !important;
|
| 59 |
-
}
|
| 60 |
-
.sidebar-collapsed .expand-icon {
|
| 61 |
-
transform: rotate(180deg);
|
| 62 |
-
}
|
| 63 |
-
|
| 64 |
-
/* Animation for notifications */
|
| 65 |
-
@keyframes slideIn {
|
| 66 |
-
from { transform: translateX(100%); opacity: 0; }
|
| 67 |
-
to { transform: translateX(0); opacity: 1; }
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
-
.notification {
|
| 71 |
-
animation: slideIn 0.3s ease-out;
|
| 72 |
-
}
|
| 73 |
-
|
| 74 |
-
/* Custom scrollbar */
|
| 75 |
-
::-webkit-scrollbar {
|
| 76 |
-
width: 8px;
|
| 77 |
-
height: 8px;
|
| 78 |
-
}
|
| 79 |
|
| 80 |
-
:
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
}
|
| 89 |
-
|
| 90 |
-
::-webkit-scrollbar-thumb:hover {
|
| 91 |
-
background: #a8a8a8;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
.dark ::-webkit-scrollbar-track {
|
| 95 |
-
background: #374151;
|
| 96 |
-
}
|
| 97 |
-
|
| 98 |
-
.dark ::-webkit-scrollbar-thumb {
|
| 99 |
-
background: #6b7280;
|
| 100 |
-
}
|
| 101 |
-
|
| 102 |
-
.dark ::-webkit-scrollbar-thumb:hover {
|
| 103 |
-
background: #9ca3af;
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
/* Patient card hover effect */
|
| 107 |
-
.patient-card {
|
| 108 |
-
transition: all 0.2s ease;
|
| 109 |
-
}
|
| 110 |
-
|
| 111 |
-
.patient-card:hover {
|
| 112 |
-
transform: translateY(-2px);
|
| 113 |
-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 114 |
-
}
|
| 115 |
-
|
| 116 |
-
.dark .patient-card:hover {
|
| 117 |
-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
|
| 118 |
-
}
|
| 119 |
-
|
| 120 |
-
/* Pulse animation for urgent cases */
|
| 121 |
-
@keyframes pulse {
|
| 122 |
-
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
| 123 |
-
70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
|
| 124 |
-
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
| 125 |
}
|
| 126 |
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
</style>
|
| 131 |
-
</head>
|
| 132 |
-
<body class="h-full bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-200 transition-colors duration-200">
|
| 133 |
-
<div class="flex h-full overflow-hidden">
|
| 134 |
-
<!-- Sidebar -->
|
| 135 |
-
<div id="sidebar" class="w-64 bg-white dark:bg-gray-800 shadow-md flex flex-col transition-all duration-300 ease-in-out">
|
| 136 |
-
<!-- Logo -->
|
| 137 |
-
<div class="p-4 flex items-center border-b border-gray-200 dark:border-gray-700">
|
| 138 |
-
<div class="w-10 h-10 rounded-full bg-primary-500 flex items-center justify-center text-white">
|
| 139 |
-
<i class="fas fa-hospital text-xl"></i>
|
| 140 |
-
</div>
|
| 141 |
-
<span class="logo-text ml-3 text-xl font-semibold">MedArchive</span>
|
| 142 |
-
</div>
|
| 143 |
-
|
| 144 |
-
<!-- User Profile -->
|
| 145 |
-
<div class="user-info p-4 flex items-center border-b border-gray-200 dark:border-gray-700">
|
| 146 |
-
<div class="w-12 h-12 rounded-full bg-primary-100 dark:bg-primary-900 flex items-center justify-center">
|
| 147 |
-
<i class="fas fa-user-md text-primary-600 dark:text-primary-300 text-xl"></i>
|
| 148 |
-
</div>
|
| 149 |
-
<div class="ml-3">
|
| 150 |
-
<div class="font-medium">Dr. Jean Dupont</div>
|
| 151 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">Médecin Généraliste</div>
|
| 152 |
-
</div>
|
| 153 |
-
</div>
|
| 154 |
-
|
| 155 |
-
<!-- Navigation -->
|
| 156 |
-
<nav class="flex-1 overflow-y-auto py-2">
|
| 157 |
-
<div class="space-y-1">
|
| 158 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-primary-600 dark:text-primary-400 bg-primary-50 dark:bg-gray-700">
|
| 159 |
-
<i class="fas fa-home text-lg w-6"></i>
|
| 160 |
-
<span class="nav-text ml-3">Tableau de bord</span>
|
| 161 |
-
</a>
|
| 162 |
-
|
| 163 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 164 |
-
<i class="fas fa-users text-lg w-6"></i>
|
| 165 |
-
<span class="nav-text ml-3">Patients</span>
|
| 166 |
-
</a>
|
| 167 |
-
|
| 168 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 169 |
-
<i class="fas fa-file-medical text-lg w-6"></i>
|
| 170 |
-
<span class="nav-text ml-3">Dossiers médicaux</span>
|
| 171 |
-
<span class="ml-auto bg-primary-500 text-white text-xs px-2 py-1 rounded-full">12</span>
|
| 172 |
-
</a>
|
| 173 |
-
|
| 174 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 175 |
-
<i class="fas fa-calendar-check text-lg w-6"></i>
|
| 176 |
-
<span class="nav-text ml-3">Rendez-vous</span>
|
| 177 |
-
</a>
|
| 178 |
-
|
| 179 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 180 |
-
<i class="fas fa-prescription-bottle-alt text-lg w-6"></i>
|
| 181 |
-
<span class="nav-text ml-3">Médicaments</span>
|
| 182 |
-
</a>
|
| 183 |
-
|
| 184 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 185 |
-
<i class="fas fa-chart-line text-lg w-6"></i>
|
| 186 |
-
<span class="nav-text ml-3">Statistiques</span>
|
| 187 |
-
</a>
|
| 188 |
-
|
| 189 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 190 |
-
<i class="fas fa-bell text-lg w-6"></i>
|
| 191 |
-
<span class="nav-text ml-3">Alertes</span>
|
| 192 |
-
<span class="ml-auto bg-red-500 text-white text-xs px-2 py-1 rounded-full">3</span>
|
| 193 |
-
</a>
|
| 194 |
-
|
| 195 |
-
<div class="px-4 pt-4 pb-2">
|
| 196 |
-
<div class="text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider nav-text">Administration</div>
|
| 197 |
-
</div>
|
| 198 |
-
|
| 199 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 200 |
-
<i class="fas fa-cog text-lg w-6"></i>
|
| 201 |
-
<span class="nav-text ml-3">Paramètres</span>
|
| 202 |
-
</a>
|
| 203 |
-
|
| 204 |
-
<a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 205 |
-
<i class="fas fa-users-cog text-lg w-6"></i>
|
| 206 |
-
<span class="nav-text ml-3">Utilisateurs</span>
|
| 207 |
-
</a>
|
| 208 |
-
</div>
|
| 209 |
-
</nav>
|
| 210 |
-
|
| 211 |
-
<!-- Collapse Button -->
|
| 212 |
-
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
|
| 213 |
-
<button id="toggle-sidebar" class="w-full flex items-center justify-center text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200">
|
| 214 |
-
<i class="fas fa-chevron-left expand-icon transition-transform duration-300"></i>
|
| 215 |
-
<span class="nav-text ml-2">Réduire</span>
|
| 216 |
-
</button>
|
| 217 |
-
</div>
|
| 218 |
-
</div>
|
| 219 |
-
|
| 220 |
-
<!-- Main Content -->
|
| 221 |
-
<div class="flex-1 flex flex-col overflow-hidden">
|
| 222 |
-
<!-- Top Navigation -->
|
| 223 |
-
<header class="bg-white dark:bg-gray-800 shadow-sm z-10">
|
| 224 |
-
<div class="flex items-center justify-between px-6 py-3">
|
| 225 |
-
<!-- Search Bar -->
|
| 226 |
-
<div class="flex-1 max-w-xl">
|
| 227 |
-
<div class="relative">
|
| 228 |
-
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 229 |
-
<i class="fas fa-search text-gray-400"></i>
|
| 230 |
-
</div>
|
| 231 |
-
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" placeholder="Rechercher un patient, un dossier...">
|
| 232 |
-
<div class="absolute inset-y-0 right-0 flex items-center pr-3">
|
| 233 |
-
<button class="text-gray-400 hover:text-gray-500">
|
| 234 |
-
<i class="fas fa-microphone"></i>
|
| 235 |
-
</button>
|
| 236 |
-
</div>
|
| 237 |
-
</div>
|
| 238 |
-
</div>
|
| 239 |
-
|
| 240 |
-
<!-- Right Side Controls -->
|
| 241 |
-
<div class="ml-4 flex items-center space-x-4">
|
| 242 |
-
<!-- Language Selector -->
|
| 243 |
-
<div class="relative">
|
| 244 |
-
<button id="language-dropdown-button" class="flex items-center text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
|
| 245 |
-
<span class="fi fi-fr"></span>
|
| 246 |
-
<span class="ml-2">FR</span>
|
| 247 |
-
<i class="fas fa-chevron-down ml-1 text-xs"></i>
|
| 248 |
-
</button>
|
| 249 |
-
<div id="language-dropdown" class="hidden absolute right-0 mt-2 w-32 bg-white dark:bg-gray-800 rounded-md shadow-lg z-20">
|
| 250 |
-
<div class="py-1">
|
| 251 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center">
|
| 252 |
-
<span class="fi fi-fr mr-2"></span> Français
|
| 253 |
-
</a>
|
| 254 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center">
|
| 255 |
-
<span class="fi fi-gb mr-2"></span> English
|
| 256 |
-
</a>
|
| 257 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center">
|
| 258 |
-
<span class="fi fi-es mr-2"></span> Español
|
| 259 |
-
</a>
|
| 260 |
-
</div>
|
| 261 |
-
</div>
|
| 262 |
-
</div>
|
| 263 |
-
|
| 264 |
-
<!-- Dark Mode Toggle -->
|
| 265 |
-
<button id="theme-toggle" class="text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white">
|
| 266 |
-
<i id="theme-icon" class="fas fa-moon"></i>
|
| 267 |
-
</button>
|
| 268 |
-
|
| 269 |
-
<!-- Notifications -->
|
| 270 |
-
<div class="relative">
|
| 271 |
-
<button id="notifications-button" class="text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white relative">
|
| 272 |
-
<i class="fas fa-bell text-xl"></i>
|
| 273 |
-
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 274 |
-
</button>
|
| 275 |
-
<div id="notifications-dropdown" class="hidden absolute right-0 mt-2 w-80 bg-white dark:bg-gray-800 rounded-md shadow-lg z-20 overflow-hidden">
|
| 276 |
-
<div class="px-4 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700">
|
| 277 |
-
<h3 class="text-sm font-medium text-gray-900 dark:text-white">Notifications</h3>
|
| 278 |
-
</div>
|
| 279 |
-
<div class="divide-y divide-gray-200 dark:divide-gray-700 max-h-96 overflow-y-auto">
|
| 280 |
-
<div class="notification px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 281 |
-
<div class="flex items-start">
|
| 282 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 dark:bg-red-900 flex items-center justify-center text-red-600 dark:text-red-300">
|
| 283 |
-
<i class="fas fa-exclamation"></i>
|
| 284 |
-
</div>
|
| 285 |
-
<div class="ml-3">
|
| 286 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Interaction médicamenteuse</p>
|
| 287 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Patient: Marie Lambert - Risque d'interaction entre Paracétamol et Warfarine</p>
|
| 288 |
-
<p class="text-xs text-gray-400 mt-1">Il y a 5 minutes</p>
|
| 289 |
-
</div>
|
| 290 |
-
</div>
|
| 291 |
-
</div>
|
| 292 |
-
<div class="notification px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 293 |
-
<div class="flex items-start">
|
| 294 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 dark:bg-yellow-900 flex items-center justify-center text-yellow-600 dark:text-yellow-300">
|
| 295 |
-
<i class="fas fa-calendar-exclamation"></i>
|
| 296 |
-
</div>
|
| 297 |
-
<div class="ml-3">
|
| 298 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Rendez-vous manqué</p>
|
| 299 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Patient: Jean Dubois n'est pas venu à son rendez-vous de 10h30</p>
|
| 300 |
-
<p class="text-xs text-gray-400 mt-1">Il y a 2 heures</p>
|
| 301 |
-
</div>
|
| 302 |
-
</div>
|
| 303 |
-
</div>
|
| 304 |
-
<div class="notification px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 305 |
-
<div class="flex items-start">
|
| 306 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-300">
|
| 307 |
-
<i class="fas fa-file-import"></i>
|
| 308 |
-
</div>
|
| 309 |
-
<div class="ml-3">
|
| 310 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Nouveau dossier</p>
|
| 311 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Un nouveau dossier médical a été créé pour Sophie Martin</p>
|
| 312 |
-
<p class="text-xs text-gray-400 mt-1">Aujourd'hui, 09:15</p>
|
| 313 |
-
</div>
|
| 314 |
-
</div>
|
| 315 |
-
</div>
|
| 316 |
-
</div>
|
| 317 |
-
<div class="px-4 py-2 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700 text-center">
|
| 318 |
-
<a href="#" class="text-sm font-medium text-primary-600 dark:text-primary-400 hover:text-primary-500">Voir toutes les notifications</a>
|
| 319 |
-
</div>
|
| 320 |
-
</div>
|
| 321 |
-
</div>
|
| 322 |
-
|
| 323 |
-
<!-- User Dropdown -->
|
| 324 |
-
<div class="relative">
|
| 325 |
-
<button id="user-dropdown-button" class="flex items-center text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
|
| 326 |
-
<div class="w-8 h-8 rounded-full bg-primary-100 dark:bg-primary-900 flex items-center justify-center">
|
| 327 |
-
<i class="fas fa-user text-primary-600 dark:text-primary-300"></i>
|
| 328 |
-
</div>
|
| 329 |
-
<span class="ml-2 hidden md:inline">Dr. Dupont</span>
|
| 330 |
-
<i class="fas fa-chevron-down ml-1 text-xs hidden md:inline"></i>
|
| 331 |
-
</button>
|
| 332 |
-
<div id="user-dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg z-20">
|
| 333 |
-
<div class="py-1">
|
| 334 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 335 |
-
<i class="fas fa-user mr-2"></i> Profil
|
| 336 |
-
</a>
|
| 337 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 338 |
-
<i class="fas fa-cog mr-2"></i> Paramètres
|
| 339 |
-
</a>
|
| 340 |
-
<div class="border-t border-gray-200 dark:border-gray-700"></div>
|
| 341 |
-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
| 342 |
-
<i class="fas fa-sign-out-alt mr-2"></i> Déconnexion
|
| 343 |
-
</a>
|
| 344 |
-
</div>
|
| 345 |
-
</div>
|
| 346 |
-
</div>
|
| 347 |
-
</div>
|
| 348 |
-
</div>
|
| 349 |
-
</header>
|
| 350 |
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
<div>
|
| 356 |
-
<
|
| 357 |
-
|
| 358 |
-
</div>
|
| 359 |
-
<div class="mt-4 md:mt-0">
|
| 360 |
-
<button class="px-4 py-2 bg-primary-600 hover:bg-primary-700 text-white rounded-lg flex items-center">
|
| 361 |
-
<i class="fas fa-plus mr-2"></i> Nouveau dossier
|
| 362 |
-
</button>
|
| 363 |
-
</div>
|
| 364 |
-
</div>
|
| 365 |
-
|
| 366 |
-
<!-- Stats Cards -->
|
| 367 |
-
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
| 368 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
| 369 |
-
<div class="flex items-center">
|
| 370 |
-
<div class="p-3 rounded-full bg-primary-100 dark:bg-primary-900 text-primary-600 dark:text-primary-300">
|
| 371 |
-
<i class="fas fa-users text-xl"></i>
|
| 372 |
-
</div>
|
| 373 |
-
<div class="ml-4">
|
| 374 |
-
<p class="text-sm font-medium text-gray-500 dark:text-gray-400">Patients aujourd'hui</p>
|
| 375 |
-
<p class="text-2xl font-semibold text-gray-900 dark:text-white">12</p>
|
| 376 |
-
</div>
|
| 377 |
</div>
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
<
|
| 384 |
-
</div>
|
| 385 |
-
<
|
| 386 |
-
<p class="text-sm font-medium text-gray-500 dark:text-gray-400">Dossiers actifs</p>
|
| 387 |
-
<p class="text-2xl font-semibold text-gray-900 dark:text-white">245</p>
|
| 388 |
-
</div>
|
| 389 |
-
</div>
|
| 390 |
-
</div>
|
| 391 |
-
|
| 392 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
| 393 |
-
<div class="flex items-center">
|
| 394 |
-
<div class="p-3 rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-600 dark:text-yellow-300">
|
| 395 |
-
<i class="fas fa-calendar-check text-xl"></i>
|
| 396 |
-
</div>
|
| 397 |
-
<div class="ml-4">
|
| 398 |
-
<p class="text-sm font-medium text-gray-500 dark:text-gray-400">Rendez-vous</p>
|
| 399 |
-
<p class="text-2xl font-semibold text-gray-900 dark:text-white">5</p>
|
| 400 |
-
</div>
|
| 401 |
</div>
|
| 402 |
</div>
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
<
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
<p class="text-2xl font-semibold text-gray-900 dark:text-white">3</p>
|
| 412 |
-
</div>
|
| 413 |
</div>
|
|
|
|
| 414 |
</div>
|
| 415 |
-
|
| 416 |
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
<i class="fas fa-sort"></i>
|
| 430 |
-
</button>
|
| 431 |
-
</div>
|
| 432 |
-
</div>
|
| 433 |
-
<div class="divide-y divide-gray-200 dark:divide-gray-700 max-h-96 overflow-y-auto">
|
| 434 |
-
<!-- Patient Card -->
|
| 435 |
-
<div class="patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 436 |
-
<div class="flex items-center">
|
| 437 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-300">
|
| 438 |
-
<i class="fas fa-user"></i>
|
| 439 |
-
</div>
|
| 440 |
-
<div class="ml-4 flex-1">
|
| 441 |
-
<div class="flex items-center justify-between">
|
| 442 |
-
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">Marie Lambert</p>
|
| 443 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 444 |
-
Organique
|
| 445 |
-
</span>
|
| 446 |
-
</div>
|
| 447 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Consultation - Diabète</p>
|
| 448 |
-
</div>
|
| 449 |
-
</div>
|
| 450 |
-
<div class="mt-2 flex justify-between items-center">
|
| 451 |
-
<div class="flex space-x-2">
|
| 452 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 453 |
-
<i class="fas fa-birthday-cake mr-1"></i> 45 ans
|
| 454 |
-
</span>
|
| 455 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 456 |
-
<i class="fas fa-venus mr-1"></i> Femme
|
| 457 |
-
</span>
|
| 458 |
-
</div>
|
| 459 |
-
<span class="text-xs text-gray-500 dark:text-gray-400">Aujourd'hui, 09:30</span>
|
| 460 |
-
</div>
|
| 461 |
-
</div>
|
| 462 |
-
|
| 463 |
-
<!-- Patient Card - Urgent -->
|
| 464 |
-
<div class="patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer urgent">
|
| 465 |
-
<div class="flex items-center">
|
| 466 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 dark:bg-red-900 flex items-center justify-center text-red-600 dark:text-red-300">
|
| 467 |
-
<i class="fas fa-user"></i>
|
| 468 |
-
</div>
|
| 469 |
-
<div class="ml-4 flex-1">
|
| 470 |
-
<div class="flex items-center justify-between">
|
| 471 |
-
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">Jean Dubois</p>
|
| 472 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200">
|
| 473 |
-
Contractuel
|
| 474 |
-
</span>
|
| 475 |
-
</div>
|
| 476 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Visite systématique - Hypertension</p>
|
| 477 |
-
</div>
|
| 478 |
-
</div>
|
| 479 |
-
<div class="mt-2 flex justify-between items-center">
|
| 480 |
-
<div class="flex space-x-2">
|
| 481 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 482 |
-
<i class="fas fa-birthday-cake mr-1"></i> 52 ans
|
| 483 |
-
</span>
|
| 484 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 485 |
-
<i class="fas fa-mars mr-1"></i> Homme
|
| 486 |
-
</span>
|
| 487 |
-
</div>
|
| 488 |
-
<span class="text-xs text-red-500 dark:text-red-400">Urgent</span>
|
| 489 |
-
</div>
|
| 490 |
-
</div>
|
| 491 |
-
|
| 492 |
-
<!-- Patient Card -->
|
| 493 |
-
<div class="patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 494 |
-
<div class="flex items-center">
|
| 495 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 dark:bg-purple-900 flex items-center justify-center text-purple-600 dark:text-purple-300">
|
| 496 |
-
<i class="fas fa-user"></i>
|
| 497 |
-
</div>
|
| 498 |
-
<div class="ml-4 flex-1">
|
| 499 |
-
<div class="flex items-center justify-between">
|
| 500 |
-
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">Sophie Martin</p>
|
| 501 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 502 |
-
Organique
|
| 503 |
-
</span>
|
| 504 |
-
</div>
|
| 505 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Consultation - Allergie</p>
|
| 506 |
-
</div>
|
| 507 |
-
</div>
|
| 508 |
-
<div class="mt-2 flex justify-between items-center">
|
| 509 |
-
<div class="flex space-x-2">
|
| 510 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 511 |
-
<i class="fas fa-birthday-cake mr-1"></i> 28 ans
|
| 512 |
-
</span>
|
| 513 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 514 |
-
<i class="fas fa-venus mr-1"></i> Femme
|
| 515 |
-
</span>
|
| 516 |
-
</div>
|
| 517 |
-
<span class="text-xs text-gray-500 dark:text-gray-400">Aujourd'hui, 10:15</span>
|
| 518 |
-
</div>
|
| 519 |
-
</div>
|
| 520 |
-
|
| 521 |
-
<!-- Patient Card -->
|
| 522 |
-
<div class="patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 523 |
-
<div class="flex items-center">
|
| 524 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center text-green-600 dark:text-green-300">
|
| 525 |
-
<i class="fas fa-user"></i>
|
| 526 |
-
</div>
|
| 527 |
-
<div class="ml-4 flex-1">
|
| 528 |
-
<div class="flex items-center justify-between">
|
| 529 |
-
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">Paul Durand</p>
|
| 530 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200">
|
| 531 |
-
Contractuel
|
| 532 |
-
</span>
|
| 533 |
-
</div>
|
| 534 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Visite systématique</p>
|
| 535 |
-
</div>
|
| 536 |
-
</div>
|
| 537 |
-
<div class="mt-2 flex justify-between items-center">
|
| 538 |
-
<div class="flex space-x-2">
|
| 539 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 540 |
-
<i class="fas fa-birthday-cake mr-1"></i> 35 ans
|
| 541 |
-
</span>
|
| 542 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 543 |
-
<i class="fas fa-mars mr-1"></i> Homme
|
| 544 |
-
</span>
|
| 545 |
-
</div>
|
| 546 |
-
<span class="text-xs text-gray-500 dark:text-gray-400">Aujourd'hui, 11:00</span>
|
| 547 |
-
</div>
|
| 548 |
-
</div>
|
| 549 |
-
|
| 550 |
-
<!-- Patient Card -->
|
| 551 |
-
<div class="patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 552 |
-
<div class="flex items-center">
|
| 553 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-pink-100 dark:bg-pink-900 flex items-center justify-center text-pink-600 dark:text-pink-300">
|
| 554 |
-
<i class="fas fa-user"></i>
|
| 555 |
-
</div>
|
| 556 |
-
<div class="ml-4 flex-1">
|
| 557 |
-
<div class="flex items-center justify-between">
|
| 558 |
-
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">Lucie Petit</p>
|
| 559 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 560 |
-
Organique
|
| 561 |
-
</span>
|
| 562 |
-
</div>
|
| 563 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Consultation - Grossesse</p>
|
| 564 |
-
</div>
|
| 565 |
-
</div>
|
| 566 |
-
<div class="mt-2 flex justify-between items-center">
|
| 567 |
-
<div class="flex space-x-2">
|
| 568 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 569 |
-
<i class="fas fa-birthday-cake mr-1"></i> 31 ans
|
| 570 |
-
</span>
|
| 571 |
-
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 572 |
-
<i class="fas fa-venus mr-1"></i> Femme
|
| 573 |
-
</span>
|
| 574 |
-
</div>
|
| 575 |
-
<span class="text-xs text-gray-500 dark:text-gray-400">Aujourd'hui, 14:30</span>
|
| 576 |
-
</div>
|
| 577 |
-
</div>
|
| 578 |
-
</div>
|
| 579 |
-
<div class="px-6 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700 text-center">
|
| 580 |
-
<a href="#" class="text-sm font-medium text-primary-600 dark:text-primary-400 hover:text-primary-500">Voir tous les patients</a>
|
| 581 |
-
</div>
|
| 582 |
-
</div>
|
| 583 |
-
</div>
|
| 584 |
-
|
| 585 |
-
<!-- Right Sidebar -->
|
| 586 |
-
<div class="space-y-6">
|
| 587 |
-
<!-- Quick Actions -->
|
| 588 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
|
| 589 |
-
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
|
| 590 |
-
<h2 class="text-lg font-medium text-gray-900 dark:text-white">Actions rapides</h2>
|
| 591 |
-
</div>
|
| 592 |
-
<div class="p-6 grid grid-cols-2 gap-4">
|
| 593 |
-
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 594 |
-
<div class="p-3 rounded-full bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-300 mb-2">
|
| 595 |
-
<i class="fas fa-file-medical text-lg"></i>
|
| 596 |
-
</div>
|
| 597 |
-
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Nouveau dossier</span>
|
| 598 |
-
</button>
|
| 599 |
-
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 600 |
-
<div class="p-3 rounded-full bg-green-100 dark:bg-green-900 text-green-600 dark:text-green-300 mb-2">
|
| 601 |
-
<i class="fas fa-calendar-plus text-lg"></i>
|
| 602 |
-
</div>
|
| 603 |
-
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Nouveau RDV</span>
|
| 604 |
-
</button>
|
| 605 |
-
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 606 |
-
<div class="p-3 rounded-full bg-purple-100 dark:bg-purple-900 text-purple-600 dark:text-purple-300 mb-2">
|
| 607 |
-
<i class="fas fa-prescription text-lg"></i>
|
| 608 |
-
</div>
|
| 609 |
-
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Ordonnance</span>
|
| 610 |
-
</button>
|
| 611 |
-
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 612 |
-
<div class="p-3 rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-600 dark:text-yellow-300 mb-2">
|
| 613 |
-
<i class="fas fa-search text-lg"></i>
|
| 614 |
-
</div>
|
| 615 |
-
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Recherche IA</span>
|
| 616 |
-
</button>
|
| 617 |
-
</div>
|
| 618 |
-
</div>
|
| 619 |
-
|
| 620 |
-
<!-- Medical Summary -->
|
| 621 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
|
| 622 |
-
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between">
|
| 623 |
-
<h2 class="text-lg font-medium text-gray-900 dark:text-white">Résumé médical</h2>
|
| 624 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500">
|
| 625 |
-
<i class="fas fa-sync-alt"></i>
|
| 626 |
-
</button>
|
| 627 |
-
</div>
|
| 628 |
-
<div class="p-6">
|
| 629 |
-
<div class="mb-4">
|
| 630 |
-
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Recherche par IA</label>
|
| 631 |
-
<div class="relative">
|
| 632 |
-
<input type="text" class="block w-full pl-4 pr-10 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" placeholder="Ex: Patients diabétiques sous insuline...">
|
| 633 |
-
<button class="absolute right-2 top-2 text-primary-600 dark:text-primary-400">
|
| 634 |
-
<i class="fas fa-search"></i>
|
| 635 |
-
</button>
|
| 636 |
-
</div>
|
| 637 |
-
</div>
|
| 638 |
-
<div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-4">
|
| 639 |
-
<h3 class="text-sm font-medium text-gray-900 dark:text-white mb-2">Résultats (3 patients)</h3>
|
| 640 |
-
<ul class="space-y-2 text-sm text-gray-600 dark:text-gray-300">
|
| 641 |
-
<li class="flex items-start">
|
| 642 |
-
<i class="fas fa-user-injured text-primary-600 dark:text-primary-400 mt-1 mr-2"></i>
|
| 643 |
-
<span>Marie Lambert - Diabète type 2, sous insuline depuis 2019</span>
|
| 644 |
-
</li>
|
| 645 |
-
<li class="flex items-start">
|
| 646 |
-
<i class="fas fa-user-injured text-primary-600 dark:text-primary-400 mt-1 mr-2"></i>
|
| 647 |
-
<span>Jean Dubois - Diabète type 1, sous insuline depuis 2015</span>
|
| 648 |
-
</li>
|
| 649 |
-
<li class="flex items-start">
|
| 650 |
-
<i class="fas fa-user-injured text-primary-600 dark:text-primary-400 mt-1 mr-2"></i>
|
| 651 |
-
<span>Sophie Martin - Diabète gestationnel, sous insuline temporaire</span>
|
| 652 |
-
</li>
|
| 653 |
-
</ul>
|
| 654 |
-
</div>
|
| 655 |
-
</div>
|
| 656 |
-
</div>
|
| 657 |
-
|
| 658 |
-
<!-- Alerts -->
|
| 659 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
|
| 660 |
-
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between">
|
| 661 |
-
<h2 class="text-lg font-medium text-gray-900 dark:text-white">Alertes importantes</h2>
|
| 662 |
-
<span class="bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200 text-xs px-2 py-1 rounded-full">3</span>
|
| 663 |
-
</div>
|
| 664 |
-
<div class="divide-y divide-gray-200 dark:divide-gray-700">
|
| 665 |
-
<div class="p-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 666 |
-
<div class="flex items-start">
|
| 667 |
-
<div class="flex-shrink-0 h-6 w-6 rounded-full bg-red-100 dark:bg-red-900 flex items-center justify-center text-red-600 dark:text-red-300">
|
| 668 |
-
<i class="fas fa-exclamation text-xs"></i>
|
| 669 |
-
</div>
|
| 670 |
-
<div class="ml-3">
|
| 671 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Interaction médicamenteuse</p>
|
| 672 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Marie Lambert - Paracétamol + Warfarine</p>
|
| 673 |
-
</div>
|
| 674 |
-
</div>
|
| 675 |
-
</div>
|
| 676 |
-
<div class="p-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 677 |
-
<div class="flex items-start">
|
| 678 |
-
<div class="flex-shrink-0 h-6 w-6 rounded-full bg-yellow-100 dark:bg-yellow-900 flex items-center justify-center text-yellow-600 dark:text-yellow-300">
|
| 679 |
-
<i class="fas fa-calendar-exclamation text-xs"></i>
|
| 680 |
-
</div>
|
| 681 |
-
<div class="ml-3">
|
| 682 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Allergie non déclarée</p>
|
| 683 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Sophie Martin - Pénicilline</p>
|
| 684 |
-
</div>
|
| 685 |
-
</div>
|
| 686 |
-
</div>
|
| 687 |
-
<div class="p-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
|
| 688 |
-
<div class="flex items-start">
|
| 689 |
-
<div class="flex-shrink-0 h-6 w-6 rounded-full bg-red-100 dark:bg-red-900 flex items-center justify-center text-red-600 dark:text-red-300">
|
| 690 |
-
<i class="fas fa-exclamation text-xs"></i>
|
| 691 |
-
</div>
|
| 692 |
-
<div class="ml-3">
|
| 693 |
-
<p class="text-sm font-medium text-gray-900 dark:text-white">Paramètres critiques</p>
|
| 694 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">Jean Dubois - Tension: 180/110</p>
|
| 695 |
-
</div>
|
| 696 |
-
</div>
|
| 697 |
-
</div>
|
| 698 |
-
</div>
|
| 699 |
-
<div class="px-4 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700 text-center">
|
| 700 |
-
<a href="#" class="text-sm font-medium text-primary-600 dark:text-primary-400 hover:text-primary-500">Voir toutes les alertes</a>
|
| 701 |
-
</div>
|
| 702 |
-
</div>
|
| 703 |
-
</div>
|
| 704 |
-
</div>
|
| 705 |
-
|
| 706 |
-
<!-- Recent Medical Records -->
|
| 707 |
-
<div class="mt-6">
|
| 708 |
-
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
|
| 709 |
-
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between">
|
| 710 |
-
<h2 class="text-lg font-medium text-gray-900 dark:text-white">Dossiers médicaux récents</h2>
|
| 711 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500 text-sm font-medium">
|
| 712 |
-
<i class="fas fa-plus mr-1"></i> Ajouter un dossier
|
| 713 |
-
</button>
|
| 714 |
-
</div>
|
| 715 |
-
<div class="overflow-x-auto">
|
| 716 |
-
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
| 717 |
-
<thead class="bg-gray-50 dark:bg-gray-700">
|
| 718 |
-
<tr>
|
| 719 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Patient</th>
|
| 720 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Type</th>
|
| 721 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Date</th>
|
| 722 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Statut</th>
|
| 723 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Actions</th>
|
| 724 |
-
</tr>
|
| 725 |
-
</thead>
|
| 726 |
-
<tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700">
|
| 727 |
-
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 728 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 729 |
-
<div class="flex items-center">
|
| 730 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-300">
|
| 731 |
-
<i class="fas fa-user"></i>
|
| 732 |
-
</div>
|
| 733 |
-
<div class="ml-4">
|
| 734 |
-
<div class="text-sm font-medium text-gray-900 dark:text-white">Marie Lambert</div>
|
| 735 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">#MR-2023-0012</div>
|
| 736 |
-
</div>
|
| 737 |
-
</div>
|
| 738 |
-
</td>
|
| 739 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 740 |
-
<div class="text-sm text-gray-900 dark:text-white">Consultation</div>
|
| 741 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">Diabète</div>
|
| 742 |
-
</td>
|
| 743 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 744 |
-
<div class="text-sm text-gray-900 dark:text-white">Aujourd'hui</div>
|
| 745 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">09:30</div>
|
| 746 |
-
</td>
|
| 747 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 748 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 749 |
-
Complet
|
| 750 |
-
</span>
|
| 751 |
-
</td>
|
| 752 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
|
| 753 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500 mr-3">
|
| 754 |
-
<i class="fas fa-eye"></i>
|
| 755 |
-
</button>
|
| 756 |
-
<button class="text-blue-600 dark:text-blue-400 hover:text-blue-500 mr-3">
|
| 757 |
-
<i class="fas fa-edit"></i>
|
| 758 |
-
</button>
|
| 759 |
-
<button class="text-red-600 dark:text-red-400 hover:text-red-500">
|
| 760 |
-
<i class="fas fa-trash"></i>
|
| 761 |
-
</button>
|
| 762 |
-
</td>
|
| 763 |
-
</tr>
|
| 764 |
-
|
| 765 |
-
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 766 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 767 |
-
<div class="flex items-center">
|
| 768 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 dark:bg-red-900 flex items-center justify-center text-red-600 dark:text-red-300">
|
| 769 |
-
<i class="fas fa-user"></i>
|
| 770 |
-
</div>
|
| 771 |
-
<div class="ml-4">
|
| 772 |
-
<div class="text-sm font-medium text-gray-900 dark:text-white">Jean Dubois</div>
|
| 773 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">#MR-2023-0011</div>
|
| 774 |
-
</div>
|
| 775 |
-
</div>
|
| 776 |
-
</td>
|
| 777 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 778 |
-
<div class="text-sm text-gray-900 dark:text-white">Visite systématique</div>
|
| 779 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">Hypertension</div>
|
| 780 |
-
</td>
|
| 781 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 782 |
-
<div class="text-sm text-gray-900 dark:text-white">Aujourd'hui</div>
|
| 783 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">10:15</div>
|
| 784 |
-
</td>
|
| 785 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 786 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200">
|
| 787 |
-
En cours
|
| 788 |
-
</span>
|
| 789 |
-
</td>
|
| 790 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
|
| 791 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500 mr-3">
|
| 792 |
-
<i class="fas fa-eye"></i>
|
| 793 |
-
</button>
|
| 794 |
-
<button class="text-blue-600 dark:text-blue-400 hover:text-blue-500 mr-3">
|
| 795 |
-
<i class="fas fa-edit"></i>
|
| 796 |
-
</button>
|
| 797 |
-
<button class="text-red-600 dark:text-red-400 hover:text-red-500">
|
| 798 |
-
<i class="fas fa-trash"></i>
|
| 799 |
-
</button>
|
| 800 |
-
</td>
|
| 801 |
-
</tr>
|
| 802 |
-
|
| 803 |
-
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 804 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 805 |
-
<div class="flex items-center">
|
| 806 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 dark:bg-purple-900 flex items-center justify-center text-purple-600 dark:text-purple-300">
|
| 807 |
-
<i class="fas fa-user"></i>
|
| 808 |
-
</div>
|
| 809 |
-
<div class="ml-4">
|
| 810 |
-
<div class="text-sm font-medium text-gray-900 dark:text-white">Sophie Martin</div>
|
| 811 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">#MR-2023-0010</div>
|
| 812 |
-
</div>
|
| 813 |
-
</div>
|
| 814 |
-
</td>
|
| 815 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 816 |
-
<div class="text-sm text-gray-900 dark:text-white">Consultation</div>
|
| 817 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">Allergie</div>
|
| 818 |
-
</td>
|
| 819 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 820 |
-
<div class="text-sm text-gray-900 dark:text-white">Hier</div>
|
| 821 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">14:30</div>
|
| 822 |
-
</td>
|
| 823 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 824 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 825 |
-
Complet
|
| 826 |
-
</span>
|
| 827 |
-
</td>
|
| 828 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
|
| 829 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500 mr-3">
|
| 830 |
-
<i class="fas fa-eye"></i>
|
| 831 |
-
</button>
|
| 832 |
-
<button class="text-blue-600 dark:text-blue-400 hover:text-blue-500 mr-3">
|
| 833 |
-
<i class="fas fa-edit"></i>
|
| 834 |
-
</button>
|
| 835 |
-
<button class="text-red-600 dark:text-red-400 hover:text-red-500">
|
| 836 |
-
<i class="fas fa-trash"></i>
|
| 837 |
-
</button>
|
| 838 |
-
</td>
|
| 839 |
-
</tr>
|
| 840 |
-
|
| 841 |
-
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
| 842 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 843 |
-
<div class="flex items-center">
|
| 844 |
-
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center text-green-600 dark:text-green-300">
|
| 845 |
-
<i class="fas fa-user"></i>
|
| 846 |
-
</div>
|
| 847 |
-
<div class="ml-4">
|
| 848 |
-
<div class="text-sm font-medium text-gray-900 dark:text-white">Paul Durand</div>
|
| 849 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">#MR-2023-0009</div>
|
| 850 |
-
</div>
|
| 851 |
-
</div>
|
| 852 |
-
</td>
|
| 853 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 854 |
-
<div class="text-sm text-gray-900 dark:text-white">Visite systématique</div>
|
| 855 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">-</div>
|
| 856 |
-
</td>
|
| 857 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 858 |
-
<div class="text-sm text-gray-900 dark:text-white">Hier</div>
|
| 859 |
-
<div class="text-sm text-gray-500 dark:text-gray-400">11:00</div>
|
| 860 |
-
</td>
|
| 861 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 862 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">
|
| 863 |
-
Complet
|
| 864 |
-
</span>
|
| 865 |
-
</td>
|
| 866 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
|
| 867 |
-
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-500 mr-3">
|
| 868 |
-
<i class="fas fa-eye"></i>
|
| 869 |
-
</button>
|
| 870 |
-
<button class="text-blue-600 dark:text-blue-400 hover:text-blue-500 mr-3">
|
| 871 |
-
<i class="fas fa-edit"></i>
|
| 872 |
-
</button>
|
| 873 |
-
<button class="text-red-600 dark:text-red-400 hover:text-red-500">
|
| 874 |
-
<i class="fas fa-trash"></i>
|
| 875 |
-
</button>
|
| 876 |
-
</td>
|
| 877 |
-
</tr>
|
| 878 |
-
</tbody>
|
| 879 |
-
</table>
|
| 880 |
-
</div>
|
| 881 |
-
<div class="px-6 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700 text-center">
|
| 882 |
-
<a href="#" class="text-sm font-medium text-primary-600 dark:text-primary-400 hover:text-primary-500">Voir tous les dossiers</a>
|
| 883 |
-
</div>
|
| 884 |
-
</div>
|
| 885 |
-
</div>
|
| 886 |
-
</main>
|
| 887 |
-
</div>
|
| 888 |
-
</div>
|
| 889 |
-
|
| 890 |
-
<script>
|
| 891 |
-
// Toggle sidebar
|
| 892 |
-
document.getElementById('toggle-sidebar').addEventListener('click', function() {
|
| 893 |
-
document.getElementById('sidebar').classList.toggle('sidebar-collapsed');
|
| 894 |
-
});
|
| 895 |
-
|
| 896 |
-
// Toggle dark mode
|
| 897 |
-
document.getElementById('theme-toggle').addEventListener('click', function() {
|
| 898 |
-
document.documentElement.classList.toggle('dark');
|
| 899 |
-
const icon = document.getElementById('theme-icon');
|
| 900 |
-
if (document.documentElement.classList.contains('dark')) {
|
| 901 |
-
icon.classList.remove('fa-moon');
|
| 902 |
-
icon.classList.add('fa-sun');
|
| 903 |
-
} else {
|
| 904 |
-
icon.classList.remove('fa-sun');
|
| 905 |
-
icon.classList.add('fa-moon');
|
| 906 |
}
|
| 907 |
-
}
|
| 908 |
-
|
| 909 |
-
// Language dropdown
|
| 910 |
-
document.getElementById('language-dropdown-button').addEventListener('click', function() {
|
| 911 |
-
document.getElementById('language-dropdown').classList.toggle('hidden');
|
| 912 |
-
});
|
| 913 |
-
|
| 914 |
-
// Notifications dropdown
|
| 915 |
-
document.getElementById('notifications-button').addEventListener('click', function() {
|
| 916 |
-
document.getElementById('notifications-dropdown').classList.toggle('hidden');
|
| 917 |
-
});
|
| 918 |
-
|
| 919 |
-
// User dropdown
|
| 920 |
-
document.getElementById('user-dropdown-button').addEventListener('click', function() {
|
| 921 |
-
document.getElementById('user-dropdown').classList.toggle('hidden');
|
| 922 |
-
});
|
| 923 |
|
| 924 |
-
//
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 928 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 929 |
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 933 |
|
| 934 |
-
|
| 935 |
-
document.getElementById('user-dropdown').classList.add('hidden');
|
| 936 |
-
}
|
| 937 |
});
|
| 938 |
</script>
|
| 939 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NMBtech/nmb-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="fr" class="h-full">
|
| 3 |
<head>
|
| 4 |
+
<!-- Mêmes balises head que précédemment -->
|
| 5 |
+
</head>
|
| 6 |
+
<body class="h-full bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-200 transition-colors duration-200">
|
| 7 |
+
<!-- Même structure HTML que précédemment -->
|
| 8 |
+
|
| 9 |
<script>
|
| 10 |
+
// Configuration de l'API
|
| 11 |
+
const API_BASE_URL = 'http://localhost:8000/api';
|
| 12 |
+
let authToken = localStorage.getItem('authToken');
|
| 13 |
+
|
| 14 |
+
// Fonction pour faire des requêtes API
|
| 15 |
+
async function fetchAPI(endpoint, method = 'GET', body = null) {
|
| 16 |
+
const headers = {
|
| 17 |
+
'Content-Type': 'application/json',
|
| 18 |
+
'Authorization': `Bearer ${authToken}`
|
| 19 |
+
};
|
| 20 |
+
|
| 21 |
+
const options = {
|
| 22 |
+
method,
|
| 23 |
+
headers
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
if (body) {
|
| 27 |
+
options.body = JSON.stringify(body);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
try {
|
| 31 |
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, options);
|
| 32 |
+
|
| 33 |
+
if (!response.ok) {
|
| 34 |
+
const error = await response.json();
|
| 35 |
+
throw new Error(error.message || 'Erreur API');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
+
|
| 38 |
+
return await response.json();
|
| 39 |
+
} catch (error) {
|
| 40 |
+
console.error('API Error:', error);
|
| 41 |
+
throw error;
|
| 42 |
}
|
| 43 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
// Exemple: Charger les patients
|
| 46 |
+
async function loadPatients() {
|
| 47 |
+
try {
|
| 48 |
+
const data = await fetchAPI('/patients/');
|
| 49 |
+
displayPatients(data);
|
| 50 |
+
} catch (error) {
|
| 51 |
+
showNotification('Erreur lors du chargement des patients', 'error');
|
| 52 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
|
| 55 |
+
function displayPatients(patients) {
|
| 56 |
+
const container = document.getElementById('patients-container');
|
| 57 |
+
container.innerHTML = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
patients.forEach(patient => {
|
| 60 |
+
const card = document.createElement('div');
|
| 61 |
+
card.className = 'patient-card px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer';
|
| 62 |
+
card.innerHTML = `
|
| 63 |
+
<div class="flex items-center">
|
| 64 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-300">
|
| 65 |
+
<i class="fas fa-user"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
</div>
|
| 67 |
+
<div class="ml-4 flex-1">
|
| 68 |
+
<div class="flex items-center justify-between">
|
| 69 |
+
<p class="text-sm font-medium text-primary-600 dark:text-primary-400">${patient.first_name} ${patient.last_name}</p>
|
| 70 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${patient.patient_type === 'ORGANIC' ? 'bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200' : 'bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200'}">
|
| 71 |
+
${patient.patient_type === 'ORGANIC' ? 'Organique' : 'Contractuel'}
|
| 72 |
+
</span>
|
| 73 |
+
</div>
|
| 74 |
+
<p class="text-sm text-gray-500 dark:text-gray-400">${patient.company || 'Aucune société'}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
+
<div class="mt-2 flex justify-between items-center">
|
| 78 |
+
<div class="flex space-x-2">
|
| 79 |
+
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 80 |
+
<i class="fas fa-birthday-cake mr-1"></i> ${patient.age} ans
|
| 81 |
+
</span>
|
| 82 |
+
<span class="text-xs bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 rounded">
|
| 83 |
+
<i class="fas ${patient.gender === 'M' ? 'fa-mars' : 'fa-venus'} mr-1"></i> ${patient.gender === 'M' ? 'Homme' : 'Femme'}
|
| 84 |
+
</span>
|
|
|
|
|
|
|
| 85 |
</div>
|
| 86 |
+
<span class="text-xs text-gray-500 dark:text-gray-400">${new Date(patient.created_at).toLocaleDateString()}</span>
|
| 87 |
</div>
|
| 88 |
+
`;
|
| 89 |
|
| 90 |
+
card.addEventListener('click', () => openPatientDetails(patient.id));
|
| 91 |
+
container.appendChild(card);
|
| 92 |
+
});
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
// Exemple: Recherche en langage naturel
|
| 96 |
+
async function naturalLanguageSearch(query) {
|
| 97 |
+
try {
|
| 98 |
+
const results = await fetchAPI('/search/natural_language/', 'POST', { query });
|
| 99 |
+
displaySearchResults(results);
|
| 100 |
+
} catch (error) {
|
| 101 |
+
showNotification('Erreur lors de la recherche', 'error');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
}
|
| 103 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
// Exemple: Générer un résumé IA
|
| 106 |
+
async function generateAISummary(recordId) {
|
| 107 |
+
try {
|
| 108 |
+
const response = await fetchAPI(`/records/${recordId}/generate_summary/`, 'POST');
|
| 109 |
+
showNotification('Résumé généré avec succès', 'success');
|
| 110 |
+
return response.summary;
|
| 111 |
+
} catch (error) {
|
| 112 |
+
showNotification('Erreur lors de la génération du résumé', 'error');
|
| 113 |
+
throw error;
|
| 114 |
}
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
// Initialisation
|
| 118 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 119 |
+
// Charger les données initiales
|
| 120 |
+
loadPatients();
|
| 121 |
|
| 122 |
+
// Configurer la recherche
|
| 123 |
+
const searchInput = document.querySelector('input[type="text"]');
|
| 124 |
+
searchInput.addEventListener('keypress', (e) => {
|
| 125 |
+
if (e.key === 'Enter') {
|
| 126 |
+
naturalLanguageSearch(searchInput.value);
|
| 127 |
+
}
|
| 128 |
+
});
|
| 129 |
|
| 130 |
+
// Plus d'initialisations...
|
|
|
|
|
|
|
| 131 |
});
|
| 132 |
</script>
|
| 133 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NMBtech/nmb-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|