docs: 校准 PHIS 档案 upsert 任务

This commit is contained in:
ila
2026-07-15 22:08:45 +08:00
parent d30ff01c35
commit 00c1028731
7 changed files with 97 additions and 20 deletions
+6 -3
View File
@@ -30,10 +30,13 @@
- [x] `contract/jkda.go` 查询响应结构体(T-201;创建/更新请求结构体留到 T-206)。
- [x] `mapping/health_record.go` + `mapping/checkid.go`。
- [x] `osi/jkda.go`:Find/FindRqbj(T-203;Find 已真实请求验收,FindRqbj 已按文档契约单测覆盖)。
- [ ] `osi/jkda.go`:Create/Update(T-206,依赖映射与字典缓存)。
- [ ] `handler` + `router`:暴露 `/api/health-record/save`(server 模式联调用)。
- [x] `osi/jkda.go`:Create/Update 本地契约与客户端能力(T-206);真实平台验收拆至 T-215。
- [ ] PHIS 真实档案 DTO + PHIS→CHIS 完整转换器(T-212)。
- [ ] 按身份证查询后 create/update 的 upsert 应用服务(T-213)。
- [ ] `handler` + `router`:暴露 `POST /api/health-record/upsert`(T-204,server 模式联调用)。
- [ ] 用授权测试档案完成 create→query→update→query 真实验收(T-215)。
- [x] 用 01 文档样例 + 联调样本写映射单测。
- **验收**:一条 PHIS 档案 → 映射 → create → 平台返回成功码(实测 `"01"`)与 `phrId`;重复投递被幂等跳过。
- **验收**:一条 PHIS 档案 → 映射 → 查询判定 → create/update → 平台返回成功码(实测 `"01"`)并回查一致;重复投递被幂等跳过。
## 阶段 3 · 投递流水线