spec CUSTOM-EHP-REPORT-AI-สรุปจำนวนผู้ป่วยแยกตามรหัสวินิจฉัยหลัก 10 อันดับแรก
CUSTOM-EHP-REPORT-AI-สรุปจำนวนผู้ป่วยแยกตามรหัสวินิจฉัยหลัก 10 อันดับแรก
ชื่อรายงาน ปลายทาง demo-103 แนวนอน
SQL (Master) — ใช้ :date1 :date2 สำหรับช่วงวันที่select v.pdx as pdx_code, i.name as pdx_name, count(v.vn) as patient_count from vn_stat v left join icd101 i on v.pdx = i.code where v.vstdate between :date1 and :date2 group by v.pdx, i.name order by patient_count desc limit 10
SQL หัวรายงาน — ต้องมีคอลัมน์ hospital_name (เว้นว่าง = ใช้ค่าเดิมของระบบ)
แยกกลุ่มตาม field
ดูตัวอย่างหน้ารายงาน ตรวจ + ตารางข้อมูล Deploy กำลังทำงาน…