💉 Pediatric Plasma Concentration & Tenfold Error (2D)
A live one-compartment pharmacokinetic model: pick a weight-based IV drug, set the patient's age and weight, and watch its blood concentration rise then decay in real time — then flip on a tenfold dosing error to see exactly how far outside the safe range it pushes the curve.
The 3D-tagged original walks a pediatric case stage by stage, calculating each drug's dose and draw-up volume from the patient's weight and age. This 2D companion asks a different question: once that dose is in the bloodstream, what does its concentration actually do over time? A one-compartment pharmacokinetic model — the same textbook approximation anesthesiologists use to reason about onset and duration — turns the static dose calculation into a live curve: concentration jumps to a peak at the moment of the IV bolus, then decays exponentially as the drug redistributes and clears, with the decay rate set by each drug's half-life and the peak height set by dose divided by volume of distribution. Switching between propofol, fentanyl, rocuronium and succinylcholine swaps in each drug's real relative dosing, distribution volume and half-life, and switching the age slider through neonate, infant and child bands shows why the youngest patients need the most cautious titration: immature clearance stretches every curve out, keeping the drug in the body — and in the danger zone if a tenfold error is active — for far longer.
2D one-compartment pharmacokinetic model: Cp(t) = (Dose ÷ Vd)·e^(−ke·t), with per-drug dose, volume of distribution and half-life scaled by weight and age category, an animated concentration-vs-time curve with a shaded therapeutic band, a live "body compartment" fill tank, and a one-click tenfold-error overlay that shows exactly how a decimal-point mistake distorts the curve.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install