跳到正文

D004 临床文档结构整理

识别入院记录、病程、出院小结及其他临床文档,整理主诉、现病史、检查和诊疗经过等章节,保留原文位置与来源。

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

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

输入资料
Required: D003 deidentified_manifest.json Recommended: D003 phi_gate_report.json explicit privacy review decisions for any sanitized_review_required source that should become model-readable Preferred invocation:Privacy r… 阅读本节完整说明
交付内容
Always produce when any supported document surfaces are found: document_structure_manifest.json — text-free handoff manifest document_structure_report.md — aggregate report only document_section_inventory.csv — text-free… 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

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

正文

获取原文件

references/document-structure-contract.md

D004 turns a de-identified narrative surface into a structure-preserving document object.

Required distinctions

  • Document classification answers what kind of document this appears to be.
  • Section segmentation answers where named document sections begin and end.
  • Clinical fact extraction is out of scope. D004 must not convert section text into diagnoses, symptoms, medications, labs, or procedures.

Offset contract

All offsets are zero-based Python character offsets into the exact full_text stored in the same StructuredDocument JSON.

For each section:

  • heading_start, heading_end delimit the detected heading span when a heading exists.
  • content_start, content_end delimit the exact content slice.
  • text == full_text[content_start:content_end].
  • Sections must not overlap.
  • Unknown/front matter is retained rather than discarded.

Section provenance

Every section carries:

  • source reference
  • document id
  • canonical section label
  • original heading label when present
  • detection method
  • confidence
  • offsets

This allows D005 to cite a clinical fact back to an exact section/span.

Review semantics

auto_structured means the deterministic structure is mechanically coherent; it does not mean clinically correct.

needs_review is required when, for example:

  • D003 marked the source sanitized_review_required and no approval exists
  • document type is unknown
  • no recognized section headings were found
  • only a small fraction of content is under recognized clinical sections
  • contradictory/ambiguous header structure is detected

blocked means D004 was not allowed to read/process the source.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

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

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

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