BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: ToPPer_(thaicharoen_Hosp) ที่ กรกฎาคม 01, 2010, 14:11:38 PM
-
ขอความช่วยเหลือเรื่องรายงานหน่อยครับอาจารย์ทุกท่าน
ตามภาพเลยครับพอดีผมขอรายงานจากท่านอาจารย์ที่โรงพยาบาล กุดชุมมานำเข้า
แล้วดันรันไม่ออกไม่ทราบว่าจะแก้ตรงใหน คำสั่ง SQL ก็ผ่าน ดึงข้อมูล report ได้
ติดที่หน้า preview ความรู้น้อยขอทุกท่านชี้แนะด้วยครับ
อันนี้คำสั่งครับ แบบว่าผมก็ยังไม่เข้าใจแต่รันออก อิอิ
select h.lab_order_number,h.vn,h.hn,h.order_date ,h.order_time,
h.receive_time as service13,h.report_time as service14 ,
h.confirm_report,d.name as doctor_name,
concat(pt.pname,pt.fname,' ',pt.lname) as ptname,pt.sex , h.form_name ,
l.lab_items_name,l.lab_items_code, o.lab_order_result,l.lab_items_unit,v.age_y,op.bw, h.confirm_report >10 ="Y"as test
from lab_head h
left outer join patient pt on pt.hn=h.hn
left outer join opdscreen op on op.vn = h.vn
left outer join vn_stat v on v.vn = h.vn
left outer join lab_order o on o.lab_order_number=h.lab_order_number and o.confirm="Y"
and o.lab_order_result<>"" and o.lab_order_result is not NULL
left outer join lab_items l on l.lab_items_code=o.lab_items_code
left outer join doctor d on d.code=h.doctor_code
where h.confirm_report="Y"and h.confirm_report >10 ="Y" and h.report_date between "2010-01-01" and "2010-06-30" and l.lab_items_code = '14'and pt.sex ='1'and v.age_y is not null
-
concat(pt.pname,pt.fname,' ',pt.lname)
ตรงนี้ มั๊ยครับ
concat(pt.pname,pt.fname," ",pt.lname)
**************
l.lab_items_code = '14'and pt.sex ='1'and v.age_y is not null
ตรงนี้ มั๊ย ครับ
l.lab_items_code = "14"and pt.sex ="1"and v.age_y is not null
-
concat(pt.pname,pt.fname,' ',pt.lname)
ตรงนี้ มั๊ยครับ
concat(pt.pname,pt.fname," ",pt.lname)
**************
l.lab_items_code = '14'and pt.sex ='1'and v.age_y is not null
ขอบคุณครับที่แนะนำ คำสั่งตรงนี้ไม่มีปัญหาครับ
ดังภาพแรกอยากจะโชวว่าดึงข้อมูลขึ้นแต่ภาพสองเวลา preview แล้ว error
ผมได้แนบรายงานมาด้วยขอทุกท่านช่วยตรวจดูให้ทีนะครับ
l.lab_items_code = "14"and pt.sex ="1"and v.age_y is not null
-
เปิดโปรแกรม Hosxp ด้วยครับ ขณะออกแบบ
-
::)
-
เปิดโปรแกรม Hosxp ด้วยครับ ขณะออกแบบ
ขอดื่มให้ท่าน 1 จอกครับ ผมมันโง่จริง ปัญหามันติ๊ดเดียวจริงๆ
ขอบคุณท่านมากครับ ผมละงมอยู่แต่เช้าแล้ว
ขอบคุณท่านอีกทีครับ ;D ;D
-
::)
ขอบคุณท่านด้วยครับผม