diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 474bc69..a80e521 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -1,42 +1,59 @@ -import { Users, TrendingUp, AlertTriangle, Shield } from "lucide-react"; +import { + Users, + TrendingUp, + AlertTriangle, + Shield, + Database, + RefreshCw, + FileText, + Search, + Bell, + CheckCircle, + XCircle, + Clock, + ArrowRight, + Code, + Stethoscope, +} from "lucide-react"; export default function Dashboard() { + // Stats berdasarkan fitur project yang ada const stats = [ { - title: "Pasien Datang", + title: "BPJS Sync Status", + value: "18/25", + change: "72% berhasil", + changeColor: "text-green-600", + icon: RefreshCw, + color: "text-blue-600", + subtitle: "Sync hari ini", + }, + { + title: "Medical Records", value: "89", - change: "+12%", + change: "+12 hari ini", + changeColor: "text-green-600", + icon: FileText, + color: "text-green-600", + subtitle: "Record tersinkron", + }, + { + title: "ICD Recommendations", + value: "23", + change: "87% confidence", + changeColor: "text-blue-600", + icon: Code, + color: "text-purple-600", + subtitle: "Generated today", + }, + { + title: "Active Users", + value: "28/30", + change: "24 login hari ini", changeColor: "text-green-600", icon: Users, - color: "text-blue-600", - subtitle: "Hari ini", - }, - { - title: "Potential Overclaim", - value: "7", - change: "+2", - changeColor: "text-red-600", - icon: AlertTriangle, - color: "text-red-600", - subtitle: "Perlu review", - }, - { - title: "Rata-rata Biaya", - value: "Rp 2.8M", - change: "+5.2%", - changeColor: "text-orange-600", - icon: TrendingUp, color: "text-orange-600", - subtitle: "Per klaim", - }, - { - title: "Kode BPJS Aktif", - value: "156", - change: "8 kode baru", - changeColor: "text-green-600", - icon: Shield, - color: "text-purple-600", - subtitle: "Total kode", + subtitle: "System users", }, ]; @@ -46,14 +63,92 @@ export default function Dashboard() { {/* Welcome Section */}

- Selamat Datang di Dashboard + Dashboard ClaimGuard

- Kelola sistem rumah sakit dengan efisien dan pantau semua aktivitas - secara real-time. + Monitor BPJS operations, medical records, ICD recommendations, dan + sistem management secara real-time.

+ {/* Alert/Warning Section */} +
+
+

+ + Peringatan & Notifikasi +

+ Real-time alerts +
+
+
+
+
+
+ + + Overclaim Detected + +
+

+ 7 kasus interval < 30 hari +

+

+ ICD: I10, E11, J18.9 +

+
+ +
+
+ +
+
+
+
+ + + Inconsistent Visits + +
+

+ 3 kontrol tidak konsisten +

+

+ Tipe vs alasan tidak sesuai +

+
+ +
+
+ +
+
+
+
+ + + Sync Failures + +
+

+ 5 BPJS sync gagal +

+

+ Perlu retry manual +

+
+ +
+
+
+
+ {/* Stats Grid */}
{stats.map((stat, index) => ( @@ -80,168 +175,293 @@ export default function Dashboard() {
{/* Main Grid */} -
- {/* Tren Biaya Kode Medis */} +
+ {/* BPJS Operations */}
-

- Tren Biaya Kode Medis +

+ + BPJS Operations

- +
+ +
+
+
+
+ + + Sync Status + +
+

Berhasil: 18/25 (72%)

+

+ Last sync: 15 Jan 2024 14:30 +

+
+
+
18
+
Sukses hari ini
+
+
+ +
+
+
+ + + Active Codes + +
+

156 kode BPJS aktif

+

+ 8 kode baru bulan ini +

+
+
+
156
+
Total kode
+
+
+ +
+
+
+ + + Assist Coding + +
+

+ 45 coding assistance +

+

12 queries hari ini

+
+
+
45
+
Total assist
+
+
+
+
+ + {/* Medical Record Operations */} +
+
+

+ + Medical Records +

+ +
+ +
+
+
+
+ + + Sync Records + +
+

+ 1,250 records tersinkron +

+

89 records hari ini

+
+
+
89
+
Hari ini
+
+
+ +
+
+
+ + + Patient Search + +
+

45 pencarian hari ini

+

84% success rate

+
+
+
45
+
Searches
+
+
+ +
+
+
+ + + Latest Records + +
+

+ 30 records dalam 30 hari +

+

Filter aktif

+
+
+
30
+
Records
+
+
+
+
+
+ + {/* Second Row */} +
+ {/* ICD Recommendations & Cost */} +
+
+

+ + ICD & Cost Management +

+
{[ { - code: "A15.0", - name: "Tuberculosis Paru", - cost: "Rp 3.2M", - change: "+15%", - trend: "up", - count: "12 kasus", + title: "ICD Recommendations", + value: "23", + subtitle: "Generated today", + detail: "87% avg confidence", + color: "text-purple-600", + bgColor: "bg-purple-50", + icon: Code, }, { - code: "I21.9", - name: "Acute Myocardial Infarction", - cost: "Rp 8.5M", - change: "+3%", - trend: "up", - count: "4 kasus", + title: "BPJS Mappings", + value: "19/23", + subtitle: "Successfully mapped", + detail: "83% mapping rate", + color: "text-blue-600", + bgColor: "bg-blue-50", + icon: Shield, }, { - code: "N18.6", - name: "Chronic Kidney Disease", - cost: "Rp 5.1M", - change: "-8%", - trend: "down", - count: "7 kasus", - }, - { - code: "O80.0", - name: "Spontaneous Delivery", - cost: "Rp 2.8M", - change: "+5%", - trend: "up", - count: "23 kasus", + title: "Cost Analysis", + value: "12", + subtitle: "Exports today", + detail: "JSON format", + color: "text-green-600", + bgColor: "bg-green-50", + icon: TrendingUp, }, ].map((item, index) => (
-
-
- - {item.code} - +
+
+ - {item.change} + {item.title}
-

- {item.name} -

-

- {item.count} • {item.cost} +

+ {item.subtitle}

+

{item.detail}

-
- +
+
+ {item.value} +
))}
- {/* Distribusi Kode BPJS */} + {/* System Management */}
-

- Distribusi Kode BPJS +

+ + System Management

-
- {[ - { - category: "Rawat Inap", - codes: "89 kode", - percentage: "57%", - color: "bg-blue-500", - count: "234 klaim", - }, - { - category: "Rawat Jalan", - codes: "45 kode", - percentage: "29%", - color: "bg-green-500", - count: "156 klaim", - }, - { - category: "IGD", - codes: "22 kode", - percentage: "14%", - color: "bg-red-500", - count: "67 klaim", - }, - ].map((item, index) => ( -
-
-
-
- - {item.category} - -
- - {item.percentage} +
+
+
+ + + User Management
-
-
-
-
- {item.codes} - {item.count} -
+

28/30 active users

+

24 login hari ini

+
+
+
28
+
Active
- ))} -
- -
-
- Total Kode Aktif: - 156 kode
-
- Total Klaim Bulan Ini: - 457 klaim + +
+
+
+ + + Role Management + +
+

25 roles configured

+

+ 2 permissions updated +

+
+
+
25
+
Roles
+
+
+ +
+
+
+ + + System Health + +
+

99.8% uptime

+

2.1% error rate

+
+
+
99.8%
+
Uptime
+