select targets.hospcode ,targets.right_new ,ifnull(works.work_t3, 0) work_t3 ,ifnull(works.work_t4, 0) work_t4 ,ifnull(works.work_t1, 0) work_t1 ,ifnull(works.work_t2, 0) work_t2 ,ifnull(works.sum_work, 0) sum_work ,targets.target from ( select hospcode ,right_new ,count(cid) target from nhso_tmpqof0021_person1 where (CHRONIC is null or (CHRONIC is not null and DATE_DIAG < DATE_SERV_NCDSCREEN)) and RIGHT_NEW in ("UCS","OTHER") group by hospcode, right_new ) targets left join ( select hospcode ,right_new ,count(case when DATE_SERV_NCDSCREEN between "20170401" and "20170630" then 1 end) work_t3 ,count(case when DATE_SERV_NCDSCREEN between "20170701" and "20170930" then 1 end) work_t4 ,count(case when DATE_SERV_NCDSCREEN between "20171001" and "20171231" then 1 end) work_t1 ,count(case when DATE_SERV_NCDSCREEN between "20180101" and "20180331" then 1 end) work_t2 ,count(case when DATE_SERV_NCDSCREEN between "20180401" and "20180331" then 1 end) sum_work from nhso_tmpqof0021_person1 where (CHRONIC is null or (CHRONIC is not null and DATE_DIAG < DATE_SERV_NCDSCREEN)) and SBP_1 >= 30 and DBP_1 >= 20 and (DATE_SERV_DIAG is null or DATE_SERV_DIAG >= DATE_SERV_NCDSCREEN) and RIGHT_NEW in ("UCS","OTHER") group by hospcode, right_new ) works on works.hospcode = targets.hospcode and works.right_new = targets.right_new order by works.hospcode, works.right_new
แสดง 1 ถึง 20 จาก 48 ผลลัพธ์

ร้อยละของประชากรไทยอายุ 35-74 ปี ได้รับการคัดกรองความดันโลหิตสูง

#HOSPCODEสิทธิ์ประกันสุขภาพ ผลงานไตรมาส 3 ปี2559ผลงานไตรมาส 4 ปี2559ผลงานไตรมาส 1 ปี2560ผลงานไตรมาส 2 ปี2560ผลงานรวม 4 ไตรมาสเป้าหมายทั้งหมด
107733UCS00000901
207733OTHER00000111
307711OTHER00572430397
407711UCS004511,37902,352
507712OTHER0051000586
607712UCS001,811102,078
707713OTHER00240310306
807713UCS001,06511301,365
907714OTHER37039520901,922
1007714UCS50073136502,925
1107715OTHER00254810440
1207715UCS1077621501,358
1307716OTHER00427400516
1407716UCS001,3698701,656
1507717OTHER0022832101,259
1607717UCS0096357203,831
1707718OTHER1014418601,088
1807718UCS10074587204,047
1907719OTHER0013100274
2007719UCS00675001,120
  099010,9724,715028,532