-
feat(sync/friday): 患者关系边 + 咨询接入;退费第三轨 200 单补摄收口 · 8b556c4a
- patient_relation ← customer_referee_circle(10,169 行,双向成对存):患者-患者边进 patient_relations 独立表(同 jvs-dw 契约,电话簿语义不冒充关系边)。
⚠ ️ 关系码字典 DB 无表(疑代码硬编码)→ 统计推断解码(互逆对+年龄差+性别三重证据, 依据全在 yaml 注释):1=spouse(92%异性同龄)/8,7=friend/3=父母按对方性别拆 father,mother(transforms lookup 对方 sex 拼"码|性别"键)/2,10=child(儿×女)/ 17,16=grandparent,grandchild/4,9=sibling/其余 other。待 FRIDAY 官方枚举校正, 改 enum_mapping 重摄即覆盖。 - consultation ← customer_consult(64 行):意向 potential_treatment + FRIDAY 独有 未成交原因 unsettled_reason(强召回信号)passthrough 进 content。 - 落库:关系边 7,996 条(friend 3511/other 2322/spouse 639/child 630/mother 349/ father 266/sibling 229/祖孙 50),100% linked(对方均在册患者)→ guardian 链路 (儿童触达取家长真名真号)对 FRIDAY 直接激活;consultation 64;failed=0。 - 退费第三轨(status=3 负额 200 单)测试库恢复后补摄完成:refund_record 齐 880 (99 整单反向+581 行级+200 负额冲减),全程幂等。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>luoqi committed
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| _shared/dict | Loading commit data... | |
| friday | Loading commit data... | |
| jvs-dw | Loading commit data... |