แสดงกระทู้

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.


Topics - Bluebird

หน้า: 1 ... 3 4 [5] 6 7 ... 10
201
1.  มูลค่าการจัดซื้อยาในรอบ 1 ปีการเงิน ( ตามราคาทุน )

2.  มูลค่ายาที่จ่ายให้กับผู้ป่วย (ทั้ง OPD & IPD ) ในระบบ ประกันสุขภาพถ้วนหน้า และประกันสังคม ( ตามราคาทุน )

3.  รายรับจากการขายยา ในสิทธิข้าราชการ ประกันเอกชน จ่ายเงินเอง และ อื่น ๆ ( ตามราคาขาย )

202
ระบบงานบัญชี กด HN ไม่ขึ้น แต่จะขึ้น Person ID

203
ปัญหาจากการใช้เครื่องพิมพ์ Intermic กับการตั้งค่าขนาดกระดาษ
ปัญหามีอยู่ว่า
พิมพ์ใบนัดออกมาขนาดกระดาษไม่ตรงกับที่ได้ตั้งค่าไว้
เช่น ขนาดกระดาษกว้าง  9 cm ยาว 10.2 cm
        ตั้งค่าใน  driver printer แล้ว
        ตั้งค่าใน Report Desingner แล้ว
        แต่ออกมาไม่ตรง

ที่ไหนเคยใช้เครื่องพิมพ์ Intermic ฝากแนะนำด้วยครับ 
ขอบคุณครับ

204
การเขียน SQL Script / ต้องการกรองผล HbA1C < 7
« เมื่อ: สิงหาคม 02, 2010, 22:06:09 PM »
ทำคำสั่งออกมาตามตัวอย่าง
select c.hn,l2.lab_order_result from lab_head  l1
left outer join clinicmember c on c.hn=l1.hn
left outer join lab_order l2 on l2.lab_order_number=l1.lab_order_number
where  l2.lab_items_code="193" and c.clinic="001" and
l1.order_date between "2009-10-01" and "2010-06-30" and l2.lab_order_result < "7"

แต่ผลที่ดึงมา ไม่ไช่ เพราะ ค่า lab_order_result  ไม่ใช่ตัวเลขทำให้ lab_order_result  ที่มีค่า 11 12 13 14 15 16 ออกมาด้วย
ทำไงดีครับ

205
ผมต้องการทำคำสั่งอยู่ 2 อย่าง คือ หาจำนวนครั้ง  กับจำนวนคน (เช่นมากกว่า 1 ครั้งในเดือน แต่เอาแค่ 1)

หาจำนวนครั้ง
select count(l1.vn) as visitcount from lab_head  l1
left outer join clinicmember c on c.hn=l1.hn
left outer join lab_order l2 on l2.lab_order_number=l1.lab_order_number
where  l2.lab_items_code="193" and c.clinic="001" and
l1.order_date between "2008-10-01" and "2009-09-30" and l2.lab_order_result >="0"

แต่หาจำนวนคน ยังไม่ได้

206
อยากให้ RB1T02 โชว์ ชื่อผู้แก้ไขข้อมูล และวันที่แก้ไขล่าสุด
ดู ๆ แล้วน่าจะเอาค่าจาก patient_log แต่จะใช้อะไรเป็นตัวเชื่อมแทนครับ  HN กับ....

207
ความหมาย Phamacology  แต่ละกลุ่มคือ อะไร

208
เพิ่มปุ่มฉีดวัคซีน หน้าจอ ซักประวัติและห้องทำงานแพทย์ OPD ด้วยครับ

ในส่วน ER ไม่มีปัญหาครับ มีอยู่แล้ว

ที่สำคัญให้ทั้งหน้าจอ ER และ OPD สามารถดูประวัติการได้รับวัคซีนด้วยครับ

209
มีวิธีการเปลี่ยนหน่วย Report จากนิ้วเป็นเซนติเมตร  ในระบบ Report Designer

210
ขอให้ อ.ชัยพร เพิ่มปุ่มวัคซีนในหน้าจอ ตรวจแพทย์ และซักประวัติด้วยครับ
เนื่องจากจุดฉีดยา-ทำแผล ไม่ได้เข้าระบบ อุบัติเหตุ-ฉุกเฉินครับ
แต่ไปเข้าหน้าจอ ตรวจแพทย์แทน ป่ม Vaccine ยังไม่มีครับ

211
System Message
SQL Error: Duplicate entry '15' for key 'PRIMARY'
select * from ovst_vaccine where vn = '530628232150'

ไปดูตาราง ovst_vaccine ปรากฏว่า ovst_vaccine_id มีค่าถึง 1128 แล้ว
ซึ่งลงจากหน้าจอในระบบบัญชีไม่มีปัญหา

212
นอกเรื่อง / e-Radio ไม่สามารถใช้งานได้
« เมื่อ: กรกฎาคม 15, 2010, 14:17:46 PM »
e-Radio ไม่สามารถใช้งานได้
ที่ไหนมีการใช้ e-radio บ้าง

การใช้ internet  เป็นแบบกำหนด Proxy 
ใช้งาน Internet ไม่มีปัญหา แต่จะใช้ e-radio ไม่ได้ ขึ้นว่า Unable to connect to server
ไม่มีความรู้เรื่องโปรแกรม e-radio เนื่องจากไม่เคยไปอบรมเรื่องนี้เลย 
ถ้าใช้ adsl ต่อตรงไม่ผ่าน proxy ใช้งานได้

ขอคำแนะนำในการกำหนดค่าให้ proxy ด้วยครับ

213
ทำไมสถานภาพการจำหน่าย และวิธีการจำหน่าย ในแฟ้ม IPD เป็น 0
ทั้งที่ตอนลงการจำหน่ายค่าอื่นที่ไม่ใช่ 0

ตามรูปที่แนบ

214
ฉีดวัคซีน Flu, MEASLES, Rabies Vaccine, TT ที่ ER
ใช้หน้าจอไหนครับในการลงข้อมูล เพื่อที่จะให้ข้อมูล ลงไปสู้ตาราง ovst_vaccine ได้

215
รายงานจำนวนวันที่เข้ารับการรักษาตัวในโรงพยาบาล
ซึ่งผมยังงงกับโจทย์นี้อยู่ มีที่ไหนพอที่จะทราบรายละเอีดหรือ มีรายวานตัวนี้แล้วบ้างครับ

216
ส่งออก 12 ไฟล์ ตาราง ODX ฟิลด์ Diag รหัส U***  มาแค่ U อย่างเดียว
ทำให้ เกิดข้อมูลการวินิจฉัยไม่ถูกต้อง
ที่ไหนเจอแบบนี้มาบ้าง
มีวิธีแก้อย่างไรครับ
ปัจจุบันใช้เวอร์ชั่น 3.53.6.9 อยู่ครับ

217
ดูผลการตรวจสอบข้อมูล OP ใหม่ล่าสุดหรือยัง
วันที่ 29 พฤษภาคม 2553 ผมได้ดูผลการตรวจสอบข้อมูลที่ส่งไปล่าสุด เกิด ไม่สมบูรณ์หมดเลย
รหัส error ที่เจอ null มันคืออะไร งงเลย
ทั้งที่ วันที่ 26 พฤษภาคม 2553 ที่ผ่านก็ยังมีไฟล์ที่สมบูรณ์อยู่

218
ดูหัวข้อแล้วอาจงงใช่ไหม
ปัญหามีอยู่ว่า
เดิม ก่อนที่จะมีการกำหนด icode ให้กับ Vaccine แต่ละตัวให้เชื่อมโยงกับเวชภัณฑ์
เด็กที่มาฉีดวัคซีน  
     พยาบาลจะสั่งเวชภัณฑ์  หน้าจอสั่งเวชภัณฑ์ก่อนโดยใช้สูตรที่เขากำหนดเอง  แล้วค่อยไปเลือกรายการวัคซีนในหน้าจอบัญชี ส่งเสริมสุขภาพ
     ผลไม่มีปัญหา

ปัจจุบัน หลังจากมีการกำหนด icode ให้กับ Vaccine แต่ละตัวให้เชื่อมโยงกับเวชภัณฑ์
     พยาบาลจะสั่งเวชภัณฑ์  หน้าจอสั่งเวชภัณฑ์ก่อนโดยใช้สูตรที่เขากำหนดเอง  แล้วค่อยไปเลือกรายการวัคซีนในหน้าจอบัญชี ส่งเสริมสุขภาพ
    มีผลทำให้ รายการยาหรือวัคซีนในหน้าเวชภัณฑ์  ขึ้นมาซ้ำอีกตัวหนึ่ง ( มาจากการเชื่อม icode กับวัคซีน )

ขอความคิดเห็นการใช้งานจาก ท่านที่เคยลองใช้ด้วยครับว่าควรทำอย่างไร

ความเห็นของผม    พยาบาลไม่ต้องไปลงในหน้าสั่งเวชภัณฑ์ แล้ว  แต่ลงแค่หน้าวัคซีน ก็ได้แล้ว  ถูกไหมครับ อาจารย์


219
ตัวเลือก ตาราง anc_service บางตัวไม่ใช่ Vaccine ลบออกได้ไหม
เนื่องจาก
ลองตรวจสอบดูไฟล์ที่ถูกส่งออก มีผลกระทบต่อ ไฟล์ EPI
คือ กรณีที่คนผู้มารับบริการหญิงตั้งครรภ์ที่มาตรวจ
พยาบาลได้เลือกตัวเลือกบางตัวที่ไม่ใช่ Vaccine เช่น ตรวจดูแลก่อนคลอดครั้งที่ 1 และ ตรวจเลือดครั้งที่ 1 จะทำให้ถูกส่งออกไฟล์ EPI มาด้วยซึ่งทำให้ record ที่ถูกส่งออก ใน file EPI  จะไม่มีค่าใน ฟิลด์ VCCTYPE เนื่องจากรายการดังกล่าวไม่ใช่ Vaccine
แต่ถ้าตัวเลือกที่เป็น Vaccine แล้ว และได้กำหนดค่า export_Vaccine  ในตาราง anc_service จะออกมาครบ

ดังนั้น ถ้าลบ record ตัวเลือกที่ไม่ใช่ Vaccine ออก จะมีผลกระทบอะไรไหมครับ

220
จะสั่งเครื่องพิมพ์ OPDCARD ปัจจุบันรุ่นไหนดี  ระหว่าง HP CANON ระบุรุ่นด้วยครับ

221
ผล LAB หน้าจอบัญชี 2 กับ ข้อมูลคลอด ไม่ตรงกัน
อยากทราบว่า ผล LAB จากหน้าจอ ข้อมูลคลอด เชื่อมกับ ผล LAB บัญชี 2 หรือป่าว
เพราะสังเกตค่าที่ผ่านมา ไม่ค่อยตรงเลย
หรือว่าผล LAB จาก หน้าจอข้อมูลคลอด มาจากไหน

222
รายการยาที่แพ้ที่อยู่ในกลุ่มเดียวกัน ไม่เข้าทั้งหมด
บางรายการยาไม่เข้ามา
กำหนดตามรูปแล้ว
ไม่ทราบว่าที่ทำไปถูกต้องหรือยัง หรือต้องไปกำหนดตรงไหนอีก

223
กำหนดชื่อผู้ทำ X-RAY ได้จากหน้าไหนครับ

224
แก้ข้อมูลการ Diag แล้วปรากฏหน้าต่าง ดังรูป
ปัจจุบันใช้ V.53.4.9

225
มีที่ไหนมีใช้แล้วบ้างครับ

226
Report Exchange / ใบนัดกับ ข้อความการปฏิบัติตัว
« เมื่อ: กุมภาพันธ์ 23, 2010, 14:15:31 PM »
ตามรูปที่ได้แนบไป  ใบนัด ในส่วนการปฏิบัติตัว ไม่สามารถพิมพ์ออกมา ได้หลายรายการ จะพิมพ์เรื่องการปฏิบัติตัวแค่รายการเดียวเอง ทั้ง ๆ ที่ได้เลือกการปฏิบัติตัวหลายรายการแล้ว
ไปดูฟิลด์ note1 ในตาราง oapp ก็เก็บแค่รายการเดียวเอง แต่อยากให้ขึ้นหลายรายการ ตามที่เลือกไว้

227
สาเหตุการเชื่อมต่อ ล้มเหลว บางเวลา  ไม่ทราบว่าเกิดจากสาเหตุใดครับ
อาการ เท่าที่สังเกตทุกวันช่วง 6 โมงเย็นการเชื่อมต่อจะหลุดบ่อยมากเลยครับ สาเหตุจากอะไรผมยังหาไม่เจออีกครับ
แต่ Internet ใช้งานได้ปกติ

228
แจ้งปัญหา / ขอความช่วยเหลือ / ใส่รูปไม่ได้
« เมื่อ: กุมภาพันธ์ 09, 2010, 09:45:32 AM »
หลังจากที่มีการ Update Version เป็น version 3.53.2.XX  ไม่สามารถที่จะใส่รูปได้ ฟ้องตามรูป
อยากทราบว่าเกิดจากอะไรครับ

229
MySQL / ฝากช่วยดู My.cnf ว่า set ค่าถูกต้องหรือเปล่าครับ
« เมื่อ: กุมภาพันธ์ 04, 2010, 14:05:08 PM »
ฝากช่วยดู My.cnf ว่า set ค่าถูกต้องหรือเปล่าครับ
ที่ผมตั้ง RAM ที่ใช้ 8GB
[client]
port      = 3306
socket      = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port      = 3306
socket      = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 1024M
max_allowed_packet = 512M
table_cache = 500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 1024M
thread_cache = 8
query_cache_size= 512M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_connections = 1000

server-id   = 1

innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 256M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
innodb_flush_method=O_DIRECT
innodb_doublewrite =0
innodb_support_xa =0
innodb_open_files = 1600
innodb_locks_unsafe_for_binlog=1
join_buffer_size = 2M
concurrent_insert = 2
max_heap_table_size = 128M
log_bin_trust_function_creators = 1


[mysqldump]
quick
max_allowed_packet = 256M
allow-keywords

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
default-character-set=tis620

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout


230
เปิดใช้ทุกครั้ง
ปรากฏข้อความตามรูป
สาเหตุเกิดจากอะไรครับ
แต่สามารถเข้าโปรแกรมได้ครับ

231
ทำไมการเชื่อมต่อหลุดบ่อยมากครับ มีสาเหตุจากอะไรบ้างครับ ซึ่งพึ่งมาเป็นเมื่อ 2-3 วันนี้เองครับ

232
ตั้งแต่ที่ใช้ Version 3.53.1.5 ขึ้นไป ระบบลงนัดคนไข้ สั่งครั้งเดียว แต่ออกมาหลายครั้ง
ไม่ทราบว่าต้องไปกำหนดหรือ set ค่าตรงไหนเพิ่งหรือเปล่า

233
ไฟล์ SERVICE ทำไม ช่อง INSTYPE ขึ้นสีแดง 
ปรับแก้ในช่องไหนครับ หรือค่า รหัสสิทธิการรักษาผิดครับ

234
มีวิธีป้องกันการเลือก คนไข้ซักประวัติหรือแพทย์ตรวจผิด Visit กรณีมามากกว่า 1 ครั้งในวันเดียวกันอย่างไร
อย่างเช่น
คนไข้มาขูดหินปูนช่วงเช้า  พอช่วงบ่ายมาที่ ER หรือตรวจอย่างอื่นอีกครั้ง ห้องบัตรก็ส่งตรวจใหม่
แต่เมื่อพยาบาลเรียก HN มาซักประวัติ หรือแพทย์ตรวจ ปรากฏ HN  2 ครั้ง จะแก้ปัญหาอย่างไรเพื่อไม่ให้พยาบาลหรือแพทย์เรียก vn ผิด

235
เภสัช ฝากถามว่า
ในส่วนรายการยาที่แพ้ 
ถ้าเราใช้ปุ่ม บันทึกยาทุกตัวในกลุ่ม ชื่อยาที่อยู่ในกลุ่ม มันจะเข้ามา แต่บางตัวก็ไม่เข้าทั้ง ๆ ที่อยู่กลุ่มเดียวกัน
และ รายชื่อยาที่เข้าไป มันจะเข้ามาพร้อมกับ อาการที่แพ้ยามาด้วย
ทำให้เภสัชไม่รู้ว่า ยาที่ผู้ป่วยแพ้จริงคือยาอะไร (เพราะว่า เมื่อเรากดปุ่ม บันทึกยาทุกตัวในกลุ่ม จะเข้ามาหมด)

236
การบันทึกกลุ่มยา ในบัญชีรายการยา สำหรับลงบันทึกการแพ้ยา
บางตัวลงบันทึกในกลุ่มเดียวกันแล้ว แต่ในส่วนการแพ้ยาก็ยังไม่ขึ้นรายการยาบางรายการ ที่อยู่ในกลุ่มเดียวกัน
ไม่ทราบว่าต้องไป Set ตรงไหนอีกครับ

237
การบันทึกกลุ่มยา ในบัญชีรายการยา สำหรับลงบันทึกการแพ้ยา
บางตัวลงบันทึกในกลุ่มเดียวกันแล้ว แต่ในส่วนการแพ้ยาก็ยังไม่ขึ้นรายการยาบางรายการ ที่อยู่ในกลุ่มเดียวกัน
ไม่ทราบว่าต้องไป Set ตรงไหนอีกครับ

238
ปัญหามีอยู่ว่า
หญิงตั้งครรภ์ ANC ของสถานีอนามัย  แต่มาเจาะเลือดที่โรงพยาบาล 
จะถือว่า Case นี้เป็น Case ของ สถานีอนามัย หรือโรงพยาบาลครับ

239
ตารางเก็บการตรวจครรภ์ ที่สามารถเชื่อม VN ได้ครับ
เพื่อจะนำค่า LMP EDC VDRL HIV Thalasimia HBsAg HCT ของแต่ละ VN

240
อยากได้คำสั่งที่ดึง รายงานผู้ป่วย HT และ DM ใหม่ในเดือน

241
เจอปัญหา สั่งพิมพ์สติกเกอร์ไม่ออก (บาง  Case)
แต่ในรายการ Print Job มันออกมาเรื่อย ๆ จนต้องปิด
พอเปิดดู Error list ปรากฏตามรูป
ยังหาสาเหตุไม่เจอเลยครับ

242
แพทย์ ER ถามมาว่า ทำไม HN บาง Case ไม่ปรากฏในช่องผู้ป่วยที่ตรวจแล้ว
ส่วนที่ OPD ไม่มีปัญหา

243
ในระบบพิมพ์หัว Sticker ออกมาเรื่อย ๆ แบบไม่มีสิ้นสุดสั่งจากหน้าจอ Medication Profile
ตอนที่ผมทดสอบ สั่งเฉพาะ พิมพ์หัว Sticker อย่างเดียว ออกปกติ
ถ้าเมื่อไหร่ สั่งพิมพ์ Sticker ยา + พิมพ์หัว Sticker มันจะพิมพ์หัว Sticker ออกมาเรื่อย ๆ แบบไม่มีสิ้นสุด  
ใครทราบช่วยแนะนำหน่อยครับ มีต้นฉบับแบบฟอร์มด้วย


244
ต้องการแสดงชื่อ ICD-10 ที่เป็นโรคหัวใจ
จากคำสั่ง
select pt.cid,pt.hn, concat(pt.pname,pt.fname,"  ",pt.lname) as fullname,pt.birthday,concat(pt.addrpart," &Euml;&Aacute;&Ugrave;&egrave; ",pt.moopart," &micro;.",t3.name," &Iacute;.",t2.name," &uml;.",t1.name) as fulladdressname,
pt.moopart, ov.age_y,ic.name,ic0.name,ic1.name,ic2.name,ic3.name,ic4.name,ic5.name
from ovst ovst
left outer join patient pt on pt.hn=ovst.hn
left outer join vn_stat ov on ov.vn=ovst.vn
left outer join icd101 ic on ic.code=ov.pdx
left outer join icd101 ic0 on ic0.code=ov.dx0
left outer join icd101 ic1 on ic1.code=ov.dx1
left outer join icd101 ic2 on ic2.code=ov.dx2
left outer join icd101 ic3 on ic3.code=ov.dx3
left outer join icd101 ic4 on ic4.code=ov.dx4
left outer join icd101 ic5 on ic5.code=ov.dx5
left outer join thaiaddress t1 on t1.chwpart=pt.chwpart
and t1.amppart="00" and t1.tmbpart="00"
left outer join thaiaddress t2 on t2.chwpart=pt.chwpart
and t2.amppart=pt.amppart and t2.tmbpart="00"
left outer join thaiaddress t3 on t3.chwpart=pt.chwpart
and t3.amppart=pt.amppart and t3.tmbpart=pt.tmbpart
where  ov.vstdate between "2009-07-01" and "2009-07-31"
and ov.aid="960507"
and ov.moopart in ('1','01','2','02','3','03')

 and ((ov.pdx >= "i30" AND ov.pdx <= "i529") OR (ov.pdx >= "i20" AND
      ov.pdx <= "i289") OR (ov.pdx >= "i05" AND ov.pdx <= "i099") OR
    (ov.dx0 >= "i30" AND ov.dx0 <= "i529") OR (ov.dx0 >= "i20" AND
      ov.dx0 <= "i289") OR (ov.dx0 >= "i05" AND ov.dx0 <= "i099") OR
    (ov.dx1 >= "i30" AND ov.dx1 <= "i529") OR (ov.dx1 >= "i20" AND
      ov.dx1 <= "i289") OR (ov.dx1 >= "i05" AND ov.dx1 <= "i099") OR
    (ov.dx2 >= "i30" AND ov.dx2 <= "i529") OR (ov.dx2 >= "i20" AND
      ov.dx2 <= "i289") OR (ov.dx2 >= "i05" AND ov.dx2 <= "i099") OR
    (ov.dx3 >= "i30" AND ov.dx3 <= "i529") OR (ov.dx3 >= "i20" AND
      ov.dx3 <= "i289") OR (ov.dx3 >= "i05" AND ov.dx3 <= "i099") OR
    (ov.dx4 >= "i30" AND ov.dx4 <= "i529") OR (ov.dx4 >= "i20" AND
      ov.dx4 <= "i289") OR (ov.dx4 >= "i05" AND ov.dx4 <= "i099") OR
    (ov.dx5 >= "i30" AND ov.dx5 <= "i529") OR (ov.dx5 >= "i20" AND
      ov.dx5 <= "i289") OR (ov.dx5 >= "i05" AND ov.dx5 <= "i099"))
group by ov.hn
order by pt.moopart,pt.hn

245
ตอนนี้ทีมงาน อุบัติการณ์ความเสี่ยงได้ใช้ หน้าจอ Risk Management Report ในการรายงานอุบัติการณ์ความเสี่ยง
ทีมเขาต้องการ รายละเอียดดังนี้
       1. วันที่รายงาน (มีอยู่แล้ว)
       2. วันที่เกิดอุบัติการณ์ความเสี่ยง  (ยังไม่มี)
       3. เรื่อง (มีอยู่แล้ว) แต่ต้องการคล้าย ๆ ช่องของ CC ที่สามารถ add ข้อความได้ เพื่อความสะดวกงานเภสัช เนื่องจาก บางเรื่องก็เป็นเรื่องที่เกิดขึ้นมาแล้ว เขาจะได้ไม่ต้องพิมพ์ข้อความใหม่
       4. ความถี่  (ยังไม่มี)
       5. ระดับความเสี่ยง (มีอยู่แล้ว)
       6. โปรแกรมที่เกี่ยวข้อง (มีอยู่แล้ว)
       7. หน่วยงานที่รายงาน (มีอยู่แล้ว)
       8. หน่วยงานที่เกี่ยวข้อง (ยังไม่มี)

246
รายงานผู้ป่วยในที่ถูกจำหน่าย
แต่จะยกเลิก รายการ list สิทธิการรักษา อยากให้ปรากฏทุกสิทธิ  ต้องแก้ไขคำสั่งบรรทัดไหนครับ
unit MyIPDReport;

function getsqlsubquerydatax(sql:string):string;
begin
  result:='';
  zquery.close;
  zquery.sql.text:=sql;
  zquery.open;
  zquery.first;
    while not zquery.eof do
    begin
       if result='' then result:=''''+zquery.fields[0].asstring+'''' else
       result:=result+','''+zquery.fields[0].asstring+'''';

       zquery.next;
    end;
  zquery.close;
    if result='' then result:='''''';

end;

procedure main;
var d1,d2:tdatetime;
people_distinct_count1 : integer;
people_count1,s1,s2 : integer;
ds1,ds2:string;
pttype_list1 : string;
pttype,pttype_name:string;
hospcode_list:string;
pcode_show:string;
money1,inc_limit:currency;
i:integer;

begin
   //showmessage('เกี่ยวกับรายงาน'+#13+'Custom OPD-NK2');

   //pttype:= getpickuplist('select name from pttype where isuse="Y" order by name');
   //showmessage('use name = '+pttype);
   //if pttype='' then exit;

   //pttype_name:=pttype;

   //pttype:=getsqldata('select pcode from pttype where name="'+pttype+'"');
   //if pttype='UA' then pttype:='UC';
   //if pttype='UB' then pttype:='UC';

   //if pttype='UC' then pttype_name:=getsqlsubquerydata('select name from pttype where pcode in ("UC","UA","UB")') else
   // pttype_name := getsqlsubquerydata('select name from pttype where pcode="'+pttype+'"');

   //showmessage('use pcode = '+pttype);

   if not getdaterange() then exit;
   d1:=date_result1();
   d2:=date_result2();

  // showmessage(formatdatetime('yyyy-mm-dd',d1)+' - '+
   //  formatdatetime('yyyy-mm-dd',d2));

   ds1:=formatdatetime('yyyy-mm-dd',d1);
   ds2:=formatdatetime('yyyy-mm-dd',d2);
   

   //hospcode_list:=getsqlsubquerydata('select distinct hospmain from vn_stat where  vstdate between "'+ds1+'" and "'+ds2+'" '); // pcode = "'+pttype+'" and
   //hospcode_list := getpickuplist('select concat(hospcode,":",hosptype," ",name) as name from hospcode where hospcode in ('+
    // hospcode_list+') ');
   hospcode_list:=getsqlsubquerydata('select pttype from an_stat where  dchdate between "'+ds1+'" and "'+ds2+'" '); // pcode = "'+pttype+'" and
   hospcode_list := getpickuplist('select concat(pttype,":",name) as name from pttype  where pttype in ('+
   hospcode_list+')  ');

   zquery.sql.text:='delete from tempreport where id = "CUSTOM-NK1IPD" ';
   zquery.execsql;
   fcds.close;
   fcds.datarequest('select * from tempreport where id = "CUSTOM-NK1IPD" ');
   fcds.open;

   fcds2.close;
   //showmessage('use pcode = '+ds1+'" "'+ds1);
   if hospcode_list='' then
   fcds2.datarequest('select * from an_stat left join rcpt_print on an_stat.an=rcpt_print.vn   where dchdate between "'+ds1+'" and "'+ds2+'" group by an_stat.an ') //and pttype_dansai.ipd=1 pcode = "'+pttype+'" and
   else
   fcds2.datarequest('select * from an_stat left join rcpt_print on an_stat.an=rcpt_print.vn   where dchdate between "'+ds1+'" and "'+ds2+'"  '+  //and pttype_dansai.ipd=1 pcode = "'+pttype+'" and
   ' and an_stat.pttype="'+copy(hospcode_list,1,2)+'" group by an_stat.an order by an_stat.pttype '); //hospmain vn
   
   
   //fcds2.datarequest('select * from an_stat left join pttype on an_stat.pttype=pttype.pttype left join pttype_dansai on pttype.fee_code=pttype_dansai.fee_code where dchdate between "'+ds1+'" and "'+ds2+'" '); //and pttype_dansai.ipd=1 and paid_money<>"0.00" pcode = "'+pttype+'" and
   //else
   //fcds2.datarequest('select * from pttype inner join an_stat on pttype.pttype=an_stat.pttype inner join pttype_dansai on pttype.fee_code=pttype_dansai.fee_code where  an_stat.dchdate between "'+ds1+'" and "'+ds2+'" '+  // pcode = "'+pttype+'" and
   //' and hospmain="'+copy(hospcode_list,1,5)+'" order by pttype '); // vn
   fcds2.open;
   setstatuslabel('Open result : '+inttostr(fcds2.recordcount)+' Records');
   fcds2.first;
   i:=0;
   while not fcds2.eof do
   begin
    i:=i+1;
    setprogressbar(i,fcds2.recordcount);
     fcds.insert;
   fcds['id']:='CUSTOM-NK1IPD';
   fcds['reportname']:='CUSTOM-NK1IPD';
   fcds['name']:=fcds2['an'];
   //fcds['name1']:=pttype_name;
   //pcode_show:=getsqldata('select pttype from patient where hn="'+fcds2['hn']+'"');
   //showmessage('คุณใช้ pcode = '+pcode_show);
   fcds['name1']:=getsqldata('select concat(pttype," ",name) as name from pttype where pttype="'+
      fcds2['pttype']+'"');
   
   fcds['name2']:=getsqldata('select concat(pname,fname,"  ",lname) as name from patient where hn="'+
      fcds2['hn']+'"');
   fcds['name3']:=fcds2['hn'];
   fcds['name4']:=fcds2['pttypeno'];
   //fcds['date3']:=fcds2['pttype_expire'];
   fcds['name5']:=fcds2['an'];
   //fcds['name5']:=getsqldata('select concat(name,", ",hosptype) as name from hospcode where hospcode="'+
    // fcds2['hospmain']+'"');
   //fcds['name6']:=fcds2['cid'];
   if fcds2['sex']='1' then
     fcds['name7']:='ช' else
     fcds['name7']:='ญ';
   fcds['num1']:=fcds2['age_y'];
   fcds['name8']:=fcds2['pdx'];
   fcds['name9']:=fcds2['op0']+' '+fcds2['op1'];
   fcds['name10']:=fcds2['admdate'];
   fcds['name']:=getsqldata('select i_refer_number from ovst where vn="'+fcds2['vn']+'"');

   // finance summary

   fcds['mon1']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income in("00","01")');
   //fcds2['inc16'];
   fcds['mon2']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="02" group by income');
   //fcds2['inc08'];
   fcds['mon3']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="03" group by income');
   //fcds2['inc12'];
   fcds['mon4']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="19" group by income');
   //fcds2['inc10'];
   fcds['mon5']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="04" group by income');
   //fcds2['inc03'];
   fcds['mon6']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="05" group by income');
   //fcds2['inc02'];
   fcds['mon7']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="06" group by income');
   //fcds2['inc01'];
   fcds['mon8']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="07" group by income');
   //fcds2['inc04'];
   inc_limit:=getsqldata('select rcptamt from incith where an="'+
      fcds2['an']+'" and paidst="04"');
   fcds['mon9']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="11" group by income');
   //fcds2['inc05'];
   fcds['mon10']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="08" group by income');
   //fcds2['inc09'];
   fcds['mon12']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="10" group by income');
   //fcds2['inc14'];
   fcds['mon13']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="12" group by income');
   //fcds2['inc11'];
   fcds['mon14']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="13" group by income');
   //fcds2['inc13'];
   fcds['mon15']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="14" group by income');
   //fcds2['inc07'];
   fcds['mon16']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="16" group by income');
   //fcds2['inc15'];
   fcds['mon17']:=fcds2['inc17'];
   //getsqldata('select sum(sum_price) from opitemrece where an="'+fcds2['an']+'" and income="17" group by income');
 
   fcds['mon11']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'" and income="09" group by income');
   //fcds2['inc06'];
       //fcds2['inc00']+fcds2['inc18'];
   fcds['mon18']:=getsqldata('select sum(sum_price) as cc from opitemrece where an="'+fcds2['an']+'"')+fcds2['inc17'];
   //fcds2['income'];
   
   
   s1:=getsqldata('select sum(rcptamt) as cc from rcpt_print_detail where vn="'+fcds2['an']+'" and paidst="04"');
   s2:=getsqldata('select bill_amount as cc from rcpt_print where vn="'+fcds2['an']+'" ');
   //s1:=getsqldata('select sum(rcptamt) as cc from rcpt_print_detail where vn="'+fcds2['an']+'" and paidst="04"');
   //s2:=getsqldata('select sum(rcptamt) as cc from rcpt_print_detail where vn="'+fcds2['an']+'" and paidst in("01","03")');
   fcds['mon20']:=s2;
   fcds['mon19']:=s1;
   //fcds['mon20']:=fcds2['rcpt_money'];
   //fcds['mon19']:=inc_limit;
   try
      fcds['date1']:=ds1;
    except
    end;
   try
      fcds['date2']:=ds2;
    except
    end;
   fcds['date4']:=fcds2['dchdate'];
   fcds['name11']:=getsqldata('select deposit_note from finance_deposit where vn="'+fcds2['vn']+'"  ');
   
     fcds2.next;
   end;
    fcds.post;
   fcds.datarequest('select * from tempreport where id = "CUSTOM-NK1IPD" '); 
   applyupdate_fcds();

end;

end.

247
Development / เห็นมี Version 3.52.10.28 ออกมาแล้วน่ะ
« เมื่อ: ตุลาคม 28, 2009, 17:33:15 PM »
วันนี้เห็นอาจารย์ใช้ v.3.52.10.28  แล้ว  ดีน่ะที่ยังโหลด v.3.52.10.27

248
การเขียน config squid.conf ให้ บล็อคเว็บไซท์ ที่ต้องการตามกำหนดเวลา และยังสามารถกำหนด เครื่องที่ไม่บล็อคได้ไม่ยากเย็น
acl time_block time M T W H F A S 08:00-23:00
#ตั้งเวลาที่จะบล็อคในที่นี้บล็อคตั้งแต่ 8.00 - 23.00 น.
 
acl notblock  src 192.168.0.110 192.168.0.123
#ตั้งเครื่องที่จะปล่อยให้เข้าเว็บไซท์ที่บล็อคได้ตลอดเวลา
 
acl blockweb url_regex -i '/etc/squid/blockweb.txt'
#สร้างไฟล์ชื่อ blockweb.txt เก็บ keyword หรือ url  ของเว็บที่จะบล็อค
#1 เว็บ/คำ ต่อ 1 บรรทัด ไว้ที่ /etc/squid/
 
http_access allow notblock  blockweb
#ปล่อยให้เครื่องที่กำหนดไว้เข้าดูได้
 
http_access deny blockweb time_block
#บล็อคการเข้าชมตามเวลาที่กำหนด
 
มันก็ยัง block ไม่อยู่
service squid restar; แล้วก็ไม่ได้
แต่ยังไม่ได้ลอง Restart เครื่องอีก

249
ต้องการสร้างรายงานความเสี่ยง ให้สามารถเลือกระบุตึกที่รายงานได้
มีฟอร์มมาให้แล้วครับ  แต่ไม่สามารถเลือกตึกหรือฝ่ายที่รายงานได้

250
รายงานอัตราการเจ็บป่วยด้วย DM และ HT รายใหม่ ดูได้จากไหนครับ
ในทะเบียนคลีนิคพิเศษ ดูไม่ได้ เนื่องจาก พยาบาลพึ่งลงทะเบียนเมื่อปีนี้เอง

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