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

Tip 21 แฟ้ม

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28-02-2557

ห้องบัตร  ต้องตรวจสอบสิทธิ  ที่   คลีนิคผู้ป่วยนอก /ศูนย์ตรวจสอบสิทธิทุกครั้งเพื่อยืนยันสิทธิ อีกที
แฟ้ม Death   บุคคลที่เสียชีวิต ที่เป็นแฟ้มสำรวจให้ปฏิบัติดังนี้คือ  ลงสาเหตุเป็นขาดอากาศหายใจ เพื่อเป็นข้อมูลสำรวจ

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ส่งออก 21 แฟ้ม ไม่ต้องเลือกความสมบูรณ์ใด ๆทั้งสิ้นเพื่อตรวจสอบความสมบูรณ์ในการลงข้อมูล

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

UPDATE DATA INNER JOIN IDC ON DATA.CID =IDC.CID SET DATA.NAME=0;  (Ms Access)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

– แฟ้ม DRUG  1 วันประมาณ 1500 Record  เฉลี่ยเอาเป็นเดือนก็ 20 วันทำการก่อน แล้วค่อยดูว่า อยู่ประมาณเท่าไรอาจเป็น 2000  Record ในวันทำการ และอีก 10 วันหยุดเสาร์-อาทิตย์ ค่อย หาค่าเฉลี่ยนต่อวันอีกต่อไป

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

แฟ้ม PP ดูแลเด็กหลังคลอด ครบ 3 ครั้ง กำหนด ส่งออก server ครั้งที่ 3 ในเดือนนั้นๆ

select p.person_id,p.house_regist_type_id,pw.baby_service1_date,pw.baby_service2_date,pw.baby_service3_date,concat(p.pname,p.fname,’ ‘,p.lname)as name,p.age_y,p.age_m,pws.*
from person_wbc_service pws
left join person_wbc pw on pw.person_wbc_id=pws.person_wbc_id
left join person p on p.person_id=pw.person_id
where service_date between ‘2013-09-01’ and ‘2013-09-31’
and pw.baby_service3_date between ‘2013-09-01’ and ‘2013-09-31′
and pw.baby_service1_date is not null
and pw.baby_service2_date is not null
and pw.baby_service3_date is not null
and p.house_regist_type_id=’1’
group by p.person_id

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

– แฟ้ม FP มีการให้บริการ 1 วันต่ออาทิตย์ เพราะเหตุนี้น่าจะได้ 20 คน ต่ออาทิตย์ หรือประมาณ 80 คน ต่อเดือน

ตรวจสอบว่ามีมารับบริการกี่คน  *** table   fpspclty    มี icd10 ที่ผูกกับชื่อรายการ

***ข้อมูลที่ได้รับการส่งออกจะต้องอยู่ในเขตรับผิดชอบ (type 1) เท่านั้น

select v.cid,p.cid,concat(p.pname,p.fname,’ ‘,p.lname)as name ,p.house_regist_type_id,v.*

from vn_stat v

left join person p on p.cid=v.cid

where v.vstdate between ‘2013-09-01’ and ‘2013-09-30’

and (v.pdx in (‘z304′,’z309′,’z301′,’z302’)

or v.dx0 in (‘z304′,’z309′,’z301′,’z302’)

or v.dx1 in (‘z304′,’z309′,’z301′,’z302’)

or v.dx2 in (‘z304′,’z309′,’z301′,’z302’)

or v.dx3 in (‘z304′,’z309′,’z301′,’z302’)

or v.dx4 in (‘z304′,’z309′,’z301′,’z302’)

or v.dx5 in (‘z304′,’z309′,’z301′,’z302′))

and v.sex=’2’

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

– แฟ้ม WOMEN ดูผู้หญิงในเขตรับผิดชอบด้วยว่ามีกี่คนที่อยู่ในวัยเจริญพันธ์ แล้วมาดูค่าเฉลี่ยในแต่ละเดือนว่าได้เท่าไร

select p.house_regist_type_id,pw.*
from person_women pw
left join person p on p.person_id=pw.person_id

where pw.regdate between ‘2013-09-01’ and ‘2013-09-31’

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

– แฟ้ม ANC 1 คนฝากท้องไม่ต่ำกว่า 5 ครั้่ง ดูรวมถึงหญิงวัยเจริญพันธ์ ว่ามีประมาณเท่าไร แล้วค่อยมาหาร 5 เฉลี่ยเป็นอาทิตย์

select p.house_regist_type_id,concat(p.pname,p.fname,’ ‘,p.lname) as name,p.person_id,p.age_y,pas.*
from person_anc_service pas
left join person_anc pa on pa.person_anc_id=pas.person_anc_id
left join person p on p.person_id=pa.person_id

where anc_service_date between ‘2013-09-01’ and ‘2013-09-31′
and p.house_regist_type_id=’1’
and pas.pa_week <40

———————————————————————————————————-

select pa.*

from person_anc pa

left join person p on p.person_id=pa.person_id

where anc_register_date between ‘2013-09-01’ and ‘2013-09-31’

———————————————————————————————————-

 

select * from person_anc

where force_complete_date between ‘2013-09-01’ and ‘2013-09-30′

———————————————————————————————————-

select p.cid,concat(pname,fname,’ ‘,lname)as name,a.*

from person_anc a

left join person p on p.person_id=a.person_id

where anc_register_date between ‘2013-09-01’ and ‘2013-09-30’

or pre_labor_service1_date between ‘2013-09-01’ and ‘2013-09-30’

or pre_labor_service2_date between ‘2013-09-01’ and ‘2013-09-30’

or pre_labor_service3_date between ‘2013-09-01’ and ‘2013-09-30’

or pre_labor_service4_date between ‘2013-09-01’ and ‘2013-09-30’

or first_doctor_date between ‘2013-09-01’ and ‘2013-09-30’

or post_labor_service1_date between ‘2013-09-01’ and ‘2013-09-30’

or post_labor_service2_date between ‘2013-09-01’ and ‘2013-09-30’

or preg_begin_date between ‘2013-09-01’ and ‘2013-09-30’

or labor_date between ‘2013-09-01’ and ‘2013-09-30’

or edc between ‘2013-09-01’ and ‘2013-09-30’

or lmp between ‘2013-09-01’ and ‘2013-09-30’

or pre_labor_service5_date between ‘2013-09-01’ and ‘2013-09-30’

or thalassemia_screen_date between ‘2013-09-01’ and ‘2013-09-30’

or thalassemia_confirm_date between ‘2013-09-01’ and ‘2013-09-30’

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

–  แ้้ฟ้ม EPI  การให้บริการฉีดวัคซ๊น

บัญชี 3

select * from person_wbc
where vaccine_bcg_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_hbv1_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_hbv2_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_hbv3_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtp1_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtp2_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtp3_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_opv1_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_opv2_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_opv3_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_mmr_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtphb1_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtphb2_date between ‘2013-09-01’ and ‘2013-09-30’
or vaccine_dtphb3_date between ‘2013-09-01’ and ‘2013-09-30’

บัญชี 4

select *
from person_epi
left join person on person.person_id=person_epi.person_id
where vaccine_dtp4_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_opv4_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_je1_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_je2_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_je3_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_dtp5_date between ‘2013-09-01’ and ‘2013-09-31’
or vaccine_opv5_date between ‘2013-09-01’ and ‘2013-09-31’

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

แฟ้ม NUTRI ของ Pcu นั้นมีการคีย์ข้อมูลตามรอบเดือนตรวจสอบจาก Code

***บัญชี 3 0-11 เดือน 29 วัน

select p.person_id,p.patient_hn,p.cid,concat(p.pname,p.fname,’ ‘,p.lname) as name,pwn.*

from person_wbc_nutrition pwn

left join person_wbc pw on pw.person_wbc_id=pwn.person_wbc_id

left join person p on p.person_id=pw.person_id

where nutrition_date between ‘2013-10-01’ and ‘2013-10-31′

group by p.cid

*** บัญชี 4  1-5 ปี 11 เดือน 29 วัน

select p.person_id,p.patient_hn,p.cid,concat(p.pname,p.fname,’ ‘,p.lname) as name,pn.*

from person_epi_nutrition pn

left join person_epi pe on pe.person_epi_id=pn.person_epi_id

left join person p on p.person_id=pe.person_id

where pn.nutrition_date between ‘2013-10-01’ and ‘2013-10-31’

group by p.cid

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

แฟ้ม MCH ดูแลมารดาและเด็กหลังคลอด เน้น ดูแลมารดา ครบ 3 ครั้ง  (ถ้ามีการบังคับส่งออกยืนยันการส่งออก จะมีข้อมูลออกในเดือนนั้น)

select p.house_regist_type_id,p.cid,p.patient_hn,pa.post_labor_service3_date,pa.*
from person_anc pa
left join person p on p.person_id=pa.person_id
where force_complete_date between ‘2013-09-01’ and ‘2013-09-31′
and p.house_regist_type_id=’1’
and post_labor_service1_date is not null
and post_labor_service2_date is not null
and post_labor_service3_date is not null

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

ใส่ความเห็น