แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - yuthhos

หน้า: [1]
1
Report Exchange / รายงานสุขภาพจิต
« เมื่อ: พฤษภาคม 07, 2010, 13:54:11 PM »
ขอความช่วยเหลือครับ
รายงานสุขภาพจิต  ดึงยอดการให้บริการผู้ป่วยโรคจิตตามรหัสโรค ในตาราง VN_STAT แต่ตอนนี้ดึงได้เฉพาะในฟิ;ด์
ของ pdx อยากได้ในฟิวล์ของ  dx0,dx1,dx2,dx3,dx4,dx5  เพราะบางทีรหัสโรคจะอยู่ในฟิวด์ของ dx 
  ต้องใช้คำสั่งยังไง ครับ icd10 =f00-f299 ครับ
คำสั่งที่ใช้อยู่เป็นดังนี้ครับ   Value :=GetSQLStringData('select count(distinct(hn)) from vn_stat '
+' where pdx between "F00" and "F299" and vstdate between "'+ds1+'" and "'+ds2+'" ');

เวอร์ชั่น 3.53.3.8 SQL 5.1.30

                          ขอบคุณล่วงหน้าครับ

2
ฟ้อง error ดังรูป
ใช้เวอร์ชั่น  3.53.3.8 ครับ
โรงพยาบาลชัยบุรี  จ.สุราษฏร์

หน้า: [1]