มิถุนายน 2013
จ. อ. พ. พฤ. ศ. ส. อา.
    ก.ค. »
 12
3456789
10111213141516
17181920212223
24252627282930
มิถุนายน 2013
จ. อ. พ. พฤ. ศ. ส. อา.
    ก.ค. »
 12
3456789
10111213141516
17181920212223
24252627282930

คลังเก็บรายเดือน: มิถุนายน 2013

บางวันของงานที่ทำ หน้าจอก็เยอะมากมาย

2012-05-21 12.46.39

hosxp เพิ่มรายการ การให้สุขศึกษา

Untitled-4

hosxp+สรุปยอดรวม โรคที่ทำให้เสียชีวิต

select death_cause_text,count( death_cause_text) as A
from death
group by death_cause_text

ดึงข้อมูล นอกเขตรับผิดชอบ (บ้านเลขที่ 0)

select vl.village_moo,village_name,ps.*
from person ps
left outer join village vl on vl.village_id = ps.village_id
where ps.village_id=1

แก้ไขข้อมูล กรุ๊ปเลือดที่ update ผิด

update patient as p join patient_notebook as pn on pn.hn=p.hn
set p.bloodgrp = pn.bloodgrp

ดูข้อมูล นค.1

select v.* from vn_stat v
left outer join ovst o on o.vn = v.vn
where v.pttype in (’03’)
and v.vstdate between ‘2013-06-01’ and ‘2013-06-30′ and v.hospmain=’10917′ and o.an is null
order by v.vn

 

select v.* from vn_stat v
left outer join ovst o on o.vn = v.vn
where v.pttype in (’03’)
and v.vstdate between ‘2013-06-01’ and ‘2013-06-30’ and v.hospmain not in(‘10917′) and o.an is null
order by v.vn

 

select concat(pt.pname,pt.fname,’ ‘,pt.lname)as name,o.*,v.*
from vn_stat v
left outer join ovst o on o.vn = v.vn
left outer join patient pt on o.hn=pt.hn
where v.pttype in (’06’,’07’,’14’,’16’,’18’,’21’,’23’,’27’,’29’,’31’,’33’,’40’,’44’,’45’,’46’,’48’,’51’,’53’,’55’,’57’,’59’,’61’,’64’,’66’,’69’,’70’,’72’,’90’)
and v.vstdate between ‘2013-06-01’ and ‘2013-06-30’
and v.hospmain in (‘10668′,’22302′,’11494′,’10915′,’10916′,’10918′,’10919′,’10920′,’10921′,’10922′,’10923′,’10924′,’10925′,’10926’)
and o.an is null

update ข้อมูล Person

update person set pname=’ด.ช.’ where pname=’เด็กชาย’

แก้ไข person ที่เป็น เด็กชาย ให้เป็น ด.ช. เพื่อการส่งออก เป็นรหัส 001 จากเดิมเป็น 1

 

update person set blood_group=’äÁè·ÃÒºËÁÙèàÅ×Í´’ where blood_group is null

กรุปเลือด ที่เป็นค่าว่าง

Error โปรแกรม Sealant2556 งานทันตกรรม

 

– หลังจากเจ้าหน้าที่ห้องทันตกรรมได้ทำการกรอกข้อมูลในโปรแกรม แล้วค้าง เครื่องคอมพิวเตอร์ดับไป

– หลังเปิดเครื่องใหม่ก็ไม่สามารถเปิดดูข้อมูลได้ ฟ้อง Error อย่างเดียว

+ Admin ได้ไปตรวจสอบ และได้ แก้ไขไฟล์ part C:/sealant/sealant2556.accdb ดูข้อมูลที่เป็น #######  ตัดออกให้หมด

-ทดสอบการเพิ่มข้อมูลหรือแก้ไขข้อมูล

-แจ้งเตือน dynamic sql generation for the updatecommand is not supported against a selectcommand that does not return

+ปัญหานี้เกิดจาก ในฐานข้อมูลไม่มีการกำหนด Primary Key ครับ กำหนดให้ก็สามารถใช้งานได้ตามปกติครับ

ทันตกรรม ไม่มีรายการหัตถการหลังกรอกข้อมูล

untitled

query รายงานแผนไทย

ยาประเภท ED

select o.*,s.*,p.*,ps.*
from opitemrece o
left outer join drugitems s on s.icode=o.icode
left outer join pttype p on p.pttype=o.pttype
left outer join pttype_spp ps on ps.pttype_spp_id=p.pttype_spp_id
where o.rxdate between ‘2013-03-01’ and ‘2013-05-31’
and s.did like “4%” and p.pttype_spp_id in(‘1′,’2′,’3′,’4′,’5′,’6’) and s.drugaccount=”¡”

 

ทุึกสิทธิการรักษา

select count(distinct vn) as cc
from opitemrece o
left outer join drugitems s on s.icode=o.icode
left outer join pttype p on p.pttype=o.pttype
left outer join pttype_spp ps on ps.pttype_spp_id=p.pttype_spp_id
where o.rxdate between ‘2013-03-01’and ‘2013-05-31’
and s.did like”4%” and p.pttype_spp_id in(‘1′,’2′,’3′,’4′,’5′,’6’) and s.drugaccount=”¡”