ผู้เขียน หัวข้อ: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด  (อ่าน 10493 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
ที่มา : หน้าจอบันทึกข้อมูลการคลอด
« แก้ไขครั้งสุดท้าย: เมษายน 02, 2013, 14:10:34 PM โดย manoi »
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
« ตอบกลับ #1 เมื่อ: เมษายน 02, 2013, 14:17:23 PM »
0
ข้อมูล 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'
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ golf_win

  • Hero Member
  • *****
  • กระทู้: 3,481
  • Respect: +112
    • ดูรายละเอียด
Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
« ตอบกลับ #2 เมื่อ: มิถุนายน 03, 2013, 15:00:42 PM »
0
อาจารย์ครับคำสั่งน่าจะผิดบางส่วนครับตรง where i1.labour_complication_id = 9 เพราะมันเป็นเรื่องของการตกเลือดครับไม่เกี่ยวกับ ภาวะขาดออกซิเจนระหว่างคลอด ครับ
โรงพยาบาลเจ็ดเสมียน จังหวัดราชบุรี
Start 19-1-51    35 station
HOSxP  3.59.5.18 Activate License
Tel. 032-305096-7 ต่อ 118
Web. http://csmhos.thaiddns.com:8080
         http://csmhos.thaieasydns.com:8080

ออฟไลน์ woravet

  • Sr. Member
  • ****
  • กระทู้: 409
  • Respect: +12
    • ดูรายละเอียด
Re: 2. อัตราของภาวะขาดออกซิเจนระหว่างคลอด
« ตอบกลับ #3 เมื่อ: มิถุนายน 03, 2013, 18:04:45 PM »
0
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'
รพ.บึงสามัคคี จ.กำแพงเพชร
*********************
อ.สุชัยและคณะ ขึ้นระบบ 29 ตค.49(Linux+Fedara 5)
*********************
ปัจจุบัน
HOSxP version 3.53.4.27
Server:Windows XP SP2,MySQL 5
Client ประมาณ 15 เครื่อง