healthcare-emr-patterns
Skill2 starsChanged 4 months agoMITView on GitHub
EMR/EHR development and clinical decision support system (CDSS) patterns. Covers clinical safety, encounter workflows, prescription generation, drug interactions, dose validation, clinical scoring (NEWS2), and accessibility-first UI.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- EthanYoQ/Skill-hubtheir own version, first seen Sep 19, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- Jamkris/everything-gemini-codetheir own version, first seen Apr 27, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- EthanYoQ/Skill-hub★ 11same name
- SamuelNDCE/claude-super-skill-library★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository169 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-guidanceSkill
- accessibilitySkill
- adaptive-languageSkill
- agent-sortSkill
- agent-workflow-opsSkill
- android-clean-architectureSkill
- api-designSkill
- architecture-decision-recordsSkill
- automation-audit-opsSkill
- backend-patternsSkill
- blender-motion-state-inspectionSkill
- blueprintSkill
- browser-qaSkill
- bun-runtimeSkill
- canary-watchSkill
- carrier-relationship-managementSkill
- ci-cd-and-automationSkill
- cisco-ios-patternsSkill
- claude-devfleetSkill
- codebase-onboardingSkill
- codehealth-mcpSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- codex-vscodeSkill
- coding-standardsSkill
- compose-multiplatform-patternsSkill
- configure-eccSkill
- connections-optimizerSkill
- context-budgetSkill
- continuous-learning-v2Skill
- cost-aware-llm-pipelineSkill
- cost-trackingSkill
- councilSkill
- cpp-coding-standardsSkill
- cpp-testingSkill
- customer-billing-opsSkill
- customs-trade-complianceSkill
- database-migrationsSkill
- data-scraper-agentSkill
- debugging-and-error-recoverySkill
- deep-researchSkill
- deployment-patternsSkill
- deprecation-and-migrationSkill
- design-systemSkill
- django-celerySkill
- django-patternsSkill
- django-securitySkill
- django-tddSkill
- django-verificationSkill
- dmux-workflowsSkill
- docker-patternsSkill
- documentation-lookupSkill
- doubt-driven-developmentSkill
- e2e-testingSkill
- energy-procurementSkill
- error-handlingSkill
- eval-harnessSkill
- fastapi-patternsSkill
- finance-billing-opsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 156
No color-only status indicators.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Healthcare EMR & CDSS Development Patterns
Patterns for building Electronic Medical Record (EMR) and Clinical Decision Support Systems (CDSS). Prioritizes patient safety, clinical accuracy, practitioner efficiency, and clinical audit trail compliance.
When to Use
- Building patient encounter workflows (complaint, exam, diagnosis, prescription).
- Implementing clinical note-taking and structured template chips.
- Designing prescription/medication modules with drug interaction checking.
- Integrating Clinical Decision Support Systems (CDSS) dose validation and warning alerts.
- Implementing clinical scoring tables (NEWS2, qSOFA).
- Designing healthcare-accessible (WCAG AA) UIs for medical data entry.
How It Works
Patient Safety & Pure CDSS Functions
The CDSS engine is a pure function library with zero side effects: input clinical data, output alert arrays. This makes it highly testable.
EMR UI
↓ (user enters data)
CDSS Engine (pure functions, no side effects)
├── Drug Interaction Checker
├── Dose Validator
├── Clinical Scoring (NEWS2, qSOFA, etc.)
└── Alert Classifier
↓ (returns alerts)1. Drug Interaction Checking
Checks a new drug against current medications and known allergies:
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));
}2. Dose Validation
Validates a prescribed dose against weight, age, and renal-adjusted parameters:
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 rules available', suggestedRange: null, factors: [] };
const factors: string[] = [];
// SAFETY: if rules require weight but weight missing, BLOCK
if (rules.weightBased) {
if (!patientWeight || patientWeight <= 0) {
return { valid: false, message: `Weight required for ${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 };
}
}
// Renal function adjustment
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 };
}
}
return { valid: true, message: 'Within range', suggestedRange: { min: rules.typicalMin, max: rules.typicalMax, unit: rules.unit }, factors };
}3. Clinical Scoring: NEWS2
interface NEWS2Input {
respiratoryRate: number; oxygenSaturation: number; supplementalOxygen: boolean;
temperature: number; systolicBP: number; heartRate: number;
consciousness: 'alert' | 'voice' | 'pain' | 'unresponsive';
}Auto-calculates the clinical score and returns a result with risk levels and ICU escalation alerts.
4. Alert Severity and UI Behavior
| Severity | UI Behavior | Clinician Action Required |
| Critical | Block action. Non-dismissable modal. Red. | Must document override reason to proceed |
| Major | Warning banner inline. Orange. | Must acknowledge before proceeding |
| Minor | Info note inline. Yellow. | Awareness only, no action required |
Never use dismissable toasts for critical alerts. Log all alerts and override reasons in the audit trail.
EMR UI & Accessibility Patterns
- Single-Page Encounter Flow: Vertically scrollable single page (Header, Chief Complaint, Vitals, Diagnosis, Medications, Lock/Sign) to prevent context fragmentation.
- Encounter Locking: Signed encounter notes are write-protected and immutable. Corrections must be added as linked Addendum records.
- Accessibility:
- Minimum contrast 4.5:1 (WCAG AA).
- large touch targets (44x44px minimum).
- No color-only status indicators.
See Also
- Skill:
accessibility - Skill:
error-handling - Skill:
unified-notifications-ops
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

