cold-import-card.tsx
8.13 KB
-
feat(friday): 结算WHERE迁移单一真理源 + 冷导入网页通道 + 数据对账 · b3e3a6c2
- 结算/病历 WHERE 从导出侧迁入 manifest transforms(单一真理源):宿主推原表全 status, PAC 侧 filter 切消费/退费/退费明细;transforms 新增数值算子 lt/lte/gt/gte - 退费明细身份纠正(S.3.1):spec.patient_id 部分品牌是诊所本地 id 不可信, 改从结算头 settlement_id→patient_id 继承(元和王永实测 26421 行全不符) - 冷导入网页上传通道:上传 zip → yauzl 白名单解压 → 迷你 data 根(含 _shared)→ 队列 cold-import;宽容缺独立表 + 成组完整性校验 + dry-run 预检 - 数据对账:日报复用摄入查询做「源
↔ PAC 去重患者数」比对(clickhouse countDistinct) - 测试 18 绿:friday-settlement-where / filter-numeric / cold-import-extract / cold-import-groups Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>luoqi committed