select h.hoscode hospcode,cast(h.hosname as char(200)) hospname,count(*) target,sum(result="Y") result,sum(result="Y")/count(*)*100 percent from chospital_amp h left join ( select p.hospcode,p.cid,p.hn,p.pid,concat(p.name," ",p.lname) ptname ,group_concat(distinct if(cc.pid is not null,"Y",null)) result from person p left join chronic c on c.pid=p.pid and c.hospcode=p.hospcode and c.chronic between "I10" and "I1599" and c.date_diag<"2015-04-01" left join chronic cc on cc.pid=p.pid and cc.hospcode=p.hospcode and cc.chronic between "I10" and "I1599" and cc.date_diag>="2015-04-01" where timestampdiff(year,p.birth,"2015-04-01")>=35 and p.typearea in (1,3) and p.discharge = "9" and c.pid is null group by p.hospcode,p.pid ) a on a.hospcode=h.hoscode group by a.hospcode union select "ภาพรวมทั้งคัพ" as hoscode,"" as hosname,count(*) target,sum(result="Y") result,sum(result="Y")/count(*)*100 percent from chospital_amp h left join ( select p.hospcode,p.cid,p.hn,p.pid,concat(p.name," ",p.lname) ptname ,group_concat(distinct if(cc.pid is not null,"Y",null)) result from person p left join chronic c on c.pid=p.pid and c.hospcode=p.hospcode and c.chronic between "I10" and "I1599" and c.date_diag<"2015-04-01" left join chronic cc on cc.pid=p.pid and cc.hospcode=p.hospcode and cc.chronic between "I10" and "I1599" and cc.date_diag>="2015-04-01" where timestampdiff(year,p.birth,"2015-04-01")>=35 and p.typearea in (1,3) and p.discharge = "9" and c.pid is null group by p.hospcode,p.pid ) a on a.hospcode=h.hoscode
แสดง 21 ถึง 25 จาก 25 ผลลัพธ์

อัตราผู้ป่วยความดันโลหิตสูงอายุตั้งแต่ 35 ปีขึ้นไปรายใหม่ ปีงบประมาณ 2559

#HOSPCODEสถานบริการ TargetResultPercent
2107731รพ.สต.โป่งหว้า ตำบลห้วยใหญ่1,25616813.38
2207732รพ.สต.ยางลาด ตำบลระวิง892798.86
2307733รพ.สต.ระวิง ตำบลระวิง94810811.39
2410727รพ.เพชรบูรณ์14,9391,94112.99
25ภาพรวมทั้งคัพ69,2569,84414.21
   87,29112,140