FAILURE MAP
← Case archive

FA-64322 / Medication dosing calculations / Member archive

Single-level extended-interval nomogram: midnight crossing · case 02

A 02:00 level after a 20:00 dose is read as 18 hours and rejected.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input {dose "HH:MM", draw "HH:MM" (a draw clock time earlier than the dose means the next day), level mg/L}. Hours after dose must be within 6-14 inclusive, else OUT_OF_RANGE. With rem = 14 - hours: level <= 2 + rem/2 gives q24h; <= 4 + 0.75*rem gives q36h; <= 6 + rem gives q48h; otherwise HOLD_RECHECK. Return {interval, hours (2 dp)}.

Why this case matters

Interval nomograms read a timed level against sloped lines; clock arithmetic and line edges are separate defect sites.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
draw after midnight{"hours": 16.0, "interval": "OUT_OF_RANGE"}{"hours": 8.0, "interval": "q24h"}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 ↗