
Healthcare Emr Patterns
Model EMR/EHR encounters, prescriptions, labs, CDSS hooks, and audit trails with clinical-safety-first patterns for healthcare apps.
Overview
Healthcare EMR Patterns is an agent skill for the Build phase that encodes EMR/EHR encounter, prescribing, lab, and audit-trail patterns with clinical safety as the default constraint.
Install
npx skills add https://github.com/affaan-m/everything-claude-code --skill healthcare-emr-patternsWhat is this skill?
- Patient-safety gate: drug interactions must alert, abnormal labs flag, critical vitals escalate, and clinical edits requ
- Single-page vertical encounter flow: complaint, exam, diagnosis, and prescription without tab churn
- Prescription and medication modules with interaction checking expectations
- CDSS integration, lab reference-range highlighting, and accessibility-first clinical data entry UI patterns
- version 1.0.0 in skill metadata
Adoption & trust: 3.4k installs on skills.sh; 210k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You are building a healthcare app but lack proven EMR patterns for safe encounters, prescribing, labs, and auditability.
Who is it for?
Indie teams or solo developers prototyping clinic, telehealth, or hospital-lite EMR features with agent-assisted implementation.
Skip if: Non-clinical CRUD apps, teams without clinician review, or products that need full HIPAA/legal sign-off from this skill alone.
When should I use this skill?
Building patient encounter workflows, clinical notes, prescription modules with interaction checking, CDSS integration, lab displays, audit trails, or healthcare-accessible clinical UIs.
What do I get? / Deliverables
Your agent structures encounter, prescribing, and results modules with mandatory alerts, escalation paths, and audit trails aligned to the skill’s safety rules.
- Encounter flow specification
- Prescribing and interaction-alert behavior
- Audit trail requirements for clinical mutations
Recommended Skills
Journey fit
EMR domain logic, safety rules, and workflow APIs are built during the product construction phase. Encounter flows, prescribing rules, CDSS integration, and audit trails are primarily backend and service-layer concerns.
How it compares
Vertical EMR pattern library—not a generic CRUD generator or a consumer wellness tracker skill.
Common Questions / FAQ
Who is healthcare-emr-patterns for?
Developers building EMR/EHR or clinical documentation features who need safety-oriented workflows for encounters, meds, labs, and CDSS integration.
When should I use healthcare-emr-patterns?
Use it during Build backend and integrations while designing patient encounters, prescriptions, lab displays, audit logs, or accessible clinical forms.
Is healthcare-emr-patterns safe to install?
It encodes clinical logic guidance only; you remain responsible for compliance and validation—review the Security Audits panel on this Prism page before install.
SKILL.md
READMESKILL.md - Healthcare Emr Patterns
# Healthcare EMR Development Patterns Patterns for building Electronic Medical Record (EMR) and Electronic Health Record (EHR) systems. Prioritizes patient safety, clinical accuracy, and practitioner efficiency. ## When to Use - Building patient encounter workflows (complaint, exam, diagnosis, prescription) - Implementing clinical note-taking (structured + free text + voice-to-text) - Designing prescription/medication modules with drug interaction checking - Integrating Clinical Decision Support Systems (CDSS) - Building lab result displays with reference range highlighting - Implementing audit trails for clinical data - Designing healthcare-accessible UIs for clinical data entry ## How It Works ### Patient Safety First Every design decision must be evaluated against: "Could this harm a patient?" - Drug interactions MUST alert, not silently pass - Abnormal lab values MUST be visually flagged - Critical vitals MUST trigger escalation workflows - No clinical data modification without audit trail ### Single-Page Encounter Flow Clinical encounters should flow vertically on a single page — no tab switching: ``` Patient Header (sticky — always visible) ├── Demographics, allergies, active medications │ Encounter Flow (vertical scroll) ├── 1. Chief Complaint (structured templates + free text) ├── 2. History of Present Illness ├── 3. Physical Examination (system-wise) ├── 4. Vitals (auto-trigger clinical scoring) ├── 5. Diagnosis (ICD-10/SNOMED search) ├── 6. Medications (drug DB + interaction check) ├── 7. Investigations (lab/radiology orders) ├── 8. Plan & Follow-up └── 9. Sign / Lock / Print ``` ### Smart Template System ```typescript interface ClinicalTemplate { id: string; name: string; // e.g., "Chest Pain" chips: string[]; // clickable symptom chips requiredFields: string[]; // mandatory data points redFlags: string[]; // triggers non-dismissable alert icdSuggestions: string[]; // pre-mapped diagnosis codes } ``` Red flags in any template must trigger a visible, non-dismissable alert — NOT a toast notification. ### Medication Safety Pattern ``` User selects drug → Check current medications for interactions → Check encounter medications for interactions → Check patient allergies → Validate dose against weight/age/renal function → If CRITICAL interaction: BLOCK prescribing entirely → Clinician must document override reason to proceed past a block → If MAJOR interaction: display warning, require acknowledgment → Log all alerts and override reasons in audit trail ``` Critical interactions **block prescribing by default**. The clinician must explicitly override with a documented reason stored in the audit trail. The system never silently allows a critical interaction. ### Locked Encounter Pattern Once a clinical encounter is signed: - No edits allowed — only an addendum (a separate linked record) - Both original and addendum appear in the patient timeline - Audit trail captures who signed, when, and any addendum records ### UI Patterns for Clinical Data **Vitals Display:** Current values with normal range highlighting (green/yellow/red), trend arrows vs previous, clinical scoring auto-calculated (NEWS2, qSOFA), escalation guidance inline. **Lab Results Display:** Normal range highlighting, previous value comparison, critical values with non-dismissable alert, collection/analysis timestamps, pending orders with expected turnaround. **Prescription PDF:** One-click generation with patient demographics, allergies, diagnosis, drug details (generic + brand, dose, route, frequency, duration), clinician signature blo