| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| dto | ||
| auth.controller.ts | ||
| auth.module.ts | ||
| auth.service.ts | ||
| duration.ts | ||
| jvs-dw-preset.ts | ||
| jwt.strategy.ts | ||
| mock-users.ts | ||
| org-scope.ts | ||
| org-tree.ts |
新增 Host.clinicNames(诊所 id→名),从摄入源派生;/auth/session 合并进
dictionary.clinics 下发(宿主换票传的 dictionary.clinics 优先覆盖,服务端补齐其余)。
前端 loadSession 合并 session.dictionary → visibleClinics 直接显示中文名,GUID 不再裸露。
- manifest 加 clinic_directory: { table, id_field, name_field } 声明诊所名来源
- refresh-clinic-names CLI:按 clinic_directory 从 DW(sql_source)或 CSV(文件源)
SELECT DISTINCT 出 id→名,幂等 upsert host.clinicNames;可接 cron 定期刷
- jvs-dw 源 = DW fact_emr_treatment_out.organization_name
顺带发现 preset 把 dad2f04a 硬编码成"杭州高德",DW 真名是"欧美中心诊所"——
再证手维护/登录传的名字会过时,派生才是单一真理源。
本地验证:CLI 派生 5 家写入;合并逻辑(登录覆盖+服务端补齐)已测;typecheck 干净。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| dto | Loading commit data... | |
| auth.controller.ts | Loading commit data... | |
| auth.module.ts | Loading commit data... | |
| auth.service.ts | Loading commit data... | |
| duration.ts | Loading commit data... | |
| jvs-dw-preset.ts | Loading commit data... | |
| jwt.strategy.ts | Loading commit data... | |
| mock-users.ts | Loading commit data... | |
| org-scope.ts | Loading commit data... | |
| org-tree.ts | Loading commit data... |