diff --git a/README.md b/README.md index 0165a77..33ee8d5 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,135 @@ -

Laravel Logo

+# 病例回访提醒系统 -

-Build Status -Total Downloads -Latest Stable Version -License -

+一个基于 Laravel 的患者随访管理系统,帮助医疗机构管理患者回访工作。 -## About Laravel +## 功能特性 -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +### 患者管理 +- 📋 患者信息列表,支持搜索和分页 +- 📥 Excel/CSV 批量导入患者数据 +- 📤 导出患者数据到 Excel +- 🗑️ 删除患者记录 -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). +### 随访提醒 +- ⏰ 智能计算随访日期(出院后1周、1月、3月、6月) +- 🔴 过期提醒 - 显示已过期未随访的患者 +- 🟡 今日到期 - 当天需要随访的患者 +- 🔵 即将到期 - 7天内需要随访的患者 +- ✅ 标记随访完成,自动计算下次随访时间 -Laravel is accessible, powerful, and provides tools required for large, robust applications. +### 用户系统 +- 👤 用户注册/登录 +- 🔐 数据隔离 - 每个用户只能查看自己的患者数据 +- 🚪 安全退出 -## Learning Laravel +### 界面特性 +- 📱 响应式设计,完美适配移动端和PC端 +- 🎨 现代化UI设计,浅色主题 +- 📊 统计面板,一目了然查看随访状态 +- 📞 一键拨打患者电话 -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application. +## 技术栈 -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. +- **后端**: Laravel 11 / PHP 8.2+ +- **数据库**: MySQL +- **Excel处理**: xlswriter 扩展 +- **前端**: Blade 模板 + 原生 CSS -## Laravel Sponsors +## 安装部署 -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). +### 环境要求 +- PHP >= 8.2 +- MySQL >= 5.7 +- Composer +- xlswriter PHP 扩展(用于 Excel 导入导出) -### Premium Partners +### 安装步骤 -- **[Vehikl](https://vehikl.com)** -- **[Tighten Co.](https://tighten.co)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Redberry](https://redberry.international/laravel-development)** -- **[Active Logic](https://activelogic.com)** +1. **克隆项目** +```bash +git clone +cd reminder +``` -## Contributing +2. **安装依赖** +```bash +composer install +``` -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). +3. **配置环境** +```bash +cp .env.example .env +php artisan key:generate +``` -## Code of Conduct +4. **配置数据库** +编辑 `.env` 文件,设置数据库连接: +``` +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=reminder +DB_USERNAME=your_username +DB_PASSWORD=your_password +``` -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). +5. **运行迁移** +```bash +php artisan migrate +``` -## Security Vulnerabilities +6. **启动服务** +```bash +php artisan serve +``` -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. +访问 `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 -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +MIT License