BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: pijit_w ที่ ตุลาคม 10, 2007, 16:05:37 PM

หัวข้อ: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: pijit_w ที่ ตุลาคม 10, 2007, 16:05:37 PM
สงสัยใน table vn_stat ตรง field  dx_doctor  บาง record ถึงมีค่าว่างๆๆ ทั่งที่มีแพทย์ได้ทำการบันทึกแล้ว น่าจะมีรหัสแพทย์อยู่ตรง field dx_doctor เช่น
select count(*) from vn_stat where vstdate = '2007-10-10'
= 563
select count(*)   from vn_stat where vstdate = '2007-10-10'  and dx_doctor = ''
 = 313
ทำไม dx_doctor  ถึงมีค่าว่างๆ เยอะจัง
หัวข้อ: Re: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: doramon ที่ ตุลาคม 10, 2007, 17:45:27 PM
แนะนำตัวเองด้วยครับ
____________________
ไม่ทราบว่าใช้ hosxp  version ไหนและใช้งานห้องไหนบ้าง
หัวข้อ: Re: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: pijit_w ที่ ตุลาคม 11, 2007, 09:52:36 AM
ใช้ HOSXP Versiont 3.50.6.5
แต่ตรงหน้าจอบันทึกผลการตรวจรักษาแสดงรหัสแพทย์
สงสัยว่าทำไมใน talble vn_stat  filed dx_doctor   ถึงได้มีค่าว่างๆๆ

(http://)
หัวข้อ: Re: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: pijit_w ที่ ตุลาคม 11, 2007, 09:55:08 AM
รูป
หัวข้อ: Re: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: manoi ที่ ตุลาคม 11, 2007, 10:01:29 AM
รูปด้านบนเป็นรหัสจาก ovst.doctor ครับ

vn_stat.doctor จะมีข้อมูลในกรณีที่แพทย์ใช้ระบบห้องตรวจแพทย์บันทึกข้อมุลผู้ป่วยครับ
หัวข้อ: Re: สงสัย Table vn_stat ตรง filed dx_doctor
เริ่มหัวข้อโดย: pijit_w ที่ ตุลาคม 11, 2007, 11:13:03 AM
ถ้าหากเราต้องการหา ยอดผู้ป่วยที่แพทย์ได้ทำการตรวจ เราจะหาจาก
vn_stat.dx_doctor หรือว่า ovst.doctor ?
 
ในระบบรายงาน OPD  ค้นหาจำนวนผู้ป่วยนอก (custom search )
ใช้ vn_stat.dx_doctor

ตัวอย่าง คำสั่งจาก ระบบรายงาน OPD  ค้นหาจำนวนผู้ป่วยนอก (custom search )
select pt.*,ov.*
from vn_stat ov ,patient pt ,ovst ovst
where  ov.vn=ovst.vn and pt.hn=ov.hn and ov.vn>="491001000000" and  ov.vn<="500930999999" and ov.hn=pt.hn
 and ov.age_y>= 0
 and ov.age_y<= 200
and ov.dx_doctor ="002"