Medical Bill Organizer logo

Medical Bill Organizer

Organization
baidubce
medical-bill-organizer

医疗票据整理助手,用于自动分类、OCR识别和信息抽取。当用户需要处理医疗票据时使用,支持文件夹或压缩包输入,自动分类存放到不同文件夹,抽取病历信息(住院日期、医院名称),生成发票汇总CSV表格。

Overview

Publisherbaidubce
Repositoryskills
Skill namemedical-bill-organizer
Stars
32
Forks
11
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by baidubce on GitHub. Read the source before you install it.

Installation

Install the Medical Bill Organizer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/baidubce/skills/tree/develop/skills/medical-bill-organizer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/baidubce/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/medical-bill-organizer .claude/skills/medical-bill-organizer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Medical Bill Organizer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Medical Bill Organizer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Medical Bill Organizer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

医疗票据整理助手

这个 skill 帮助用户自动整理医疗票据,包括分类、OCR识别和信息汇总。

适用场景

  • 需要整理医疗报销材料
  • 批量处理医疗票据图片或PDF
  • 生成医疗费用报销清单

工作流程

第一步:准备输入

用户提供的输入可以是:

  • 文件夹路径(包含多个图片和PDF文件)
  • 压缩包路径(zip/rar/7z格式)

如果输入是压缩包,需要先解压到临时目录。

第二步:文件分类

使用 OCR 识别票据内容,根据以下分类标准进行分类,只生成有对应票据的文件夹。

分类标准
分类编号分类名称分类要求
001户口本包含户口簿、户口本、户口册、户口登记表、常住人口登记卡、户口迁移证等
002身份证正面身份证人像面,包含人像、姓名、性别、民族、出生日期、地址、身份证号
003身份证背面身份证国徽面,包含国徽、签发机关、有效期限
004银行卡银行卡、社保卡、银行卡号截图等
005出生证明出生证、出生医学证明、出生证明等
006理赔申请书包含理赔须知和理赔材料收集、个人声明和隐私声明
007转账授权书转账委托授权书、保险金转账委托授权书等
008门急诊病历门诊病历、急诊初诊病历、急诊病历、病历记录、就医记录等
009入院记录入院记录、住院病历、住院证、住院记录、查房记录等,包含"住院号"或"床号",无"出院时间"
010出院小结出院小结、出院记录、出院医嘱,包含"住院号"、"入院时间"、"出院时间"、"诊疗经过"、"出院诊断"等
011检查报告CT、MRI、DR、X线、报告单、诊断报告、B超申请单、化验单等
012处方笺处方笺、门诊处方笺、处方、急诊处方、处方单、处方明细等
013住院诊断证明标题为诊断证明书、疾病诊断书、出院证明书,同时包含"住院号"或"床号"
014病理报告标题包含病理报告、病理检查报告,内容含有"病理诊断/病理学诊断"字段
015门诊诊断证明标题为诊断证明书、病情诊断证明书、门(急)诊病情证明书等
016门诊费用清单标题为医疗收费明细、门诊费用清单、诊疗项目收费清单等(归类到门诊电票)
017住院费用清单标题为住院费用清单、住院病人费用明细、住院费用结算单等
018门诊电票门诊收费票据、发票,标题包含"门诊/急诊"和"(电子)",有二维码;门诊费用清单也归类到此类型
019门诊纸票门诊收费票据、发票,标题包含"门诊/急诊",无"(电子)"和二维码
020住院电票住院收费票据、发票,标题包含"住院"和"(电子)",有二维码
021住院纸票住院收费票据、发票,标题包含"住院",无"(电子)"和二维码
022药房增值税发票电子发票、普通发票,存在"增值税/纳税人识别号/税率",项目名称包含医疗服务、化学药品
023病案首页标题必须为病案首页或住院病案首页
024纸质发票复印件门诊/住院收费票据复印件,黑白或带"复印"字样,无彩色防伪标识
025伤残鉴定报告鉴定意见书、鉴定结论书等
026理赔分割单理赔分割单、理赔通知书、理赔核定通知书、理赔决定通知书等
027交通事故认定书标题为道路交通事故认定书
028其他不属于上述分类的材料,医保结算单也归类到此类型
分类原则
  1. 根据 OCR 识别的内容,按照分类标准进行判断
  2. 仔细甄别各个类型之间的联系和区别
  3. 如果原始是PDF包含多页,只看第一页进行分类
  4. 只生成有对应票据的文件夹

第三步:OCR识别和信息抽取

使用 qianfanocr-document-intelligence skill 对每个文件进行 OCR 识别。

病历信息抽取

对于病历文件(包括门急诊病历、入院记录、出院小结、住院诊断证明、门诊诊断证明),抽取以下信息:

  • 住院日期 - 入院和出院日期
  • 医院名称 - 就医医院的完整名称
发票信息抽取

对于发票文件(包括门诊电票、门诊纸票、住院电票、住院纸票、药房增值税发票),抽取以下字段:

  • 就诊日期
  • 账单金额(金额合计)
  • 统筹先期给付金额(医保统筹基金支付)
  • 全额自费(个人自费)
  • 部分自费(个人自付)
  • 第三方支付(来自理赔分割单,发票中暂无此字段,填0)

注意事项:

  • 金额字段需要识别数字格式,支持小数点
  • 日期格式可能是多种形式,统一转换为 YYYY-MM-DD
  • 如果某个字段在发票中不存在,留空或填0

第四步:生成输出

文件夹结构

根据实际分类结果,创建对应的文件夹:

输出目录/
├── [分类名称]/     # 只生成有对应票据的文件夹
├── [分类名称]/
├── ...
└── 发票汇总.csv    # 发票信息汇总表(如果有发票)
发票汇总 CSV

创建 发票汇总.csv 文件,格式如下:

列名说明
发票号发票号码
就诊日期就诊日期(YYYY-MM-DD格式)
账单金额金额合计
统筹先期给付金额医保统筹基金支付金额
全额自费个人自费金额
部分自费个人自付金额
第三方支付来自理赔分割单,发票中填0

最后一行为合计行,对各金额列进行单独合计(除发票号和就诊日期外)。

CSV 格式示例:

csv
发票号,就诊日期,账单金额,统筹先期给付金额,全额自费,部分自费,第三方支付
12345678,2024-03-15,1500.00,1000.00,0.00,300.00,0.00
87654321,2024-03-16,2500.00,1800.00,50.00,400.00,250.00
合计,,2800.00,50.00,700.00,250.00

注意: CSV 文件需要按就诊日期进行排序。

处理压缩包

如果输入是压缩包:

  1. 创建临时解压目录
  2. 解压文件
  3. 处理所有文件
  4. 清理临时目录(询问用户是否保留)

支持的压缩格式:

  • zip
  • rar
  • 7z

错误处理

  • 如果某个文件 OCR 失败,记录到错误日志,继续处理其他文件
  • 如果发票某个字段无法识别,在 CSV 中留空
  • 如果无法确定文件类型,放入"其他"文件夹

输出总结

处理完成后,向用户报告:

  • 处理文件总数
  • 各分类文件数量
  • OCR 成功/失败数量
  • 输出目录位置
  • 发票总金额等关键统计信息

Frequently asked questions

What does the Medical Bill Organizer AI skill do?

医疗票据整理助手,用于自动分类、OCR识别和信息抽取。当用户需要处理医疗票据时使用,支持文件夹或压缩包输入,自动分类存放到不同文件夹,抽取病历信息(住院日期、医院名称),生成发票汇总CSV表格。

Why use Medical Bill Organizer on TypingMind?

Because you install it once and use it with any model. Medical Bill Organizer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Medical Bill Organizer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/baidubce/skills/tree/develop/skills/medical-bill-organizer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Medical Bill Organizer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Medical Bill Organizer?

As many as you like. As long as a model supports skills, you can use Medical Bill Organizer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Medical Bill Organizer AI skill free?

Yes. It is published on GitHub by baidubce under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇