ผู้เขียน หัวข้อ: รบกวนสอบถาม ทำไม Report CUSTOM-IPD Dischage Summary ของผมรายการยากลับบ้าน ไม่ออก  (อ่าน 2136 ครั้ง)

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

tokto_cm

  • บุคคลทั่วไป
รบกวนสอบถาม ทำไม Report CUSTOM-IPD Dischage Summary ของผม รายการยาผู้ป่วยในกลับบ้าน ออกเป็นบางราย บางรายก็ไม่ออก  ต้องไปปรับตรงจุดไหนครับ

ขอบคุณมากครับ

tokto_cm

  • บุคคลทั่วไป
ดำน้ำเอานะครับ เพื่อเป็นประโยขน์แก่ท่านอื่นบ้าง
ใน Report CUSTOM-IPD Dischage Summary  ตรง  onCreate แก้ให้ตรงตามที่ผมขีดเส้นใต้นะครับ
begin
ChangeDBPipeLineLink1SQL('select ip.icd10,ip.diagtype,ic.name from iptdiag ip left outer join icd101 ic on ip.icd10=ic.code where an="'+DBPipeline['an']+'" order by diagtype');
ChangeDBPipeLineLink2SQL('select inu.ipt_oper_code,io.name from ipt_nurse_oper inu  '
+'left outer join ipt_oper_code io on inu.ipt_oper_code=io.ipt_oper_code  '
+'where inu.an="'+DBPipeline['an']+'"');
ChangeDBPipeLineLink3SQL('select d.name,d.oldcode,d.units,op.qty from drugitems d '
+ ' left outer join opitemrece op on d.icode=op.icode '
+ ' where op.an="'+DBPipeline['an']+'" and op.item_type="H"');
end;