BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: k_toedkiets ที่ เมษายน 24, 2012, 10:48:59 AM
-
ทำไมกรองรายชื่อมาแล้วถึงมีแค่ ตำบลเดียวครับ ทั้งที่รายงานระบุเป็น "รายชื่อผู้ป่วยโรคเรื้อรังแยกตำบล" และก็มีเฉพาะคนไข้เบาหวานเท่านั้นครับ....
-
ต้องเข้าไปดูในตัวรายงานครับว่ากำหนดไว้อย่างไร
-
ต้องเข้าไปดูในตัวรายงานครับว่ากำหนดไว้อย่างไร
ตามนี้ครับ
select c.clinic,c.hn,c.age_y,c.subtype,c.regdate,c.lastvisit,c.next_app_date,concat(p.pname,p.fname,' ',p.lname) as ptname,p.moopart,p.tmbpart,p.amppart,p.chwpart from clinicmember c
left outer join patient p on p.hn = c.hn
where c.clinic = '001' and p.tmbpart = '02' and p.amppart='03' and p.chwpart = '17'
order by p.moopart
-
ตามนี้ครับ
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=25458.0
-
ก็ท่าน ระบุตำบลเดียว มันก็ออกมาแค่ตำบลเดียวนะครับ
select c.clinic,c.hn,c.age_y,c.subtype,c.regdate,c.lastvisit,c.next_app_date,concat(p.pname,p.fname,' ',p.lname) as ptname,p.moopart,p.tmbpart,p.amppart,p.chwpart from clinicmember c
left outer join patient p on p.hn = c.hn
where c.clinic = '001' and p.tmbpart = '02' and p.amppart='03' and p.chwpart = '17'
order by p.moopart
001 ผู้ป่วยเบาหวานครับท่าน
-
ก้อ ท่าน ระบุตำบลเดียว มันก้อออกมาแค่ตำบลเดียวนะครับ
select c.clinic,c.hn,c.age_y,c.subtype,c.regdate,c.lastvisit,c.next_app_date,concat(p.pname,p.fname,' ',p.lname) as ptname,p.moopart,p.tmbpart,p.amppart,p.chwpart from clinicmember c
left outer join patient p on p.hn = c.hn
where c.clinic = '001' and p.tmbpart = '02' and p.amppart='03' and p.chwpart = '17'
order by p.moopart
001 ผู้ป่วยเบาหวานครับท่าน
คือว่ารายงานนี้ผมโหลดมาใช้ครับ...เลยแก้คำสั่งไม่เป็นครับ
-
select c.clinic,c.hn,c.age_y,c.subtype,c.regdate,c.lastvisit,c.next_app_date,concat(p.pname,p.fname,' ',p.lname) as ptname,p.moopart,p.tmbpart,p.amppart,p.chwpart from clinicmember c
left outer join patient p on p.hn = c.hn
where p.amppart='03' and p.chwpart = '17'
order by c.clinic,p.moopart
ลองทดสอบดูครับท่าน :) :) :)
-
select c.clinic,c.hn,c.age_y,c.subtype,c.regdate,c.lastvisit,c.next_app_date,concat(p.pname,p.fname,' ',p.lname) as ptname,p.moopart,p.tmbpart,p.amppart,p.chwpart from clinicmember c
left outer join patient p on p.hn = c.hn
where p.amppart='03' and p.chwpart = '17'
order by c.clinic,p.moopart
ลองทดสอบดูครับท่าน :) :) :)
ลองทดสอบดูแล้ว ก็ OK ครับ แต่ถ้าจะให้เพิ่มคลินิกด้วยได้ไหมครับ เพราะจะได้รู้ว่าคลินิกและมีใครบ้าง
-
ก้อต้องเข้า report designer แล้วสร้าง group clinic ครับ