feat(mapping): 完成 PHIS 健康档案转换(T-212)

This commit is contained in:
ila
2026-07-16 00:53:16 +08:00
parent d385d6dd3b
commit 8a5550057c
20 changed files with 1078 additions and 124 deletions
+6
View File
@@ -24,6 +24,12 @@ func TestDictionarySnapshotLooksUpMasterDataByName(t *testing.T) {
if got, ok := snapshot.ManaUnitIDByName("测试机构"); !ok || got != "123456789" {
t.Fatalf("ManaUnitIDByName = %q, %v", got, ok)
}
if !snapshot.DoctorIDExists("doc-001") || snapshot.DoctorIDExists("doc-missing") {
t.Fatalf("DoctorIDExists returned unexpected membership")
}
if !snapshot.ManaUnitIDExists("123456789") || snapshot.ManaUnitIDExists("unit-missing") {
t.Fatalf("ManaUnitIDExists returned unexpected membership")
}
}
func TestDictionaryServiceRefreshKeepsMemoryWhenPersistentStoreFails(t *testing.T) {