*/
private static Logger log = Logger.getLogger(PatientlogHandler.class.getName());
public static void logToPatientLog(User user, Long pid, String context, String STEP, Long searchid) {
try {
PatientlogBean logBean = new PatientlogBean();
logBean.setPid(pid);
logBean.setUserid(user.getId());
logBean.setCentreid(user.getCentreid());
logBean.setContext(context);
logBean.setStep(STEP);
logBean.setSearchid(searchid);
logBean.create();
} catch (SQLException sqle) {
log.log(Level.ERROR, "Error in creating patient log", sqle);
}
}