แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - golf_win

หน้า: 1 ... 3 4 [5] 6 7 ... 70
201
ลองใช้ระบบ sys_vn_script ครับช่วยได้เยอะเลย code ก็ประมาณนี้ครับ

 {==================== check BW ====================}
   bw:= getsqldata('select bw from opdscreen '+
           ' where vn="'+fvn+'" and bw>0 ');

   age_y:= getsqldata('select age_y from vn_stat '+
           ' where vn="'+fvn+'" ');

   if (age_y<6) and (bw>50) then
      begin
          showmessage('ÃкºµÃǨÊͺ¡Òúѹ·Ö¡¹éÓ˹ѡ¾ºÇèÒ·èÒ¹ÍÒ¨¨ÐºÑ¹·Ö¡¹éÓ˹ѡ¢Í§¼Ùé»èǼԴ ¡ÃسҵÃǨÊͺ¡Òúѹ·Ö¡¤èÒ¹éÓ˹ѡÍÕ¡¤ÃÑ駤ÃѺ [ ¡ÅØèÁà´ç¡ÍÒÂØ < 6 »Õ ]');
          showmessage('â»Ã´µÃǨÊͺ¡Òúѹ·Ö¡¹éÓ˹ѡÍÕ¡¤ÃÑ駤ÃѺ');
      end;
   if (age_y>5) and (bw>149) then
      begin
          showmessage('ÃкºµÃǨÊͺ¡Òúѹ·Ö¡¹éÓ˹ѡ¾ºÇèÒ·èÒ¹ÍÒ¨¨ÐºÑ¹·Ö¡¹éÓ˹ѡ¢Í§¼Ùé»èǼԴ ¡ÃسҵÃǨÊͺ¡Òúѹ·Ö¡¤èÒ¹éÓ˹ѡÍÕ¡¤ÃÑ駤ÃѺ [ ¡ÅØèÁÍÒÂØ >= 6 »Õ ]');
          showmessage('â»Ã´µÃǨÊͺ¡Òúѹ·Ö¡¹éÓ˹ѡÍÕ¡¤ÃÑ駤ÃѺ');
      end;

{==================== check height ====================}
   if Getsqldata('select count(vn) as cc from opdscreen where height>220 and vn="'+fvn+'"')>0 then
        begin
          showmessage('ÃкºµÃǨ¾ºÇèÒÁÕ¡Òúѹ·Ö¡¤èÒ ***ÊèǹÊÙ§*** ¤ÅÒ´à¤Å×è͹ ¡ÃسҵÃǨÊͺ¡Òúѹ·Ö¡¢éÍÁÙÅ  ÊèǹÊÙ§ ÍÕ¡¤ÃÑ駤ÃѺ');
          showmessage('¡ÃسҵÃǨÊͺ¡Òúѹ·Ö¡¢éÍÁÙÅ ***ÊèǹÊÙ§*** ÍÕ¡¤ÃÑ駹ФÃѺ');
        end;

203
เห็นด้วยอย่างยิ่งครับ  ;) ;)

204
11275 โรงพยาบาลเจ็ดเสมียน จ.ราชบุรี ครับ  ;D ;D

206
@ โรงพยาบาลเจ็ดเสมียน จังหวัดราชบุรี ไม่ได้เหมือนกันครับ http://csmhos.thaiddns.com:3128/public.php?service=files&t=e14393c0f21ad354b4d6709d1e8cc05a

ถ้าไม่รบกวนทางเมล์ siripong.bis@gmail.com ก้ได้ครับ
ผม dl ได้ปกตินะครับ

207
ลอง dl ที่นี่ครับ ผมเก็บสะสมเอาไว้
http://csmhos.thaiddns.com:3128/index.php/s/SvO89BvU55SFOxp

208
ขออนุญาติในการช่วยสื่อสารนะครับ
email ของคุณ Kitti Limsongtum [GAP] :: thegapfather@gmail.com

209
var
  fvn,fcomputername,fdepartment,fhn : string;
  tc : TClientDataset;

begin
 // showmessage('PRE-Script');

  fvn:= GetGlobalValue('VN');
  fcomputername := GetGlobalValue('CURRENT_COMPUTER');
  fdepartment := GetGlobalValue('CURRENT_DEPCODE');

if fdepartment='035' then // 035 คือคลินิคอายุกรรม
  begin
     fhn:=getsqldata('select hn from ovst where vn = "'+fvn+'"');

    if getsqldata('select count(l2.vn) as cc from lab_order l1 ' +
    ' left outer join lab_head l2 on l2.lab_order_number = l1.lab_order_number '+
    ' where l2.hn = "'+fhn+'"  '+
    ' and l2.order_date between "2014-10-01" and now() '+
    ' and l1.lab_items_code = "102" and l1.lab_order_result>0  ')>0  then
    begin
      showmessage('มีการตรวจ TC แล้ว !');
    end;

   end;
end;

211
ลองตรวจสอบตามนี้ครับ

212
นอกเรื่อง / Re: !!! มาแล้วครับ การประชุมวิชาการ 2558
« เมื่อ: กุมภาพันธ์ 26, 2015, 11:50:09 AM »
ทะเล ครับ

213
Development / Re: ขอเพิ่มการบันทึก Pain Score ที่หน้าคัดกรอง
« เมื่อ: กุมภาพันธ์ 25, 2015, 09:23:46 AM »
ดันครับอยากได้ pain score ในระบบคัดกรองครับ

214
ตามภาพที่วงสีแดงเอาไว้เมื่อตั้งค่าแล้วที่ระบบส่งตรวจก็ยังไม่เลือกประเภทใน/นอกเวลาให้อัตโนมัติครับ

215
พี่โก้ทำไว้เมื่อนานมาแล้วครับ

216
มิกล้าครับ เรื่องความดันโลหิตคงต้องให้ท่านเทพทั้งหลายแนะนำครับ ผมกลัวว่าระบบจะมีปัญหาเวลา run script ครับ  ::) ::)

217
รายงานเก่าที่อ.ท่านใดทำไว้นานแล้วครับ ผมก็จำไม่ได้ ขออภัยมา ณ โอกาสนี้ครับ
อย่าลืมแก้ไข lab_items_code นะครับ

set @d1 = '2013-10-01';
set @d2 = '2014-03-31';

select *
from
(select v.hn,concat(p.pname,p.fname,space(3),p.lname) as ptname, v.aid,
(select lo.lab_order_result from lab_order lo
left outer join lab_head lh on lh.lab_order_number=lo.lab_order_number
where lo.lab_items_code=66 and lh.hn=v.hn
and lh.order_date between @d1 and @d2
order by lh.report_date desc,lh.report_time desc limit 0,1) as fbs
,
(select lo2.lab_order_result from lab_order lo2
left outer join lab_head lh2 on lh2.lab_order_number=lo2.lab_order_number
where lo2.lab_items_code=66 and lh2.hn=v.hn
order by lh2.report_date desc,lh2.report_time desc limit 1,1) as fbs1
,
(select lo3.lab_order_result from lab_order lo3
left outer join lab_head lh3 on lh3.lab_order_number=lo3.lab_order_number
where lo3.lab_items_code=66 and lh3.hn=v.hn
order by lh3.report_date desc,lh3.report_time desc limit 2,1) as fbs2
from vn_stat v
left join patient p on p.hn = v.hn
where v.vstdate between @d1 and @d2
and v.hn in (select hn from clinicmember where clinic="001")
group by v.hn
order by v.aid desc ,p.pname,p.fname,p.lname
) as ttemp
where fbs between 70 and 130 and fbs1 between 70 and 130 and fbs2 between 70 and 130

218
ลอง check&repair table ครับ

220
น่าจะเป็น function ที่เก็บค่าใน HOSxP XE4 นะครับ

221
คลินิกพิเศษ--->คลินิกเบาหวาน ครับ

222
ใส่ rehab_code ที่ตาราง physic_items field f43_rehab_code ครับ
และอย่าลืม upstructure กับ version ใหม่ๆ เช่น 3.58.1.23 ครับ

223
ทดสอบแล้วพบว่าปัญหาเป็นตามที่แจ้งครับ ถ้าถอด smartcard ก็จะเลือกได้ตามปกติครับ

224
3.58.1.23b ทดสอบแล้วยังสามารถสั่งได้ทั้ง 2 ที่ครับ  :'( :'(

225
เลือกแสดงผู้ป่วยที่ส่งไปห้อง---> ALL ครับ ถึงจะดึง HN ที่ visit ในวันแต่ไม่ได้ถูกส่งมาที่ห้อง ER ได้ครับ

226
physic_items.f43_rehab_code ครับ ใส่รหัส rehab 7 หลักเข้าไปครับ

228
ถ้าไม่ได้ใช้ระบบ inventory ก็ต้องลบช่องเบิกยาจาก ออกไปครับ

229
ตอนสั่งยาได้เลือกเบิกยาจาก... หรือป่าวครับ

230
รายการยาที่ตั้งค่าหมด stock ห้ามสั่งใช้ ยังสั่งใช้ได้ที่ระบบงานทันตกรรม และระบบ addchart ที่ระบบผู้ป่วยในครับ

231
upgrade structure หรือยังครับปกติ store procedure จะสร้างเวลา upgrade structure ครับ

232
ตอนนี้ผมใช้ Version 3.58.1.1 ต้องลด Version ลงไหมครับ
ไม่ต้องลด Version ครับแต่เพิ่มตัว Hosmy.exe-->(อย่าลืม rename ก่อนนะครับ) ตาม v. ที่อ.Sukjai post ตาม link ครับ

233
ลองตัวนี้ครับ Colasoft Capsa Enterprise ใช้งานได้ดีเลยครับ

234
กด OK แล้วส่งออกต่อไปเลยครับ ข้อมูลออกปกติครับ

236
person_vaccine,epi_vaccine,provis_vcctype
รหัส J11,J12 ครับ

237
ลองแบบนี้ครับ

select v.vstdate,p.birthday,timestampdiff(year,p.birthday,v.vstdate) as count_year,
timestampdiff(month,p.birthday,v.vstdate) as count_month,timestampdiff(day,p.birthday,v.vstdate) as count_day
from vn_stat v
left outer join patient p on p.hn=v.hn
where v.hn=xxxxxxx
order by vstdate desc

238
select o.hn,o.an,concat(p.pname,' ',fname,'  ',lname) as ptname,rx.qty,rx.sum_price,p.drugallergy,o.age_y,rx.rxdate,
concat(du.name1," ",du.name2," ",du.name3) as drugu,concat(spu.name1," ",spu.name2," ",spu.name3) as spus,
concat(d.name," ",d.strength," ",d.units) as drugname
from an_stat o
left outer join patient p on p.hn=o.hn
left outer join opitemrece rx on rx.an=o.an
left outer join drugitems d on d.icode=rx.icode
left outer join sp_use spu on spu.sp_use=rx.sp_use
left outer join drugusage du on du.drugusage=rx.drugusage
where o.an='560000366' and rx.icode like "1%"
and item_type like 'H'
order by rx.icode

239
ขอบคุณมากครับ โดนใจจริงๆ ;D ;D

240
แจ้งปัญหา / ขอความช่วยเหลือ / Re: NCD ไม่ผ่าน
« เมื่อ: มกราคม 14, 2015, 13:07:22 PM »
ติดปัญหาซ้ำซ้อนใช่มั้ยครับ

241
มาชุดใหญ่เลยขอบคุณมากครับ  :D :D
ขอเพิ่มประเภทความเสี่ยงตามภาพที่ 2 ให้แสดงในภาพที่ 1 ด้วยครับ(เพิ่มช่องแสดงผลครับ) และอยากให้บังคับการบันทึกประเภทความเสี่ยงครับ ถ้าไม่บันทึกไม่ให้ save ครับ

242
กำหนด active_status ของ ตาราง dttm ให้เป็น Y ครับ

243
Development / Re: คลินิกวัณโรค
« เมื่อ: มกราคม 13, 2015, 13:30:51 PM »
ยังเท่าเดิมครับ

244
ลองหาใน web thcc.or.th จะมีรหัสมาตรฐานของ 43 แฟ้มให้ครับ

245
อย่างนั้นก็ต้องนำเข้า files snapshot ไปที่ตาราง sks_drug_code ครับ

247
ลองลบลงใหม่ครับ แค่ตัวโปรแกรม ลงตัว full ก่อน แล้วค่อยลงตัว update ล่าสุดครับ

248
มีภาพประกอบปัญหาที่พบมั้ยครับ

249
tpu_code--->select * from tmt_tpu_code
fsn--->select * from sks_drug_code

250
upgrade structure หรือยังครับ

หน้า: 1 ... 3 4 [5] 6 7 ... 70