ธันวาคม 2014
จ. อ. พ. พฤ. ศ. ส. อา.
« พ.ย.   ม.ค. »
1234567
891011121314
15161718192021
22232425262728
293031  
ธันวาคม 2014
จ. อ. พ. พฤ. ศ. ส. อา.
« พ.ย.   ม.ค. »
1234567
891011121314
15161718192021
22232425262728
293031  

คลังเก็บรายวัน: ธันวาคม 30, 2014

คนไข้คลินิคพิเศษลงทะเบียนแต่ยังไม่ได้ลง Diag และ type

select i.icd10,i.dxtype,n.name,c.*
from clinicmember c
left join clinic_persist_icd i on i.hn=c.hn and i.clinic=c.clinic
left join clinic n on n.clinic=c.clinic
where i.icd10 is null or i.icd10=”

ตรวจสอบการลง type คลินิคโรคเรื้อรัง

select * from clinic_persist_icd where hn in(select hn from clinic_persist_icd
group by hn
having count(hn)>2)
order by hn,dxtype