用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aaione/everything-claude-code-zh --skill healthcare-cdss-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Kubernetes 工作负载模式、资源管理、RBAC、probes、autoscaling、ConfigMap/Secret 处理,以及面向生产级部署的 kubectl 调试。
完成任何非平凡任务后使用。智能体按 5 个维度自评输出——准确性、完整性、清晰度、可执行性、简洁性——每项都给出具体证据。生成结构化 1-5 评分卡和具体改进建议。
在 competitive-platform-analysis 产出分层竞品集合后使用。按九个加权维度(定位、声音、视觉工艺、offer packaging、证据、enterprise-readiness、thought leadership、定价、客户 strategic tension)为每个竞品评分,使用明确 1–5 rubrics 和 tension-plot。位于 competitive-report-structure 之前。
基于 SOC 职业分类
正在显示 SKILL.md
| name | healthcare-cdss-patterns |
| description | 临床决策支持系统(CDSS)开发模式。药物相互作用检查、剂量验证、临床评分(NEWS2、qSOFA)、警报严重程度分类,以及集成到 EMR 工作流中。 |
| origin | Health1 Super Speciality Hospitals — 贡献者:Dr. Keyur Patel |
| version | 1.0.0 |
用于构建集成到 EMR 工作流的临床决策支持系统的模式。CDSS 模块对患者安全至关重要——对假阴性零容忍。
CDSS 引擎是一个具有零副作用的纯函数库。输入临床数据,输出警报。这使其完全可测试。
三个主要模块:
checkInteractions(newDrug, currentMeds, allergies) — 检查新药与当前药物和已知过敏的相互作用。返回按严重程度排序的 InteractionAlert[]。使用 DrugInteractionPair 数据模型。validateDose(drug, dose, route, weight, age, renalFunction) — 根据基于体重、年龄调整和肾脏调整的规则验证处方剂量。返回 DoseValidationResult。calculateNEWS2(vitals) — 根据 NEWS2Input 计算国家早期预警评分 2。返回包含总分、风险级别和升级指导的 NEWS2Result。EMR UI
↓ (用户输入数据)
CDSS 引擎(纯函数,无副作用)
├── 药物相互作用检查器
├── 剂量验证器
├── 临床评分(NEWS2、qSOFA 等)
└── 警报分类器
↓ (返回警报)
EMR UI(内联显示警报,严重时阻止操作)
interface DrugInteractionPair {
drugA: string; // 通用名
drugB: string; // 通用名
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: `与记录的过敏存在交叉反应:${allergy}`,
recommendation: '未经过敏咨询请勿开药' });
}
}
return alerts.sort((a, b) => severityOrder(a.severity) - severityOrder(b.severity));
}
相互作用对必须是双向的:如果药物 A 与药物 B 相互作用,则药物 B 也与药物 A 相互作用。
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: '无可用验证规则', suggestedRange: null, factors: [] };
const factors: string[] = [];
// 安全性:如果规则需要体重但体重缺失,阻止(而非通过)
if (rules.weightBased) {
if (!patientWeight || patientWeight <= ) {
{ : , : ,
: , : [] };
}
factors.();
maxDose = rules. * patientWeight;
(dose > maxDose) {
{ : , : ,
: { : rules. * patientWeight, : maxDose, : rules. }, factors };
}
}
(rules. && patientAge !== ) {
factors.();
ageMax = rules.(patientAge);
(dose > ageMax) {
{ : , : ,
: { : rules., : ageMax, : rules. }, factors };
}
}
(rules. && renalFunction !== ) {
factors.();
renalMax = rules.(renalFunction);
(dose > renalMax) {
{ : , : ,
: { : rules., : renalMax, : rules. }, factors };
}
}
(dose > rules.) {
{ : , : ,
: { : rules., : rules., : rules. },
: [...factors, ] };
}
{ : , : ,
: { : rules., : rules., : rules. }, factors };
}
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 行为 | 需要临床医生操作 |
|---|---|---|
| 危急 | 阻止操作。不可关闭的模态框。红色。 | 必须记录覆盖原因才能继续 |
| 重要 | 内联警告横幅。橙色。 | 继续前必须确认 |
| 次要 | 内联信息提示。黄色。 | 仅需知晓,无需操作 |
危急警报绝不能自动关闭或实现为 toast 通知。覆盖原因必须存储在审计跟踪中。
describe('CDSS — 患者安全', () => {
INTERACTION_PAIRS.forEach(({ drugA, drugB, severity }) => {
it(`检测 ${drugA} + ${drugB} (${severity})`, () => {
const alerts = checkInteractions(drugA, [drugB], []);
expect(alerts.length).toBeGreaterThan(0);
expect(alerts[0].severity).toBe(severity);
});
it(`检测 ${drugB} + ${drugA} (反向)`, () => {
const alerts = checkInteractions(drugB, [drugA], []);
expect(alerts.length).toBeGreaterThan(0);
});
});
it('体重缺失时阻止 mg/kg 药物', () => {
const result = validateDose('gentamicin', 300, 'iv');
expect(result.valid).toBe(false);
expect(result.factors).toContain('weight_missing');
});
(, {
( (, [], []))..();
});
});
通过标准:100%。单个遗漏的相互作用就是患者安全事件。
any 类型const alerts = checkInteractions('warfarin', ['aspirin', 'metformin'], ['penicillin']);
// [{ severity: 'critical', pair: ['warfarin', 'aspirin'],
// message: '出血风险增加', recommendation: '避免联合使用' }]
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: '超过绝对最大值 4000mg' }
const noWeight = validateDose('gentamicin', 300, 'iv');
// { valid: false, factors: ['weight_missing'] }
const result = calculateNEWS2({
respiratoryRate: 24, oxygenSaturation: 93, supplementalOxygen: true,
temperature: 38.5, systolicBP: 100, heartRate: 110, consciousness: 'voice'
});
// { total: 13, risk: 'high', escalation: '紧急临床复查。考虑 ICU。' }