BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: Bluebird ที่ มกราคม 31, 2011, 11:14:52 AM
-
มาด้วยโรคหืด หอบ ภายใน 28 ชั่วโมง มาเองไม่ได้นัดมา
select concat(pt.pname,pt.fname," ",pt.lname) as ptname,ov.*
from vn_stat ov
left outer join patient pt on pt.hn=ov.hn
left outer join ovst ovst on ovst.vn=ov.vn
where ov.vstdate between "2009-10-01" and "2010-09-30"
and ov.lastvisit_hour <= 28
and ovst.ovstist="01" #มาเอง#
and ovst.main_dep="043" #จุด Asthma#
อยากถามว่าถูกต้องไหม
-
ลองหาจาก OPD CUSTOM SERCH ครับ TAB ที่ 4 ( อื่น ๆ )
-
ดูเงื่อนไขแล้ว ov.lastvisit_hour >= 28 ใช่เปล่า ที่ว่า Revisit ภายใน 28 ชัวโมง พอกรองมาแล้วดูค่าในฟิลด์ lastvisit_hour จะมากกว่า 28
-
ดูเงื่อนไขแล้ว ov.lastvisit_hour >= 28 ใช่เปล่า ที่ว่า Revisit ภายใน 28 ชัวโมง พอกรองมาแล้วดูค่าในฟิลด์ lastvisit_hour จะมากกว่า 28
ต้องปรับเป็น <= 24 ชั่วโมง หรือ 48 ชั่วโมงตามมาตรฐานโรค ครับ