public static HttpServletRequest listAPatientBills(HttpServletRequest request) {
        Models.DatabaseModel.Patient patient = new Models.DatabaseModel.Patient();

        int patientID = Integer.parseInt(request.getParameter("patientID"));

        patient = patient.findPatient(patientID);

        ArrayList<Models.DatabaseModel.Bill> bills = Models.DatabaseModel.Bill.findUserAllBill(patientID);

        ArrayList<Models.ViewModel.Bill> viewBills = new ArrayList<>();

        for (Models.DatabaseModel.Bill thisBill : bills) {
            Models.ViewModel.Bill viewBill = new Models.ViewModel.Bill(thisBill,patient,0);
            viewBill.setTotalCost(Models.DatabaseModel.Bill.getBillTotalCost(thisBill.getId()));
            viewBills.add(viewBill);
        }

        request.setAttribute("patient", patient);
        request.setAttribute("bills", viewBills);
        request.setAttribute("view", "patientview.jsp");

        return request;
    }