BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: tokto_cm ที่ มีนาคม 30, 2009, 14:22:38 PM
-
รบกวนสอบถาม ทำไม Report CUSTOM-IPD Dischage Summary ของผม รายการยาผู้ป่วยในกลับบ้าน ออกเป็นบางราย บางรายก็ไม่ออก ต้องไปปรับตรงจุดไหนครับ
ขอบคุณมากครับ
-
ดำน้ำเอานะครับ เพื่อเป็นประโยขน์แก่ท่านอื่นบ้าง
ใน 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;