select d1.*,v1.*,o1.*,p.drugallergy,
p.height,os.fbs,os.bps,os.bw as weight,
i1.name as pdx_name,IFNULL (os.creatinine,'0') as creatinine
from doctor_order_print d1
left outer join vn_stat v1 on v1.vn=d1.vn
left outer join ovst o1 on o1.vn=d1.vn
left outer join patient p on p.hn = v1.hn
left outer join icd101 i1 on i1.code=v1.main_pdx
left outer join opdscreen os on os.vn = v1.vn
where d1.vn="540119201427" and d1.print_server="DOCTOR-1"
นี่คือคำสั่งใน form ใบสั่งยาครับ