FA-64008 / Medication dosing calculations / Member archive
Weight-based anticoagulant infusion nomogram: lower-bolus band inclusive edge · case 03
An aPTT of exactly 45 s gets no bolus or rate increase.
Case contract
Input {weight_kg, aptt (integer seconds), rate (units/kg/h)}. Toy nomogram with dosing weight capped at 120 kg: aptt < 35 bolus 80 u/kg and rate +4; 35-45 bolus 40 u/kg and rate +2; 46-70 no change; 71-90 rate -2; > 90 hold 60 minutes and rate -3. Rate is never below 0. Bolus units = bolus u/kg * weight rounded half-up to the nearest 100 units. Return {bolus_units, hold_min, rate_u_kg_h, rate_u_h (half-up integer of rate*weight)}.
Why this case matters
Nomogram-driven infusion adjustments combine band lookup, weight caps and pump rounding; each is a separate failure point.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| aptt exactly 45 | {"bolus_units": 0, "hold_min": 0, "rate_u_h": 1520, "rate_u_kg_h": 19.0} | {"bolus_units": 3200, "hold_min": 0, "rate_u_h": 1680, "rate_u_kg_h": 21.0} | 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 ↗