BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: yossak ที่ กุมภาพันธ์ 08, 2011, 22:06:00 PM

หัวข้อ: ท่านอาจารย์และท่านพี่ครับน้องมีปัญหา ตรงรายการใบสั่งยา scan จาก IPD
เริ่มหัวข้อโดย: yossak ที่ กุมภาพันธ์ 08, 2011, 22:06:00 PM
ตรงรายการใบสั่งยา scan จาก IPD เปิด file ที่ scan แล้วมันค้างต้องใช้เวลานานมากครับ ประมาณ 5 นาที่ กว่าจะแสดงภาพออกมา ลองทดสอบดูเป็นตั้งแต่ v.54.1.3-v54.1.19 ไมรู้ว่า version ใหม่จะมีปัญหาแบบนี้เปล่า ต้องย้อนกับใบใช้V53.12.30 เปิดที่เดียวขึ้นเลย v.54.2.XX จะมีปัญหาแบบนี้เปล่าครับ
หัวข้อ: Re: ท่านอาจารย์และท่านพี่ครับน้องมีปัญหา ตรงรายการใบสั่งยา scan จาก IPD
เริ่มหัวข้อโดย: doramon ที่ กุมภาพันธ์ 08, 2011, 22:15:32 PM
select i1.*,i.hn,concat(p.pname,p.fname,' ',p.lname) as patient_name,a.bedno  ,w.name as ward_name,  it.ipt_doctor_scan_type_name
from ipt_doctor_scan i1, ipt i,patient p ,iptadm a ,ward w ,ipt_doctor_scan_type it
where i1.rxdate between '2011-02-08' and '2011-02-08'
 and i.an = i1.an
 and p.hn = i.hn
 and a.an = i.an
 and  w.ward = i.ward
 and  it.ipt_doctor_scan_type_id = i1.ipt_doctor_scan_type_id  order by i1.ipt_doctor_scan_id desc

ทดสอบรันตัวนี้ดูเปลียนวันที่ แล้วดูว่ามันช้าเหมือนกันหรือเปล่า

หัวข้อ: Re: ท่านอาจารย์และท่านพี่ครับน้องมีปัญหา ตรงรายการใบสั่งยา scan จาก IPD
เริ่มหัวข้อโดย: doramon ที่ กุมภาพันธ์ 08, 2011, 22:18:33 PM
select * from ipt_doctor_scan_image

รูปเก็บที่ตารางนี้

เก็บกี่ record แล้ว