FA-64329 / Medication dosing calculations / Member archive
Single-level extended-interval nomogram: nomogram window bounds · case 04
Levels drawn exactly 6 or 14 hours after the dose are rejected.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| exactly 6 hours | {"hours": 6.0, "interval": "OUT_OF_RANGE"} | {"hours": 6.0, "interval": "q36h"} | 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 ↗