docs(iit): REDCap对接技术方案完成与模块状态更新

- 新增《REDCap对接技术方案与实施指南》(1070行)
  - 确定DET+REST API技术方案(不使用External Module)
  - 完整RedcapAdapter/WebhookController/SyncManager代码设计
  - Day 2详细实施步骤与验收标准
- 更新《IIT Manager Agent模块当前状态与开发指南》
  - 记录REDCap本地环境部署完成(15.8.0)
  - 记录对接方案确定过程与技术决策
  - 更新Day 2工作计划(6个阶段详细清单)
  - 整体进度18%(Day 1完成+REDCap环境就绪)
- REDCap环境准备完成
  - 测试项目test0102(PID 16)创建成功
  - DET功能源码验证通过
  - 本地Docker环境稳定运行

技术方案:
- 实时触发: Data Entry Trigger (0秒延迟)
- 数据拉取: REST API exportRecords (增量同步)
- 轮询补充: pg-boss定时任务 (每30分钟)
- 可靠性: Webhook幂等性 + 轮询补充机制
This commit is contained in:
2026-01-02 14:30:38 +08:00
parent dbca1615b5
commit bdfca32305
132 changed files with 1532 additions and 242 deletions

View File

@@ -50,5 +50,6 @@ WHERE table_schema = 'dc_schema'

View File

@@ -88,5 +88,6 @@ ORDER BY ordinal_position;

View File

@@ -101,5 +101,6 @@ runMigration()

View File

@@ -35,5 +35,6 @@ COMMENT ON COLUMN "dc_schema"."dc_tool_c_sessions"."column_mapping" IS '列名

View File

@@ -62,5 +62,6 @@ COMMENT ON COLUMN dc_schema.dc_tool_c_sessions.expires_at IS '过期时间(创

View File

@@ -104,3 +104,4 @@ Write-Host ""

View File

@@ -212,5 +212,6 @@ function extractCodeBlocks(obj, blocks = []) {

View File

@@ -231,5 +231,6 @@ checkDCTables();

View File

@@ -183,5 +183,6 @@ createAiHistoryTable()

View File

@@ -170,5 +170,6 @@ createToolCTable()

View File

@@ -167,5 +167,6 @@ createToolCTable()

View File

@@ -299,5 +299,6 @@ export function getBatchItems<T>(

View File

@@ -335,5 +335,6 @@ runTests().catch((error) => {

View File

@@ -314,5 +314,6 @@ Content-Type: application/json

View File

@@ -250,5 +250,6 @@ export const conflictDetectionService = new ConflictDetectionService();

View File

@@ -200,5 +200,6 @@ curl -X POST http://localhost:3000/api/v1/dc/tool-c/test/execute \

View File

@@ -254,5 +254,6 @@ export const streamAIController = new StreamAIController();

View File

@@ -15,3 +15,4 @@ export * from './routes';
export * from './types';

View File

@@ -23,3 +23,4 @@ export async function registerIitRoutes(fastify: FastifyInstance) {
}

View File

@@ -151,3 +151,4 @@ testIitDatabase()
});

View File

@@ -221,3 +221,4 @@ export interface CachedProtocolRules {
}

View File

@@ -400,5 +400,6 @@ SET session_replication_role = 'origin';

View File

@@ -102,5 +102,6 @@ WHERE key = 'verify_test';

View File

@@ -245,5 +245,6 @@ verifyDatabase()

View File

@@ -35,5 +35,6 @@ export {}

View File

@@ -58,5 +58,6 @@ Write-Host "✅ 完成!" -ForegroundColor Green

View File

@@ -345,5 +345,6 @@ runAdvancedTests().catch(error => {

View File

@@ -411,5 +411,6 @@ runAllTests()

View File

@@ -369,5 +369,6 @@ runAllTests()