💖💖作者:计算机毕业设计小途 💙💙个人简介:曾长期从事计算机专业培训教学,本人也热爱上课教学,语言擅长Java、微信小程序、Python、Golang、安卓Android等,开发项目包括大数据、深度学习、网站、小程序、安卓、算法。平常会做一些项目定制化开发、代码讲解、答辩教学、文档编写、也懂一些降重方面的技巧。平常喜欢分享一些自己开发中遇到的问题的解决办法,也喜欢交流技术,大家有技术代码这一块的问题可以问我! 💛💛想说的话:感谢大家的关注与支持! 💜💜 网站实战项目 安卓/小程序实战项目 大数据实战项目 深度学习实战项目
@TOC
xxx系统介绍
基于SpringBoot+Vue的眼科患者随访管理系统是一款专门针对眼科医疗机构设计的综合性患者管理平台,采用当前主流的B/S架构模式,结合SpringBoot后端框架、Vue前端技术以及MySQL数据库,为眼科诊疗提供全方位的信息化解决方案。该系统涵盖了眼科医疗服务的完整流程,包括患者信息的全面记录与管理、医生信息的系统化维护、眼科疾病的分类管理以及电子档案的数字化存储,同时支持用药记录的详细追踪和复诊提醒功能,确保患者能够按时进行后续治疗。系统的核心亮点在于复诊随访数据的智能化管理,能够帮助医生更好地跟踪患者的康复进展,制定个性化的治疗方案。此外,系统还集成了轮播图管理模块用于医院宣传,智能AI功能提供辅助诊断支持,公告信息管理确保医患沟通的及时性和有效性。整个系统界面采用ElementUI组件库设计,操作简洁直观,用户体验良好,既适合医生日常使用,也便于患者查询个人信息和修改密码等基础操作。通过SpringBoot强大的后端处理能力和Vue灵活的前端交互,该系统实现了眼科患者随访的全流程数字化管理,显著提升了医疗服务效率和患者满意度。
基于SpringBoot+Vue的眼科患者随访管理系统演示视频
基于SpringBoot+Vue的眼科患者随访管理系统演示图片
基于SpringBoot+Vue的眼科患者随访管理系统代码展示
import org.apache.spark.sql.SparkSession;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.*;
import java.time.LocalDateTime;
@RestController
@RequestMapping("/eyecare")
public class EyeCareController {
@Autowired
private PatientService patientService;
@Autowired
private MedicationService medicationService;
@Autowired
private FollowUpService followUpService;
@PostMapping("/patient/register")
public ResponseResult registerPatient(@RequestBody PatientInfo patientInfo) {
SparkSession spark = SparkSession.builder().appName("EyeCarePatientAnalysis").master("local[*]").getOrCreate();
Dataset<Row> patientDataset = spark.read().format("jdbc").option("url", "jdbc:mysql://localhost:3306/eyecare").option("dbtable", "patient_info").option("user", "root").option("password", "123456").load();
long existingPatients = patientDataset.filter(patientDataset.col("id_card").equalTo(patientInfo.getIdCard())).count();
if (existingPatients > 0) {
return ResponseResult.error("患者身份证号已存在,请勿重复注册");
}
patientInfo.setRegistrationTime(LocalDateTime.now());
patientInfo.setPatientStatus("正常");
patientInfo.setCreateTime(new Date());
String patientId = generatePatientId();
patientInfo.setPatientId(patientId);
if (patientInfo.getAge() < 18) {
patientInfo.setPatientType("儿童患者");
} else if (patientInfo.getAge() >= 60) {
patientInfo.setPatientType("老年患者");
} else {
patientInfo.setPatientType("成年患者");
}
boolean saveResult = patientService.savePatientInfo(patientInfo);
if (saveResult) {
createElectronicArchive(patientId);
return ResponseResult.success("患者信息注册成功", patientInfo);
} else {
return ResponseResult.error("患者信息保存失败,请重试");
}
}
@PostMapping("/medication/record")
public ResponseResult recordMedication(@RequestBody MedicationRecord medicationRecord) {
SparkSession spark = SparkSession.builder().appName("EyeCareMedicationAnalysis").master("local[*]").getOrCreate();
Dataset<Row> medicationDataset = spark.read().format("jdbc").option("url", "jdbc:mysql://localhost:3306/eyecare").option("dbtable", "medication_record").option("user", "root").option("password", "123456").load();
Dataset<Row> patientMedications = medicationDataset.filter(medicationDataset.col("patient_id").equalTo(medicationRecord.getPatientId()));
long medicationCount = patientMedications.count();
medicationRecord.setRecordTime(LocalDateTime.now());
medicationRecord.setMedicationStatus("使用中");
if (medicationRecord.getDosage() <= 0) {
return ResponseResult.error("药物剂量必须大于0");
}
if (medicationRecord.getFrequency() <= 0) {
return ResponseResult.error("用药频次必须大于0");
}
LocalDateTime endTime = medicationRecord.getStartTime().plusDays(medicationRecord.getDuration());
medicationRecord.setEndTime(endTime);
boolean isDrugConflict = checkDrugConflict(medicationRecord.getPatientId(), medicationRecord.getMedicationName());
if (isDrugConflict) {
medicationRecord.setWarningFlag("药物冲突警告");
}
boolean saveResult = medicationService.saveMedicationRecord(medicationRecord);
if (saveResult) {
updatePatientMedicationCount(medicationRecord.getPatientId(), (int)medicationCount + 1);
createMedicationReminder(medicationRecord);
return ResponseResult.success("用药记录添加成功", medicationRecord);
} else {
return ResponseResult.error("用药记录保存失败");
}
}
@PostMapping("/followup/schedule")
public ResponseResult scheduleFollowUp(@RequestBody FollowUpSchedule followUpSchedule) {
SparkSession spark = SparkSession.builder().appName("EyeCareFollowUpAnalysis").master("local[*]").getOrCreate();
Dataset<Row> followUpDataset = spark.read().format("jdbc").option("url", "jdbc:mysql://localhost:3306/eyecare").option("dbtable", "follow_up_record").option("user", "root").option("password", "123456").load();
Dataset<Row> patientFollowUps = followUpDataset.filter(followUpDataset.col("patient_id").equalTo(followUpSchedule.getPatientId()));
long followUpCount = patientFollowUps.count();
followUpSchedule.setScheduleTime(LocalDateTime.now());
followUpSchedule.setFollowUpStatus("待随访");
if (followUpSchedule.getFollowUpDate().isBefore(LocalDateTime.now().plusDays(1))) {
return ResponseResult.error("随访日期不能早于明天");
}
followUpSchedule.setFollowUpType(determineFollowUpType(followUpSchedule.getPatientId()));
LocalDateTime reminderTime = followUpSchedule.getFollowUpDate().minusDays(1);
followUpSchedule.setReminderTime(reminderTime);
if (followUpCount > 0) {
Row lastFollowUp = patientFollowUps.orderBy(patientFollowUps.col("follow_up_date").desc()).first();
long daysBetween = calculateDaysBetween(lastFollowUp.getAs("follow_up_date"), followUpSchedule.getFollowUpDate());
followUpSchedule.setIntervalDays((int)daysBetween);
}
boolean doctorAvailable = checkDoctorAvailability(followUpSchedule.getDoctorId(), followUpSchedule.getFollowUpDate());
if (!doctorAvailable) {
return ResponseResult.error("该时间段医生不可用,请选择其他时间");
}
boolean saveResult = followUpService.saveFollowUpSchedule(followUpSchedule);
if (saveResult) {
updatePatientFollowUpCount(followUpSchedule.getPatientId(), (int)followUpCount + 1);
createFollowUpReminder(followUpSchedule);
return ResponseResult.success("复诊随访安排成功", followUpSchedule);
} else {
return ResponseResult.error("复诊随访安排失败");
}
}
}
基于SpringBoot+Vue的眼科患者随访管理系统文档展示
💖💖作者:计算机毕业设计小途 💙💙个人简介:曾长期从事计算机专业培训教学,本人也热爱上课教学,语言擅长Java、微信小程序、Python、Golang、安卓Android等,开发项目包括大数据、深度学习、网站、小程序、安卓、算法。平常会做一些项目定制化开发、代码讲解、答辩教学、文档编写、也懂一些降重方面的技巧。平常喜欢分享一些自己开发中遇到的问题的解决办法,也喜欢交流技术,大家有技术代码这一块的问题可以问我! 💛💛想说的话:感谢大家的关注与支持! 💜💜 网站实战项目 安卓/小程序实战项目 大数据实战项目 深度学习实战项目