Go to file
2026-01-12 13:36:00 +08:00
app Sure! Pl 2026-01-12 12:42:48 +08:00
bootstrap Sure! Pl 2026-01-12 12:42:48 +08:00
config Sure! Pl 2026-01-12 12:42:48 +08:00
database Sure! Pl 2026-01-12 12:42:48 +08:00
public Sure! Pl 2026-01-12 12:42:48 +08:00
resources Refactor patient reminders view to use a new stats filter bar layout. Updated styling for improved responsiveness and user experience. Removed old statistics card and filter tabs, replacing them with a more compact design. Added export button functionality within the new layout. 2026-01-12 13:29:13 +08:00
routes Sure! Pl 2026-01-12 12:42:48 +08:00
storage Sure! Pl 2026-01-12 12:42:48 +08:00
tests Sure! Pl 2026-01-12 12:42:48 +08:00
.editorconfig Sure! Pl 2026-01-12 12:42:48 +08:00
.env.example Sure! Pl 2026-01-12 12:42:48 +08:00
.gitattributes Sure! Pl 2026-01-12 12:42:48 +08:00
.gitignore Sure! Pl 2026-01-12 12:42:48 +08:00
artisan Sure! Pl 2026-01-12 12:42:48 +08:00
composer.json Sure! Pl 2026-01-12 12:42:48 +08:00
composer.lock Sure! Pl 2026-01-12 12:42:48 +08:00
package.json Sure! Pl 2026-01-12 12:42:48 +08:00
phpunit.xml Sure! Pl 2026-01-12 12:42:48 +08:00
README.md Update README.md to introduce the patient follow-up reminder system, detailing features, installation steps, and technical stack. Removed outdated Laravel information and added new content relevant to the application. 2026-01-12 13:36:00 +08:00
vite.config.js Sure! Pl 2026-01-12 12:42:48 +08:00

病例回访提醒系统

一个基于 Laravel 的患者随访管理系统,帮助医疗机构管理患者回访工作。

功能特性

患者管理

  • 📋 患者信息列表,支持搜索和分页
  • 📥 Excel/CSV 批量导入患者数据
  • 📤 导出患者数据到 Excel
  • 🗑️ 删除患者记录

随访提醒

  • 智能计算随访日期出院后1周、1月、3月、6月
  • 🔴 过期提醒 - 显示已过期未随访的患者
  • 🟡 今日到期 - 当天需要随访的患者
  • 🔵 即将到期 - 7天内需要随访的患者
  • 标记随访完成,自动计算下次随访时间

用户系统

  • 👤 用户注册/登录
  • 🔐 数据隔离 - 每个用户只能查看自己的患者数据
  • 🚪 安全退出

界面特性

  • 📱 响应式设计完美适配移动端和PC端
  • 🎨 现代化UI设计浅色主题
  • 📊 统计面板,一目了然查看随访状态
  • 📞 一键拨打患者电话

技术栈

  • 后端: Laravel 11 / PHP 8.2+
  • 数据库: MySQL
  • Excel处理: xlswriter 扩展
  • 前端: Blade 模板 + 原生 CSS

安装部署

环境要求

  • PHP >= 8.2
  • MySQL >= 5.7
  • Composer
  • xlswriter PHP 扩展(用于 Excel 导入导出)

安装步骤

  1. 克隆项目
git clone <repository-url>
cd reminder
  1. 安装依赖
composer install
  1. 配置环境
cp .env.example .env
php artisan key:generate
  1. 配置数据库 编辑 .env 文件,设置数据库连接:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=reminder
DB_USERNAME=your_username
DB_PASSWORD=your_password
  1. 运行迁移
php artisan migrate
  1. 启动服务
php artisan serve

访问 http://localhost:8000 即可使用。

Excel 导入格式

支持 .xlsx.csv 格式,表头需包含以下字段:

字段 说明 必填
姓名 患者姓名
性别 男/女
年龄 数字
诊断 疾病诊断
转诊日期 出院/转诊日期
地址 患者地址
联系方式 电话号码
备注 其他备注信息

随访时间规则

系统根据患者的转诊日期自动计算随访时间:

随访次数 时间节点
第1次 转诊后 7 天
第2次 转诊后 1 个月
第3次 转诊后 3 个月
第4次 转诊后 6 个月

目录结构

reminder/
├── app/
│   ├── Http/Controllers/
│   │   ├── AuthController.php      # 用户认证
│   │   └── PatientController.php   # 患者管理
│   └── Models/
│       ├── Patient.php             # 患者模型
│       └── User.php                # 用户模型
├── resources/views/
│   ├── layouts/app.blade.php       # 主布局
│   ├── auth/                       # 登录注册页面
│   └── patients/                   # 患者相关页面
├── routes/web.php                  # 路由定义
└── database/migrations/            # 数据库迁移

License

MIT License