BMS-HOSxP Community

HOSxP => Report Exchange => ข้อความที่เริ่มโดย: Bluebird ที่ กันยายน 04, 2012, 16:17:06 PM

หัวข้อ: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: Bluebird ที่ กันยายน 04, 2012, 16:17:06 PM
แพทย์แผนไทยต้องการ พิมพ์ OPDCard ออกมา ด้วย ที่ไหนมีใช้แล้วบ้างครับ
หัวข้อ: Re: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: Bluebird ที่ กันยายน 06, 2012, 15:23:26 PM
จาก Script เดิม ดึงจาก health_med_list
แต่ปัจจุบัน จะดึงจาก health_med_service ต้องแก้ไขแบบไหนครับ จาก code
 ChangeDBPipeLineLink5SQL('select p1.vn as vn,p1.physic_items_id as item_list,p1.doctor as doctor_code, '+
     'p2.name as item_name,d.name as doctor_name, '+
     'concat("[¡ÒÂÀÒ¾] ",if(p2.name is null," - ",p2.name),"  #  ",if(d.name is null," - ",d.name)) as PH_name '+
     'from physic_list p1 '+
     'left outer join physic_items p2 on p2.physic_items_id = p1.physic_items_id '+
     'left outer join doctor d on d.code = p1.doctor '+
     'limit 0 '+
     'union '+
     'select h1.vn as vn,h1.item_id as item_list,h1.doctor as doctor_code, '+
     'h2.name as item_name,d.name as doctor_name, '+
     'concat("[á¼¹ä·Â] ",if(h2.name is null," - ",h2.name),"  #  ",if(d.name is null," - ",d.name)) as PH_name '+
     'from health_med_list h1 '+
     'left outer join health_med_items h2 on h2.item_id = h1.item_id '+
     'left outer join doctor d on d.code = h1.doctor '+
     'limit 0 ');
หัวข้อ: Re: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: Terminator2015 ที่ กันยายน 06, 2012, 16:47:37 PM
 ;D ผมปรับแก้ประมาณนี้ครับ
ChangeDBPipeLineLink6SQL('select p1.vn as vn,p1.physic_items_id as item_list,p1.doctor as doctor_code, '+
     'p2.name as item_name,d.name as doctor_name, '+
     'concat("[กายภาพ] ",if(p2.name is null," - ",p2.name),"  #  ",if(d.name is null," - ",d.name)) as PH_name,concat(" ประเภท : ",pg.physic_group_name) as health_med_service_operation_time_minute '+
     'from physic_list p1 '+
     'left outer join physic_items p2 on p2.physic_items_id = p1.physic_items_id '+
     'left outer join doctor d on d.code = p1.doctor '+
     'left outer join physic_group pg on pg.physic_group_id=p1.physic_group_id '+
     'where vn = "'+DBPipeline['vn']+'" '+
     'union '+
     'select h2.vn as vn,h3.health_med_operation_item_name as item_list,h1.health_med_provider_id as doctor_code, '+
     '"" as item_name,h1.health_med_provider_id as doctor_name, '+
     'concat("[แผนไทย] ",if(h3.health_med_operation_item_name is null," - ",h3.health_med_operation_item_name),"  #  ",if(h4.health_med_provider_full_name is null," - ",h4.health_med_provider_full_name)) as PH_name,concat("ใช้เวลา : ",h1.health_med_service_operation_time_minute," นาที") as health_med_service_operation_time_minute '+
     'from health_med_service_operation h1 '+
     'join health_med_service h2 on h2.health_med_service_id=h1.health_med_service_id '+
     'join health_med_operation_item h3 on h3.health_med_operation_item_id=h1.health_med_operation_item_id '+
     'join health_med_provider h4 on h4.health_med_provider_id=h1.health_med_provider_id '+
     'where h1.health_med_operation_type_id="2" and vn = "'+DBPipeline['vn']+'" ');
หัวข้อ: Re: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: Terminator2015 ที่ กันยายน 06, 2012, 20:54:28 PM
 ;D ได้วิชากับ อ.โก้ มาครับ อิอิ  ผมเพิ่มหัตถการทันตกรรม+Dental Note เข้าไปด้วยครับ (งาน Audit ขอมา) ในช่องหัตถการ จากเดิมมีแค่หัตถการจาก OPD และ ER เท่านั้น  ลองเอาไปประยุกต์ดูครับ (ของผมเป็น A4)
หัวข้อ: Re: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: udomchok ที่ กันยายน 06, 2012, 23:58:38 PM
;D ได้วิชากับ อ.โก้ มาครับ อิอิ  ผมเพิ่มหัตถการทันตกรรม+Dental Note เข้าไปด้วยครับ (งาน Audit ขอมา) ในช่องหัตถการ จากเดิมมีแค่หัตถการจาก OPD และ ER เท่านั้น  ลองเอาไปประยุกต์ดูครับ (ของผมเป็น A4)
อู้ย....นี่ฝีมือท่านล้วน ๆ เลยครับ
ที่ไปฟังผมนั่น ยังไม่ได้ลงลึกขนาดนี้....
หัวข้อ: Re: OPDCard แพทย์แผนไทย
เริ่มหัวข้อโดย: Terminator2015 ที่ กันยายน 07, 2012, 07:55:59 AM
 ;D ปรับเพิ่ม ซี่ฟัน ,ผู้ช่วย และ Dental Note ในงานทันตกรรม    อื่นๆ วันที่มารับบริการวันแรก ผู้ส่งตรวจ  ;D