Java毕业设计-基于Springboot框架的医院病历管理系统项目实战(附源码+论文)
大家好!我是岛上程序猿,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:Java毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
✨Python-based Senior Thesis
🌍微信小程序 Senior Design Project
开发环境
开发语言为Java
所使用的框架是Spring Boot
运行环境中的JDK版本为1.8
服务器配置采用Tomcat 7
数据库系统基于MySQL 5.7
数据库操作工具选用Navicat 12
常用的开发软件包括Eclipse、MyEclipse以及IDEA
项目管理依赖Maven 3.3.9组件
统一采用Chrome浏览器进行访问
演示视频
springboot568医院病历管理系统演示录像2023
论文目录
【如需全文或源码请按文末获取联系】


一、项目简介
在医院病历管理系统中基于Java技术及MySQL数据库构建。该系统由管理员、病人和医生三个角色构成,并承担包括个人中心服务在内的各项功能
二、系统设计
2.1软件功能模块设计
在本系统中可登录的用户分为三类:包括管理员、病人以及医生。一旦进入系统后,则根据其身份(即角色的不同),用户将具备相应的操作权限。其中管理者的功能最为强大,在此平台中掌握着系统的最高权限。参考图4-1可以看出系统的整体架构模式

2.2数据库设计
病历信息实体属性图如下所示:

住院信息实体属性图如下所示:

出院信息实体属性图如下所示:

三、系统项目部分截图
3.1系统登录实现
系统登录操作中,在选定要登录的角色界面时,在正确输入用户名与密码之后,则可进入操作系统并执行相应的操作;如图5-1所示

3.2管理员模块实现
系统管理员登录到主页,在线服务包含有多个功能模块可供调用:其中包括访问系统主页、个人管理区域以及一系列专业服务功能区等。具体来说,在线服务涵盖了病历管理模块、医师信息管理系统以及各类医疗数据处理平台等功能组件。其中包含有病历信息管理系统等核心组件供临床医护人员使用

系统管理员点击进入病人管理界面。在患者信息页面录入患者账号信息后即可实现患者数据的查询、新增和删除操作,并可依需求完成患者详细资料的查看、修改及移除等操作。(如图5-3所示)

系统管理员单击"医生管理"按钮,在 doctor 页面录入包含编号(doctor ID)、姓名(name)、所属科室(department)及职称信息(position)等基础数据;完成查询后即可创建新记录或删除现有记录;依需求对 doctor 信息执行查看详细信息(view details)、进入编辑模式(edit profile)以及执行删除操作(delete)等操作;如图5-4所示:

3.3病人管理实现
患者进入系统后即可操作个人中心模块、住院信息管理模块、出院信息管理模块以及病历信息管理模块等各项功能。请参考图5-6查看患者主页面界面。

3.4医生管理实现
医生在系统中可完成个人中心、病人管理、住院信息管理、出院信息管理以及病历信息管理等功能。

医疗工作者通过系统执行住院信息管理流程。在患者资料页面录入患者姓名并选定出院状态后完成查询、新增或删除患者住院单列表,并依据需求对住院单详情进行详细记录、出院处理登记以及病历存档等操作;如图5-8所示:

四、部分核心代码
package com.controller;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.ChuyuanxinxiEntity;
import com.entity.view.ChuyuanxinxiView;
import com.service.ChuyuanxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;
/** * 出院信息
* 后端接口
* @author
* @email
* @date 2023-03-14 09:34:29
*/
@RestController
@RequestMapping("/chuyuanxinxi")
public class ChuyuanxinxiController {
@Autowired
private ChuyuanxinxiService chuyuanxinxiService;
/** * 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ChuyuanxinxiEntity chuyuanxinxi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("bingren")) {
chuyuanxinxi.setBingrenzhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yisheng")) {
chuyuanxinxi.setYishenggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ChuyuanxinxiEntity> ew = new EntityWrapper<ChuyuanxinxiEntity>();
PageUtils page = chuyuanxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chuyuanxinxi), params), params));
return R.ok().put("data", page);
}
/** * 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ChuyuanxinxiEntity chuyuanxinxi,
HttpServletRequest request){
EntityWrapper<ChuyuanxinxiEntity> ew = new EntityWrapper<ChuyuanxinxiEntity>();
PageUtils page = chuyuanxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chuyuanxinxi), params), params));
return R.ok().put("data", page);
}
/** * 列表
*/
@RequestMapping("/lists")
public R list( ChuyuanxinxiEntity chuyuanxinxi){
EntityWrapper<ChuyuanxinxiEntity> ew = new EntityWrapper<ChuyuanxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( chuyuanxinxi, "chuyuanxinxi"));
return R.ok().put("data", chuyuanxinxiService.selectListView(ew));
}
/** * 查询
*/
@RequestMapping("/query")
public R query(ChuyuanxinxiEntity chuyuanxinxi){
EntityWrapper< ChuyuanxinxiEntity> ew = new EntityWrapper< ChuyuanxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( chuyuanxinxi, "chuyuanxinxi"));
ChuyuanxinxiView chuyuanxinxiView = chuyuanxinxiService.selectView(ew);
return R.ok("查询出院信息成功").put("data", chuyuanxinxiView);
}
/** * 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ChuyuanxinxiEntity chuyuanxinxi = chuyuanxinxiService.selectById(id);
return R.ok().put("data", chuyuanxinxi);
}
/** * 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ChuyuanxinxiEntity chuyuanxinxi = chuyuanxinxiService.selectById(id);
return R.ok().put("data", chuyuanxinxi);
}
/** * 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ChuyuanxinxiEntity chuyuanxinxi, HttpServletRequest request){
chuyuanxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chuyuanxinxi);
chuyuanxinxiService.insert(chuyuanxinxi);
return R.ok();
}
/** * 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ChuyuanxinxiEntity chuyuanxinxi, HttpServletRequest request){
chuyuanxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chuyuanxinxi);
chuyuanxinxiService.insert(chuyuanxinxi);
return R.ok();
}
/** * 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody ChuyuanxinxiEntity chuyuanxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(chuyuanxinxi);
chuyuanxinxiService.updateById(chuyuanxinxi);//全部更新
return R.ok();
}
/** * 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
chuyuanxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/** * 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<ChuyuanxinxiEntity> wrapper = new EntityWrapper<ChuyuanxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("bingren")) {
wrapper.eq("bingrenzhanghao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yisheng")) {
wrapper.eq("yishenggonghao", (String)request.getSession().getAttribute("username"));
}
int count = chuyuanxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
AI写代码
获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微信联系我。
