healthcare-ui-design
npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill healthcare-ui-design
Agent 安装分布
Skill 文档
Required Plugins
Superpowers plugin: MUST be active for all healthcare UI work â design decisions, component generation, accessibility audits, and compliance checks.
Frontend Design plugin: Required for all web and Android UI generation.
Companion skills: Load webapp-gui-design for web implementations, jetpack-compose-ui for Android implementations. Always load vibe-security-skill â healthcare demands zero-compromise security.
Healthcare UI Design Standards
Design Philosophy
Five non-negotiable principles for healthcare interfaces:
- Clinical Safety First â UI decisions can impact patient outcomes. Never auto-select medications, never hide allergies, always require confirmation for critical actions. A confusing dosage field can be fatal.
- Calm Under Pressure â Users are stressed, sick, or overwhelmed. Use clean layouts, soft palettes, generous whitespace, and predictable navigation. Reassure, never overwhelm.
- Role-Specific Experiences â Clinicians need rapid-scan dashboards. Nurses need task-oriented workflows. Patients need plain language and large touch targets. Admin needs analytics. Never build one-size-fits-all.
- Compliance by Design â HIPAA, WCAG 2.2 AA, ADA are embedded in every component, not bolted on. Every screen logs access, enforces timeouts, and protects PHI.
- Context-Aware Density â Show the right amount of data for the situation. Triage screens are dense. Patient portals are spacious. Emergency views strip to essentials.
Tech Stack Integration
| Platform | Stack | Pattern |
|---|---|---|
| Web | Bootstrap 5 / Tabler + PHP | Clone seeder-page, use webapp-gui-design patterns, extend with healthcare components |
| Android | Jetpack Compose + Material 3 | Follow jetpack-compose-ui standards, extend with healthcare composables |
| API | REST (PHP) | Follow api-error-handling + api-pagination skills, add HIPAA audit headers |
| Auth | Dual Auth + RBAC | Use dual-auth-rbac skill with healthcare role extensions |
Quick Reference
| Domain | Reference File | When to Use |
|---|---|---|
| Colors, Typography, Spacing | references/design-tokens.md |
Starting any healthcare screen, theming, token setup |
| Patient Lookup & Records | references/patient-records-ui.md |
Patient lists, profiles, medical history, timeline views |
| Vitals, Meds, Care Plans | references/clinical-workflows-ui.md |
Vital sign entry, medication admin, care plan builders |
| Scheduling & Telemedicine | references/scheduling-telemedicine-ui.md |
Appointment booking, provider search, video/chat consults |
| Dashboards & Analytics | references/dashboards-analytics-ui.md |
Admin dashboards, KPIs, bed occupancy, risk scores |
| Patient Portals | references/patient-portal-ui.md |
Patient-facing self-service, lab results, payments |
| Communication & Outreach | references/communication-outreach-ui.md |
Secure messaging, campaigns, health bots, notifications |
| HIPAA, WCAG, Security | references/compliance-accessibility.md |
Compliance audits, accessibility checks, security UI |
| Web (Bootstrap/Tabler) | references/web-implementation.md |
PHP/Bootstrap-specific healthcare components |
| Android (Compose) | references/android-implementation.md |
Kotlin/Compose-specific healthcare composables |
Core Healthcare Color System
Use semantic clinical colors across both platforms:
| Token | Hex | Usage |
|---|---|---|
clinical-primary |
#2563EB |
Primary actions, headers, navigation |
clinical-secondary |
#0F766E |
Secondary actions, supporting elements |
clinical-surface |
#F8FAFC |
Page backgrounds, card surfaces |
clinical-critical |
#DC2626 |
Critical alerts, abnormal vitals, allergies |
clinical-warning |
#D97706 |
Warnings, approaching-threshold vitals |
clinical-success |
#059669 |
Normal ranges, completed tasks, confirmations |
clinical-info |
#0284C7 |
Informational, educational content |
clinical-muted |
#64748B |
Secondary text, metadata, timestamps |
See references/design-tokens.md for complete token system.
Essential Patterns
Patient Card (Universal Component)
Every healthcare screen that displays a patient must show this minimum context:
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Avatar] John Doe, M, 45y MRN: 1234567 â
â Allergies: Penicillin â ï¸ Blood: O+ â
â Primary: Dr. Smith â Last Visit: 2026-02-20 â
â âââââââââââ ââââââââââââ âââââââââââââââââ â
â â Vitals â â Records â â Medications â â
â âââââââââââ ââââââââââââ âââââââââââââââââ â
âââââââââââââââââââââââââââââââââââââââââââââââ
Rules: Allergy banner is ALWAYS visible (red background if severe). Blood type visible on clinical views. MRN searchable and copyable.
Clinical Alert Hierarchy
Four-tier alert system â consistent across web and mobile:
| Level | Color | Icon | Behavior |
|---|---|---|---|
| Critical | Red bg #DC2626 |
Shield-exclamation | Blocks workflow, requires acknowledgment |
| Warning | Amber bg #D97706 |
Triangle-exclamation | Prominent banner, dismissible after read |
| Info | Blue bg #0284C7 |
Info-circle | Inline notification, auto-dismiss 10s |
| Success | Green bg #059669 |
Check-circle | Toast/snackbar, auto-dismiss 5s |
Vital Signs Display Pattern
ââââââââââââââââ¬âââââââââââââââ¬âââââââââââââââ
â â¤ï¸ HR: 72 â ð« SpO2: 98% â ð¡ï¸ Temp: 37.1â
â bpm [Normal] â [Normal] â °C [Normal] â
ââââââââââââââââ¼âââââââââââââââ¼âââââââââââââââ¤
â BP: 120/80 â RR: 16 â Pain: 3/10 â
â mmHg [Normal]â /min [Normal]â [Mild] â
ââââââââââââââââ´âââââââââââââââ´âââââââââââââââ
Rules: Color-code each value (green/amber/red) based on clinical thresholds. Show units ALWAYS. Show trend arrows (âââ) when historical data exists. Never rely on color alone â include text labels.
Medication Safety â 5 Rights Check
Before any medication administration, enforce UI verification:
- Right Patient â Display patient name + MRN + photo, require confirmation
- Right Medication â Show drug name + form + strength, barcode scan option
- Right Dose â Display calculated dose with weight-based verification
- Right Time â Show scheduled time vs current time, flag if outside window
- Right Route â Display route (oral/IV/IM/SC), require selection confirmation
Block administration if any check fails. Log all overrides with reason.
Screen Layout Principles
Web (Tabler/Bootstrap)
âââââââââââââââââââââââââââââââââââââââââââââââ
â Top Bar: Facility â Ward â Shift â User â ðâ
ââââââââ¬âââââââââââââââââââââââââââââââââââââââ¤
â Nav â Context Bar: Patient/Ward/Date â
â Side â ââââââââââââââââââââââââââââââââââââ â
â bar â â Main Content Area â â
â â â Cards / Tables / Forms â â
â â â â â
â â ââââââââââââââââââââââââââââââââââââ â
â â ââââââââââââââ ââââââââââââââââââ â
â â â Quick Panelâ â Activity Feed â â
â â ââââââââââââââ ââââââââââââââââââ â
ââââââââ´âââââââââââââââââââââââââââââââââââââââ
Android (Compose)
âââââââââââââââââââââââââââ
â TopAppBar: Screen Title â
â Patient Context Strip â
âââââââââââââââââââââââââââ¤
â â
â Scrollable Content â
â (LazyColumn/Grid) â
â â
â Cards, Forms, Lists â
â â
âââââââââââââââââââââââââââ¤
â BottomNav: HomeâPatientsâ
â ScheduleâChatâProfile â
âââââââââââââââââââââââââââ
Healthcare-Specific DO’s and DON’Ts
DO
- Display allergies on EVERY screen that shows patient context
- Use confirmation dialogs for all medication and order actions
- Show data source attribution (manual entry vs wearable vs lab)
- Log every patient record access in audit trail
- Differentiate human-entered vs device-captured vitals visually
- Show measurement units on ALL numeric values
- Support offline mode for bedside data entry (sync when connected)
- Use
aria-liveregions for real-time vital sign updates - Provide undo/cancel within 10s for non-critical actions
- Enforce session timeout (15min inactive) with save-state recovery
DON’T
- Never auto-select medications from search results
- Never hide the allergy banner for any reason
- Never display PHI in URLs, page titles, or browser notifications
- Never use color alone to convey clinical status â always pair with text/icons
- Never skip confirmation for orders, prescriptions, or discharge actions
- Never store PHI in localStorage, sessionStorage, or unencrypted cookies
- Never show full SSN/ID â mask to last 4 digits
- Never allow copy-paste of patient data without audit logging
- Never use placeholder text as the only label on medical forms
- Never auto-dismiss critical alerts
Integration with Existing Skills
healthcare-ui-design (this skill)
âââ webapp-gui-design âââ Web layout, Tabler components, DataTables
âââ jetpack-compose-ui âââ Android Compose, Material 3, state management
âââ vibe-security-skill âââ HIPAA security, encryption, XSS prevention
âââ dual-auth-rbac âââ Clinical role-based access control
âââ mobile-rbac âââ Android permission gates for clinical modules
âââ api-error-handling âââ Standardized clinical API error responses
âââ api-pagination âââ Patient list pagination (cursor-based)
âââ image-compression âââ Medical image upload optimization
âââ photo-management âââ Patient photo capture and storage
âââ report-print-pdf âââ Clinical report PDF generation
Workflow: Building a Healthcare Screen
- Identify role â Who uses this screen? (Clinician / Nurse / Patient / Admin)
- Select layout â Read platform-specific reference (
web-implementation.mdorandroid-implementation.md) - Apply tokens â Use
design-tokens.mdfor colors, typography, spacing - Build components â Use domain reference (patient-records, clinical-workflows, etc.)
- Add compliance â Apply
compliance-accessibility.mdchecklist - Validate â Run WCAG checker, test with screen reader, verify HIPAA audit logging