ผู้เขียน หัวข้อ: ระยะเวลาให้บริการ OPD ในเวลาราชการ ไม่รวม ผู้ป่วยที่สั่ง LAB  (อ่าน 4139 ครั้ง)

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

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
select a.vstdate,a.vn,a.hn,concat(pname,fname,"    ",lname) as ptname,
a.vsttime as begintime,
a.service4 as screen,
sec_to_time(time_to_sec(a.service4)-time_to_sec(a.vsttime)) as watingtimescreen,
a.service11 as screentime,
sec_to_time(time_to_sec(a.service11)-time_to_sec(a.service4)) as timescreen,
a.service5 as doctortime,
sec_to_time(time_to_sec(a.service5)-time_to_sec(a.service11)) as waitingdoctortime,
a.service12 as doctorendtime,
sec_to_time(time_to_sec(a.service12)-time_to_sec(a.service5)) as doctorwatingtime,
a.service6 as jadya,
sec_to_time(time_to_sec(a.service6)-time_to_sec(a.service12)) as jadyawatingtime,
sec_to_time(time_to_sec(a.service6)-time_to_sec(a.vsttime)) as watingtime
from service_time a
left outer join patient b on a.hn=b.hn
left outer join ovst o on o.vn=a.vn
where a.vstdate between'2010-07-01'and'2010-07-01'
and o.visit_type="I"


จากคำสั่งข้างต้นฝากช่วยแก้ โดยเพิ่มเงื่อนไข ไม่รวมผู้ป่วยที่สั่ง LAB
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ golf_win

  • Hero Member
  • *****
  • กระทู้: 3,481
  • Respect: +112
    • ดูรายละเอียด
กำหนดเงื่อนไข vn not in (select vn from lab_head where order_date between'2010-07-01'and'2010-07-01')
โรงพยาบาลเจ็ดเสมียน จังหวัดราชบุรี
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

ออฟไลน์ เกื้อกูล ครับ..

  • Hero Member
  • *****
  • กระทู้: 12,611
  • Respect: +169
    • ดูรายละเอียด
    • โรงพยาบาลปากท่อ
ไม่ค่อยเห็นด้วยทั้งหมดครับ...สั่ง lab เช่น HCT  stat ก็ไม่กินเวลามากครับ..หรือ Pregtest strip ก็แป๋บเดียว..ไม่น่าตัดทุก vn ที่สั่ง lab
Implement  HOSxP  Start 2548 ---> NOW!
Station : 130 Client   V.3 Version  3.67.1.XX
Server  : CENTOS  +MySQL maria 10.x.x

ออฟไลน์ เกื้อกูล ครับ..

  • Hero Member
  • *****
  • กระทู้: 12,611
  • Respect: +169
    • ดูรายละเอียด
    • โรงพยาบาลปากท่อ
ตามกระทู้
Implement  HOSxP  Start 2548 ---> NOW!
Station : 130 Client   V.3 Version  3.67.1.XX
Server  : CENTOS  +MySQL maria 10.x.x