FAILURE MAP
← Case archive

FA-64310 / Medication dosing calculations / Member archive

Infusion bag run-out time across rate changes: volume consumed per segment · case 05

After a rate change the remaining volume is understated and run-out is predicted too early.

Member previewVariant 5 · 3 implementations · 9 checks per implementation

Case contract

Input {bag_ml, segments [[start_min, rate_ml_h], ...] ascending from 0}. Each segment runs until the next start; the last segment is open-ended. Paused segments (rate 0) consume nothing. Return {empty_min, alarm_min = max(0, empty-30)} rounded to 0.1 min, or both None when the bag never empties.

Why this case matters

Run-out prediction walks piecewise-constant rates; segment edges, open-ended tails and unit conversion fail independently.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
completed middle segment consumption{"alarm_min": 115.7, "empty_min": 145.7}{"alarm_min": 218.6, "empty_min": 248.6}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗