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 ,l.bdate ,group_concat(if(a.ga<=14 and a.ancno=1,a.ga,null) order by a.date_serv) ancno1 ,group_concat(if(a.ga between 15 and 20 and a.ancno=2,a.ga,null) order by a.date_serv) ancno2 ,group_concat(if(a.ga between 21 and 28 and a.ancno=3,a.ga,null) order by a.date_serv) ancno3 ,group_concat(if(a.ga between 29 and 34 and a.ancno=4,a.ga,null) order by a.date_serv) ancno4 ,group_concat(if(a.ga between 35 and 42 and a.ancno=5,a.ga,null) order by a.date_serv) ancno5 ,if(group_concat(distinct if(a.ga<=14 and a.ancno=1,"Y",null))="Y" and group_concat(distinct if(a.ga between 15 and 20 and a.ancno=2,"Y",null))="Y" and group_concat(distinct if(a.ga between 21 and 28 and a.ancno=3,"Y",null))="Y" and group_concat(distinct if(a.ga between 29 and 34 and a.ancno=4,"Y",null))="Y" and group_concat(distinct if(a.ga between 35 and 42 and a.ancno=5,"Y",null))="Y","Y",null) result from labor l join person p on p.pid=l.pid and l.hospcode=p.hospcode left join anc a on a.pid=l.pid and a.hospcode=l.hospcode where l.bdate between "2017-10-01" and "2018-09-30" and p.typearea in (1,3) and p.discharge = 9 and l.btype in (1,2,3,4,5) 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 ,l.bdate ,group_concat(if(a.ga<=14 and a.ancno=1,a.ga,null) order by a.date_serv) ancno1 ,group_concat(if(a.ga between 15 and 20 and a.ancno=2,a.ga,null) order by a.date_serv) ancno2 ,group_concat(if(a.ga between 21 and 28 and a.ancno=3,a.ga,null) order by a.date_serv) ancno3 ,group_concat(if(a.ga between 29 and 34 and a.ancno=4,a.ga,null) order by a.date_serv) ancno4 ,group_concat(if(a.ga between 35 and 42 and a.ancno=5,a.ga,null) order by a.date_serv) ancno5 ,if(group_concat(distinct if(a.ga<=14 and a.ancno=1,"Y",null))="Y" and group_concat(distinct if(a.ga between 15 and 20 and a.ancno=2,"Y",null))="Y" and group_concat(distinct if(a.ga between 21 and 28 and a.ancno=3,"Y",null))="Y" and group_concat(distinct if(a.ga between 29 and 34 and a.ancno=4,"Y",null))="Y" and group_concat(distinct if(a.ga between 35 and 42 and a.ancno=5,"Y",null))="Y","Y",null) result from labor l join person p on p.pid=l.pid and l.hospcode=p.hospcode left join anc a on a.pid=l.pid and a.hospcode=l.hospcode where l.bdate between "2017-10-01" and "2018-09-30" and p.typearea in (1,3) and p.discharge = 9 and l.btype in (1,2,3,4,5) group by p.hospcode,p.pid ) a on a.hospcode=h.hoscode
แสดง 1 ถึง 20 จาก 25 ผลลัพธ์

หญิงมีครรภ์ (ทุกสิทธิ) ได้รับการฝากครรภ์ครบ 5 ครั้งตามเกณฑ์ ปีงบประมาณ 2561

#HOSPCODEสถานบริการ TargetResultPercent
107711รพ.สต.ตะเบาะ ตำบลตะเบาะ1717100.00
207712รพ.สต.บ้านพี้ ตำบลบ้านโตก251872.00
307713รพ.สต.พนานิคม ตำบลบ้านโตก1818100.00
407714รพ.สต.สะเดียง ตำบลสะเดียง736791.78
507715รพ.สต.ป่าแดง ตำบลป่าเลา211885.71
607716รพ.สต.บ้านพลำ ตำบลป่าเลา312890.32
707717รพ.สต.นางั่ว ตำบลนางั่ว7373100.00
807718รพ.สต.ท่าพล ตำบลท่าพล462963.04
907719รพ.สต.วังซอง ตำบลท่าพล11981.82
1007720รพ.สต.ดงมูลเหล็ก ตำบลดงมูลเหล็ก2525100.00
1107721รพ.สต.บ้านโคก ตำบลบ้านโคก313096.77
1207722รพ.สต.กงกะยาง ตำบลบ้านโคก10880.00
1307723รพ.สต.ชอนไพร ตำบลชอนไพร3434100.00
1407724รพ.สต.นาป่า ตำบลนาป่า363288.89
1507725รพ.สต.หนองผักบุ้ง ตำบลนายม7457.14
1607726รพ.สต.ถ้ำน้ำบัง ตำบลนายม9888.89
1707727รพ.สต.วังชมภู ตำบลวังชมภู444295.45
1807728รพ.สต.น้ำร้อน ตำบลน้ำร้อน66100.00
1907729รพ.สต.ห้วยสะแก ตำบลห้วยสะแก211361.90
2007730รพ.สต.ห้วยใหญ่ ตำบลห้วยใหญ่231982.61