How rsubash2006-hash/smartcare-patient-queue works
SmartCare is a fictional-data emergency department triage and patient-queue application. Staff register patients with vitals and clinician-confirmed acuity; preliminary screening flags are advisory. The app filters and prioritizes the queue, supports consultation and discharge workflows, and presents operational metrics, alerts, and ESI reference material. App state and demo records persist through browser localStorage. The graph follows documented capabilities where source excerpts do not show implementation details; those links are omitted rather than inferred.
Main entry points: App.jsx Application Shell · PatientRegistrationModal.jsx Patient Intake · PatientCard.jsx Patient Queue Card · triageConstants.js Triage Definitions
Components 21
Triage Workflow
- Application Shell
src/App.jsx - Patient Intake
src/components/registration/PatientRegistrationModal.jsx - Warning Screening
src/services/triageEngine.js - Triage Definitions
src/constants/triageConstants.js
Queue Operations
- Queue Filters
src/components/queue/QueueControls.jsx - Patient Queue Card
src/components/queue/PatientCard.jsx - Clinical Record & Re-triage
src/components/queue/PatientDetailModal.jsx - Queue Logic & Metrics
src/services/triageEngine.js
Dashboard & Guidance
- Metric Cards
src/components/dashboard/MetricCards.jsx - Acuity Distribution
src/components/dashboard/UrgencyDistributionChart.jsx - Department Caseload
src/components/dashboard/DepartmentFlowChart.jsx - Triage Alerts
src/components/dashboard/TriageAlertsPanel.jsx - Clinical Protocols
src/components/protocols/ClinicalProtocolsView.jsx
Shared UI & State
- Demo Patient Store
src/services/storageService.js - Header Actions
src/components/layout/Header.jsx - Navigation Sidebar
src/components/layout/Sidebar.jsx - Safety Banner
src/components/layout/ClinicalSafetyBanner.jsx - Status & Acuity Badges
src/components/common/Badge.jsx - Modal Container
src/components/common/Modal.jsx - Toast Notifications
src/components/common/Toast.jsx
Other components
- Clinical Staff
Connections 27
- Clinical Staff → Application Shell: uses
README.md - Application Shell → Patient Intake: opens intake
src/App.jsx - Patient Intake → Warning Screening: checks vitals
src/components/registration/PatientRegistrationModal.jsx - Patient Intake → Triage Definitions: uses acuity
src/components/registration/PatientRegistrationModal.jsx - Application Shell → Queue Filters: filters queue
src/App.jsx - Application Shell → Queue Logic & Metrics: filters and sorts
src/App.jsx - Application Shell → Patient Queue Card: shows patients
src/App.jsx - Patient Queue Card → Clinical Record & Re-triage: opens record
src/components/queue/PatientCard.jsx - Patient Queue Card → Queue Logic & Metrics: formats wait
src/components/queue/PatientCard.jsx - Clinical Record & Re-triage → Queue Logic & Metrics: formats elapsed time
src/components/queue/PatientDetailModal.jsx - Patient Queue Card → Status & Acuity Badges: renders badges
src/components/queue/PatientCard.jsx - Clinical Record & Re-triage → Modal Container: uses dialog
src/components/queue/PatientDetailModal.jsx - Patient Intake → Modal Container: uses dialog
src/components/registration/PatientRegistrationModal.jsx - Warning Screening → Triage Definitions: uses definitions
src/services/triageEngine.js - Application Shell → Demo Patient Store: loads and saves
src/App.jsx - Application Shell → Metric Cards: shows metrics
src/App.jsx - Application Shell → Acuity Distribution: shows distribution
src/App.jsx - Application Shell → Department Caseload: shows caseload
src/App.jsx - Application Shell → Triage Alerts: shows alerts
src/App.jsx - Triage Alerts → Status & Acuity Badges: renders acuity
src/components/dashboard/TriageAlertsPanel.jsx - Acuity Distribution → Triage Definitions: uses definitions
src/components/dashboard/UrgencyDistributionChart.jsx - Department Caseload → Triage Definitions: uses departments
src/components/dashboard/DepartmentFlowChart.jsx - Application Shell → Clinical Protocols: opens reference
src/App.jsx - Application Shell → Header Actions: renders actions
src/App.jsx - Application Shell → Safety Banner: renders banner
src/App.jsx - Application Shell → Navigation Sidebar: renders navigation
src/App.jsx - Application Shell → Toast Notifications: renders notifications
src/App.jsx