Front End.

8:52 PM | BY ZeroDivide EDIT

https://gemini.google.com/gem/d56b7e98da94

In an Epic-style architecture, the "Master General" components are the Foundational Shell—the persistent framework that hosts all other persona-specific modules. These are globally registered capabilities that manage session, context, and cross-cutting actions.

[ASSUMPTION] These master components use a slot-based architecture. While the component remains the same for all users, the "slots" (Zone B/D/C) are populated dynamically via a capability registry based on the authenticated user's PermissionToken set.

Master General Front-End List (The "Hyperspace" Shell)

TitleDescriptionCore Components
Global AppShellThe 5-zone layout orchestrator. Manages responsiveness and high-level z-index layers.AppShell, ErrorBoundary, LoadingOverlay, SkipNav
Global Navigation (Zone B)The primary module switcher. Persists across patient switches.SideNav, CollapsibleSection, UnreadBadge, NavTooltip
Patient Context Banner (Zone A)The immutable demographic "Safe Bar." Red-border flash on context change.Banner, AllergyBadge, PatientAvatar, CodeStatusBadge
Command Palette (Ctrl+K)The "Spotlight" for the EMR. Instant jump to patients, modules, or actions.CommandPalette, SearchAhead, ActionList, KbdShortcutHint
Universal Patient SwitcherSafe transition between charts with wrong-patient hard-stops.SearchAhead, SafetyConfirmationModal, RecentPatientList
Clinical Inbasket (Zone D/C)The master workflow queue for messages, results, and tasks.SplitPane, DataTable, FilterBar, MessageThread
System Status Footer (Zone E)Connectivity, environment (PROD/TEST), and session health.ConnectionStatus, SyncIndicator, SessionTimer, VersionLabel
Notification/Toast ManagerQueue for asynchronous alerts (Critical labs, system pings).ToastList, PriorityBadge, AutoDismissProgress
Contextual Sidebar (Zone D)Dynamic "Slide-out" for SmartText, AI Assist, or Note Preview.Drawer, TabGroup, ContextSlot, CollapsibleHeader
Support & Feedback HubPHI-safe bug reporting and system help.Modal, ScreenshotRedactor, Form, KnowledgeBaseLink
Security & Auth GatewayRe-authentication for "Break-glass" or sensitive sign-offs.MfaPrompt, LockScreen, SessionExpiryModal
Global Workspace ManagerTab/Stack management for multiple open charts/modules.TabGroup, CloseAllAction, TabOverflowMenu

Detailed Capability Definition: Global AppShell

To demonstrate how these "General" components adapt, here is the architecture for the Global AppShell.

1. CAPABILITY DEFINITION

  • id: sys.app.shell

  • label: "EMR Master Shell"

  • requiredPrivileges: system.login (Baseline)

  • Layout Zone Placement: Zones A, B, C, D, E

  • RBAC Tokens:

    • ui.layout.customize (Allow dragging panels)

    • ui.theme.toggle (Dark/High-Contrast)

    • ui.developer.tools (Enable telemetry overlay)

2. UI LAYOUT ZONE MAPPING

ZoneComponentPersona Adaptation Logic
Zone APersistentPatientBannerHidden if no patient selected; Color-coded by patient sensitivity (VIP=Purple).
Zone BGlobalSideNavFiltered by Section 7 Matrix; Nurses see MAR/Vitals; Docs see CPOE.
Zone CWorkspaceManagerRenders EmptyState if no module selected; default to ProviderHub.
Zone DSmartSidebarPhysicians see AIAssist; Techs see InventoryChecklist.
Zone ESystemStatusBarAlways visible; shows "Training Mode" banner for new hires.


118 distinct front-end UI modules required to cover the comprehensive clinical, administrative, and patient lifecycle. Below is the dense, persona-segmented capability registry.

1. PHYSICIAN / PROVIDER (21 Modules)

Primary focus: CPOE, documentation, longitudinal review, and rapid navigation.

TitleDescriptionCore Components
Provider Hub (Inbasket)Message triage, task management, result review.SplitPane, DataTable, MessageThread, Badge
Patient List / CensusActive assignment list with high-level acuity indicators.DataTable, PatientSwitcher, FilterBar
Rounding ReportCompact, printable/scannable view of admitted patients.KeyValueGrid, Sparkline, CollapsibleSection
Chart SummaryLongitudinal snapshot of problems, meds, allergies.AppShell (Zone C), ProblemEntry, MedCard
Timeline ReviewChronological overlay of encounters, labs, notes.Timeline, FilterGroup, DateRangePicker
Results Viewer (Labs)Tabular/trended lab results with reference ranges.DataTable, Sparkline, LabResultRow
PACS / Imaging ViewerIntegration with diagnostic viewer + report side-by-side.SplitPane, DocumentViewer
Note EditorTipTap-based rich text documentation with macros.NoteEditor, SearchAhead (SmartPhrases)
Problem List ManagerSNOMED/ICD-10 search, add, resolve, refine.DataTable, SearchAhead, StatusBadge
Medication HistoryPre-admission and external rx history (Surescripts).DataTable, Timeline, MedCard
Medication ReconciliationAdmit/Transfer/Discharge structured accept/reject UI.SplitPane, DiffViewer, ActionButtons
CPOE: Order SearchSearch-ahead interface for meds, labs, imaging.SearchAhead, OrderCard, InteractionAlert
CPOE: Order SetsCondition-specific bundled order protocols.CollapsibleSection, CheckboxGroup, OrderCard
CPOE: Active OrdersManagement of active/pending orders + d/c options.DataTable, StatusBadge, ActionButtons
Discharge SummaryAggregated encounter data with final attestation.NoteEditor, KeyValueGrid, SignaturePad
Clinical HandoffStructured I-PASS transfer of care tool.NoteEditor, TaskChecklist, KeyValueGrid
Growth Charts (Peds)CDC/WHO standardized plotting.Recharts (Scatter/Line), DataTable
Flowsheets (Review)Tabular view of vitals, I&Os, continuous data.DataTable (Frozen headers), Sparkline
Surgical Op NoteSpecialized documentation for intra-op details.NoteEditor, TimePicker, TeamSelector
Break-Glass ReviewInterface to enter justification for restricted access.Modal, TextArea, Dropdown
AI Assist PanelZone D contextual decision/documentation support.Drawer, ChatThread, SuggestionCard

2. NURSE (18 Modules)

Primary focus: Task execution, vitals flowsheet charting, medication administration, safety checks.

TitleDescriptionCore Components
Shift AssignmentBed/patient selection for shift context.DataTable, MultiSelect, Avatar
ED Track BoardHigh-density visual acuity and throughput tracker.DataTable, SeverityBadge, Timer
Triage IntakeRapid capture of chief complaint, vitals, acuity.Form, SearchAhead, VitalSign
MAR (Med Admin Record)Barcode scanning + time-based medication schedule.Timeline, MedCard, BarcodeScannerUI
Vitals FlowsheetRapid entry grid for continuous monitoring data.DataTable (Editable cells), TrendArrow
I&O FlowsheetIntake and output volumetric tracking.DataTable, CalculatedField, TimePicker
Wound Care FlowsheetLDA (Lines, Drains, Airways) and wound documentation.Form, ImageAnnotator, Measurements
Blood TransfusionDual-signoff safety verification module.Modal, AuthPrompt, Checklist
Nursing NotesShift summaries and event-driven documentation.NoteEditor, TemplateSelector
Care Plan ManagerNANDA-I standard nursing diagnoses and goals.CollapsibleSection, ProgressBar
Fall/Risk AssessmentsStructured scoring tools (e.g., Morse Fall Scale).Form, RadioGroup, ScoreCalculator
Code Blue FlowsheetReal-time emergency event logging.Timer, EventLogger, QuickActionGrid
Specimen CollectionLab order execution and label printing.DataTable, PrintPreview, BarcodeGenerator
Discharge ExecutionPatient education, AVS delivery, line removal checklist.Checklist, DocumentGenerator, SignaturePad
Device Integration HubStatus of connected pumps/monitors mapped to patient.Grid, StatusBadge, TelemetryGraph
Task WorklistTime-bound pending nursing interventions.DataTable, TimerBadge, FilterBar
Allergy EntryFast capture of allergies and severity reactions.SearchAhead, AllergyBadge, Dropdown
Secure ChatCare team communication (mobile-first layout).MessageThread, UserPresence, AttachmentBtn

3. TECHNICIAN / ANCILLARY (10 Modules)

Primary focus: Task queues, point-of-care testing, device uploads.

TitleDescriptionCore Components
Task WorklistGlobal queue mapped to technician role (e.g., phlebotomy).DataTable, FilterBar, LocationBadge
POC Result EntryRapid entry for point-of-care tests (e.g., glucose).Form, NumberInput, ValidationAlert
EKG UploadInterface to attach device tracings to encounter.FileUploader, DocumentPreview, MetadataForm
RT Therapy FlowsheetRespiratory therapy vent settings and treatments.DataTable, DeviceDataMapper
PT/OT AssessmentMobility scoring and physical therapy notes.NoteEditor, CustomForm, MeasurementGrid
Dietary Order ViewerRead-only view of patient nutrition orders.List, AllergyBadge
Transport DispatchPatient movement queue and status updates.KanbanBoard, Timer, LocationPicker
Equipment TrackerLocation and status of mobile clinical devices.DataTable, StatusBadge, Search
Dialysis FlowsheetSpecialized continuous hemodialysis charting.DataTable (Dense), CalculatedField
Supply Charge CaptureBarcode-based scanning of consumed materials.BarcodeScannerUI, CartList, PricePreview

4. LAB PERSONNEL / PATHOLOGY (8 Modules)

Primary focus: Specimen lifecycle, analyzer data mapping, critical value enforcement.

TitleDescriptionCore Components
Lab Pending QueueSpecimens received but unverified.DataTable, TimerBadge, PriorityFlag
Result VerificationQuality control review before chart commit.SplitPane, DataGrid, Approve/RejectBtn
Critical Value LogWorkflow enforcing read-back of criticals to provider.Form, CallLog, Timer
Specimen TrackerChain of custody from collection to disposal.Timeline, BarcodeScannerUI
Analyzer DashboardInterface monitoring machine HL7 feeds.SystemStatusBoard, ErrorLog
Microbiology PlatingSpecialized culture and sensitivity documentation.DataGrid, OrganismSelector, ResistancePanel
Blood Bank InventoryManagement of typed/crossed units.DataTable, ExpirationBadge, MatchStatus
Pathology DictationGross/microscopic examination reports.NoteEditor, AudioPlayer, ImageAttachment

5. RADIOLOGIST (7 Modules)

Primary focus: High-throughput interpretation, protocolling, voice recognition.

TitleDescriptionCore Components
Reading WorklistHigh-density queue of unread studies by modality/STAT.DataTable, PriorityBadge, FilterGroup
Protocolling UIPre-exam workflow to specify contrast/technique.Form, OrderCard, RadioGroup
Diagnostic EditorStructured reporting with Voice/macro integration.NoteEditor, MacroSidebar, VoiceIndicator
Study History contextSide panel showing prior related imaging and path.Timeline, DocumentPreview
Peer ReviewOver-read workflow for QA/compliance.SplitPane, DiffViewer, ScoringForm
Critical Findings AlertAutomated or manual routing of urgent results.Modal, MessageThread, AcknowledgmentLog
Technologist ChatDirect channel to rad-techs for study corrections.ChatThread, StudyLinker

6. SECRETARY / REGISTRAR (11 Modules)

Primary focus: Patient identity, scheduling, coverage verification.

TitleDescriptionCore Components
MPI SearchMaster Patient Index lookup to prevent duplicates.SearchAhead, FuzzyMatcher, DemographicsCard
Registration FormDemographics, emergency contacts, guarantors.Wizard, Form, AddressValidation
Insurance IntakePayer search, policy capture, eligibility ping (RTE).SearchAhead, CardScannerUI, StatusBadge
Scheduling GridMulti-provider/resource calendar view.Calendar, DragAndDrop, SlotConfig
Appointment WaitlistQueue for early-opening slots.DataTable, FilterBar, ActionButtons
Check-In/OutArrival status, co-pay collection, AVS printing.WorkflowStepper, PaymentGatewayUI
Consent ManagementScanning or e-signing HIPAA/treatment consents.DocumentViewer, SignaturePad, ExpirationBadge
Referral IntakeProcessing inbound faxes/HL7 referrals.SplitPane, DocumentViewer, DataExtractionForm
Prior Auth QueueTracking status of payer authorizations.DataTable, StatusBadge, UploadButton
Cash DrawerEnd-of-day reconciliation for front-desk copays.DataTable, CalculatedField, Ledger
Release of Info (ROI)Fulfilling patient/legal medical record requests.ExportWizard, FilterGroup, AuditLog

7. CLINIC ADMIN / UNIT MANAGER (12 Modules)

Primary focus: Operations, throughput, staffing, aggregated compliance.

TitleDescriptionCore Components
Unit Bed BoardSpatial or logical map of unit occupancy and status.GridMap, StatusBadge, DragAndDrop
Throughput DashboardMetrics on ED wait times, discharge bottlenecks.Recharts, KPIWidget, FilterBar
Staffing MatrixProvider/Nurse assignment and ratio tracking.DataTable, ResourceAllocator
Surgical BoardOR schedule, case status, turnover tracking.GanttChart, StatusBadge, Timer
Quality DashboardAggregated compliance metrics (e.g., VTE prophylaxis).Recharts (Bar/Pie), DataGrid
Infection ControlIsolation tracking and reportable disease logs.DataTable, AlertBadge, ExportBtn
Audit Log ViewerPrivileged access to view user/chart access logs.DataTable, FilterGroup, JSONViewer
Policy Override LogReview of break-glass and hard-stop overrides.DataTable, DiffViewer, ApprovalWorkflow
Template BuilderAdmin UI for creating Note/Order Set templates.DragAndDrop, FormBuilder, TreeSelect
Downtime ManagementInterface for triggering BCA (Business Continuity) printouts.ActionButtons, SystemStatus, ProgressIndicator
Provider RosterManagement of credentialing and dictation IDs.DataTable, Form, ExpirationBadge
Tenant ConfigFeature flags, localization, branding per facility.ToggleGroup, Form, ColorPicker

8. PATIENT / PORTAL (14 Modules)

Primary focus: Self-service, accessibility, secure communication. (Mobile-responsive).

TitleDescriptionCore Components
Portal HomePersonalized dashboard with actionable alerts.AppShell, AlertBanner, QuickActionGrid
Appointment BookingSelf-scheduling workflow with provider matching.Wizard, Calendar, ProviderCard
Test ResultsPatient-friendly lab/imaging viewer (post-release delay).DataGrid, Sparkline, ExplanationTooltip
Secure MessagingDirect communication to assigned care team.MessageThread, AttachmentBtn, RichText
Medication ListActive meds with instructions and refill requests.MedCard, RefillButton, PharmacySelector
Bill PayStatement viewer and payment processing.InvoiceViewer, PaymentGatewayUI
eCheck-InPre-visit demographic validation and copay.WorkflowStepper, Form, SignaturePad
Family Access (Proxy)Switching context to manage dependent/child charts.ContextSwitcher, Avatar, Badge
Health SummaryExportable CCDA/AVS viewer.DocumentViewer, DownloadBtn
QuestionnairesPre-visit PROMs (Patient Reported Outcome Measures).Form, RadioGroup, ScaleInput
Connected DevicesApple Health/Google Fit integrations for vitals sync.IntegrationCard, SyncStatus, DataGrid
Telehealth RoomWebRTC video client for virtual visits.VideoPlayer, ChatBox, DeviceSettings
Insurance UploadCamera interface to submit front/back of ID cards.CameraUI, ImageCropper, UploadBtn
Consent E-SignReview and signature of treatment/financial policies.DocumentViewer, SignaturePad

9. INSURANCE / BILLING (9 Modules)

Primary focus: Coding, claims scrubbing, RCM (Revenue Cycle Management).

TitleDescriptionCore Components
Coding WorkqueueEncounters pending ICD/CPT assignment.DataTable, SplitPane, FilterBar
Chart ExtractorRead-only note/lab view optimized for coders.DocumentViewer, HighlightTool, Search
Claim ScrubberValidation of coded data against payer rules.DataGrid, ValidationAlert, OverrideBtn
Claim WorkqueueManagement of rejected/denied claims.DataTable, StatusBadge, ReasonCodeList
EOB PostingManual or automated remittance advice entry.Form, CalculatedField, Ledger
Statement GenerationBatch processing for patient-responsible balances.BatchProcessorUI, PrintPreview
Contract ManagementPayer fee schedules and allowed amounts.DataTable, ImportWizard, Form
AR Aging DashboardDays in accounts receivable reporting.Recharts, KPIWidget, FilterGroup
Collection WorklistQueue for accounts requiring patient follow-up.DataTable, CallLog, PaymentPlanForm

10. SYSTEM / CROSS-CUTTING (8 Modules)

Primary focus: Observability, support, identity management.

TitleDescriptionCore Components
Command PaletteGlobal Ctrl+K navigation and action launcher.CommandPalette, SearchAhead
Global SearchCross-domain search (Patients, Orders, Staff).SearchOverlay, TabGroup, ResultCard
Support TicketingBug/Issue submission with automated context capture.Form, ScreenshotRedactor, LogAttacher
Ticket Triage (IT)Support staff queue to resolve user issues.DataTable, KanbanBoard, ChatThread
Notification CenterAggregated alerts (system, clinical, messaging).Drawer, ToastList, PriorityBadge
User ProvisioningRole assignment, RBAC policy mapping.DataTable, TransferList, RoleBadge
Telemetry DashboardLatency, error rates, and API performance.Recharts (Time-series), Gauge
Integration MonitorStatus of HL7/FHIR interfaces (inbound/outbound).SystemMap, LogViewer, StatusBadge

https://gemini.google.com/gem/d56b7e98da94