customer_contacts.relationship(13.3 万行,57.6% 填充,host sys_dict 编码 1-9)随 phone
lookup 同源带出 → patient canonical passthrough → preferences.contactPhone
{relationshipCode, isSelf: 码=='1'}。零 schema 迁移(preferences Json 收纳,同 dedicatedCs)。
编码语义用本地数据统计自证(年龄分桶):1=本人(成人 78.7%/儿童仅 51.4%——儿童过半
代接号,触达该打家长);3/2 儿童特异=父母类;8 老人特异=子女类;9 全人群恒定≈其他。
完整标签待测试库恢复读 sys_dict 后在 patient.yaml enum_mapping 补解码,管道零改动。
jvs-dw 不映射 phoneRelationshipCode → 行为分毫不变。
落库验证:107,227 患者 upsert,contactPhone 44,293(本人 40,059/代接 6,234... 按码分布
与统计一致);儿童样例(2015/2018 生)代接码 2/3 符合预期。
消费端(guardian/话术标注)待字典解码后一并接,避免半吊子 UX。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| appointment.yaml | Loading commit data... | |
| diagnosis.yaml | Loading commit data... | |
| emr.yaml | Loading commit data... | |
| encounter.yaml | Loading commit data... | |
| image.yaml | Loading commit data... | |
| patient.yaml | Loading commit data... | |
| payment.yaml | Loading commit data... | |
| recommendation.yaml | Loading commit data... | |
| refund_full.yaml | Loading commit data... | |
| refund_item.yaml | Loading commit data... | |
| treatment_actual.yaml | Loading commit data... | |
| treatment_planned.yaml | Loading commit data... | |
| treatment_review.yaml | Loading commit data... |