StealThis .dev

Clinic — Lab Results Viewer

A patient lab results viewer that groups analytes into collapsible CBC, lipid and metabolic panels. Every row pairs a value and unit with its reference interval, a colored Normal, High or Low status flag and a thin range bar whose marker shows exactly where the result sits within bounds. An out-of-range-only toggle filters live with a flagged count, per-panel badges stay truthful, and Download and Share fire calm confirmation toasts.

Labで開く
html css vanilla-js
ターゲット: JS HTML

コード

Lab Results Viewer

A calm, scannable way to read a blood panel. Results are grouped into collapsible sections — Complete Blood Count, Lipid Panel and Metabolic Panel — each headed by a flagged-count badge so a patient sees at a glance where attention is needed. The header reads Results from Jun 4, 2026 and names the ordering clinician, Dr. Lena Okafor of Northpoint Clinic.

Every analyte row carries its name, the measured value with units, the reference interval and a color-coded Normal / High / Low flag. Beneath each row a thin range bar plots the result against its in-range band, with the marker tinted teal when normal, coral when high and amber when low — so the distance from the boundary is visible, not just stated. High and low values also color their numbers to match.

An Out of range only switch filters the whole view in place, hiding in-range rows and any panel left empty, and updates a live flagged count; when nothing is out of range a reassuring empty state appears instead. Panels expand and collapse on click with a rotating chevron, and the Download and Share actions surface gentle confirmation toasts. Everything is vanilla JS, keyboard-usable and responsive down to small phones.

Illustrative UI only — not intended for real medical use.