BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: James011 ที่ มกราคม 08, 2010, 09:52:12 AM
-
;D ;D ;D แจก-Report-ReVisit28Day-DM-HT-COPD-ASTHMA-OPD&IPD ครับ
-
ขอบคุณครับ ;D
-
Code ตรงจำนวนคนผิดหรือเปล่าครับ
น่าจะเป็น count(distinct(hn)) นะครับ
if gl1='OPD' then
begin
Value := GetSQLIntegerData('select count(distinct(vn)) as c_an from vn_stat'+
' where vstdate between "'+ds1+'" and "'+ds2+'"'+
' and lastvisit <=28 and substring(pdx,1,3) between "E10" and "E14"');
end else
if gl1='IPD' then
Value := GetSQLIntegerData('select count(distinct(an)) as c_an from an_stat'+
' where regdate between "'+ds1+'" and "'+ds2+'"'+
' and lastvisit <=28 and substring(pdx,1,3) between "E10" and "E14"');
end;
end;
-
;D ;D ;D แก้ให้แล้วครับสำหรับคนที่ยังไม่แก้ใน Report
-
thank
-
ขอบคุณ ๆ ท่านเจมส์ครับ
-
;D ;D ;D แจก-Report-ReVisit28Day-DM-HT-COPD-ASTHMA-OPD&IPD ครับ
อ.เจมส์@ศูนย์อนามัยที่ 11 ครับอยากได้ ReAdmit28Day รวมทุกโรคบ้างครับ(รบกวนท่านอีกแล้ว) ;D ;D ;D
-
;Dขอบคุณหลายเด้อ....
-
:)