BMS-HOSxP Community

HOSxP => รายงานตัวชี้วัด 66 ตัวของกระทรวงสาธารณสุข => ข้อความที่เริ่มโดย: manoi ที่ เมษายน 02, 2013, 14:05:54 PM

หัวข้อ: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
เริ่มหัวข้อโดย: manoi ที่ เมษายน 02, 2013, 14:05:54 PM
ที่มา : หน้าจอบันทึกข้อมูลการคลอด
หัวข้อ: Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
เริ่มหัวข้อโดย: manoi ที่ เมษายน 02, 2013, 14:17:23 PM
ข้อมูล A จำนวนทารกแรกเกิดที่ Apgar Score 1 นาที น้อยกว่า หรือเท่ากับ 7 จะหาได้จากคำสั่ง

select count(i5.ipt_labour_infant_id) as cc
from ipt_labour_complication i1,ipt_labour i2,ipt i3, ipt_pregnancy i4,ipt_labour_infant i5
where i1.labour_complication_id = 9 and
i1.ipt_labour_id = i2.ipt_labour_id
and i5.ipt_labour_id = i2.ipt_labour_id
and i5.infant_dchstts in ('04','05') and i5.apgar_score_min1 <= 7
and i2.an = i3.an and i3.an = i4.an and i4.deliver_type in (1,2)
and i3.dchdate between 'yyyy-mm-dd1' and 'yyyy-mm-dd2'



ข้อมูล B จำนวนทารกเกิดมีชีพทั้งหมด จะหาได้จากคำสั่ง

select count(i5.ipt_labour_infant_id) as cc
from ipt_labour_complication i1,ipt_labour i2,ipt i3, ipt_pregnancy i4,ipt_labour_infant i5
where i1.labour_complication_id = 9 and
i1.ipt_labour_id = i2.ipt_labour_id
and i5.ipt_labour_id = i2.ipt_labour_id
and i5.infant_dchstts in ('04','05')
and i2.an = i3.an and i3.an = i4.an and i4.deliver_type in (1,2)
and i3.dchdate between 'yyyy-mm-dd1' and 'yyyy-mm-dd2'
หัวข้อ: Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
เริ่มหัวข้อโดย: golf_win ที่ มิถุนายน 03, 2013, 15:00:42 PM
อาจารย์ครับคำสั่งน่าจะผิดบางส่วนครับตรง where i1.labour_complication_id = 9 เพราะมันเป็นเรื่องของการตกเลือดครับไม่เกี่ยวกับ ภาวะขาดออกซิเจนระหว่างคลอด ครับ
หัวข้อ: Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
เริ่มหัวข้อโดย: woravet ที่ มิถุนายน 03, 2013, 18:04:45 PM
select count(nb.an) 'target'
,sum(apgar1<=7 or has_asphyxia='Y') 'result'
,sum(apgar1<=7 or has_asphyxia='Y')/count(nb.an)*1000 'percent'
from ipt_newborn nb
where nb.born_date between '2012-10-1' and '2013-9-30'