| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| adapters | ||
| assembler | ||
| cold-import | ||
| dto | ||
| pipeline | ||
| pull | ||
| push | ||
| reconcile | ||
| transforms | ||
| sync.controller.ts | ||
| sync.module.ts | ||
| sync.service.ts |
根因(2026-06-11 哨兵空转告警,服务器 DW 逐行核验): 增量 cohort 列患者只查 patient_list_from.last_visit_time > cursor(=近期来过诊的人), 漏掉"没来就诊但数据有变"的患者 — 典型即 PAC 自身业务闭环:客服电话约复诊(预约 updated_date 变了,人没来)、医生回头补写病历。当日 24 行预约 + 3 行 EMR 超游标, 27/27 全属此类患者(去重 22 人,老口径列出 0 人);且等患者到诊时游标已越过这些行 → 永久漏数。 修复:增量模式下列患者 = 每张配了 cursor 的源表按各自游标取变更行患者,UNION ALL 去重(manifest 驱动,FROM 主表正则提取,不写死表名;宿主无关)。 - 全量/无游标首跑:保持原 patient_list_from 行为不变; - 采样 LIMIT 的 list_cursor_column 排序在 union 模式回退按 patient key(仅 dev 用); - refund 分支与 settlement 同表重复,DISTINCT 吃掉,无害。 验证(只读):服务器 DW 实跑新 union SQL → 22 患者全部捞回;service tsc 0。 仅本地修复,未部署(待统一打包)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| adapters | Loading commit data... | |
| assembler | Loading commit data... | |
| cold-import | Loading commit data... | |
| dto | Loading commit data... | |
| pipeline | Loading commit data... | |
| pull | Loading commit data... | |
| push | Loading commit data... | |
| reconcile | Loading commit data... | |
| transforms | Loading commit data... | |
| sync.controller.ts | Loading commit data... | |
| sync.module.ts | Loading commit data... | |
| sync.service.ts | Loading commit data... |