Case Study 🔴 In Progress

aAI Panda — General Hospital

An AI Agent connected directly to the HIS data warehouse, automatically mapping >2,000 business tables and ~100 monthly schemas into transparent management reports with full patient-journey traceability.

AI Agent Panda — General Hospital
>2,000
Business Tables Mapped
~100
Monthly Schemas (01/2018 → 07/2026)
37+
Normalized Business Tables
1,000
Managed Beds
~20
Departments
1.7%
Reconciliation Gap (from 68.2%)

📌 The Challenge

The HIS data mountain and the health insurance settlement puzzle. The hospital's HIS system is a massive data warehouse with tens of thousands of tables spanning years of operations. Key issues:

  • Data scattered across tens of thousands of tables — every department with its own interpretation, every report with its own numbers
  • 68.2% financial reconciliation gap caused by comparing the wrong sources: registration data compared against BIEN_LAI — two inherently different data sets
  • BHYT settlement reports relied entirely on manual work, consuming days of staff time
  • No end-to-end patient-journey traceability: from admission and medical orders to treatment and payment receipts
  • No normalized business map — everyone queried the data according to their own understanding

🛠 The Solution

1. Secure connection to the Oracle HIS warehouse

Panda connects directly to Oracle using a SELECT-only account — read-only, completely safe for the hospital's operational data. No writes, no modifications, no interference with HIS workflows.

2. Auto-mapping >2,000 master tables

Out of ~17,000 tables across the entire system, Panda maps >2,000 HIS master tables against a normalized business map — every table and column is clearly defined in business terms.

3. Consolidating ~100 monthly schemas

Data from 01/2018 → 07/2026 lives across ~100 monthly schemas. Panda consolidates them into a single unified source, enabling queries across 8+ years of data with no time boundaries.

4. Transparent management reports

With a normalized business map, every management, settlement, and reconciliation report flows through the same data source — ending the era of conflicting departmental numbers.

📊 Normalized Business Map

37+ core business tables normalized, including the most critical ones:

CHI_DINH
83 columns — medical orders
discharge payment
49 columns — discharge payment detail
BIEN_LAI
60 columns — VAT invoices
TTRVBHYT_QTCT
29 columns — BHYT settlement detail
Admission
Patient admission
registration
Health insurance examination

The BHYT cost model is fully built: insurance fund share (BHYTTRA), patient out-of-pocket (BNTRA), co-payment — with a 2-line structure per medical order, cleanly separating the fund portion from the patient portion.

HIS data context — AI Agent Panda

🔧 Outstanding Issues Resolved

1. Standardized settlement views

Built complete QTCT, QTLL, QTNHOM settlement views — consistent structure across settlement types, ending the era of mismatched view formats.

2. Standardized joins for medical record type

Join BIEN_LAI → admission/registration to correctly retrieve medical record type (medical record type) — fixing the root cause of mismatches when comparing data across sources.

3. Bed occupancy

Accurate bed occupancy from a standardized bed catalog: ~1,000 beds across ~20 departments — a management metric previously impossible to compute correctly.

4. Advances & refund traceability

Advances retrieved via LEFT JOIN HOANTRA — preserving all unmatched records, with full audit trail from HUY tables to trace every data change.

🏆 Results

  • BHYT reconciliation gap cut from 68.2% to 1.7% — first 7 months of 2026 reconciled after normalizing discharge payment ↔ BIEN_LAI
  • A single unified data source — >2,000 business tables across ~100 monthly schemas (01/2018 → 07/2026) consolidated into transparent management reports
  • End-to-end patient-journey traceability — from admission, medical orders, and treatment to VAT receipts and BHYT settlement
  • Completely safe for operational data — read-only (SELECT) connection, zero interference with the live HIS system

💼 Technology Stack

Oracle HIS aAI Panda Health Insurance Python SQL Web App

Need an AI Agent to query HIS data for your hospital?

☎ Call us← View other projects

🔴 Project in progress — Pilot 2026 at General Hospital

Call now📞Zalo💬Facebook