Communitygithub.com

医疗保健EMR开发模式

用于医疗应用EMR/EHR开发模式。涵盖临床安全、就诊流程、处方生成、临床决策支持集成以及可访问性的医疗数据输入UI。在构建诸如就诊流程、处方生成或临床数据输入UI等EMR/EHR功能时使用。

医疗保健EMR开发模式 是什么?

该技能提供了一套全面的电子病历(EMR)和电子健康档案(EHR)系统开发模式,优先考虑患者安全、临床准确性和医生效率。它概述了构建患者就诊流程、实施临床笔记记录(包括结构化文本、自由文本和语音转文本)、设计带有药物相互作用检查的处方/用药模块以及集成临床决策支持系统(CDSS)的方法。该技能强调“患者安全第一”的原则,要求药物相互作用必须警报、异常实验室值必须标记、关键生命体征必须触发升级流程,并且所有临床数据修改都必须有审计追踪。它还定义了特定的UI模式,例如用于就诊流程的垂直滚动单页设计、带有红色标记症状芯片的智能模板系统、以及用于锁定已签署就诊记录的加注模式。技能详细描述了关键医疗工作流程的有效实现,如处方安全流程和临床数据展示,同时列出了应避免的反模式,例如将临床数据存储在浏览器localStorage中或允许编辑已签署的记录。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/healthcare-emr-patterns

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

医疗保健EMR开发模式 是做什么的?

用于构建电子病历(EMR)和电子健康档案(EHR)系统的模式。优先考虑患者安全、临床准确性和医生工作效率。

何时使用

  • 构建患者就诊流程(主诉、检查、诊断、处方)
  • 实施临床笔记记录(结构化文本 + 自由文本 + 语音转文本)
  • 设计带有药物相互作用检查的处方/用药模块
  • 集成临床决策支持系统(CDSS)
  • 构建带有参考范围高亮显示的实验室结果展示
  • 实施临床数据审计追踪
  • 设计可访问的医疗保健UI用于临床数据输入

工作原理

患者安全第一

每个设计决策都必须根据以下问题评估:“这会伤害患者吗?”

  • 药物相互作用必须警报,不能静默通过
  • 异常实验室值必须视觉标记
  • 关键生命体征必须触发升级流程
  • 任何临床数据修改都必须有审计追踪

单页就诊流程

临床就诊应在单个页面上垂直流动——无标签页切换:

病人信息头部(粘性,始终可见)
├── 人口统计学、过敏史、当前用药
│
就诊流程(垂直滚动)
├── 1. 主诉(结构化模板 + 自由文本)
├── 2. 现病史
├── 3. 体格检查(按系统)
├── 4. 生命体征(自动触发临床评分)
├── 5. 诊断(ICD-10/SNOMED搜索)
├── 6. 用药(药物数据库 + 相互作用检查)
├── 7. 检查(实验室/影像学医嘱)
├── 8. 计划与随访
└── 9. 签署 / 锁定 / 打印

智能模板系统

interface ClinicalTemplate {
  id: string;
  name: string;             // 例如“胸痛”
  chips: string[];          // 可点击的症状筹码
  requiredFields: string[]; // 必填数据项
  redFlags: string[];       // 触发不可关闭的警报
  icdSuggestions: string[]; // 预映射的诊断代码
}

任何模板中的红色标记都必须触发一个可见的、不可关闭的警报——而不是一个Toast通知。

用药安全模式

用户选择药物
  → 检查当前用药是否存在相互作用
  → 检查就诊用药是否存在相互作用
  → 检查患者的过敏史
  → 根据体重/年龄/肾功能验证剂量
  → 如果为临界相互作用:完全阻断处方开具
  → 临床医生必须记录覆盖原因才能继续
  → 如果为主要相互作用:显示警告,要求确认
  → 将所有警报和覆盖原因记录在审计追踪中

临界相互作用默认阻断处方开具。临床医生必须明确覆盖,并在审计追踪中存储记录的原因。系统绝不允许静默通过临界相互作用。

锁定的就诊模式

一旦临床就诊被签署:

  • 不允许编辑——只能添加附录(一个独立的链接记录)
  • 原始记录和附录都显示在患者时间轴中
  • 审计追踪捕获谁签署的、何时签署的以及任何附录记录

临床数据UI模式

生命体征显示: 当前值及正常范围高亮(绿/黄/红),与之前的趋势箭头,自动计算的临床评分(NEWS2、qSOFA),内联的升级指导。

实验室结果显示: 正常范围高亮,与之前的值比较,临界值带有不可关闭的警报,采集/分析时间戳,待处理的医嘱及预期周转时间。

处方PDF: 一键生成,包含患者人口统计学信息、过敏史、诊断、药物详情(通用名+商品名、剂量、给药途径、频率、持续时间)、临床医生签名块。

医疗保健可访问性

医疗保健UI有比典型Web应用更严格的要求:

  • 4.5:1的最小对比度(WCAG AA)——临床医生在各种光照条件下工作
  • 大触摸目标(最小44x44像素)——用于戴手套或匆忙的交互
  • 键盘导航——供快速输入数据的熟练用户使用
  • 无纯颜色指示器——始终将颜色与文本/图标配对(色盲临床医生)
  • 所有表单字段都有屏幕阅读器标签
  • 临床警报没有自动消失的Toast——临床医生必须主动确认

反模式

  • 将临床数据存储在浏览器localStorage中
  • 药物相互作用检查的静默故障
  • 关键临床警报的可关闭Toast
  • 分裂临床工作流程的基于标签的就诊UI
  • 允许编辑已签署/锁定的就诊记录
  • 在没有审计追踪的情况下显示临床数据
  • 对临床数据结构使用any类型

示例

示例1:患者就诊流程

医生打开患者#4521的就诊记录
  → 粘性头部显示:“Rajesh M, 58岁男, 过敏史:青霉素, 当前用药:二甲双胍500mg”
  → 主诉:选择“胸痛”模板
    → 点击症状筹码:“胸骨后”、“向左臂放射”、“压榨性”
    → 红色标记“压榨性胸骨后胸痛”触发不可关闭的警报
  → 体格检查:心血管系统——“S1 S2正常,无杂音”
  → 生命体征:心率110,血压90/60,SpO2 94%
    → NEWS2自动计算:评分8,风险高,显示升级警报
  → 诊断:搜索“ACS” → 选择ICD-10代码I21.9
  → 用药:选择阿司匹林300mg
    → CDSS检查与二甲双胍的相互作用:无相互作用
  → 签署就诊 → 锁定,从此只可添加附录

示例2:用药安全工作流程

医生为患者#4521 开具华法林
  → CDSS检测到:华法林 + 阿司匹林 = 临界相互作用
  → UI:红色不可关闭的模态框阻止处方开具
  → 医生点击“输入原因以覆盖”
  → 输入:“获益大于风险——按计划监测INR”
  → 覆盖原因 + 警报存储在审计追踪中
  → 处方在记录覆盖原因后继续

示例3:锁定的就诊 + 附录

就诊 #E-2024-0891 由Shah医生在14:30签署
  → 所有字段锁定——无可见的编辑按钮
  → “添加附录”按钮可用
  → Shah医生点击附录,添加:“收到实验室结果——肌钙蛋白升高”
  → 新记录 E-2024-0891-A1 链接到原始记录
  → 时间轴显示两者:原始就诊记录 + 附录及其时间戳

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

相关技能