StealThis .dev

Clinic — Vitals Input Panel

A triage vitals capture panel for nursing workflows, with paired blood-pressure inputs plus heart rate, temperature, SpO2, respiratory rate, weight and height. Each field carries its unit and a normal-range hint, and flags itself in warning or critical color in real time as values fall outside range. Height and weight auto-compute a BMI badge with category, and a Save action summarizes every captured reading, timestamps it and toasts confirmation.

فتح في المختبر
html css vanilla-js
الأهداف: JS HTML

الكود

Vitals Input Panel

A calm, focused panel for recording a patient’s vitals at triage. It opens with the patient context — name, MRN, age and attending clinician — alongside a live BMI badge. Below, a tidy two-column grid of number inputs covers blood pressure (paired systolic / diastolic), heart rate, temperature, SpO₂, respiratory rate, weight and height. Every field shows its unit inline and a quiet normal-range hint beneath it.

As you type, each reading is evaluated against its reference range. Values that drift out of normal tint the field label and left rail amber and surface an Above range or Below range chip; critical readings escalate to red with a Critically high / Critically low flag. Weight and height feed an automatically computed BMI value and category — underweight, normal, overweight or obese — colored to match. A timestamp line tracks the panel’s state, shifting from Editing — not yet saved to a saved confirmation once recorded.

Saving gathers only the fields you actually filled in, builds a compact summary of every captured value, notes any vitals flagged for review, stamps the time and clinician, and confirms with a toast. Clear resets every field, flag and the BMI badge in one tap. It’s all vanilla JS — no frameworks, no build step — and keyboard- and screen-reader-friendly throughout.

Illustrative UI only — not intended for real medical use.