ila and Claude Opus 4.8
7a079b2b3f
docs: 药品目录分页契约同步 docs/07 与 openapi(T-211)
...
- docs/07 §8 pageNo 必填 + 补 pageSize + 分页说明 + 未联调警示
- openapi drugs 内联 pageNo(required)+pageSize,不动共享 pageNo
- tasks T-211 DONE
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-09 22:22:55 +08:00
ila and Claude Opus 4.8
dc065a9c29
fix(handler): 药品目录按分页契约修正 YPML00001(T-211)
...
- DrugQuery.PageNo 去 omitempty(pageNo=0 也上送)+ 加 PageSize
- handler Drugs 改 pageNo 必填(parseRequiredInt,缺则返回 400)+ 读 pageSize
- 补缺 pageNo 返回 400 的测试
- 依 docx;YPML00001 未真实联调,pageNo 是否真必填待厂家样本核对
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-09 22:22:54 +08:00
ila and Claude Opus 4.8
4fa1317ac8
docs: 登记 T-211 药品目录分页契约修正
...
依 docx YPML00001:pageNo 必填、补 pageSize、返回药品数组;当前实现把 pageNo 当可选是 bug
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-09 22:11:06 +08:00
ila
816a992f00
feat(handler): 暴露公开查询 HTTP API(T-210)
2026-07-09 21:24:09 +08:00
ila
1903fa476b
docs: 登记 T-210 公开查询 HTTP API
2026-07-09 21:17:16 +08:00
ila
561cd839e7
feat(osi): 优化人群分类查询接口(T-209)
2026-07-09 20:38:27 +08:00
ila
ca16f61263
docs: 登记人群分类查询优化任务(T-209)
2026-07-09 20:35:11 +08:00
ila and Claude Opus 4.8
8d54ad38d5
docs: 新增 docs/07 本项目 HTTP 接口文档
...
- 整理 server 模式 5 个查询端点(档案 find + 体检 last/all/list)
- 参数/上游 serviceId/返回形态/PII 警示/通用约定
- README 导航登记;CLAUDE.md 同步表加端点→docs/07
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 22:21:21 +08:00
ila and Claude Opus 4.8
adc99e1b43
docs: 登记 T-306 全部体检查询(JKTJ00002 实测字段校准)
...
- docs/04 §11.1 记录驼峰 idCard、历史 checkId 为 null 两个坑
- docs/01 §5.2 JKTJ00002 联调可用;tasks T-306 DONE
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 22:14:39 +08:00
ila and Claude Opus 4.8
f3c5e1bf8d
feat(osi): 某人全部体检查询 JKTJ00002(T-306)
...
- osi.QueryHealthChecks(/auto/jktj/query,返回全部体检数组)
- contract.HealthCheckRecordSummary:驼峰 idCard(≠最近一次小写 idcard)、checkId 可空
- HTTP 端点 GET /api/health-check/all
- 单测含 null checkId 场景;实测端点已部署
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 22:14:39 +08:00
ila and Claude Opus 4.8
00b02b76f6
chore: gitignore 拦截根目录/结果类 PII 样本 json
...
health_check_results.json 等含身份证/体检 PII,补 *_results.json 与根目录 /*.json
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 22:14:39 +08:00
ila and Claude Opus 4.8
c358f20c39
docs: 补全 §11.1 体检查询返回形态(JKTJ00002 返回某人全部体检数组)
...
- 表格加返回列,三接口返回形态明确
- 修正 JKTJ00002 定位为某人全部体检查询(非按 id 单查)
- 校正 JKTJLIST00002 状态为实测可用
- 说明按体检编号取历史须查全部+本地过滤
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:37:26 +08:00
ila and Claude Opus 4.8
f293aaef00
docs: 登记 T-302 体检 HTTP 端点并同步快照
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:17:02 +08:00
ila and Claude Opus 4.8
e67664da45
feat(handler): 体检 HTTP 查询端点(T-302)
...
- GET /api/health-check/last(最近一次)+ /api/health-check/list(年度已检未检名单)
- 回写平台完整响应 Result.Raw,抽 writeRawOrError 共用
- last 按 idCard/phrid/empiId;list 按 checkYear(必填)+idCard+checkType
- 单测:路径/原样回写/缺参 400(脱敏假 OSI 后端);默认仅绑本机
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:17:02 +08:00
ila and Claude Opus 4.8
f69e073199
docs: 登记 T-305 名单查询契约(JKTJLIST00002 实测字段校正)
...
- docs/04 §11.4 校正实测字段名并标端点已部署
- docs/01 §5.2 JKTJLIST00002 联调可用
- tasks T-305 DONE
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:11:17 +08:00
ila and Claude Opus 4.8
bf204e0162
feat(osi): 体检已检/未检名单查询打通(T-305)
...
- osi.ListHealthCheckPeople(JKTJLIST00002 /auto/jktjlist/query)
- ListHealthCheckQuery:checkYear 必填、page/rows 默认、idCard/checkType 可选
- contract.HealthCheckPerson 名单行 20 字段,字段名按实测校正(birthday/phrId/manaDoctorId/manaDocterName/empiId)
- 单测:名单解码/路径/baseInfo 分页/checkYear 校验(脱敏假数据)
- 实测端点已部署,code=01 返回分页人员名单
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:11:17 +08:00
ila and Claude Opus 4.8
425ca0a0fa
docs: 拆出 T-305 体检名单查询并登记 JKTJLIST00002 契约
...
- docs/04 §11.4 记录 JKTJLIST00002 请求/响应契约(docx,部署待验证)
- tasks 拆 T-305(契约齐全,TODO 可领)、T-304 收窄为缺 serviceId 的列表
- 纠正 T-304 一刀切 BLOCKED
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 21:02:26 +08:00
ila and Claude Opus 4.8
66bf37bcd3
docs: 登记 T-301 体检查询契约与字段清单
...
- docs/04 §11 体检 ~260 字段清单(7 节点)供将来 create 用
- docs/01 §5.2 标注各体检接口联调状态(单查未部署)
- tasks T-301 DONE;gitignore 收敛为 scripts/*.py
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 00:45:47 +08:00
ila and Claude Opus 4.8
0e1915fc2b
feat(osi): 体检最近一次查询打通(T-301)
...
- osi.LastHealthCheck(JKTJLSJL00002 /auto/jktjlscx/query)
- contract.HealthCheckSummary 只强类型化定位字段,完整内容走 Result.Raw
- codes.go 登记 JKTJLSJL00002 + JKTJLIST00002 路由
- 单测:路径/解码/Raw 保留/idcard 小写映射/单键校验(脱敏假数据)
- 实测:单查 JKTJ00002 平台未部署;data 为单对象;身份证字段小写 idcard
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 00:45:47 +08:00
ila and Claude Opus 4.8
6822ad4350
docs: 看板重排为读先行(Phase Q2 查询优先,写入后置)
...
- tasks.md 新增 Phase Q2(体检/老年人/列表查询),T-206/T-204 写入降到其后
- docs/06 顶部归拢当前批次三项优先催办(写入授权/缺失 serviceId/写入规则)
- 里程碑与 current-state 下一步同步为 T-301 起
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 00:18:52 +08:00
ila and Claude Opus 4.8
d196339ed3
docs: 登记 T-208 查询端点并同步快照
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 00:05:23 +08:00
ila and Claude Opus 4.8
47eaf1051e
feat(handler): server 模式健康档案查询端点(T-208)
...
- GET /api/health-record/find 按 idCard/phrid/personName/empiId 查询
- 回写平台完整响应(Result.Raw),未建模字段不丢失
- 抽 buildOSIClient 共用构造,verify 与 server 复用
- 默认仅绑 127.0.0.1(端点返回真实档案 PII,避免暴露局域网)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 00:05:22 +08:00
ila and Claude Opus 4.8
55289e0746
docs: current-state 标注 Go 侧 config.yaml 查询已实测查通
...
对齐实际运行命令(-verify-jkda + config.yaml,身份证走环境变量)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-07 23:49:41 +08:00
ila and Claude Opus 4.8
f6a7f61d59
docs: 同步 T-206 状态(BLOCKED,代码完成待真实 create)
...
- tasks.md T-206 标 BLOCKED 并注明阻塞原因
- docs/04 主数据反查落到 MapContext.MasterData
- progress/current-state 追加 T-206 记录
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-07 23:11:23 +08:00
ila and Claude Opus 4.8
f95a779daa
feat(osi): 实现 JKDA 档案 Create/Update 与创建请求契约(T-206)
...
- contract/jkda.go 补创建请求结构体(healthRecord + manageInfo + 既往史节点)
- osi/jkda.go 新增 CreateHealthRecord/UpdateHealthRecord
- osi/codes.go 登记 JKDA00001 create / JKDA00003 update serviceId 与路径
- mapping 映射创建路径(真实字典快照反查主数据)
- 代码与单测完成;真实 create 待安全测试档案与写入授权(见 tasks.md T-206 BLOCKED)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-07 23:11:17 +08:00
ila
12346c9923
feat(cache): 建立字典缓存快照(T-103)
2026-07-07 21:16:52 +08:00
ila
74748c084b
feat(osi): 实现公开字典查询接口(T-101)
2026-07-07 20:58:13 +08:00
ila
24f03179de
test(mapping): 增加健康档案映射样本基线(T-205)
2026-07-07 14:55:16 +08:00
ila
767c876519
feat(mapping): 实现健康档案映射基线(T-202)
2026-07-07 14:36:40 +08:00
ila
56e1510f6b
feat(mapping): 建立码表映射基线(T-102)
2026-07-07 14:13:09 +08:00
ila
cfbad76e6e
feat(osi): 实现 JKDA 查询方法(T-203)
2026-07-07 10:14:40 +08:00
ila
332683eee6
feat(contract): 建立 JKDA 查询响应契约(T-201)
2026-07-07 09:35:03 +08:00
ila and Claude Opus 4.8
801fa543d1
docs: 登记 https/TLS 延期任务 T-007 并复评 T-006
...
- backlog 新增 T-007(传输层 https 支持,生产前 gate,挂钩 docs/06 A10)
- 落地评审 P1-2 延期须登记要求
- progress 追加 T-006 复评结论
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 23:23:16 +08:00
ila and Claude Opus 4.8
12039d8c46
docs: 新增 Phase 0 代码评审文档(T-001~T-005)
...
按全栈视角审核脚手架/签名/传输/Call/验收,记录达标判定与分级整改项
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 23:23:15 +08:00
ila
9db2e84476
fix(osi): 加固 Phase 0 验收实现(T-006)
2026-07-06 23:20:42 +08:00
ila
def95efb1c
feat(osi): 打通 Go 侧真实请求验收(T-005)
2026-07-06 23:03:14 +08:00
ila
2a77a4dbc1
feat(osi): 实现通用 Call 与响应判码(T-004)
2026-07-06 22:31:02 +08:00
ila
56acc01d92
feat(osi): 实现 OSI JSON 传输层(T-003)
2026-07-06 22:23:01 +08:00
ila and Claude Opus 4.8
4a5134093b
docs: 同步 T-002 完成状态并重排看板为查询先行
...
- T-001/T-002 标记 DONE,current-state 更新 Go 骨架现实
- 看板重排 Phase 1/2 → Q(查询)/M(映射)/D(字典+创建),查询档案不依赖字典
- osi/jkda.go 拆为 T-203(Find)/T-206(Create),显式化 Create 对字典缓存的依赖
- docs/05 加执行顺序注记
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 21:52:56 +08:00
ila and Claude Opus 4.8
2bff3cf6cc
feat(osi): 实现 MD5 头签名与请求头组装(T-002)
...
password=md5("ts=<ts>&ask=<ask>") 32 位小写;ask 仅参与签名不进 headers
测试向量与本地 Python 联调脚本对齐
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 21:52:48 +08:00
ila
7b5a90a104
chore: 初始化 T-001 Go 骨架
2026-07-06 20:54:23 +08:00
ila and Claude Opus 4.8
baff3ae0ef
chore: T-000 完成——清理失效测试目录
...
tests/ 从未被 git 跟踪,本地直接删除;看板与进度同步
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 20:46:37 +08:00
ila and Claude Opus 4.8
5e9d388634
docs: 接入 harness coding 执行工件
...
- tasks.md 任务看板(路线图阶段0~2拆为14个小步任务,一次领一个)
- progress.md 只追加执行流水(补记文档初始化与JKDA00002联调)
- docs/current-state.md 可覆盖当前快照(pre-code现实+已验证事实)
- init.sh 统一验证入口(无 go.mod 时指向 T-001)
- AGENTS.md 通用 agent 薄入口;CLAUDE.md 会话启动改为三件套流程
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 20:09:54 +08:00
ila and Claude Opus 4.8
b5033af0ac
chore: gitignore 补挡敏感文件与本地产物
...
账号.txt/联调脚本及样本(含真实凭据与身份证)、__pycache__、本地工作区文件不入库
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 20:09:54 +08:00
ila and Claude Opus 4.8
d7b769742b
docs: 依 JKDA00002 联调实测校准接口契约
...
- 成功码实测为字符串 "01"(docx 误写 "1"),判定按去前导零
- 查询类同走 uploadinfo 信封(baseInfo+manageInfo),非裸 baseInfo
- 三种机构码分层:18位统信码 / 9位机构码 / 12位区划码
- docs/04 新增 §8 JKDA00002 实测契约(请求信封+响应结构,已脱敏)
- docs/06 回填 A1~A9/B3/B6/C3/D2/D3 联调状态
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 20:09:43 +08:00
ila and Claude Opus 4.8
1fd256993b
docs: 新增厂家联调清单(docs/06)
...
可直接发对接人的索要清单,分 A 凭据/环境、B 契约补漏、C 业务规则、
D 真实样本、E 联调支持五组,带回填状态;含 OSI 内网 host + SOCKS5
代理地址、签名校验样例、checkId/完整度等关键确认项。同步 docs/README 索引。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-05-30 16:00:48 +08:00
ila and Claude Opus 4.8
4594f02378
docs: 明确 OSI 访问为 host+proxy 组合及代理语义
...
- socks5_proxy 扶正为必填(OSI 主机在内网、不可直连,经 SOCKS5 到达)
- 作用域限定:代理仅用于 OSI 客户端,PHIS 走直连
- 访问语义:非空即强制走代理、不因代理故障回退直连,空才直连;
代理不通按网络错误如实失败,交重试/熔断处理
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-05-30 15:53:14 +08:00
ila and Claude Opus 4.8
6204da871e
docs: 目录布局改为扁平结构,与 chis_upload 对齐
...
按团队 AGENTS.md 的扁平偏好,弃用 internal/+cmd/,改为顶层平铺包 +
单 main.go(-mode server|deliver)。同步更新 docs/03 目录结构图与 §4.4、
docs/05 路线图措辞、CLAUDE.md 目录职责表。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-05-30 13:10:18 +08:00
ila and Claude Opus 4.8
e1fe1a92e6
chore: 源材料不入库,改为本地留存
...
将厂家"内部资料注意保密"的 OSI 规范 docx/xlsx 从版本控制移除(git rm --cached,
保留本地文件),并在 .gitignore 中忽略 *.docx/*.xlsx;CLAUDE.md 同步说明。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-05-30 13:10:18 +08:00
ila and Claude Opus 4.8
3498542b07
docs: 初始化 chis_osi 设计文档与协作规范
...
- docs/: OSI 接口规范分析、旧项目架构评估、目标架构设计、字段与接口映射、实施路线图
- CLAUDE.md: 协作规则(项目认知、osi/mapping/pipeline 三层技术约束、安全/验证、提交规范)
- .gitignore: 补充项目特定忽略(config.yaml/logs/样本等)
- 随项目留存厂家 OSI 规范源材料(docx/xlsx,内部保密,仅限本私有仓库)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-05-30 13:10:17 +08:00