ผู้เขียน หัวข้อ: save pe_template ไม่ได้  (อ่าน 4534 ครั้ง)

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

ออฟไลน์ white

  • Hero Member
  • *****
  • กระทู้: 828
  • Respect: 0
    • ดูรายละเอียด
save pe_template ไม่ได้
« เมื่อ: ตุลาคม 12, 2008, 11:03:31 AM »
0
ไม่รู้ว่าเป็นที่อะไร
แต่ save template ใน physical exam ไม่ได้

ฝากที่อื่นช่วยทดสอบด้วยครับ

ขึ้นหน้าต่างดังรูป
และ debug

System Message
SQL Error: Duplicate entry '48' for key 1
select * from pe_template where pe_name='test' and doctor='194'

ทั้งๆที่ไม่ซ้ำ
โดยการเอา template เดิมมาใช้ยังได้ปกติ

ลองใน version 3.51.9.23 - 3.51.9.28 -3.51.10.10

เป็นหลายเครื่อง
อดีต intern2 รพ.แก้งคร้อ ชัยภูมิ
อยากช่วยพัฒนา ให้เป็นโปรแกรมที่น่าใช้ระดับชาติ

กระทู้ห้องตรวจแพทย์ สำหรับแพทย์เพื่อช่วยพัฒนาโปรแกรม
-ปรับปรุงรายการนัดผู้ป่วย
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6511.0
-การอ่านผล x-ray ใน patient EMR
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=5999.0
-การอ่านผล LAB
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6040.0
-Request ห้องตรวจ หน้าซักประวัติ(F1)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6088.0
-Request ห้องตรวจ หน้าประวัติ(F2)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6069.0
-Request ห้องตรวจ หน้าสั่งเวชภัณฑ์(F3)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6128.0

doramon

  • บุคคลทั่วไป
Re: save pe_template ไม่ได้
« ตอบกลับ #1 เมื่อ: ตุลาคม 12, 2008, 14:33:34 PM »
0
select * from serial where name like 'pe_temp_id'

select max(pe_temp_id) from pe_template


ออฟไลน์ white

  • Hero Member
  • *****
  • กระทู้: 828
  • Respect: 0
    • ดูรายละเอียด
Re: save pe_template ไม่ได้
« ตอบกลับ #2 เมื่อ: ตุลาคม 12, 2008, 14:46:44 PM »
0
select * from serial where name like 'pe_temp_id'

select max(pe_temp_id) from pe_template



ขอบคุณครับ
แก้ได้แล้วครับ
ทั้งนี้เป็นเพราะผมไปแก้ pe_template เพิ่มเอง
ขอบคุณครับ อาจารย์อ๊อด
อดีต intern2 รพ.แก้งคร้อ ชัยภูมิ
อยากช่วยพัฒนา ให้เป็นโปรแกรมที่น่าใช้ระดับชาติ

กระทู้ห้องตรวจแพทย์ สำหรับแพทย์เพื่อช่วยพัฒนาโปรแกรม
-ปรับปรุงรายการนัดผู้ป่วย
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6511.0
-การอ่านผล x-ray ใน patient EMR
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=5999.0
-การอ่านผล LAB
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6040.0
-Request ห้องตรวจ หน้าซักประวัติ(F1)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6088.0
-Request ห้องตรวจ หน้าประวัติ(F2)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6069.0
-Request ห้องตรวจ หน้าสั่งเวชภัณฑ์(F3)
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6128.0