ลูกพี่ รายงาน5ลำดับโรค opdกับipd ได้แล้วแต่ ถ้าต้องการ ER,แพทย์แผนไทยและของพลทหาร รบกสนเขียนให้หน่อยลูกพี่ขอบคุณครับ
DateTime : 2011-01-12 09:25:15
Post By : weerawat49
IP Address : 180.183.241.120
Message !!
หากต้องการตอบกระทู้ Webboard กรุณาเข้าใช้ระบบก่อนนะค่ะ..
กระทู้ตอบกลับ
ของer เขียนได้แล้วลูกพี่ขอแพทย์แผนไทยกับพลทหารนะ
Post โดย : weerawat49 Date: 2011-01-12 09:28:41 ip: 180.183.241.120
25 โรคที่er ครับ
Post โดย : decepticons Date: 2011-01-12 10:16:08 ip: 203.113.118.74
ขอบคุณครับเรียบร้อยแล้วครับพี่ชินช่วยเขียน
Post โดย : weerawat49 Date: 2011-01-12 11:05:32 ip: 180.183.241.120
เอาขึ้นเว็บหน่อยครับพี่ อยากได้เหมือนกันครับ
Post โดย : decepticons Date: 2011-01-12 11:10:36 ip: 203.113.118.74
อันนี้ ER
select a.main_pdx,count(a.main_pdx) as pdx_count ,i.name as icdname
from vn_stat a
join ovst v on v.vn=a.vn and v.cur_dep="008"
left outer join icd101 i on i.code=a.main_pdx
where a.vstdate between '2010-12-01' and '2010-12-31'
and a.main_pdx<>'' and a.main_pdx is not null
group by a.main_pdx,i.name
order by pdx_count desc
limit 5
อันนี้ IPD
select v.pdx,count(v.pdx) as pdx_count, i.name as icdname
from an_stat v
left outer join icd101 i on i.code=v.pdx
where v.dchdate between "2010-12-01" and "2010-12-31" and v.pdx is not null and v.pdx<>""
group by v.pdx,i.name
order by pdx_count desc
limit 5
อันนี้ opd
select a.pdx,count(a.pdx) as pdx_count ,i.name as icdname
from vn_stat a
left outer join icd101 i on i.code=a.main_pdx
where a.vstdate between '2010-12-01' and '2010-12-31'
and a.pdx<>'' and a.pdx is not null
group by a.pdx,i.name
order by pdx_count desc
limit 5
Post โดย : weerawat49 Date: 2011-01-12 11:16:18 ip: 180.183.241.120