Features: - Backend statistics API (cloud-native Prisma aggregation) - Results page with hybrid solution (AI consensus + human final decision) - Excel export (frontend generation, zero disk write, cloud-native) - PRISMA-style exclusion reason analysis with bar chart - Batch selection and export (3 export methods) - Fixed logic contradiction (inclusion does not show exclusion reason) - Optimized table width (870px, no horizontal scroll) Components: - Backend: screeningController.ts - add getProjectStatistics API - Frontend: ScreeningResults.tsx - complete results page (hybrid solution) - Frontend: excelExport.ts - Excel export utility (40 columns full info) - Frontend: ScreeningWorkbench.tsx - add navigation button - Utils: get-test-projects.mjs - quick test tool Architecture: - Cloud-native: backend aggregation reduces network transfer - Cloud-native: frontend Excel generation (zero file persistence) - Reuse platform: global prisma instance, logger - Performance: statistics API < 500ms, Excel export < 3s (1000 records) Documentation: - Update module status guide (add Week 4 features) - Update task breakdown (mark Week 4 completed) - Update API design spec (add statistics API) - Update database design (add field usage notes) - Create Week 4 development plan - Create Week 4 completion report - Create technical debt list Test: - End-to-end flow test passed - All features verified - Performance test passed - Cloud-native compliance verified Ref: Week 4 Development Plan Scope: ASL Module MVP - Title Abstract Screening Results Cloud-Native: Backend aggregation + Frontend Excel generation
92 lines
1.1 KiB
Markdown
92 lines
1.1 KiB
Markdown
# 医学NLP引擎
|
||
|
||
> **能力定位:** 通用能力层
|
||
> **复用率:** 14% (1个模块依赖)
|
||
> **优先级:** P2
|
||
> **状态:** ⏳ 待实现
|
||
|
||
---
|
||
|
||
## 📋 能力概述
|
||
|
||
医学NLP引擎负责:
|
||
- 医学实体识别(NER)
|
||
- 医学术语标准化
|
||
- 疾病/药物识别
|
||
|
||
---
|
||
|
||
## 📊 依赖模块
|
||
|
||
**1个模块依赖(14%复用率):**
|
||
1. **DC** - 数据清洗整理(病例数据NER提取)
|
||
|
||
---
|
||
|
||
## 💡 核心功能
|
||
|
||
### 1. 医学实体识别
|
||
- 疾病识别
|
||
- 药物识别
|
||
- 手术识别
|
||
- TNM分期提取
|
||
|
||
### 2. 术语标准化
|
||
- ICD编码
|
||
- ATC编码
|
||
|
||
### 3. 关系抽取
|
||
- 疾病-药物关系
|
||
- 症状-疾病关系
|
||
|
||
---
|
||
|
||
## 🏗️ 技术方案
|
||
|
||
### 云端版(高准确率)
|
||
```python
|
||
# 基于LLM API(Claude/GPT)
|
||
# JSON Mode结构化输出
|
||
```
|
||
|
||
### 单机版(隐私优先)
|
||
```python
|
||
# 基于spaCy + 医学模型
|
||
# 100%本地运行
|
||
```
|
||
|
||
---
|
||
|
||
## 🔗 相关文档
|
||
|
||
- [通用能力层总览](../README.md)
|
||
- [DC模块需求](../../03-业务模块/DC-数据清洗整理/README.md)
|
||
|
||
---
|
||
|
||
**最后更新:** 2025-11-06
|
||
**维护人:** 技术架构师
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|