Agent skill

Healthcare Cdss Patterns

by affaan-m in affaan-m/ECC

临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重性分类以及集成到电子病历工作流程中。

MITAuto-check passed

Install Healthcare Cdss Patterns

skills CLI
$ npx skills add affaan-m/ECC --skill healthcare-cdss-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC healthcare-cdss-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/healthcare-cdss-patterns .claude/skills/healthcare-cdss-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
healthcare-cdss-patterns
GitHub stars
276k
Token cost
~1.9k tokens
SKILL.md length
60 words
Files
1
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重性分类以及集成到电子病历工作流程中。

  • Works in 3 steps: checkInteractions(newDrug, currentMeds,… → validateDose(drug, dose, route, weight,… → calculateNEWS2(vitals) —…
  • SKILL.md covers 适用场景, 工作原理 and 示例
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Healthcare Cdss Patterns is an agent skill from affaan-m/ECC. 临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重性分类以及集成到电子病历工作流程中。

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

Example prompts

  • “/healthcare-cdss-patterns”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. checkInteractions(newDrug, currentMeds, allergies) — 检查新药物与现有用药及已知过敏的冲突。返回按严重程度排序的InteractionAlert[]。使用DrugInteractionPair数据模型。
  2. validateDose(drug, dose, route, weight, age, renalFunction) — 根据体重、年龄和肾功能调整规则验证处方剂量。返回DoseValidationResult。
  3. calculateNEWS2(vitals) — 基于NEWS2Input计算国家早期预警评分2。返回包含总分、风险等级和升级指导的NEWS2Result。

What it can do on your machine

Read from SKILL.md and the folder at commit 4eb71d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Healthcare Cdss Patterns loads about 1.9k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 60 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 4eb71d9, republished under its MIT licence (© affaan-m). 60 words, ~1,859 tokens.

Download SKILL.mdSave it as .claude/skills/healthcare-cdss-patterns/SKILL.md (or your agent's skills folder).
name
healthcare-cdss-patterns
description
临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重性分类以及集成到电子病历工作流程中。
origin
Health1 Super Speciality Hospitals — contributed by Dr. Keyur Patel
version
1.0.0

医疗CDSS开发模式

构建可集成至EMR工作流的临床决策支持系统的模式。CDSS模块关乎患者安全——对假阴性零容忍。

适用场景

  • 实现药物相互作用检查
  • 构建剂量验证引擎
  • 实现临床评分系统(NEWS2、qSOFA、APACHE、GCS)
  • 设计异常临床值警报系统
  • 构建带安全校验的用药医嘱录入
  • 结合临床上下文解读检验结果

工作原理

CDSS引擎是一个无副作用的纯函数库。输入临床数据,输出警报。这使得它完全可测试。

三个核心模块:

  1. checkInteractions(newDrug, currentMeds, allergies) — 检查新药物与现有用药及已知过敏的冲突。返回按严重程度排序的InteractionAlert[]。使用DrugInteractionPair数据模型。
  2. validateDose(drug, dose, route, weight, age, renalFunction) — 根据体重、年龄和肾功能调整规则验证处方剂量。返回DoseValidationResult。
  3. calculateNEWS2(vitals) — 基于NEWS2Input计算国家早期预警评分2。返回包含总分、风险等级和升级指导的NEWS2Result。
EMR UI
  ↓ (用户输入数据)
CDSS 引擎(纯函数,无副作用)
  ├── 药物相互作用检查器
  ├── 剂量验证器
  ├── 临床评分(NEWS2、qSOFA 等)
  └── 警报分类器
  ↓ (返回警报)
EMR UI(内联显示警报,严重时阻止操作)
药物相互作用检查
typescript
interface DrugInteractionPair {
  drugA: string;           // generic name
  drugB: string;           // generic name
  severity: 'critical' | 'major' | 'minor';
  mechanism: string;
  clinicalEffect: string;
  recommendation: string;
}

function checkInteractions(
  newDrug: string,
  currentMedications: string[],
  allergyList: string[]
): InteractionAlert[] {
  if (!newDrug) return [];
  const alerts: InteractionAlert[] = [];
  for (const current of currentMedications) {
    const interaction = findInteraction(newDrug, current);
    if (interaction) {
      alerts.push({ severity: interaction.severity, pair: [newDrug, current],
        message: interaction.clinicalEffect, recommendation: interaction.recommendation });
    }
  }
  for (const allergy of allergyList) {
    if (isCrossReactive(newDrug, allergy)) {
      alerts.push({ severity: 'critical', pair: [newDrug, allergy],
        message: `Cross-reactivity with documented allergy: ${allergy}`,
        recommendation: 'Do not prescribe without allergy consultation' });
    }
  }
  return alerts.sort((a, b) => severityOrder(a.severity) - severityOrder(b.severity));
}

相互作用对必须双向:若药物A与药物B相互作用,则药物B与药物A相互作用。

剂量验证
typescript
interface DoseValidationResult {
  valid: boolean;
  message: string;
  suggestedRange: { min: number; max: number; unit: string } | null;
  factors: string[];
}

function validateDose(
  drug: string,
  dose: number,
  route: 'oral' | 'iv' | 'im' | 'sc' | 'topical',
  patientWeight?: number,
  patientAge?: number,
  renalFunction?: number
): DoseValidationResult {
  const rules = getDoseRules(drug, route);
  if (!rules) return { valid: true, message: 'No validation rules available', suggestedRange: null, factors: [] };
  const factors: string[] = [];

  // SAFETY: if rules require weight but weight missing, BLOCK (not pass)
  if (rules.weightBased) {
    if (!patientWeight || patientWeight <= 0) {
      return { valid: false, message: `Weight required for ${drug} (mg/kg drug)`,
        suggestedRange: null, factors: ['weight_missing'] };
    }
    factors.push('weight');
    const maxDose = rules.maxPerKg * patientWeight;
    if (dose > maxDose) {
      return { valid: false, message: `Dose exceeds max for ${patientWeight}kg`,
        suggestedRange: { min: rules.minPerKg * patientWeight, max: maxDose, unit: rules.unit }, factors };
    }
  }

  // Age-based adjustment (when rules define age brackets and age is provided)
  if (rules.ageAdjusted && patientAge !== undefined) {
    factors.push('age');
    const ageMax = rules.getAgeAdjustedMax(patientAge);
    if (dose > ageMax) {
      return { valid: false, message: `Exceeds age-adjusted max for ${patientAge}yr`,
        suggestedRange: { min: rules.typicalMin, max: ageMax, unit: rules.unit }, factors };
    }
  }

  // Renal adjustment (when rules define eGFR brackets and eGFR is provided)
  if (rules.renalAdjusted && renalFunction !== undefined) {
    factors.push('renal');
    const renalMax = rules.getRenalAdjustedMax(renalFunction);
    if (dose > renalMax) {
      return { valid: false, message: `Exceeds renal-adjusted max for eGFR ${renalFunction}`,
        suggestedRange: { min: rules.typicalMin, max: renalMax, unit: rules.unit }, factors };
    }
  }

  // Absolute max
  if (dose > rules.absoluteMax) {
    return { valid: false, message: `Exceeds absolute max ${rules.absoluteMax}${rules.unit}`,
      suggestedRange: { min: rules.typicalMin, max: rules.absoluteMax, unit: rules.unit },
      factors: [...factors, 'absolute_max'] };
  }
  return { valid: true, message: 'Within range',
    suggestedRange: { min: rules.typicalMin, max: rules.typicalMax, unit: rules.unit }, factors };
}
临床评分:NEWS2
typescript
interface NEWS2Input {
  respiratoryRate: number; oxygenSaturation: number; supplementalOxygen: boolean;
  temperature: number; systolicBP: number; heartRate: number;
  consciousness: 'alert' | 'voice' | 'pain' | 'unresponsive';
}
interface NEWS2Result {
  total: number;           // 0-20
  risk: 'low' | 'low-medium' | 'medium' | 'high';
  components: Record<string, number>;
  escalation: string;
}

评分表必须严格符合皇家内科医师学会规范。

警报严重程度与UI行为
严重程度UI行为临床医生操作要求
危急阻止操作。不可关闭的模态框。红色。必须记录覆盖原因才能继续
主要行内警告横幅。橙色。必须确认后才能继续
次要行内信息提示。黄色。仅需知晓,无需操作

危急警报绝不能自动关闭或实现为Toast通知。覆盖原因必须存储在审计追踪中。

测试CDSS(对假阴性零容忍)
typescript
describe('CDSS — Patient Safety', () => {
  INTERACTION_PAIRS.forEach(({ drugA, drugB, severity }) => {
    it(`detects ${drugA} + ${drugB} (${severity})`, () => {
      const alerts = checkInteractions(drugA, [drugB], []);
      expect(alerts.length).toBeGreaterThan(0);
      expect(alerts[0].severity).toBe(severity);
    });
    it(`detects ${drugB} + ${drugA} (reverse)`, () => {
      const alerts = checkInteractions(drugB, [drugA], []);
      expect(alerts.length).toBeGreaterThan(0);
    });
  });
  it('blocks mg/kg drug when weight is missing', () => {
    const result = validateDose('gentamicin', 300, 'iv');
    expect(result.valid).toBe(false);
    expect(result.factors).toContain('weight_missing');
  });
  it('handles malformed drug data gracefully', () => {
    expect(() => checkInteractions('', [], [])).not.toThrow();
  });
});

通过标准:100%。一次遗漏的相互作用即构成患者安全事件。

反模式
  • 使CDSS检查变为可选或可跳过且无记录原因
  • 将相互作用检查实现为Toast通知
  • 使用any类型处理药物或临床数据
  • 硬编码相互作用对而非使用可维护的数据结构
  • 静默捕获CDSS引擎错误(必须大声暴露失败)
  • 在体重数据缺失时跳过基于体重的验证(必须阻止,而非通过)

示例

示例1:药物相互作用检查
typescript
const alerts = checkInteractions('warfarin', ['aspirin', 'metformin'], ['penicillin']);
// [{ severity: 'critical', pair: ['warfarin', 'aspirin'],
//    message: 'Increased bleeding risk', recommendation: 'Avoid combination' }]
示例2:剂量验证
typescript
const ok = validateDose('paracetamol', 1000, 'oral', 70, 45);
// { valid: true, suggestedRange: { min: 500, max: 4000, unit: 'mg' } }

const bad = validateDose('paracetamol', 5000, 'oral', 70, 45);
// { valid: false, message: 'Exceeds absolute max 4000mg' }

const noWeight = validateDose('gentamicin', 300, 'iv');
// { valid: false, factors: ['weight_missing'] }
示例3:NEWS2评分
typescript
const result = calculateNEWS2({
  respiratoryRate: 24, oxygenSaturation: 93, supplementalOxygen: true,
  temperature: 38.5, systolicBP: 100, heartRate: 110, consciousness: 'voice'
});
// { total: 13, risk: 'high', escalation: 'Urgent clinical review. Consider ICU.' }

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/healthcare-cdss-patterns of affaan-m/ECC.

Open the folder on GitHubat commit 4eb71d9

Compare with similar skills

Healthcare Cdss Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Healthcare Cdss Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Healthcare Cdss Patterns this skillaffaan-m/ECC276k—~1.9kAutomated safety check: PassMIT
Healthcare System Primermohitagw15856/pm-claude-skills1.4k—~252Automated safety check: PassMIT
Ambient Healthcare Agent With Nemotron Voice AgentNVIDIA/skills3.6k—~3.6kAutomated safety check: NotesApache-2.0
Healthcare System Primermohitagw15856/pm-claude-skills1.4k—~1.7kAutomated safety check: PassMIT
Healthcare AI Privacymukul975/Privacy-Data-Protection-Skills301—~4.4kAutomated safety check: PassApache-2.0
Tw Healthcare Regulationsasgard-ai-platform/skills242—~1.4kAutomated safety check: PassMIT

Similar skills

  • Healthcare System Primer

    mohitagw15856/pm-claude-skills

    Summarise what Healthcare System Primer does in one line. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~252 tokensUpdated yesterday
    Auto-check passed
  • Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.

    3.6k GitHub stars~3.6k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Healthcare System Primer

    mohitagw15856/pm-claude-skills

    Understand and enrol in a new country's healthcare system — how it works (public/private/insurance-based), what you're entitled to with your status, how to register with a doctor, get insurance if…

    1.4k GitHub stars~1.7k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Healthcare AI Privacy

    mukul975/Privacy-Data-Protection-Skills

    Addresses healthcare AI privacy at the intersection of HIPAA and the EU AI Act for clinical decision support systems.

    301 GitHub stars~4.4k tokensUpdated 6 mo ago
    Legal & ComplianceAuto-check passed
  • Tw Healthcare Regulations

    asgard-ai-platform/skills

    Navigate Taiwan healthcare regulations including NHI system, medical device classification, drug registration, telemedicine rules, and health data protection.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Research & ScienceAuto-check passed
  • Healthcare Equity

    hh-health-AI/healthcare-equity

    A skill your agent uses for healthcare company initiation, earnings analysis, valuation framing, thesis development, screens, portfolio research, management meetings, sell discipline, international…

    101 GitHub stars~770 tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed

More from affaan-m/ECC

All 682 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    277k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    277k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    277k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    277k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Set an ECC-specific frontend design direction for production UI work.

    277k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Questions about Healthcare Cdss Patterns

What does Healthcare Cdss Patterns do?

临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重性分类以及集成到电子病历工作流程中。. Healthcare Cdss Patterns is an agent skill from affaan-m/ECC.

How do I install Healthcare Cdss Patterns in Claude Code?

Run `npx skills add affaan-m/ECC --skill healthcare-cdss-patterns -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/healthcare-cdss-patterns in affaan-m/ECC) into .claude/skills/healthcare-cdss-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Healthcare Cdss Patterns in Codex?

Run `npx skills add affaan-m/ECC --skill healthcare-cdss-patterns -a codex`. Or copy the skill folder (docs/zh-CN/skills/healthcare-cdss-patterns in affaan-m/ECC) into .agents/skills/healthcare-cdss-patterns in your project. Codex loads it when a task matches its description.

Can I use Healthcare Cdss Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill healthcare-cdss-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/healthcare-cdss-patterns, .gemini/skills/healthcare-cdss-patterns, .github/skills/healthcare-cdss-patterns and .opencode/skills/healthcare-cdss-patterns in your project.

What does Healthcare Cdss Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Healthcare Cdss Patterns is instructions for the agent only.

Does Healthcare Cdss Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Healthcare Cdss Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Healthcare Cdss Patterns use?

Healthcare Cdss Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Healthcare Cdss Patterns use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Healthcare Cdss Patterns?

Skills that share tags, products or a category with Healthcare Cdss Patterns: Healthcare System Primer (mohitagw15856/pm-claude-skills, 1.4k stars), Ambient Healthcare Agent With Nemotron Voice Agent (NVIDIA/skills, 3.6k stars), Healthcare System Primer (mohitagw15856/pm-claude-skills, 1.4k stars) and Healthcare AI Privacy (mukul975/Privacy-Data-Protection-Skills, 301 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Healthcare Cdss Patterns?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,111 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 10, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.