跳到正文

D002 数据结构与关联关系分析

分析医疗数据的字段、记录单位、主键质量与跨表关联,记录数据缺口及连接条件,为后续处理提供结构依据。

个人 Skill知识加工11 个文件浏览次数 0
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
Required: D001 source_manifest.json the exact local source file/directory that D001 inventoried Preferred invocation:D002 must verify that every profiled file resolves inside the declared input boundary.Supported determi… 阅读本节完整说明
交付内容
Always produce: schema_linkage_profile.json schema_linkage_report.md linkage_edges.csv Prefer:./runs/haonan-d002/<package-id>/The machine-readable contract is defined in assets/schema_linkage_profile.schema.json and expl… 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

README.md

v0.2.0 修复发布

新增明确的上游 manifest 引用,D014 可追溯源清单。画像与推测字段关联不是临床标准映射证明。

D-series medical data/knowledge processing skill #002.

Purpose: validate schema grain, keys, patient/encounter/specimen/order linkage, duplicates, missingness, orphan risk, join coverage, and cardinality after D001 intake and before PHI processing or clinical fact extraction.

Install into a Codex project

Place this directory under:

.agents/skills/haonan-d002-clinical-schema-linkage-profiler/

Main command

python scripts/profile_schema.py \
  --manifest /path/to/source_manifest.json \
  --input-path /path/to/original/source-package \
  --output-root ./runs/haonan-d002

Validate the result:

python scripts/validate_profile.py ./runs/haonan-d002/<package-id>/schema_linkage_profile.json

Run bundled regression/security tests:

python scripts/self_test.py

D002 uses only the Python standard library. It performs no network access, executes no source-package code, emits no sampled patient values, and writes only under the chosen output directory.

当前版本:v0.2.1

本模块既有运行逻辑保持;本次与其他模块统一发布0.2.1,并执行原有回归。不得仅凭版本号推断新增临床能力。

以SKILL.md顶部发布合同和references/repair-v0.2.1.md为准,历史自测描述不代表全面临床验收。

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan