SELECT opitemrece.vstdate, opitemrece.sum_price, patient.hn, patient.pname,opitemrece.doctor,doctor.name AS doctorname,
patient.fname, patient.lname, nondrugitems.icode, nondrugitems.name
FROM opitemrece
LEFT OUTER JOIN patient ON opitemrece.hn = patient.hn
LEFT OUTER JOIN nondrugitems ON nondrugitems.icode = opitemrece.icode
LEFT OUTER JOIN doctor ON opitemrece.doctor=doctor.code
WHERE opitemrece.vstdate BETWEEN '2009-04-01' AND '2010-12-31'
AND nondrugitems.icode IN ('3001395', '3001394', '3001393')
ORDER BY opitemrece.vstdate