spec CUSTOM-EHP-REPORT-AI-รายงานทะเบียนยาที่เปิดใช้งาน
CUSTOM-EHP-REPORT-AI-รายงานทะเบียนยาที่เปิดใช้งาน
ชื่อรายงาน ปลายทาง demo-103 แนวนอน
SQL (Master) — ใช้ :date1 :date2 สำหรับช่วงวันที่SELECT drugitems.icode AS icode, drugitems.name AS drug_name, drugitems.strength AS strength, drugitems.dosageform AS dosageform, drugitems.units AS unit, drugitems.unitcost AS unit_cost, drugitems.istatus AS status FROM drugitems WHERE drugitems.istatus = 'Y'
SQL หัวรายงาน — ต้องมีคอลัมน์ hospital_name (เว้นว่าง = ใช้ค่าเดิมของระบบ)SELECT hospitalcode, concat(hospitalcode, ' : ', hospitalname) as hospital_name, '' as address from opdconfig
แยกกลุ่มตาม field
ดูตัวอย่างหน้ารายงาน ตรวจ + ตารางข้อมูล Deploy กำลังทำงาน…