FAILURE MAP
← Case archive

FA-64238 / Medication dosing calculations / Member archive

Oral liquid volume measured in a dosing syringe: syringe capacity check · case 03

A dose that exactly fills the syringe is sent for splitting.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input {weight_kg, mg_per_kg, max_mg, conc_mg, conc_ml (label strength conc_mg per conc_ml), syringe_ml (1, 5 or 10)}. dose = min(mg_per_kg*weight, max_mg); volume = dose/(conc_mg/conc_ml). Graduations: 1 mL syringe 0.01 mL, 5 mL syringe 0.2 mL, 10 mL syringe 0.5 mL. Round half-up to the graduation, but if that delivers more than max_mg round down instead. A rounded volume above syringe capacity returns {status SPLIT, syringes = ceil(volume/capacity)}; otherwise {status OK, volume_ml, dose_mg delivered}.

Why this case matters

Liquid dosing converts mg to mL through a label strength and then to what a syringe can actually measure; each step has a distinct defect.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
volume rounds down to capacity{"status": "SPLIT", "syringes": 1}{"dose_mg": 120.0, "status": "OK", "volume_ml": 5.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 ↗