Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize Hospital appointment Registration system with Java

Shulou Source: shulou.com Published: 2022-06-01 09:21:06 10月01日 Update

This article mainly introduces Java how to achieve hospital reservation registration system, the article introduces in great detail, has a certain reference value, interested friends must read it!

I. brief introduction of the project

Functions: users can be divided into patients, doctors, administrators, patients can register and choose doctors to register, select dates, select number sources, doctors can receive doctors, administrators can maintain users and doctor information, and so on.

II. Project operation

Environment configuration: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (both supported by IntelliJ IDEA,Eclispe,MyEclispe,Sts)

Project technology: Jdbc+ Servlert + Jsp + css + JavaScript + JQuery + Ajax + Fileupload and so on.

Login interceptor code: / * login interceptor * @ author Administrator * / @ Componentpublic class LoginInterceptor implements HandlerInterceptor {private Logger log = LoggerFactory.getLogger (LoginInterceptor.class); @ Autowired private SiteConfig siteConfig; @ Override public boolean preHandle (HttpServletRequest request, HttpServletResponse response, Object handler) {String requestURI = request.getRequestURI (); HttpSession session = request.getSession () Session.setAttribute (SessionConstant.SESSION_USER_AUTH_KEY, AppConfig.ORDER_AUTH); Object attribute = session.getAttribute (SessionConstant.SESSION_USER_LOGIN_KEY); if (attribute = = null) {log.info ("user is not logged in or session is invalid, redirect to login page, current URL=" + requestURI) / / first determine whether the ajax request if (StringUtil.isAjax (request)) {/ / indicates that the ajax request try {response.setCharacterEncoding ("UTF-8") Response.getWriter () .write (JSON.toJSONString (CodeMsg.USER_SESSION_EXPIRED));} catch (IOException e) {/ / TODO Auto-generated catch block e.printStackTrace () } return false } / / description is an ordinary request, which can be directly redirected to the login page / / the user is not logged in or the session is invalid. Redirect to the login page try {response.sendRedirect ("/ system/login") } catch (IOException e) {/ / TODO Auto-generated catch block e.printStackTrace ();} return false;} log.info ("this request meets login requirements, release" + requestURI) If (! StringUtil.isAjax (request)) {/ / if it is not an ajax request, put the menu information into the page template variable User user = (User) attribute; List authorities = user.getRole () .getAuthorities (); request.setAttribute ("userTopMenus", MenuUtil.getTopMenus (authorities)) List secondMenus = MenuUtil.getSecondMenus (user.getRole (). GetAuthorities ()); request.setAttribute ("userSecondMenus", secondMenus); request.setAttribute ("userThirdMenus", MenuUtil.getChildren (MenuUtil.getMenuIdByUrl (requestURI,secondMenus), authorities)); request.setAttribute ("siteName", siteConfig.getSiteName ()) Request.setAttribute ("siteUrl", siteConfig.getSiteUrl ());} return true;}} Hospital appointment registration system background management page code: ${siteName! "} background management system home page

${siteName!

Backup file

${databaseBackupTotal! "0"}

Total number of users

${userTotal! "0"}

Current online users

${onlineUserTotal! "0"}

Operation log

${operatorLogTotal! "0"}

Doctor number, doctor name, patient name, department payment status. Home visit status ${orderReceiving.doctor.doctorDno} ${orderReceiving.doctor.user.name} ${orderReceiving.orderRegistration.patient.user.name} ${orderReceiving.doctor.department.name} unpaid Paid Not finished. Completed. $(document) .ready (function () {}) The above is all the contents of the article "how to realize the Hospital appointment Registration system in Java". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Login doctor user page system administration hospital project payment selection code information content function name background patient status administrator article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn OPPO Reno Redmi MySQL Apple