วิธีการแก้ไข Labfu ปัญหาผล Lab microalbumin ไม่ถูกส่งออก 43แฟ้ม

รหัส LABFU ใน ปี 2560 ใน HDC และ โปรแกรม HOSXP

โปรดตรวจสอบ ตอนที่ส่งออกข้อมูลในแฟ้ม ที่ชื่อว่า labfu ซึ่งเป็นแฟ้ม ที่เก็บข้อมูล ผลการตรวจทางห้องปฏิบัติการ ว่ามีรหัสครบถ้วน  ถูกต้องหรือไม่ เพราะว่า ปี 2560 มีการ เปลี่ยนรหัส จาก 2 หลักเป็น รหัส 7 หลัก ซึ่งโปรแกรม hosxp_pcu เวอร์ชั้น 3.60.2.23 มีการปรับปรุง รหัสอัตโนมัติ จึงขอให้ทุกหน่วยบริการ ทำตรวจสอบการส่งออกข้อมุลก่อนการส่งข้อมูลเข้า HDC  ทุกครั้งเพื่อความถูกต้อง มีผลต่อรายงานในกลุ่มของ NCD
ซึ่งรหัส ใน HDC ที่มีการปรับปรุงรอไว้แล้ว มีดังนี้
(ข้อมูลจาก HDC สำนักงานสาธารณสุขจังหวัดนครปฐม วันที่ 01 มีนาคม 2560)
รหัส 7 หลัก ใหม่ชื่อภาษาอังกฤษชื่อภาษาไทยรหัส 2 หลักเก่า
0531002Glucose, serum/plasmaการตรวจหาน้ำตาลลูโคส  ในซีรั่ม / พลาสม่า01
0531004Glucose, vein (NPO)การตรวจน้ำตาลในเลือด จากหลอดเลือดดำ โดยไม่อดอาหาร02
0531101Glucose, semi-quantitative (tes strip), whole bloodการตรวจหาน้ำตาลกลูโคส กึ่งเชิงปริมาณ (โดยใช้แถบทดสอบ)  ในเลือด03
0531102Glucose, capillariesการตรวจน้ำตาลในเลือด จากเส้นเลือดฝอย โดยไม่อดอาหาร04
0531601Glycosylated hemoglobin whole blood (HbA1c)การตรวจหา glycosylated hemoglobin ในเลือด05
0546602Triglycerides, serum/plasmaการตรวจหา triglycerides  ในซีรั่ม / พลาสม่า06
0541602Cholesterol, total, serum/plasmaการตรวจหาคอเลสเตอรอลทั้งหมด  ในซีรั่ม / พลาสม่า07
0541202HDL Cholesterol, serum/plasmaการตรวจหาคอเลสเตอรอลชนิด HDL  ในซีรั่ม / พลาสม่า08
0541402LDL Cholesterol, serum/plasmaการตรวจหาคอเลสเตอรอลชนิด LDL  ในซีรั่ม / พลาสม่า09
0583001Nitrogen, whole bloodการตรวจหาไนโตรเจนในเลือด10
0581902Creatinine, serum/plasmaการตรวจหา creatinine  ในซีรั่ม / พลาสม่า11
0440204Microalbumin proteinการตรวจโปรตีน microalbumin ในปัสสาวะ (ใน filed ผลการตรวจใส่ค่า 0=negative, 1=trace, 2=positive)12
0581903Creatinine, urineการตรวจหา creatinine  ในปัสสาวะ13
0440203Albumin, urineการตรวจอัลบูมินในปัสสาวะ / ตรวจโปรตีน macroalbumin ในปัสสาวะ (ใน filed ผลการตรวจใส่ค่า 0=negative, 1=trace, 2=positive)14
0581904eGFR (CKD-EPI  formula)การตรวจหาค่า eGFR (ใช้สูตร CKD-EPI  formula)15
0621401Hemoglobin, whole bloodการตรวจหาค่าฮีโมโกลบินในเลือด16
0440205UPCR (Urine protein creatinine ratio)การตรวจ UPCR (Urine protein creatinine ratio)17
0511402Potassium, serum/plasmaการตรวจหาสารโพแทสเซียมในซีรั่ม / พลาสม่า18
0510402Carbon dioxide, serum/plasmaการตรวจหาคาร์บอนไดออกไซด์  ในซีรั่ม, พลาสม่า19
0511202Phosphate (inorganic), serum/plasmaการตรวจหาสารฟอสเฟต (อนินทรีย์)  ในซีรั่ม / พลาสม่า20
0614402Parathyroid hormone, serum/plasmaการตรวจหา parathyroid hormone ในซีรั่ม / พลาสม่า21
ตัวอย่าง รหัสที่ได้จาก โปรแกรม hosxp
2017-03-01 22 30 35.png
****Script***
SET @date1="2016/10/01";
SET @date2="2017/05/17";
SET @Micro="873";#ค่าตัวเลขในตาราง lab_items ที่ต้องการให้ส่งออก=Micro#
SET @Macro="994";#ค่าตัวเลขในตาราง lab_items ที่ต้องการให้ส่งออก=Macro#

#Micro Albumin#
UPDATE lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn 
SET lo.lab_order_result=concat(('negative'),'=',lo.lab_order_result)
where lo.lab_items_code =@Micro and (lo.lab_order_result ="<20")
and lh.order_date between @date1 and @date2 ;

UPDATE lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn 
SET lo.lab_order_result=concat(('positive'),'=',lo.lab_order_result)
where lo.lab_items_code =@Micro and (lo.lab_order_result in (20,50,100))
and lh.order_date between @date1 and @date2;

#Macro Albumin#
UPDATE lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn 
SET lo.lab_order_result=concat(('positive'),'=',lo.lab_order_result)
where lo.lab_items_code =@Macro and lo.lab_order_result in(30,100,300,1000)
and lh.order_date between @date1 and @date2;

UPDATE lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn 
SET lo.lab_order_result=concat(('trace'),'=',lo.lab_order_result)
where lo.lab_items_code =@Macro and lo.lab_order_result='10' 
and lh.order_date between @date1 and @date2 ;

UPDATE lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn 
SET lo.lab_order_result=concat(('negative'),'=',lo.lab_order_result)
where lo.lab_items_code =@Macro and (lo.lab_order_result <"10") 

and lh.order_date between @date1 and @date2 ;


วิธีการแก้ไขปัญหาผล Lab microalbumin ไม่ถูกส่งออก 
43แฟ้ม Labfu
วิธีการแก้ไขปัญหาให้ส่งออก 43 แฟ้ม (ผล Lab microalbumin)



12=ตรวจโปรตีน macroalbumin ในปัสสาวะ (ใน filed ผลการตรวจใส่ค่า 0=negative, 1=trace, 2=positive)
13=ตรวจโปรตีน microalbumin ในปัสสาวะ (ใน filed ผลการตรวจใส่ค่า 0=negative, 1=trace, 2=positive)

การตรวจ Micro Albumin ในปัสสาวะ คือ การตรวจการทำงานของไต Micro Albumin เป็นโปรตีน
ซึ่งในคนปกติจะทำหน้าที่กรองโปรตีนเก็บไว้
แต่ในผู้ป่วยเบาหวานที่เกิดอาการแทรกซ้อนที่ไตจะไม่สามารถกรองโปรตีนไว้ได้หมด
หากพบโปรตีนในปัสสาวะจึงบอกถึงความผิดปกติเกี่ยวกับการทำงานของไต
และถ้าได้รับการดูแลที่ไม่ดีพอก็จะทำให้เกิดภาวะไตวายเรื้อรังต่อไปได้
หากได้รับการดูแลที่ดีจากแพทย์ จะสามารถสกัดกั้นการเกิดไตวายเรื้อรังชนิดถาวรได้

วิธีการตรวจให้เก็บUrine ส่งประมาณ 5-10ซีซี
ผลการตรวจ = 20,50,100 และมากกว่า100 mg/L
ค่าปกติ < 20 mg/L


1. ใช้คำสั่งข้างล่าง ตรวจสอบ lab_items_code = "XXX" ที่ตาราง lab_items

select * from lab_items
where lab_items_name like "%albumin%" >> ดูที่ฟิลด์ lab_items_code = "XXX"


2. แก้ไขคำสั่งข้างล่าง บรรทัดที่ 6 >> lab_items_code = "XXX" >> ตามข้อ 1.
(ที่สั่ง Lab ช่วงวันที่ 1 ตุลาคม 2558 วันที่ 30 กันยายน 2559)

select lo.lab_order_number, lo.lab_items_code, lo.lab_order_result,
lh.vn, lh.order_date, lh.report_date
from lab_order lo
left outer join lab_head lh on lh.lab_order_number = lo.lab_order_number
left outer join opdscreen op on op.vn=lh.vn
where lo.lab_items_code = "873"
and lh.order_date between "2015-10-01" and "2016-09-30"


3. ใช้คำสั่งข้างล่าง Update ข้อมูล micro_albumin ในตาราง opdscreen
(ที่สั่ง Lab ช่วงวันที่ 1 ตุลาคม 2558 วันที่ 30 กันยายน 2559)

3.1 filed ผลการตรวจที่บันทึกไว้ negative ให้ = 0 trace, 2=positive

update opdscreen set micro_albumin="0"
where vn in(select lh.vn from lab_head lh
left outer join lab_order lo on lh.lab_order_number = lo.lab_order_number
where lo.lab_items_code = "
873" and (lo.lab_order_result ="Negative")
and lh.order_date between  "2015-10-01" and "2016-09-30")

3.2 filed ผลการตรวจที่บันทึกไว้ trace ให้ = 1

update opdscreen set micro_albumin="1"
where vn in(select lh.vn from lab_head lh
left outer join lab_order lo on lh.lab_order_number = lo.lab_order_number
where lo.lab_items_code = "
873" and (lo.lab_order_result between "1" and "19")
and lh.order_date between  "2015-10-01" and "2016-09-30")

3.3 filed ผลการตรวจที่บันทึกไว้ positive ให้ = 2

update opdscreen set micro_albumin="2"
where vn in(select lh.vn from lab_head lh
left outer join lab_order lo on lh.lab_order_number = lo.lab_order_number
where lo.lab_items_code = "
873" and (lo.lab_order_result >"19")
and lh.order_date between  "2015-10-01" and "2016-09-30")

4. ใช้คำสั่งข้างล่าง ตรวจสอบข้อมูล micro_albumin ในตาราง opdscreen

select vn, hn, vstdate, cc, micro_albumin
from opdscreen
where micro_albumin in(0,1,2)

Comments

Popular posts from this blog

วิธีเพิ่ม LAB_ITEM ใน HOSXP PCU