BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: Auing ที่ พฤษภาคม 29, 2009, 09:36:15 AM
-
Report-Labour-infant-1 ใน Report System ผมไม่มี.. ??? ??? :-* :-* ขอบคุณครับ
-
ที่ไหนมีบ้างครับ..
-
ใบแจ้งเกิด
-
ขอบคุณครับ...((ผมรอมาประมาณ 2 อาทิตย์แล้วครับ)) ;D
ใบแจ้งเกิด
-
ใบแจ้งเกิด
ผมได้นำเข้าในระบบรายงานแล้วครับ...แต่เวลาเข้าไปที่ข้อมูลการคลอด(F4)จะพิมพ์ใบเกิดปรากฏว่าหน้ากระดาษที่ออกมาว่างเปล่าครับ ผมลองเข้าไปดูใน Preview Report Designer ก็มีข้อมูลแต่เข้าไปใน HOSxP ข้อมูลการคลอด(F4) กดพิมพ์ไม่มี งง ครับ อาจารย์ช่วยชี้แนะด้วยครับ ขอบคุณครับ
-
select ip.an,concat(p.pname) as p_name,p.lname,p.cid,s.name,n.name,p.birthday,ip.born_time,
concat(p.fathername,' ',p.fatherlname) as fnl,p.father_cid,concat(p.mathername,' ',p.motherlname) as mnl,
p.mother_cid,ip.birth_weight,ip.preg_no,d.name as dname,pr.ga,
l.mother_gvalue,l.mother_p1value,l.mother_p2value,l.mother_avalue,(l.mother_lvalue+pr.child_count) as living_all,
(l.mother_lvalue+pr.child_count+l.mother_avalue) as child_all,
p2.cid as mom_cid
from ipt_newborn ip
left outer join ipt i on i.an=ip.an
left outer join patient p on p.hn=i.hn
left outer join thaiaddress t on t.addressid=concat(p.chwpart,p.amppart,p.tmbpart)
left outer join sex s on s.code=p.sex
left outer join nationality n on n.nationality=p.nationality
left outer join labor l on l.an=ip.mother_an
left outer join an_stat a on a.an=ip.mother_an
left outer join patient p2 on p2.hn=a.hn
left outer join doctor d on d.code=l.labor_who
left outer join ipt_pregnancy pr on pr.an=ip.mother_an
where ip.an="510001866" #an ของคุณใช้เหมือนผมหรือเปล่าไมอย่างนั้นให้ปรับ an ให้ตรงกับของคุณแล้วรอง ทดสอบดูอีกรอบ
-
select ip.an,concat(p.pname) as p_name,p.lname,p.cid,s.name,n.name,p.birthday,ip.born_time,
concat(p.fathername,' ',p.fatherlname) as fnl,p.father_cid,concat(p.mathername,' ',p.motherlname) as mnl,
p.mother_cid,ip.birth_weight,ip.preg_no,d.name as dname,pr.ga,
l.mother_gvalue,l.mother_p1value,l.mother_p2value,l.mother_avalue,(l.mother_lvalue+pr.child_count) as living_all,
(l.mother_lvalue+pr.child_count+l.mother_avalue) as child_all,
p2.cid as mom_cid
from ipt_newborn ip
left outer join ipt i on i.an=ip.an
left outer join patient p on p.hn=i.hn
left outer join thaiaddress t on t.addressid=concat(p.chwpart,p.amppart,p.tmbpart)
left outer join sex s on s.code=p.sex
left outer join nationality n on n.nationality=p.nationality
left outer join labor l on l.an=ip.mother_an
left outer join an_stat a on a.an=ip.mother_an
left outer join patient p2 on p2.hn=a.hn
left outer join doctor d on d.code=l.labor_who
left outer join ipt_pregnancy pr on pr.an=ip.mother_an
where ip.an="510001866" #an ของคุณใช้เหมือนผมหรือเปล่าไมอย่างนั้นให้ปรับ an ให้ตรงกับของคุณแล้วรอง ทดสอบดูอีกรอบ
ผมปรับแล้วครับก็ยังเหมือนเดิม
ของผมครับ where ip.an="520000866" ขอบคุณครับที่ติดตามและเป็นธุระให้
-
ทำไมผม พิมพ์ใบเกิด ไม่ได้อ่ะครับ
ใช้เวอร์ชั่น 3.52.5.6
กดปุ่ม พิมพ์ใบเกิด ในหน้า ข้อมูลการคลอด Tab ทารก
กดแล้วไม่มีอะไรเลยครับ นิ่ง ไม่มีหน้าต่างอะไรโผล่ขึ้นมาให้ยืนยันหรือเลือกเครื่องพิมพ์แต่อย่างใด
ทั้ง ที่ import เข้าไปแล้วครับ ตอนยังไม่ import ก็เป็นเหมือนกันครับ
-
อาจารย์หลายๆท่านช่วยชี้แนะด้วยครับ
//////ข้อมูลการคลอด(F4)===>พิมพใบเกิด ((ว่างเปล่า))
-
ผมลองนำรายงานเข้าแล้วก็ขึ้นหน้ารายงานเปล่า ก็เลยเข้า show sql trace windows ดูว่าโปรแกรมส่งค่าอะไรให้กับ report ปรากฏว่าส่งค่า an = "4" ไปให้รายงาน ทั้งๆที่ คนไข้นั้น an = 520000972 ตามจริงน่าจะส่ง an ตัวนี้ไปให้รายงาน
-------------------------------------------------------------
Date Time Type Exec Time SQL Text
52-06-03 14:27:45.546 SQL 15 select script_dfm from reporttemplate where name = 'REPORT-LABOUR-INFANT-1'
-------------------------------------------------------------
Date Time Type Exec Time SQL Text
52-06-03 14:27:45.546 SQL 0
select ip.an,concat(p.pname) as p_name,p.lname,p.cid,s.name,n.name,p.birthday,ip.born_time,
concat(p.fathername,' ',p.fatherlname) as fnl,p.father_cid,concat(p.mathername,' ',p.motherlname) as mnl,
p.mother_cid,ip.birth_weight,ip.preg_no,d.name as dname,pr.ga,
l.mother_gvalue,l.mother_p1value,l.mother_p2value,l.mother_avalue,(l.mother_lvalue+pr.child_count) as living_all,
(l.mother_lvalue+pr.child_count+l.mother_avalue) as child_all,
p2.cid as mom_cid
from ipt_newborn ip
left outer join ipt i on i.an=ip.an
left outer join patient p on p.hn=i.hn
left outer join thaiaddress t on t.addressid=concat(p.chwpart,p.amppart,p.tmbpart)
left outer join sex s on s.code=p.sex
left outer join nationality n on n.nationality=p.nationality
left outer join labor l on l.an=ip.mother_an
left outer join an_stat a on a.an=ip.mother_an
left outer join patient p2 on p2.hn=a.hn
left outer join doctor d on d.code=l.labor_who
left outer join ipt_pregnancy pr on pr.an=ip.mother_an
where ip.an='4'
-
คงต้องสอบถาม อ.MN ครับ ว่า ตัว report นี้ รับ ส่ง parameter อะไร
แต่คิดว่า ไม่น่าจะใช้ AN ของแม่นะครับ เพราะถ้าคลอดทารกหลายคน จะสับสน
น่าจะใช้ HN , AN ของเด็กมากกว่า หรือใช้ Infant_id , labor_infant_id ???? ที่ identify ทารกได้
ดูแล้ว ข้อมูลทารก เก็บไว้หลายตารางเหมือนกัน
พบปัญหาว่า บางครั้งกด พิมพ์ใบเกิด ไม่มีอะไรเกิดขึ้น แต่บางครั้ง พิมพ์หน้าว่างเปล่า
และการใช้งาน HN link ของทารก ใช้งานอย่างไร เพราะลองกดดูแล้วไปเรียกหน้าต่าง งานเวชระเบียน ของ one stop service เลยงง ว่าต้องทำยัง ถึงจะถูกต้องครบถ้วนครับ (ไม่ได้ไปอบรมเรื่องงานห้องคลอด เลยตามไม่ค่อยทัน ;D)
-
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*,i3.* ,p.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
left outer join patient p on p.hn = i3.hn
where i1.ipt_labour_infant_id = xxx
-
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
where i1.ipt_labour_infant_id = xxx
ขอบคุณครับ
-
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*,i3.* ,p.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
left outer join patient p on p.hn = i3.hn
where i1.ipt_labour_infant_id = xxx
ขอบคุณครับ อ.MN
-
แนวคิดโจทย์ใบแจ้งเกิดต้องนำ ID เกิดมาเป็น Key หลัก ไม่นำ AN มาเป็น Key หลัก ในการทำ Report
-
ผมลองนำรายงานเข้าแล้วก็ขึ้นหน้ารายงานเปล่า ก็เลยเข้า show sql trace windows ดูว่าโปรแกรมส่งค่าอะไรให้กับ report ปรากฏว่าส่งค่า an = "4" ไปให้รายงาน ทั้งๆที่ คนไข้นั้น an = 520000972 ตามจริงน่าจะส่ง an ตัวนี้ไปให้รายงาน
-------------------------------------------------------------
Date Time Type Exec Time SQL Text
52-06-03 14:27:45.546 SQL 15 select script_dfm from reporttemplate where name = 'REPORT-LABOUR-INFANT-1'
-------------------------------------------------------------
Date Time Type Exec Time SQL Text
52-06-03 14:27:45.546 SQL 0
select ip.an,concat(p.pname) as p_name,p.lname,p.cid,s.name,n.name,p.birthday,ip.born_time,
concat(p.fathername,' ',p.fatherlname) as fnl,p.father_cid,concat(p.mathername,' ',p.motherlname) as mnl,
p.mother_cid,ip.birth_weight,ip.preg_no,d.name as dname,pr.ga,
l.mother_gvalue,l.mother_p1value,l.mother_p2value,l.mother_avalue,(l.mother_lvalue+pr.child_count) as living_all,
(l.mother_lvalue+pr.child_count+l.mother_avalue) as child_all,
p2.cid as mom_cid
from ipt_newborn ip
left outer join ipt i on i.an=ip.an
left outer join patient p on p.hn=i.hn
left outer join thaiaddress t on t.addressid=concat(p.chwpart,p.amppart,p.tmbpart)
left outer join sex s on s.code=p.sex
left outer join nationality n on n.nationality=p.nationality
left outer join labor l on l.an=ip.mother_an
left outer join an_stat a on a.an=ip.mother_an
left outer join patient p2 on p2.hn=a.hn
left outer join doctor d on d.code=l.labor_who
left outer join ipt_pregnancy pr on pr.an=ip.mother_an
where ip.an='4'
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*,i3.* ,p.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
left outer join patient p on p.hn = i3.hn
where i1.ipt_labour_infant_id = xxx
ตามที่ อ.MN ถึงว่าทำไมถึงส่ง 4 ไปให้รายงานตอนดูที่ show sql trace windows
-
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*,i3.* ,p.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
left outer join patient p on p.hn = i3.hn
where i1.ipt_labour_infant_id = xxx
ขอบคุณครับ อ.MN
ใครปรับและทดสอบแล้ว โพสให้หน่อยนะครับ จะเตรียมไว้ Up version ขอบคุณครับ
-
ปุ่มพิมพ์ ใบ เกิด ผมไม่ทำงานอ่ะครับ เวอร์ชั่น 3.52.5.6
กดแล้วไม่มีอะไรเกิดขึ้นเลยครับ ไม่ว่าจะ มีหรือไม่มี ฟอร์มรายงาน
-
มาแล้ววว ปรับรายงาน เดิม REPORT-LABOR-STANDARD ที่ห้องคลอดใช้พิมพ์ใน v.3.51.10.29b ที่ใช้อยู่ ให้สามารถพิมพ์ใบเกิดตาม version ใหม่ๆ ที่เปลี่ยนเป็น REPORT-LABOUR-INFANT-1 เป็น Daily build ก่อนแล้วกันครับ คิคิๆ ลองทดสอบดูก่อนครับ เพราะรอให้พี่ห้องคลอด comment กลับมาก่อนว่าต้องการข้อมูลไหนมาแสดงในรายงานเพิ่มเติม
-
ต้องเปลี่ยนคำสั่งใหม่ครับ ตารางหลักคือ ipt_labour_infant เงื่อนไข คือ ipt_labour_infant_id = xxx ครับ
ตัวอย่าง
select i1.*,i2.*,i3.* ,p.*
from ipt_labour_infant i1
left outer join ipt_labour i2 on i2.ipt_labour_id = i1.ipt_labour_id
left outer join ipt i3 on i3.an = i2.an
left outer join patient p on p.hn = i3.hn
where i1.ipt_labour_infant_id = xxx
ขอบคุณครับ อ.MN
ใครปรับและทดสอบแล้ว โพสให้หน่อยนะครับ จะเตรียมไว้ Up version ขอบคุณครับ
รอก่อนนะครับ.... ;D ;D :'( :'( :'(
-
มีใครเสร็จแล้วบางครับขอความอนุเคราะหน่อยครับ