BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: k_toedkiets ที่ สิงหาคม 18, 2011, 14:27:00 PM
-
อยากทราบว่าทำไมตรง
ข้อ 2. จำนวนผู้ป่วยรายใหม่ ถึงไม่ขึ้นข้อมูล
ข้อ 4. ตรวจ lab ตรง จำนวนได้รับการตรวจ ปกติ ผิดปกติ
ข้อมูลไม่ตรงกัน เช่น 50 10 15
45 20 10
...
-
ตรวจสอบในชุดคำสั่ง...ชุดคำสั่งแยก sub_type ความดันด้วยอะไร ICD10 หรือว่า....
ส่วนผล lab ก็ต้องดูวิธีรายงานผล เป็นค่าตัวเลข หรือตัวอักษร ที่เหลืออ่ะครับ..มาตรฐาน LA ต้องกำหนดด้วย.. :D
-
ตรวจสอบในชุดคำสั่ง...ชุดคำสั่งแยก sub_type ความดันด้วยอะไร ICD10 หรือว่า....
ส่วนผล lab ก็ต้องดูวิธีรายงานผล เป็นค่าตัวเลข หรือตัวอักษร ที่เหลืออ่ะครับ..มาตรฐาน LA ต้องกำหนดด้วย..
นี่ชุดคำสั่งครับ
Value :=GetSQLStringData('select count(hn) from clinicmember where clinic=002 '+
'and regdate between "'+ds1+'" and "'+ds2+'" and new_case="Y" and subtype="2"');
-
ลองเติม Value :=GetSQLStringData('select count(hn) as cc from clinicmember where clinic="002" '+
'and regdate between "'+ds1+'" and "'+ds2+'" and new_case="Y" and subtype="2"');
ได้ผลว่าไรครับ :)
-
ขอแก้ใหม่ครับ
ผล FBS
Value :=GetSQLStringData('select count(distinct(hn)) from lab_order lo '+
'left outer join lab_head lh on lh.lab_order_number=lo.lab_order_number '+
'where lh.order_date between"'+ds1+'" and "'+ ds2 +'"'+
'and lo.lab_items_code=76 '+
'and lo.lab_order_result <>"" '+
'and lh.hn in(select hn from clinicmember where clinic=002)');
ผล Cr
Value :=GetSQLStringData('select count(distinct(hn)) from lab_order lo '+
'left outer join lab_head lh on lh.lab_order_number=lo.lab_order_number '+
'where lh.order_date between"'+ds1+'" and "'+ ds2 +'"'+
'and lo.lab_items_code=78 '+
'and lh.hn in(select hn from clinicmember where clinic=002)');
-
เหมือนเดิมครับ... >:(
-
จริง ๆ ผล lab ควรจะแยกเป็น
ปกติ|ผิดปกติ|อื่น ๆ เช่น ยังไม่รายงานผล รายงานผลไม่ตรงตามเงื่อนไข|
นะครับ เพราะ ค่าที่หายไป อาจจมาจากข้อ อื่น ๆ คือไม่เข้าเงื่อนไขคำสั่ง
-
จริง ๆ ผล lab ควรจะแยกเป็น
ปกติ|ผิดปกติ|อื่น ๆ เช่น ยังไม่รายงานผล รายงานผลไม่ตรงตามเงื่อนไข|
นะครับ เพราะ ค่าที่หายไป อาจจมาจากข้อ อื่น ๆ คือไม่เข้าเงื่อนไขคำสั่ง
:D :D เห็นด้วย :D :D