基于javaweb的医疗挂号管理系统(java+springboot+freemarker+layui+mysql)

基于javaweb的医疗挂号管理系统(java+springboot+freemarker+layui+mysql)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

20220819210023

20220819210024

20220819210025

20220819210026

20220819210027

20220819210028

基于javaweb+mysql的医疗挂号管理系统(java+Springboot+freemarker+layui+maven+Mysql)

项目介绍

本系统分为管理员、医生、患者三种角色; 管理员角色包含以下功能: 管理员登录,医生患者管理,患者管理,药品管理,科目管理,疾病管理,预约管理,病史管理,住院信息管理,管理员管理等功能。

医生角色包含以下功能: 医生角色登录,查看预约的病例,开药,查看病史等功能。

患者角色包含以下功能: 患者角色首页,患者登录,查询信息,挂号预约,查看病史,查看住院信息等功能。

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;  5.数据库:MySql 5.7版本; 6.是否Maven项目:是;

技术栈

  1. 后端:SpringBoot 2. 前端:freemarker+CSS+JavaScript+jquery+layui

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入localhost:8080/ 登录

医生管理控制层:

@Controller

public class DoctorController {

@Autowired

DoctorService doctorService;

@Autowired

AppointmentService appointmentService;

@Autowired

PatientService patientService;

@Autowired

DrugsService drugsService;

@Autowired

HospitalizationService hospitalizationService;

@Autowired

MedicalhistoryService medicalhistoryService;

@Autowired

OptionService optionService;

@Autowired

SeekService seekService;

@Value(“${filepath.seekpdfpath}”)

private String path;

@RequestMapping(“/admin/doctorManage”)

public String doctorManage(HttpServletRequest request,@RequestParam(value=“name”,required = false) String name,@RequestParam(value=“certId”,required = false) String certId){

request.setAttribute(“name”,name);

request.setAttribute(“certId”,certId);

request.setAttribute(“doctors”,doctorService.getAllDoctor(name,certId));

return “admin/doctorManage”;

@RequestMapping(value = “/admin/doctor/{id}”,method = RequestMethod.DELETE)

@ResponseBody

public JSONObject delDoctor(@PathVariable Integer id){

JSONObject json=new JSONObject();

json.put(“message”,doctorService.delDoctor(id));

return json;

@RequestMapping(value = “/admin/doctor/{id}”,method = RequestMethod.GET)

public String doctorInfo(@PathVariable Integer id,HttpServletRequest request){

request.setAttribute(“doctor”,doctorService.getDoctor(id));

return “admin/info/doctorinfo”;

@RequestMapping(value = “/admin/doctor”,method = RequestMethod.POST)

@ResponseBody

public JSONObject AddDoctor(@RequestBody Doctor doctor){

JSONObject json=new JSONObject();

json.put(“message”,doctorService.addDoctor(doctor));

return json;

@RequestMapping(value = “/admin/doctor”,method = RequestMethod.PUT)

@ResponseBody

public JSONObject updateDoctor(@RequestBody Doctor doctor){

JSONObject json=new JSONObject();

json.put(“message”,doctorService.upDoctor(doctor));

return json;

@RequestMapping(“/admin/doctorAdd”)

public String doctorAddPage(){

return “admin/add/doctoradd”;

@RequestMapping(“/doctor/seekMedicalAdvice”)

public String seekMedicalAdvice(HttpServletRequest request, HttpSession session,@RequestParam(value = “patientname”,required = false)String patientname,@RequestParam(value = “time”,required = false)String time){

Login login=(Login)session.getAttribute(“login”);

Doctor doctor=doctorService.getDoctorByLoginId(login.getId());

request.setAttribute(“appointments” ,appointmentService.selectByDoctorId(doctor.getId(),patientname,time));

return “doctor/seekMedicalAdvice”;

@RequestMapping(“/doctor/seek/{id}”)

public String seek(@PathVariable Integer id,HttpServletRequest request){

request.setAttribute(“options”,optionService.getAll());

request.setAttribute(“patient”,patientService.getPatient(id));

request.setAttribute(“drugs”,drugsService.getAllDrugs());

return “doctor/seek”;

@RequestMapping(value = “/doctor/drug”,method = RequestMethod.PUT)

@ResponseBody

public JSONObject drug(@RequestBody Map map){

JSONObject json=new JSONObject();

Patient patient=new Patient();

patient.setDrugsids(DrugsUtils.vaild(map));

patient.setId(Integer.parseInt((String)map.get(“patientid”)));

json.put(“message”,patientService.seek(patient));

return json;

@RequestMapping(value = “/doctor/zation”,method = RequestMethod.POST)

@ResponseBody

public JSONObject zation(@RequestBody Hospitalization hospitalization){

JSONObject json=new JSONObject();

json.put(“message”,hospitalizationService.AddHospitalization(hospitalization));

return json;

@RequestMapping(value = “/doctor/medicalhistory/{id}”)

public String medicalhistory(@PathVariable Integer id,HttpServletRequest request){

request.setAttribute(“medicalhistorys”,medicalhistoryService.getMedicalhistoryByPatientId(id));

return “doctor/medicalhistory”;

@RequestMapping( value = “/doctor/{department}”,method = RequestMethod.GET)

@ResponseBody

public JSONObject getDoctorByDepartment(@PathVariable String department) throws UnsupportedEncodingException{

JSONObject json=new JSONObject();

department = URLDecoder.decode(department,“UTF-8”);

json.put(“doctors”,doctorService.getDoctorByDepartment(department));

return json;

@RequestMapping( value = “/doctor/seekinfo”,method = RequestMethod.POST)

@ResponseBody

public JSONObject seekinfo(@RequestBody Map map){

JSONObject json=new JSONObject();

String message=doctorService.seekInfo(map);

json.put(“message”,message);

return json;

@RequestMapping( value = “/doctor/printseek/{id}”,method = RequestMethod.POST)

@ResponseBody

public JSONObject printseek(@PathVariable Integer id,HttpSession session){

Login login=(Login)session.getAttribute(“login”);

Doctor doctor=doctorService.getDoctorByLoginId(login.getId());

JSONObject json=new JSONObject();

Seek seek=seekService.getSeekByPatientId(id);

seek.setPatientname(patientService.getPatient(id).getName());

seek.setDoctorname(doctor.getName());

//createSeekInfo,第三个参数填空字符串就是生成在项目根目录里面,要是想生成在别的路径,例:D:\ 就是生成在D盘根目录

path = Thread.currentThread().getContextClassLoader().getResource(“”).getPath().substring(0,Thread.currentThread().getContextClassLoader().getResource(“”).getPath().length()-16)+“/”;

String message= PDFUtils.createSeekInfo(seek,optionService,path);

json.put(“message”,message);

return json;

登录管理控制层:

@Controller

public class LoginController {

@Autowired

LoginService loginService;

@RequestMapping(value = “/hospital/login”)

public String loginAndregist(){

return “login&regist”;

@RequestMapping(“/admin/adminManage”)

public String adminManage(HttpServletRequest request,@RequestParam(value = “username”,required = false)String username){

request.setAttribute(“username”,username);

request.setAttribute(“admins”,loginService.findAllAdmin(username));

return “/admin/adminManage”;

@RequestMapping(“/admin/admin/{id}”)

public String adminInfo(HttpServletRequest request,@PathVariable Integer id){

request.setAttribute(“admin”,loginService.getAdmin(id));

return “/admin/info/admininfo”;

@RequestMapping(“/admin/adminAdd”)

public String adminAddPage(){

return"admin/add/adminadd";

@RequestMapping(value = “/admin/admin”,method = RequestMethod.POST)

@ResponseBody

public JSONObject adminAdd(@RequestBody Login login){

JSONObject json=new JSONObject();

json.put(“message”,loginService.addAmin(login));

return json;

@RequestMapping(value = “/admin/admin”,method = RequestMethod.PUT)

@ResponseBody

public JSONObject upAdmin(@RequestBody Login login){

JSONObject json=new JSONObject();

json.put(“message”,loginService.updateAdmin(login));

return json;

@RequestMapping(value = “/admin/admin/{id}”,method = RequestMethod.DELETE)

@ResponseBody

public JSONObject delAdmin(@PathVariable Integer id){

JSONObject json=new JSONObject();

json.put(“message”,loginService.delAdmin(id));

return json;

@RequestMapping(value = “/loginout”,method = RequestMethod.GET)

public String loginout(HttpSession session){

session.removeAttribute(“login”);

return “/hospital”;

@RequestMapping(value = “/login”,method = RequestMethod.POST)

@ResponseBody

public JSONObject login(@RequestBody Login login,HttpSession session){

JSONObject json=new JSONObject();

json.put(“message”,loginService.login(login));

session.setAttribute(“login”,login);

return json;

@RequestMapping(value = “/regest”,method = RequestMethod.POST)

@ResponseBody

public JSONObject regest(@RequestBody Login login){

JSONObject json=new JSONObject();

json.put(“message”,loginService.regist(login));

return json;

@RequestMapping(“/hospital”)

public String hospital(){

return “index”;

@RequestMapping(“/hospital/patient/index”)

public String patientIndex(){

return “/patient/search”;

@RequestMapping(“/hospital/doctor/index”)

public String doctorIndex(){

return “/doctor/index”;

@RequestMapping(“/hospital/admin/index”)

public String adminIndex(){

return “/admin/index”;

病人管理控制层:

@Controller

public class PatientController {

@Autowired

PatientService patientService;

@Autowired

DoctorService doctorService;

@Autowired

AppointmentService appointmentService;

@Autowired

HospitalizationService hospitalizationService;

@Autowired

MedicalhistoryService medicalhistoryService;

@Value(“${filepath.appointpdf}”)

private String path;

@RequestMapping(“/admin/patientManage”)

public String patientlist(HttpServletRequest request,@RequestParam(value=“name”,required = false) String name,@RequestParam(value=“certId”,required = false) String certId){

request.setAttribute(“name”,name);

request.setAttribute(“certId”,certId);

request.setAttribute(“patients”,patientService.getAllPatients(name,certId));

return “admin/patientManage”;

@RequestMapping(value = “/admin/patient/{id}”,method = RequestMethod.DELETE)

@ResponseBody

public JSONObject delPatient(@PathVariable Integer id){

JSONObject json=new JSONObject();

json.put(“message”,patientService.delPatient(id));

return json;

@RequestMapping(value = “/admin/patient/{id}”,method = RequestMethod.GET)

public String patientInfo(@PathVariable Integer id,HttpServletRequest request){

request.setAttribute(“patient”,patientService.getPatient(id));

request.setAttribute(“appointments”,appointmentService.getPatientMessage(id));

request.setAttribute(“hospitalizations”,hospitalizationService.getPatientMessage(id));

request.setAttribute(“doctors”,doctorService.getAllDoctor());

return “admin/info/patientinfo”;

@RequestMapping(value = “/admin/patientAdd”,method = RequestMethod.GET)

public String patientAddPage(){

return “admin/add/patientadd”;

@RequestMapping(value = “/admin/patient”,method = RequestMethod.PUT)

@ResponseBody

public JSONObject patientInfo(@RequestBody Patient patient){

JSONObject json=new JSONObject();

json.put(“message”,patientService.updatePatient(patient));

return json;

@RequestMapping(value = “/admin/patient”,method = RequestMethod.POST)

@ResponseBody

public JSONObject delPatient(@RequestBody Patient patient){

JSONObject json=new JSONObject();

json.put(“message”,patientService.addPatient(patient));

return json;

@RequestMapping(value = “/patient/medicalhistory”)

public String medicalhistory(HttpSession session,HttpServletRequest request){

Login login=(Login)session.getAttribute(“login”);

Patient patient=patientService.findPatientByLoginId(login.getId());

request.setAttribute(“medicalhistorys”,medicalhistoryService.getMedicalhistoryByPatientId(patient.getId()));

return “patient/medicalhistory”;

@RequestMapping(value = “/patient/hospitalization”)

public String hospitalization(HttpSession session,HttpServletRequest request){

Login login=(Login)session.getAttribute(“login”);

Patient patient=patientService.findPatientByLoginId(login.getId());

request.setAttribute(“theLast”,hospitalizationService.findTheLastHospitalization(patient.getHospitalizationid()));

Hospitalization hospitalization=new Hospitalization();

hospitalization.setPatientid(patient.getId());

hospitalization.setId(patient.getHospitalizationid());

request.setAttribute(“others”,hospitalizationService.findOtherHospitalization(hospitalization));

return “patient/hospitalization”;

@RequestMapping(value = “/patient/appointment”)

public String appointmentInfo(HttpServletRequest request,HttpSession session){

Login login=(Login)session.getAttribute(“login”);

Patient patient=patientService.findPatientByLoginId(login.getId());

request.setAttribute(“patientid”,patient.getId());

request.setAttribute(“doctors”,doctorService.getAllDoctor());

return “patient/appointment”;

@RequestMapping(value = “/patient/appointment”,method = RequestMethod.POST)

@ResponseBody

public JSONObject appointment(@RequestBody Appointment appointment){

JSONObject json=new JSONObject();

Patient patient=new Patient();

String message=appointmentService.addAppointment(appointment);

patient.setAppointmentid(appointmentService.selectTheLastAppointment(appointment.getPatientid()));

patient.setId(appointment.getPatientid());

patientService.updateAppointMent(patient);

json.put(“message”,message);

return json;

@RequestMapping(value=“/patient/search”,method=RequestMethod.GET)

public String search(){

return “/patient/search”;

@RequestMapping(value=“/patient/searchinfo”,method=RequestMethod.GET)

@ResponseBody

public JSONObject searchinfo(@RequestParam(“name”)String name,@RequestParam(“type”)String type){

JSONObject json=new JSONObject();

json.put(“map”,patientService.serrchInfo(name,type));

return json;

@RequestMapping(value = “/hospital/{view}”)

public String test(@PathVariable String view){

return “patient/”+view;

@RequestMapping(value = “/patient/downloadpdf”,method = RequestMethod.POST)

@ResponseBody

public JSONObject downloadpdf(HttpSession session){

JSONObject json=new JSONObject();

Login login=(Login)session.getAttribute(“login”);

Patient patient=patientService.findPatientByLoginId(login.getId());

Integer idlast=appointmentService.selectTheLastAppointment(patient.getId());

Appointment appointment=appointmentService.getAppointment(idlast);

//createAppointMent,第三个参数填空字符串就是生成在项目根目录里面,要是想生成在别的路径,例:D:\ 就是生成在D盘根目录

path = Thread.currentThread().getContextClassLoader().getResource(“”).getPath().substring(0,Thread.currentThread().getContextClassLoader().getResource(“”).getPath().length()-16);

json.put(“message”,PDFUtils.createAppointMent(appointment,path));

return json;


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
 《Java web医院分诊挂号管理系统》该项目采用技术jsp、SpringMVC、spring,hibernate,tomcat服务器、mysql数据库 开发工具eclipse,项目含有源码、论文、配套开发软件、软件安装教程、项目发布教程分诊管理主要实现患者信息录入,分诊,排队等功能。    具体实现以下功能:   1 患者查询功能:为了方便医生查找患者等信息,将所有患者信息按照需要进行分类。这样医生就能很方便的找到自己需要的信息。   2 添加功能:管理员可以通过填写表格的形式输入患者姓名,联系电话等相关信息。系统可以自动避免重复信息。   3 修改功能:管理员可以对数据库中的信息进行修改。系统能够通过管理员给出的条件查找出所要修改的信息,对修改后的信息进行保存,并自动查找是否是重复信息。   4 删除功能:管理员可以对数据进行删除操作。系统能够通过管理员给出的条件查找出要删除的信息,并提示是否确定删除,如果确定删除,则把相关信息从数据库中删除掉。   5 管理员查询功能:管理员可以通过条件选择查询所有信息,并进行排序。 课程目标:    1、学会各类开发软件安装、项目导入以及项目发布,含项目源码,需求文档,配套软件等    2、该项目主要功能完善,主要用于简历项目经验丰富,以及毕业设计或者二次开发    3、提供项目源码,设计文档、数据库sql文件以及所有配套软件,按照教程即可轻松实现项目安装部署  本课程为素材版,需要实战版代码讲解教程的同学可以点击如下链接:java项目实战之电商系统全套(前台和后台)(java毕业设计ssm框架项目)https://edu.csdn.net/course/detail/25771java项目之oa办公管理系统(java毕业设计)https://edu.csdn.net/course/detail/23008java项目之hrm人事管理项目(java毕业设计)https://edu.csdn.net/course/detail/23007JavaWeb项目实战之点餐系统前台https://edu.csdn.net/course/detail/20543JavaWeb项目实战之点餐系统后台https://edu.csdn.net/course/detail/19572JavaWeb项目实战之宿舍管理系统https://edu.csdn.net/course/detail/26721JavaWeb项目实战之点餐系统全套(前台和后台)https://edu.csdn.net/course/detail/20610java项目实战之电子商城后台(java毕业设计SSM框架项目)https://edu.csdn.net/course/detail/25770java美妆商城项目|在线购书系统(java毕业设计项目ssm版)https://edu.csdn.net/course/detail/23989系统学习课程:JavaSE基础全套视频(环境搭建 面向对象 正则表达式 IO流 多线程 网络编程 java10https://edu.csdn.net/course/detail/26941Java Web从入门到电商项目实战挑战万元高薪(javaweb教程)https://edu.csdn.net/course/detail/25976其他素材版(毕业设计或课程设计)项目:点击老师头像进行相关课程学习

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值