BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: โรงพยาบาลอัมพวา ที่ กันยายน 20, 2011, 11:32:59 AM
-
รายงานผู้ป่วยใน รายงานการเฝ้าระวังคนไข้เบาหวาน รูปแบบดังรูปนะครับ
ขอรับบริจาคหน่อย ครับ ขอบคุณ่วงหน้า ครับ
-
เงื่อนไขกว้างจังเลยครับ บอกหน่อยว่า
-ทำไปเพื่อติดตามอะไรครับ
-รายการยาเบาจำเป็นต้องทุกรายการเลยมั้ย
-ช่วงเวลาที่ติดตามเอาตามวันที่ admit หรือ วันที่สั่งใช้ยา ครับ
-
รายการยาเบาจำเป็นต้องทุกรายการเลยมั้ย
ทุกรายการครับ
ช่วงเวลาที่ติดตามเอาตามวันที่ admit หรือ วันที่สั่งใช้ยา ครับ
เดอาวันที่ admit ครับ
-ทำไปเพื่อติดตามอะไรครับ
หัวหน้าสั่งให้ทำถามมากไม่ได้ครับ
-
-ทำไปเพื่อติดตามอะไรครับ
หัวหน้าสั่งให้ทำถามมากไม่ได้ครับ
หัวหน้าดุจังเลยนะครับ ที่ถามเพื่อที่จะทำแล้วสามารถนำไปประยุกต์ใช้ด้วยครับ แต่.... :'( :'( เดี๋ยวจะลองทำครับ
-
ดุมากๆๆ ขอบคุณครับ
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
ถ้าเอาวันที่ admit จะเอาอะไรเป็นเงื่อนไขครับ คนไข้คลีนิคหรือเปล่า ถ้าใช้ก็ไปเพิ่ม
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
LEFT OUTER JOIN clinicmember cm on cm.hn=op.hn
where an.regdate between "2011-09-01" and "2011-09-23" and cm.clinic = "002"
หรือว่า คนไข้ที่ตอน Admit เข้า word มี pdx มาด้วย ซึ่ง pdx อยู่ในช่วง diag E10-E149 ก็ไปกำหนดช่วงเอาครับ
-
ดุมากๆๆ ขอบคุณครับ
เดี๋ยวจาฟ้องหัวหน้า 555++
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
where hn in ( select hn from clinicmember where clinic ="001") and order_date between""xxxx-xx-xx" and "yyyy-yy-yy"
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
ตามนี้ครับ..ลองดู
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
where hn in ( select hn from clinicmember where clinic ="001") and order_date between""xxxx-xx-xx" and "yyyy-yy-yy"
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
ตามนี้ครับ..ลองดู
order_date อยู่ table ไหน อ่ะครับ
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
where hn in ( select hn from clinicmember where clinic ="001") and order_date between""xxxx-xx-xx" and "yyyy-yy-yy"
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
ตามนี้ครับ..ลองดู
ลองแล้ว error ครับ อ.เกื้อ ผมแก้ประมาณนี้ใช่เปล่า
elect * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
where an.hn in ( select hn from clinicmember where clinic ="001") and op.vstdate between"2011-05-01" and "2011-05-30"
-
select * from opitemrece op
left outer join an_stat an on op.an = an.an
left outer join drugitems du on op.icode = du.icode
where hn in ( select hn from clinicmember where clinic ="001") and order_date between""xxxx-xx-xx" and "yyyy-yy-yy"
จะระบุคนไข้ที่เป็นเบาหวานและจะเอารายการยาขึ้น ยัง ไง อ่ะครับ
ตามนี้ครับ..ลองดู
order_date อยู่ table ไหน อ่ะครับ
ตรวจสอบวันที่สั่งยาจากตาราง opitemrece op........ จากตัวอย่าง ผมลืมเพิ่ม ต้องเป็น op.hn กะ op.order_date ครับ..ใน where