Read the reported median wait, compare it with the prior period and see how the queue is distributed by triage group.
Emergency Department Waits · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotEmergencyWaitSnapshot | null (optional)
Department, reporting period, optional median timings and grouped queue counts. Omit for the demo or pass null when unavailable.
Data and integration
Preview
A fictional emergency department with a one-hour median and a queue by triage group.
Inputs
Supply department, groups and optional period, medianMinutes, previousMedianMinutes and reportedAt. Medians are finite, nonnegative minutes. Pass null or omit a median that the host cannot report. Zero is a reported value. Each group needs a stable id, label and a nonnegative whole waiting count. Optional medianWaitMinutes is the reported median for that group. An empty groups array means the queue breakdown is unavailable. To report no patients waiting, supply the observed groups with zero counts.
Source options
Refresh the snapshot as the host publishes observations. Compute both period medians for comparable time windows and populations. Send groups in the desired display order. Use reportedAt for the host-formatted time of the queue observation, with a time zone when relevant.
Actions
The comparison is the current median minus the previous one, shown with up to one decimal place. The queue total is the sum of all group counts. Each segment shows its group’s share of that total when it is known and positive. Open Queue details for the counts and reported medians. A group with an invalid count is omitted, and totals and shares are unavailable for an incomplete breakdown.