Coordinate MDT specialist team to analyze patient medical data and generate comprehensive diagnostic reports. |
Core Process
用户输入 -> 读取数据索引 -> 确定分析范围 -> 识别专科需求 -> 并行启动专科分析 -> 整合报告 -> 展示结果
Step 1: Parse User Input
Data Scope Identification
| Input | Analysis Range |
|---|---|
| all | All available data |
| recent N | Last N records |
| date YYYY-MM-DD | Specified date data |
| date YYYY-MM-DD to YYYY-MM-DD | Date range data |
| no parameters | Last 3 records |
Step 2: Read Data Index
From data/index.json , read the patient examination record index.
Data File Types
- Examination Report:
data/检查报告/YYYY-MM/YYYY-MM-DD_检查名称.json - Symptom Record:
data/health-feeling-logs.json - Chronic Disease Management:
data/*-tracker.json
Step 3: Determine Consultation Specialties
Automatic Identification Rules
Based on the examination data and abnormal indicators, determine the specialty experts to invite:
| Abnormal Indicator | Specialty |
|---|---|
| Dyslipidemia, abnormal myocardial enzymes, abnormal BNP | Cardiology |
| Abnormal blood glucose, abnormal thyroid function | Endocrinology |
| Abnormal liver function, abnormal abdominal ultrasound | Gastroenterology |
| Abnormal kidney function, abnormal urinalysis | Nephrology |
| Abnormal blood count, abnormal coagulation | Hematology |
| Abnormal chest CT, abnormal infection indicators | Respiratory |
| Abnormal head imaging | Neurology |
| Abnormal tumor markers | Oncology |
| Multi-system abnormalities | General Practice (Coordinator) |
Specialty List
| Specialty Code | Specialty Name | Skill File |
|---|---|---|
| cardio | Cardiology | .claude/specialists/cardiology.md |
| endo | Endocrinology | .claude/specialists/endocrinology.md |
| gastro | Gastroenterology | .claude/specialists/gastroenterology.md |
| nephro | Nephrology | .claude/specialists/nephrology.md |
| heme | Hematology | .claude/specialists/hematology.md |
| resp | Respiratory | .claude/specialists/respiratory.md |
| neuro | Neurology | .claude/specialists/neurology.md |
| onco | Oncology | .claude/specialists/oncology.md |
| general | General Practice | .claude/specialists/general.md |
Step 4: Launch Parallel Specialty Analyses
Use the Task tool to launch subagents for the relevant specialties in parallel.
Subagent Prompt Template
您是{{专科名称}}专家。请按照以下 Skill 定义进行医疗数据分析:
## Skill 定义
{{读取对应的专科 skill 定义文件}}
## 患者医疗数据
{{加载相关的检查数据}}
## 分析要求
1. 严格按照 Skill 定义的格式输出分析报告
2. **优先分析慢性病管理情况**(如存在)
3. 结合检查报告数据综合分析
4. 严格遵守以下安全红线:
- 不给出具体用药剂量
- 不直接开具处方药名
- 不判断生死预后
- 不替代医生诊断
5. 提供具体可行的建议
Step 5: Integrate Consultation Report
Report Format
## 多学科会诊(MDT)报告
会诊日期: YYYY-MM-DD
━━━━━━━━━━━━━━━━━━━━━━━━━━
### 各专科分析
#### 1. {{专科名称}}
[专科分析内容...]
#### 2. {{专科名称}}
[专科分析内容...]
━━━━━━━━━━━━━━━━━━━━━━━━━━
### 综合评估
[综合分析...]
━━━━━━━━━━━━━━━━━━━━━━━━━━
### 优先级排序
1. [高优先级问题]
2. [中优先级问题]
3. [低优先级问题]
━━━━━━━━━━━━━━━━━━━━━━━━━━
### 综合建议
#### 生活方式调整
[具体建议...]
#### 就医建议
[具体建议...]
#### 随访计划
[具体计划...]
━━━━━━━━━━━━━━━━━━━━━━━━━━
### 重要声明
本报告仅供健康参考,不能替代专业医疗诊断和治疗。
所有医疗决策请遵从医生指导。
Safety Red Lines (Strictly Follow)
-
Do not give specific medication dosages
- Incorrect example: "Take atorvastatin 20mg once daily"
- Correct approach: "Consult a doctor to adjust the lipid-lowering medication regimen"
-
Do not directly prescribe prescription drug names
- Incorrect example: "Prescribe aspirin enteric-coated tablets"
- Correct approach: "Consult a doctor about whether antiplatelet therapy is needed"
-
Do not judge life or death prognosis
- Incorrect example: "Poor prognosis, survival period no more than 6 months"
- Correct approach: "Recommend active treatment and regular follow-up to evaluate efficacy"
-
Do not replace doctor diagnosis
- Incorrect example: "Diagnosed with coronary heart disease"
- Correct approach: "Suggests possible risk of coronary heart disease; recommend further examination in Cardiology to confirm the diagnosis"
Execution Instructions
1. 识别数据范围参数
2. 读取 data/index.json 获取记录列表
3. 根据数据类型确定需要的专科
4. 并行启动相关专科 subagent 分析
5. 收集各专科分析报告
6. 整合生成综合会诊报告
7. 向用户展示完整报告
Example Interactions
Example 1: Analyze all data
用户: /consult all
AI: 📊 正在启动多学科专家会诊...
读取数据中...
发现异常指标:
• 血脂异常 → 心内科
• 血糖偏高 → 内分泌科
• 肝功能异常 → 消化科
并行启动专科分析...
[生成完整会诊报告...]
Example 2: Analyze the most recent 5 records
用户: /consult recent 5
AI: 📊 分析最近5条检查记录...
涉及专科: 心内科、内分泌科
[生成会诊报告...]
Example 3: Analyze data for a specified date
用户: /consult date 2025-12-31
AI: 📊 分析2025年12月31日的检查数据...
[生成会诊报告...]
Important Notes
- This system is for health reference only and cannot replace professional medical diagnosis and treatment
- All medical decisions should follow doctor guidance
- The consultation report is based on the provided examination data and may have limitations
- In case of emergency, seek medical attention immediately