Files
AIclinicalresearch/docs/03-业务模块/IIT Manager Agent/02-技术设计/REDCap 原生录入与 AI Workbench 操作边界划分.md
HaHafeng 1b53ab9d52 feat(aia): Complete AIA V2.0 with universal streaming capabilities
Major Changes:
- Add StreamingService with OpenAI Compatible format
- Upgrade Chat component V2 with Ant Design X integration
- Implement AIA module with 12 intelligent agents
- Update API routes to unified /api/v1 prefix
- Update system documentation

Backend (~1300 lines):
- common/streaming: OpenAI Compatible adapter
- modules/aia: 12 agents, conversation service, streaming integration
- Update route versions (RVW, PKB to v1)

Frontend (~3500 lines):
- modules/aia: AgentHub + ChatWorkspace (100% prototype restoration)
- shared/Chat: AIStreamChat, ThinkingBlock, useAIStream Hook
- Update API endpoints to v1

Documentation:
- AIA module status guide
- Universal capabilities catalog
- System overview updates
- All module documentation sync

Tested: Stream response verified, authentication working
Status: AIA V2.0 core completed (85%)
2026-01-14 19:15:01 +08:00

41 lines
2.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
# **REDCap 原生录入ä¸?AI Workbench æ“<C3A6>作边界åˆåˆ†**
éˆå¯¹æ¨çš„关键问题:“CRC 到底在哪里录入数æ<C2B0>®ï¼Ÿâ€<C3A2>,æˆä»¬é‡‡å<E280A1>\*\*“å<C593>Œè½¨å¹¶è¡Œï¼Œåœºæ™¯åŒºåˆ†â€<C3A2>\*\*的原则ã€?
## **1\. 核心ç­ç•¥ï¼šå°Šé‡<C3A9>“数æ<C2B0>®çœŸç<C5B8>†æº<C3A6>â€?*
* **原则**:为了确ä¿?GxP å<>ˆè§„性åŒç»´æŠ¤ç”¨æˆ·çš„æ—¢æœ‰ä¹ æƒ¯ï¼Œ**REDCap å§ç»ˆæ˜¯ä¸»è¦<C3A8>的数æ<C2B0>®å½•入入å<C2A5>£**ã€?
* **逻辑**:æˆä»¬ä¸<C3A4>应该é‡<C3A9>æ°å<C2B0>明一个录入界é<C592>¢ï¼Œè€Œæ˜¯è¦<C3A8>在录入时通过 AI è¿è¡Œâ€œå®žæ—¶ç护â€<C3A2>ã€?
## **2\. 详细场景划分**
| 场景 | æ“<C3A6>作ä½<C3A4>ç½® | AI 的角è‰?| ç<>†ç”± |
| :---- | :---- | :---- | :---- |
| **常规数æ<C2B0>®å½•å…¥** | **REDCap 界é<C592>¢** | **实时监护** | ä¿<C3A4>æŒ<C3A6> CRC 习惯,é™<C3A9>低è¿<C3A8>ç§»æˆ<C3A6>本ã€AI 通过 Webhook 实时质控ã€?|
| **大批é‡<C3A9>æ•°æ<C2B0>®å¯¼å…?* | **AI Workbench** | **智能æ<C2BD>¬è¿<C3A8>** | 外部 Excel æˆå¤šå¼ åŒéªŒå<C592>•ã€AI 清洗å<E28094>Žï¼ŒCRC 确认一次,一键注入ã€?|
| **å¾åƒ<C3A5>/PDF æ<><C3A6>å<EFBFBD>录入** | **AI Workbench** | **OCR æ<><C3A6>å<EFBFBD>** | REDCap 原生ä¸<C3A4>支æŒ<C3A6>å¤<C3A5>æ<EFBFBD>çš„ OCR è§£æž<C3A6>ã€åœ¨ Workbench 完æˆ<C3A6>æ<EFBFBD><C3A6>å<EFBFBD>比对最顺æ‰ã€?|
| **质疑(Query)处ç<E2809E>** | **AI Workbench** | **冲çª<C3A7>展示** | åœ?Workbench å<>¯ä»¥å<C2A5>Œå±<C3A5>çœâ€œè¯<C3A8>æ<EFBFBD>®åŽŸæ‡â€<C3A2>åŒâ€œå»ºè®®å€¼â€<C3A2>,体验远好äº?REDCapã€?|
| **项ç®åˆ<C3A5>å§åŒé…<C3A9>ç½?* | **AI Workbench** | **架构定义** | å¤<C3A5>æ<EFBFBD>çš?RAG 知识库上传ã€<C3A3>映射表é…<C3A9>置,属äº?AI å¹³å<C2B3>°çš„特有逻è¾ã€?|
## **3\. å…¸åžæµ<C3A6>ç¨å¯¹æ¯”**
### **æµ<C3A6>ç¨ A:常规录å…?(CRC åœ?REDCap æ“<C3A6>作)**
1. CRC 登录 REDCap,打开æ£è€…表å<C2A8>•ã€?
2. 输入血红è白值:8.0(å<EFBFBD>•ä½<EFBFBD>录错)ã€?
3. ç¹å‡»ä¿<C3A4>å­˜ \-\> REDCap 写入 MySQL \-\> 触å<C2A6> Webhookã€?
4. æˆä»¬çš„å<E2809E>Žç«¯æ„ŸçŸ¥å<C2A5>Žï¼ŒQC Agent å<>现逻è¾é”™è¯¯ã€?
5. **å<><C3A5>馈**ï¼?
* **低延时æ<C2B6><C3A6>é†?*:通过 EM æ<>ä»¶åœ?REDCap 页é<C2B5>¢ä¸Šæ¹æ˜¾ç¤ºï¼šâ€œAI æ<><C3A6>示:该值å<C2BC><C3A5>离历å<E280A0>²å<C2B2>‡å€¼ï¼Œè¯·ç¡®è®¤å<C2A4>•ä½<C3A4>â€<C3A2>ã€?
* **异步质疑**:在我们çš?Workbench 生æˆ<C3A6>一æ<E282AC>?Pending Actionã€?
### **æµ<C3A6>ç¨ B:AI 增强录入 (CRC åœ?Workbench æ“<C3A6>作)**
1. CRC 收到一张åŒéªŒå<C592>•照片ã€?
2. CRC 登录我们�Workbench,上传照片�
3. AI æ<><C3A6>å<EFBFBD>å‡?10 个指标ã€?
4. **预览比对**:界é<C592>¢å·¦ä¾§æ˜¯ç…§ç‰‡ï¼Œå<C592>³ä¾§æ˜¯æ<C2AF><C3A6>å<EFBFBD>的表格,高亮显示ä¸<C3A4>确定的值ã€?
5. **一键注å…?*:CRC 确认无误,ç¹å‡»â€œå<C593>Œæ­¥â€<C3A2>ã€ç³»ç»Ÿè‡ªåŠ¨è°ƒç”?REDCap API 将这 10 个值一次性填æ»?REDCap 表å<C2A8>•ã€?
## **4\. 结论与æ€<C3A6>路总结**
* **REDCap 登录**:用于\*\*“æ‰åЍã€<C3A3>å°é‡<C3A9>ã€<C3A3>常规â€<C3A2>\*\*的临床记录ã€?
* **AI Workbench 登录**:用于\*\*“大批é‡<C3A9>ã€<C3A3>æ‡æ¡£æ<C2A3><C3A6>å<EFBFBD>ã€<C3A3>质控确认ã€<C3A3>æ¹æ¡ˆè§£æž<C3A6>â€<C3A2>\*\*的高级任务ã€?
è¿™ç§<EFBFBD>设计的优势在于:**ä¸<C3A4>强制改å<C2B9>˜ç”¨æˆ·ä¹ æƒ¯ï¼Œä½†ç”¨ AI 让任务å<C2A1>˜å¾—æ´è½»æ<C2BB>¾ã€?* æˆä»¬ä¸<C3A4>需è¦<C3A8>å<EFBFBD>šä¸€ä¸ªå®Œæ•´çš„ EDC,æˆä»¬è¦<C3A8>å<EFBFBD>šçš„æ˜?EDC 的“智能加速器â€<C3A2>ã€?
**æ¨è®¤å<C2A4>¯è¿™ä¸ªâ€œå<C593>Œè½¨åˆ¶â€<C3A2>å<EFBFBD>—ï¼?* 特别是关于“大批é‡<C3A9>åŒæ‡æ¡£æ<C2A3><C3A6>å<EFBFBD>æ‰<C3A6>åŽ?Workbenchâ€<C3A2>的设定ã€