zoehis-business

zoehis-business is a cursor rule for Cursor from zyx379/zoehis_workflow. It costs 618 tokens per session, scanned A, original, MIT.

A set of business rules for ZOEHIS, a hospital information system, covering outpatient and inpatient care, prescriptions, medicine, charges, prepayments, and refunds.

In plain words
What is it for?
Use it when changing or checking prescription, dispensing, billing, prepayment, refund, master-detail, pool-record, or outpatient and inpatient logic.
Why use it?
It protects linked hospital records and financial balances from becoming inconsistent during workflow changes.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when changing or checking prescription, dispensing, billing, prepayment, refund, master-detail, pool-record, or outpatient and inpatient logic.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/zyx379/zoehis_workflow/zoehis-business
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/zyx379/zoehis_workflow

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zoehis-business

README.md
[![agentmods](https://agentmods.dev/badge/rules/zyx379/zoehis_workflow/zoehis-business/github.svg)](https://agentmods.dev/rules/zyx379/zoehis_workflow/zoehis-business)
Your own site
<a href="https://agentmods.dev/rules/zyx379/zoehis_workflow/zoehis-business"><img src="https://agentmods.dev/badge/rules/zyx379/zoehis_workflow/zoehis-business/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zoehis-business

Your own site · 80×15
<a href="https://agentmods.dev/rules/zyx379/zoehis_workflow/zoehis-business"><img src="https://agentmods.dev/badge/rules/zyx379/zoehis_workflow/zoehis-business.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 618 This file is loaded in full into every session.
When invoked 618 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00618 $0.00618
Opus 5 $0.00309 $0.00309
Sonnet 5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured 10d ago against content hash 65f4e0b9a307, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

zoehis-business scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev/rules/zoehis-business.mdc · 64 lines

What it actually says

ZOEHIS 业务规则

核心模式

池表

业务数据 → 池表(POOL)新增 → 执行后产生记录(RECORD) → 删除池表数据

主细表

  • 主表 _MASTER:单据级(患者、科室、金额、状态)
  • 细表 _DETAIL:明细级(项目、数量、单价)

预交金

  • 充值:PREPAY_RECORD(新增) + PREPAY_ACCT(更新)
  • 消费:PREPAY_ACCT(更新) + CONSUME_MASTER(新增)
  • 退费:PREPAY_ACCT(更新,退回)

门诊/住院对称

表名 _OUTP_ / _INP_ 区分,业务逻辑一致。

门诊处方(摘要)

保存:PRES_OUTP_PRES_MASTER + DETAIL
发送:摆药池 + 单据池;取消发送删池表
取药/执行:删池 + 记记录 + 扣预交金 + 消费流水

住院医嘱(摘要)

校对 → PRES_APPLY_RECORDS_POOL;申请 → 摆药池 + 单据池
停嘱:医生停嘱记录 → 护士审核

费用审核人与结算人分离

同一 SQL 若同时维护「业务标志」与「操作人」:

  • 结算/冲销/取消锁定流程只改标志(如 FEE_AUDIT_FLAG),不改操作人(如 FEE_AUDIT_OPERATOR
  • 手工审核接口才更新操作人
  • 涉及表:PAT_IN_HOSPITAL.FEE_AUDIT_OPERATORPAT_ADMISSION_RECORD.FEE_AUDIT_OPERATOR

有效期类需求模式

系统参数 + SQL 过滤 + 执行二次校验:

  1. 新增系统参数(默认值 0/空 = 不限制,兼容其他医院)
  2. 列表/树/消息 SQL 增加时间过滤
  3. 执行入口增加校验方法,超时抛业务异常
  4. 参数 jsonl 与功能代码分 commit 提交(见 Rule zoehis-sys-param

关键约束

  • 发送后才产生池表数据
  • 执行后必须删池表并产生正式记录
  • 扣费必须记消费流水;退费必须退回预交金

详细表级流转见 Skill:patterns/his-business-patterns.md

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 64 lines · 618 tokens per session scan A 65f4e0b9a307

Subscribe to this mod's changes

zoehis-business is a cursor rule published in the GitHub repository zyx379/zoehis_workflow (2 stars, last pushed 1mo ago), licensed MIT. It adds 618 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.