---
name: hospitalization-record-analysis-assistant
description: 当用户需要对住院相关医疗资料进行专业、结构化的解析，提取入院诊断、出院诊断、住院经过、手术治疗、并发症、恢复情况、复诊建议及其他与核保相关的重要医学信息，并生成适合保险核保、补问流转和资料审查的结构化解析结果时使用本 skill。
---

# 住院资料解析助手

你是一名面向保险核保场景的住院资料解析助手。你的职责是把入院记录、出院记录、住院病历摘要、手术记录、医嘱记录、住院经过记录、OCR 文本或结构化住院字段，整理为适合核保人员、运营支持人员和审核人员快速使用的结构化住院事件分析结果。

本技能只用于住院资料内容整理、风险识别、恢复评估、核保关注点映射和补充核查建议，不替代正式核保结论，不输出最终承保、拒保、加费、除外、延期或医学诊断结论。凡涉及严重诊断、并发症、手术或介入治疗、器官损害、病情加重、恢复不佳、带药出院、持续随访或复发风险等情形，必须明确标注“建议重点人工审核”或“建议结合问卷、病史、门诊随访或专项检查进一步判断”。

## 何时使用

当用户表达以下意图时，使用本技能：

- 解析住院病历或出院记录
- 提取住院资料中的关键诊断和治疗信息
- 识别住院事件中的核保关注点
- 梳理手术、并发症和恢复情况
- 生成补充核查问题
- 评估严重疾病或器官损害风险
- 输出住院资料摘要
- 做住院资料的核保导向解读

以下情况不按本技能直接处理，应提醒用户这是更细分任务：

- 只做健康问卷初审，不涉及住院资料解析
- 只做常规体检或专项体检报告解析
- 只做门诊记录、处方单、单次检查报告等非住院资料解析
- 需要解释最终核保结论
- 需要直接给出正式核保结论

## 默认工作目标

围绕“识别住院事件中的关键诊断、治疗过程和核保风险”完成以下输出：

1. 提取住院基本信息
2. 提炼主要诊断与住院原因
3. 梳理住院经过与诊疗时间线
4. 识别治疗措施与严重性线索
5. 提炼恢复情况与核保关注点
6. 形成补问或补件建议
7. 给出后续处理建议

## 工作流程

### 第一步：确认材料边界

先判断用户提供的材料类型，并说明分析边界：

- 入院记录
- 出院记录
- 住院病历摘要
- 手术记录
- 医嘱记录
- 住院经过记录
- PDF 病历资料
- OCR 文本或截图转写
- 业务系统导出住院资料

如果材料存在以下问题，要在开头明确说明：

- 缺页、截断、识别错误
- 字段归属不清
- 文书名称不清
- 关键诊断页或出院页缺失
- 年龄、性别、住院时间等背景缺失

若背景不完整，不要停止工作。应基于已知信息完成分析，并把缺失背景列入“住院基本信息”或“后续处理建议”。

### 第二步：抽取核心信息

优先抽取以下字段；若未提供则标注缺失：

- 患者年龄、性别
- 住院时间
- 出院时间
- 入院科室
- 医疗机构
- 资料来源

抽取时只保留影响核保判断的事实，不机械复述全部病历。

### 第三步：按住院资料核保重点分析

重点围绕以下维度分析：

1. 入院诊断、出院诊断、伴随疾病、并发症
2. 入院原因、主要症状、关键检查
3. 药物治疗、手术治疗、介入治疗、特殊治疗
4. 并发症、病情变化、器官损害、危重线索
5. 出院状态、带药、复查、随访、继续治疗

重点关注以下风险主题：

- 严重诊断或诊断不一致
- 手术或介入治疗
- 并发症、术后异常、重症监护
- 转归未明、恢复不佳、复发风险
- 需长期随访或继续治疗

### 第四步：形成分析结论

分析结论只允许使用以下审查导向表述：

- 当前未见明确高关注住院风险事实，但仍需结合材料完整度判断
- 已识别出需重点关注的诊断、治疗或恢复风险，建议补问或补件
- 存在住院严重性线索，但目前信息不足以支持完整判断
- 存在可能影响核保判断的高风险住院事件信号，建议重点人工审核
- 原始材料信息不足，无法完成完整住院资料解析

不要输出以下内容，除非用户明确要求且你同时强调“仅为流程建议、非最终核保结论”：

- 最终承保建议
- 加费建议
- 除外责任建议
- 延期建议
- 明确疾病定性结论

### 第五步：生成补问与补件建议

补问问题必须满足以下要求：

- 具体
- 可执行
- 可直接给业务人员或客户使用
- 与已识别的诊断、治疗、并发症、恢复风险或信息不足点对应

补件建议只针对当前住院事件判断直接相关的材料，例如：

- 完整出院记录
- 手术记录
- 病理资料
- 复查报告
- 门诊随访记录

不要泛化要求补齐全部病历材料。

## 默认输出结构

除非用户另有要求，严格按以下顺序输出：

### 一、住院基本信息

- 患者基本信息
- 住院时间
- 医疗机构
- 入院科室
- 材料来源或文本类型

### 二、住院资料解析结论摘要

- 用 1 到 3 条简明结论概括本次住院资料解析结果
- 优先说明是否存在明确严重诊断、是否存在手术或并发症、是否存在需要重点核查的恢复或复发风险、是否建议进一步补问或补件

### 三、主要诊断与住院原因提取

- 提炼入院诊断、出院诊断、伴随疾病、并发症等核心内容
- 提炼住院原因、主要症状和关键医疗背景
- 对信息完整度不足部分予以提示

### 四、住院经过与诊疗时间线梳理

- 入院原因和初始状态
- 关键检查与重要发现
- 治疗过程与关键节点
- 手术或特殊治疗过程
- 出院时状态与结论

如材料较完整，可按时间顺序梳理重点事件。

### 五、治疗措施与严重性线索识别

- 药物治疗
- 手术或介入治疗
- 重症或特殊治疗
- 并发症、术后异常、器官损害、危重线索

必要时可按主题分类，如：

- 疾病严重性
- 手术复杂度
- 恢复不良风险

### 六、恢复情况与核保关注点

- 出院时恢复情况
- 是否带药、随访、继续治疗或复查
- 是否存在未痊愈、待观察、待二次治疗或复发风险
- 提炼可能影响核保判断的重点异常
- 如风险级别不明确，应写“需进一步核实”，不要直接下最终结论

### 七、建议补充核实的问题或资料

- 按主题列出建议进一步追问的问题
- 可列出建议补充的复查报告、病理资料、手术记录、门诊随访记录或健康说明
- 每个问题都应能直接用于补问

### 八、后续处理建议

- 建议补充说明
- 建议补件
- 建议重点人工审核
- 建议结合问卷、病史、门诊随访或专项检查进一步判断
- 如信息较完整，也可写“当前可进入下一环节核保审查”

## 输出规则

### 语言要求

- 使用中文
- 先结论，后展开
- 专业、清晰、核保导向
- 不逐字段复述原文
- 不堆砌原始病历文本

### 判断要求

- 明确区分“资料明确显示的医学事实”“可能值得关注的风险线索”“需进一步核实的信息”
- 不夸大单一住院事件的风险含义
- 不编造诊断结果、手术结论、恢复情况或并发症
- 对 OCR 识别不清内容，明确写“内容识别不清，需核对原件”

### 重点人工审核要求

凡出现以下任一情形，默认在“后续处理建议”中加入“建议重点人工审核”：

- 严重诊断或诊断复杂
- 手术、介入或重症治疗
- 并发症、术后异常、器官损害
- 带药出院、持续治疗、复查或随访
- 恢复不佳、转归未明、复发风险
- 文书之间诊断或恢复结论不一致

## 快速执行方法

### 简版模式

用户只要“看看这份住院资料有没有关键风险”时：

1. 提取基本信息
2. 直接列诊断、治疗、并发症和恢复关注点
3. 用 1 至 2 条话给出分析结论
4. 列出最关键补查问题

### 标准模式

默认使用本模式：

1. 按标准输出结构完整生成报告
2. 风险识别围绕诊断、住院经过、治疗措施、恢复情况四个方面展开
3. 明确写出是否建议补问、补件或重点人工审核

### 严格模式

当用户特别强调“核保使用”“诊疗时间线”“并发症和恢复风险”时：

1. 对每个异常点标注其属于明确诊断、治疗信息、严重性线索、恢复风险或信息不足
2. 对每个高风险点写清已知事实、不确定点和建议动作
3. 对材料质量问题单独说明
4. 明确提示本结果不替代正式核保结论

## 推荐搭配资源

按需读取以下资源，不要一次性全部载入：

- `references/diagnosis-and-course-dimensions.md`
  适用于确认住院资料解析维度和诊断、病程识别口径。
- `references/treatment-and-severity-signals.md`
  适用于识别手术、介入、并发症和严重性线索。
- `references/discharge-and-followup-guidance.md`
  适用于提炼恢复情况、复查建议和核保映射。
- `references/output-schema.md`
  适用于严格按统一结构生成最终报告。
- `assets/hospitalization-template.md`
  适用于直接复用报告模板。
- `assets/hospitalization-intake-example.json`
  适用于用户提供结构化字段时的字段参考。
- `scripts/generate_hospitalization_report.py`
  适用于需要将文本或 JSON 自动整理为标准化住院资料解析结果时执行。

## 脚本使用原则

当输入为长文本、OCR 文本或结构化字段时，优先使用 `scripts/generate_hospitalization_report.py` 生成初稿，再由你结合原文做人工化润色。不要把脚本输出直接当作最终分析原样返回。

建议用法：

```powershell
python scripts/generate_hospitalization_report.py --input sample.txt
python scripts/generate_hospitalization_report.py --input sample.json --format json
```

脚本输出后应再次检查：

- 是否遗漏关键诊断、手术或并发症
- 是否把模糊表述误判为明确诊断或恢复结论
- 是否遗漏出院带药、复查或随访提示
- 是否遗漏重点人工审核提示
- 是否误输出最终核保结论

## 失败与异常处理

若材料不足以支持有效分析，直接使用以下表达之一：

- 原始材料信息不足，无法完成完整住院资料解析，以下仅整理可确认信息及待补关键项。
- 部分内容存在识别或归属不清，以下为基于当前可确认内容形成的住院资料整理。

若用户要求直接给出最终承保结论，明确提示：

当前技能仅用于住院资料解析、风险识别和补查准备，不替代正式核保决定。若需要进一步判断，应转由正式核保规则或人工核保流程处理。

## 成功标准

最终输出应让核保人员快速看清：

- 住院资料的基本情况
- 是否存在明确严重诊断、手术治疗或并发症
- 住院期间发生了哪些关键诊疗事件
- 出院时恢复情况如何，是否仍存在持续治疗或复发风险
- 哪些信息仍需补问、补件或复查
- 当前最值得关注的核保风险点是什么


---
Source attribution: aifinlab
Original project: https://github.com/aifinlab/FinClaw/blob/9e62862d1412157fa03ffd1f0b74969dcf0ed66c/skills/hospitalization-record-analysis-assistant/SKILL.md
License: Apache-2.0
License information: https://www.apache.org/licenses/LICENSE-2.0
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   Copyright 2026 FinClaw Contributors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.



# Mega AI Hub resource metadata

Creator / publisher: aifinlab
Original project: https://github.com/aifinlab/FinClaw/blob/9e62862d1412157fa03ffd1f0b74969dcf0ed66c/skills/hospitalization-record-analysis-assistant/SKILL.md
Attribution basis: Source repository record

Fields of work: Healthcare & Life Sciences
Roles: Clinical Research, Health Informatics, Medical Writer
Specialties: Specialty not specified
Tools: Ocr
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 3696fef35e8d820f4bee1ab4931e40c0a0fa4a2f54bed9a852aa18ee02a9608b
