Files
AIclinicalresearch/docs/_templates/README.md
HaHafeng 8eef9e0544 feat(asl): Complete Week 4 - Results display and Excel export with hybrid solution
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
2025-11-21 20:12:38 +08:00

89 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 文档模板
> **目录说明:** 本目录包含各类文档的标准模板
> **使用方法:** 创建新文档时,复制对应模板,填充内容
---
## 📋 模板清单
| 模板 | 说明 | 适用场景 |
|------|------|---------|
| **[AI对接] 快速上下文-模板.md** | 快速上下文文档模板 | 创建新模块/能力时 |
| **模块README-模板.md** | 模块README模板 | 创建新业务模块时 |
---
## 🎯 使用说明
### 1. 创建新业务模块
**步骤:**
1. 复制 `模块README-模板.md` 到新模块目录
2. 重命名为 `README.md`
3. 填充所有 `[占位符]` 内容
4. 删除不需要的章节
### 2. 创建快速上下文文档
**步骤:**
1. 复制 `[AI对接] 快速上下文-模板.md` 到对应目录
2. 重命名为 `[AI对接] [模块代号]快速上下文.md`
3. 填充所有内容
4. 确保Token消耗在目标范围内
---
## 📏 模板规范
### 快速上下文文档规范
**L0级别总体**
- Token消耗~800
- 阅读时间2分钟
- 内容:项目全貌、快速跳转
**L1级别层级**
- Token消耗~1500
- 阅读时间3分钟
- 内容:层级概览、模块清单
**L2级别模块**
- Token消耗~2000
- 阅读时间5分钟
- 内容:模块详情、开发指南
---
## 🔗 相关文档
- [文档体系重构方案](../00-系统总体设计/02-文档体系重构方案.md)
---
**最后更新:** 2025-11-06
**维护人:** 技术架构师