public void savePatient(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException{
		
		log.debug("PatientManager savePatient method called...");
		Map<String, String> validationMap=new HashMap<String, String>();
		Map<String, String> resultsMap;
		
		String action=req.getParameter("action");
		
		String healthRec =req.getParameter("healthrec");
		validationMap.put("healthrec", healthRec);
		
		String age =req.getParameter("age");
		validationMap.put("age", age);
				
		//Validating fields
		resultsMap=validateFields(validationMap);
		req.setAttribute("validateResults", resultsMap);
		
		if(resultsMap.size()<1){
			log.info("Fields validation success...");
			//Creating Patient POJO
			Patient patient=new Patient();
			patient.setHealthRecNo(Integer.parseInt(healthRec));
			patient.setAge(Integer.parseInt(age));
			patient.setFirstName(req.getParameter("fname"));
			patient.setLastName(req.getParameter("lname"));
			patient.setGender(req.getParameter("gender"));
			
			PatientService patientService=new PatientServiceImpl();			
			try {
				patientService.savePatient(patient,action);
				req.setAttribute("result", "Saved Successfully...");
				log.info("Patient saved successfully...");
			} catch (Exception e) {				
				req.setAttribute("result", "Error :"+e.toString());
				log.error(e.toString());
			}
		}else{
			log.error("Fields validation failed...");
		}
		
		// Dispatch request object to AddPatient.jsp		
		RequestDispatcher view=req.getRequestDispatcher("AddPatient.jsp");
		view.forward(req, res);
	}