พฤษภาคม 2024
จ. อ. พ. พฤ. ศ. ส. อา.
« มี.ค.    
 12345
6789101112
13141516171819
20212223242526
2728293031  
พฤษภาคม 2024
จ. อ. พ. พฤ. ศ. ส. อา.
« มี.ค.    
 12345
6789101112
13141516171819
20212223242526
2728293031  

TIP! HOSXP

navicat นำเข้าไฟล์ txt


ลักษณะไฟล์ txt  ไม่มีหัวฟิลล์
“xx”,”xx”,”xx”,”xx”
“xx”,”xx”,”xx”,”xx”

การเงินยกเลิกใบเสร็จ และจะลงรับใหม่ ยอดเงินหาย ให้ไปเคลียร์ ฟิลล์ finance_number ใน ตาราง opitemrece

การเงินยอดค้างชำระไม่ตรง และมีการแบ่งจ่ายบางส่วน

การดึงผล LAB ออกมาแสดงในรายงาน DHDC2 ในส่วนของ Electronic Health Record (EHR)




 

ขอขอบคุณเจ้าของผลงาน HDHC2  ครับ
District Health Data Checker, Web:20170101.27.1 , Db:2017.01.27
พัฒนาโดย :UTEHN PHNU

SELECT l.labtest,if(l.labtest =’0531002′ or l.labtest =’01’ ,’01 ตรวจน้ำตาลในเลือด จากเส้นเลือดดำ หลังอดอาหาร’,
if(l.labtest=’0531004′ or l.labtest =’02’,’02 ตรวจน้ำตาลในเลือด จากเส้นเลือดดำ โดยไม่อดอาหาร’,
if(l.labtest=’0531101′ or l.labtest =’03’,’03 ตรวจน้ำตาลในเลือด จากเส้นเลือดฝอย หลังอดอาหาร’,
if(l.labtest=’0531102′ or l.labtest =’04’,’04 ตรวจน้ำตาลในเลือด จากเส้นเลือดฝอย โดยไม่อดอาหาร’,
if(l.labtest=’0531601′ or l.labtest =’05’,’05 ตรวจ HbA1C’,
if(l.labtest=’0546602′ or l.labtest =’06’,’06 ตรวจ Trglyceride’,
if(l.labtest=’0541601′ or l.labtest =’07’,’07 ตรวจ Total Cholesterol’,
if(l.labtest=’0541202′ or l.labtest =’08’,’08 ตรวจ HDL Cholesterol’,
if(l.labtest=’0541402′ or l.labtest =’09’,’09 ตรวจ LDL Cholesterol’,
if(l.labtest=’0583001′ or l.labtest =’10’,’10 ตรวจ BUN ในเลือด’,
if(l.labtest=’0581902′ or l.labtest =’11’,’11 ตรวจ Creatinine ในเลือด’,
if(l.labtest=’0581902′ or l.labtest =’12’,’12 ตรวจโปรตีน Microalbumin ในปัสสาวะ’,
if(l.labtest=’0581903′ or l.labtest =’13’,’13 ตรวจ CREATININE ในปัสสาวะ’,
if(l.labtest=’0446203′ or l.labtest =’14’,’14 ตรวจโปรตีน Macroalbumin ในปัสสาวะ’,
if(l.labtest=’0581904′ or l.labtest =’15’,’15 ตรวจ eGFR สูตร CKD-EPI’,
if(l.labtest=’0621401′ or l.labtest =’16’,’16 ตรวจ Hb’,
if(l.labtest=’0440205′ or l.labtest =’17’,’17 ตรวจ UPCR’,
if(l.labtest=’0511402′ or l.labtest =’18’,’18 ตรวจ K ckd stage 3 หรือยา ACEI//ARBs’,
if(l.labtest=’0510402′ or l.labtest =’19’,’19 ตรวจ Bicarb ckd stage 3′,
if(l.labtest=’0511202′ or l.labtest =’20’,’20 ตรวจ phosphate ckd stage 3′,
if(l.labtest=’0614402′ or l.labtest =’21’,’21 ตรวจ PTH ckd stage 3′,
Null))))))))))))))))))))) AS tlname,labresult
FROM tmp_labfu l
LEFT JOIN clabtest t ON t.id_labtest = l.labtest
WHERE cid =’$cid’
AND seq=’$seq’ AND hospcode = ‘$hospcode’

ปรับยอดเงินในใบเสร็จรับเงินที่เป็นภาษาไทยให้ออก สตางค์ไม่มีคำว่าบาทลงท้าย

if getsqlintegerdata(‘select if(name3 like “%ʵҧ¤ì%”,”03″,null) ‘+
‘as cc from tempreport where name3 like “%ʵҧ¤ì%” and id=”‘+DBPipeline[‘id’]+'” ‘)=03 then
Value := thaimoney(DBPipeline[‘mon3’])
else
Value := ‘ ‘+ thaimoney(DBPipeline[‘mon3′])+’¶éǹ’ ;

เครดิต http://61.19.251.235/smf2/index.php?topic=21443.0

—————————————————————-
“Variable6”
Value := GetSQLStringData(‘select sum(sum_price)as bb from opitemrece where vn=”‘+ DBPipeline[‘an’] +'”‘);
—————————————————————-
“Variable10”
if getsqlintegerdata(‘select if( sum(sum_price) like “%.25%” ‘+
‘ or sum(sum_price) like “%.50%” ‘+
‘ or sum(sum_price) like “%.75%” ,1,0) as dd from opitemrece ‘+
‘ where an=”‘+DBPipeline[‘an’] +'” ‘)=1 then
Value := ‘ตัวอักษร (‘+ thaimoney(variable6.value)+’)’
else
Value := ‘ตัวอักษร (‘+ thaimoney(Variable6.value)+’ถ้วน)’ ;
—————————————————————–

การยกเลิก ลูกหนี้ค้างชำระ

หลังจากลงค้างชำระผิดให้ยกเลิกค้างชำระ   และสิ่งที่ต้องทำต่อไปคือ

หาคนใข้ในตาราง  vn_stat กำหนด ฟิลล์ paid_money เป็นยอดที่ต้องค้างชำระ

และหาคนไข้ในตาราง opitemrece กำหนด ฟิล paidst จาก  00 เป็น 03 หรือ 01 หรือ 02

ระบบสั่งอาหารผู้ป่วยใน

ตารางที่เกี่ยวข้อง select * from nutrition_items

ข้อมูลคนไข้ เบาหวาน ความดัน BMI 3 ครั้งหลังสุด

select o.hn,c.clinic,(group_concat(DISTINCT ‘(‘,o.bmi,’/’,o.vstdate,’)’))as AA,

(select concat(‘(‘,o2.bmi,’)(‘,o2.vstdate,’)’) from opdscreen o2
where o2.hn=o.hn and o2.vstdate between min(o.vstdate) and max(o.vstdate)
order by concat(year(o2.vstdate),month(o2.vstdate),day(o2.vstdate)) desc limit 0,1)as “หลังสุด”,

(select concat(‘(‘,o3.bmi,’)(‘,o3.vstdate,’)’) from opdscreen o3
where o3.hn=o.hn and o3.vstdate between min(o.vstdate) and max(o.vstdate)
order by concat(year(o3.vstdate),month(o3.vstdate),day(o3.vstdate)) desc limit 1,1)as “ก่อนหลังสุด”,

(select concat(‘(‘,o4.bmi,’)(‘,o4.vstdate,’)’) from opdscreen o4
where o4.hn=o.hn and o4.vstdate between min(o.vstdate) and max(o.vstdate)
order by concat(year(o4.vstdate),month(o4.vstdate),day(o4.vstdate)) desc limit 2,1)as “ก่อนก่อนครั้งหลังสุด”

from opdscreen o
left outer join clinicmember c on c.hn=o.hn
where o.vstdate between “2015-10-01” and “2016-09-31” and c.clinic in (“001″,”002”)
and c.clinic is not null
group by o.hn
order by year(o.vstdate),month(o.vstdate),date(o.vstdate) desc

Centos7+Hosxp_pcu

เปิด port 22 :  vi /etc/ssh/sshd_config  เอา # ออกหน้า Port 22
ปิดการใช้งาน SELINUX : vi /etc/selinux/config      ส่วนของ SELINUX=disabled
เปลี่ยน hostname    : vi /etc/hostname
ตรวจสอบ network Card   : nmclid
ตรวจสอบ Mysql : etc/init.d/mysql status

cent0s7hosxp_pcu

ลบ อสม. ที่ไม่ได้ประจำในบ้านออก

%e0%b8%a5%e0%b8%9a-%e0%b8%ad%e0%b8%aa%e0%b8%a1