Files
xk-docs/docs/projects/xk-api/modules/doctor.md

214 lines
6.2 KiB
Markdown
Raw Normal View History

2026-07-08 15:04:42 +08:00
# 医生管理模块
## 概述
医生管理模块负责医生、药师的信息管理、接诊、在线问诊、患者管理等。
---
## 医生管理
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `doctor/list` | 医生列表 |
| GET | `doctor/detail` | 医生详情 |
| POST | `doctor/update` | 更新医生信息 |
| GET | `doctor/option` | 医生选项 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `DoctorController` | `app/Http/Controllers/admin/business/doctor/DoctorController.php` | 控制器 |
| `DoctorService` | `app/Service/admin/business/doctor/DoctorService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `DoctorInfoModel` | `yii_doctor_info` | 医生信息 |
| `DoctorServiceModel` | `yii_doctor_service` | 医生服务设置 |
| `DoctorStoreModel` | `yii_store_doctor` | 门店-医生关联 |
| `DoctorIdentityModel` | `yii_doctor_identity` | 身份验证 |
| `DoctorPracticingModel` | `yii_doctor_practicing` | 执业证书 |
| `DoctorTitleModel` | `yii_doctor_title` | 职称 |
| `DoctorRegisterModel` | `yii_doctor_register` | 挂号设置 |
| `DoctorRosteringModel` | `yii_doctor_rostering` | 排班 |
| `DoctorNoticeModel` | `yii_doctor_notice` | 停诊通知 |
---
## 药师管理
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `pharmacist/list` | 药师列表 |
| GET | `pharmacist/detail` | 药师详情 |
| POST | `pharmacist/update` | 更新药师信息 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `PharmacistController` | `app/Http/Controllers/admin/business/doctor/PharmacistController.php` | 控制器 |
| `PharmacistService` | `app/Service/admin/business/doctor/PharmacistService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `PharmacistInfoModel` | `yii_pharmacist_info` | 药师信息 |
| `PharmacistIdentityModel` | `yii_pharmacist_identity` | 身份验证 |
| `PharmacistPracticingModel` | `yii_pharmacist_practicing` | 执业证书 |
---
## 医生接诊
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `doctor-reception/list` | 接诊列表 |
| GET | `doctor-reception/detail` | 接诊详情 |
| POST | `doctor-reception/accept` | 接诊 |
| POST | `doctor-reception/refuse` | 拒绝 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `DoctorReceptionController` | `app/Http/Controllers/admin/business/doctor/DoctorReceptionController.php` | 控制器 |
| `DoctorReceptionService` | `app/Service/admin/business/doctor/DoctorReceptionService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `OrderModel` | `yii_order` | 咨询订单 |
---
## 在线问诊
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `online-consultation/list` | 问诊列表 |
| POST | `online-consultation/config` | 问诊配置 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `OnlineConsultationController` | `app/Http/Controllers/admin/business/doctor/OnlineConsultationController.php` | 控制器 |
| `OnlineConsultationService` | `app/Service/admin/business/doctor/OnlineConsultationService.php` | 业务服务 |
| `OnlineConsultationClinicController` | `app/Http/Controllers/admin/business/doctor/OnlineConsultationClinicController.php` | 门店问诊控制器 |
| `OnlineConsultationClinicService` | `app/Service/admin/business/doctor/OnlineConsultationClinicService.php` | 门店问诊服务 |
---
## 患者管理
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `patient-management/list` | 患者列表 |
| GET | `patient-management/detail` | 患者详情 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `PatientManagementController` | `app/Http/Controllers/admin/business/doctor/PatientManagementController.php` | 控制器 |
| `PatientManagementService` | `app/Service/admin/business/doctor/PatientManagementService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `DoctorPatientModel` | `yii_doctor_patient` | 医生患者列表 |
| `DoctorPatientRemarkModel` | `yii_doctor_patient_remark` | 患者备注 |
| `PatientVisitRecordModel` | `yii_patient_visit_record` | 就诊记录 |
| `UserPatientCaseModel` | `yii_user_patient_case` | 患者病历 |
---
## 医生文章
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `doctor-article/list` | 文章列表 |
| GET | `doctor-article/detail` | 文章详情 |
| POST | `doctor-article/create` | 创建文章 |
| POST | `doctor-article/update` | 更新文章 |
| POST | `doctor-article/delete` | 删除文章 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `DoctorArticleController` | `app/Http/Controllers/admin/business/doctor/DoctorArticleController.php` | 控制器 |
| `DoctorArticleService` | `app/Service/admin/business/doctor/DoctorArticleService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `DoctorArticleModel` | `yii_doctor_article` | 医生文章 |
---
## 文章分类
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `article-categories/list` | 分类列表 |
| POST | `article-categories/create` | 创建分类 |
| POST | `article-categories/update` | 更新分类 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `ArticleCategoriesController` | `app/Http/Controllers/admin/business/doctor/ArticleCategoriesController.php` | 控制器 |
| `ArticleCategoriesService` | `app/Service/admin/business/doctor/ArticleCategoriesService.php` | 业务服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `ArticleCategoriesModel` | `yii_categories` | 文章分类 |
---
## 医生改价
### 接口
| 方法 | 路径 | 说明 |
|------|------|------|
| POST | `doctor-reception/adjust-price` | 医生改价 |
### 关联类
| 类 | 文件 | 说明 |
|----|------|------|
| `OrderPriceAdjustService` | `app/Service/admin/business/doctor/OrderPriceAdjustService.php` | 改价服务 |
### 关联模型
| 模型 | 表名 | 说明 |
|------|------|------|
| `ProductOrderPriceAdjustLogModel` | `xk_product_order_price_adjust_log` | 改价日志 |