{"abstract":"The mL/h display shows mL per minute.","category":"Medication dosing calculations","checks":6,"contract":"Input {volume_ml, duration_min, drop_factor (gtt/mL), start \"HH:MM\" 24-hour}. drops/min = volume*drop_factor/duration rounded half-up to a whole drop; mL/h = volume*60/duration rounded half-up to 0.1; end = start + duration on a 24-hour clock with day_offset = number of midnights crossed (ending exactly at 00:00 counts as the next day). Return {gtt_min, ml_h, end, day_offset}.","evaluation_group":"w2-meddose-gravity-drip","failed_approach":"Dividing by whole hours truncates partial hours and misstates non-hour durations.","family":"w2-meddose-gravity-drip-hourly-rate-conversion","id":"FA-64111","implementations":{"attempt":{"sha256":"97df0a1f1636f75d04a2c878eac3498b6b86850692543ab8ad11fb2bc74f37f1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    gtt = Fraction(x['volume_ml'] * x['drop_factor'], x['duration_min'])\n    gtt_i = math.floor(gtt + Fraction(1, 2))\n    mlh = Fraction(x['volume_ml'], max(1, x['duration_min'] // 60))\n    mlh_t = math.floor(mlh * 10 + Fraction(1, 2))\n    h, m = map(int, x['start'].split(':'))\n    total = h * 60 + m + x['duration_min']\n    day = total // 1440\n    total = total % 1440\n    return {'gtt_min': gtt_i, 'ml_h': mlh_t / 10, 'end': '%02d:%02d' % (total // 60, total % 60), 'day_offset': day}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:05'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:05', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 103, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 34, 'ml_h': 103.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 150, 'drop_factor': 20, 'start': '22:00'},\n   {'gtt_min': 67, 'ml_h': 200.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 2940, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 41, 'ml_h': 40.8, 'end': '14:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 31, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 97, 'ml_h': 96.8, 'end': '11:16', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:10'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:10', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 106, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 35, 'ml_h': 106.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 180, 'drop_factor': 20, 'start': '21:30'},\n   {'gtt_min': 56, 'ml_h': 166.7, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3000, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 40, 'ml_h': 40.0, 'end': '15:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 32, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 94, 'ml_h': 93.8, 'end': '11:17', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 10, 'start': '14:15'},\n   {'gtt_min': 21, 'ml_h': 125.0, 'end': '22:15', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 10, 'start': '08:00'},\n   {'gtt_min': 25, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 109, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 36, 'ml_h': 109.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 210, 'drop_factor': 20, 'start': '21:00'},\n   {'gtt_min': 48, 'ml_h': 142.9, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3060, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 39, 'ml_h': 39.2, 'end': '16:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 33, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 91, 'ml_h': 90.9, 'end': '11:18', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:20'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:20', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 20, 'start': '08:00'},\n   {'gtt_min': 50, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 112, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 37, 'ml_h': 112.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 240, 'drop_factor': 20, 'start': '20:30'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3120, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 38.5, 'end': '17:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 34, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 88, 'ml_h': 88.2, 'end': '11:19', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:25'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:25', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 115, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 38, 'ml_h': 115.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 270, 'drop_factor': 20, 'start': '20:00'},\n   {'gtt_min': 37, 'ml_h': 111.1, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3180, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 37.7, 'end': '18:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 35, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 86, 'ml_h': 85.7, 'end': '11:20', 'day_offset': 0})]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"9477d2ed028e2f00306976de654d96b576f423ad90cac9a28fb22c603204f82f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    gtt = Fraction(x['volume_ml'] * x['drop_factor'], x['duration_min'])\n    gtt_i = math.floor(gtt + Fraction(1, 2))\n    mlh = Fraction(x['volume_ml'], x['duration_min'])\n    mlh_t = math.floor(mlh * 10 + Fraction(1, 2))\n    h, m = map(int, x['start'].split(':'))\n    total = h * 60 + m + x['duration_min']\n    day = total // 1440\n    total = total % 1440\n    return {'gtt_min': gtt_i, 'ml_h': mlh_t / 10, 'end': '%02d:%02d' % (total // 60, total % 60), 'day_offset': day}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:05'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:05', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 103, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 34, 'ml_h': 103.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 150, 'drop_factor': 20, 'start': '22:00'},\n   {'gtt_min': 67, 'ml_h': 200.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 2940, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 41, 'ml_h': 40.8, 'end': '14:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 31, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 97, 'ml_h': 96.8, 'end': '11:16', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:10'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:10', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 106, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 35, 'ml_h': 106.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 180, 'drop_factor': 20, 'start': '21:30'},\n   {'gtt_min': 56, 'ml_h': 166.7, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3000, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 40, 'ml_h': 40.0, 'end': '15:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 32, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 94, 'ml_h': 93.8, 'end': '11:17', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 10, 'start': '14:15'},\n   {'gtt_min': 21, 'ml_h': 125.0, 'end': '22:15', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 10, 'start': '08:00'},\n   {'gtt_min': 25, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 109, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 36, 'ml_h': 109.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 210, 'drop_factor': 20, 'start': '21:00'},\n   {'gtt_min': 48, 'ml_h': 142.9, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3060, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 39, 'ml_h': 39.2, 'end': '16:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 33, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 91, 'ml_h': 90.9, 'end': '11:18', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:20'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:20', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 20, 'start': '08:00'},\n   {'gtt_min': 50, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 112, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 37, 'ml_h': 112.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 240, 'drop_factor': 20, 'start': '20:30'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3120, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 38.5, 'end': '17:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 34, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 88, 'ml_h': 88.2, 'end': '11:19', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:25'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:25', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 115, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 38, 'ml_h': 115.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 270, 'drop_factor': 20, 'start': '20:00'},\n   {'gtt_min': 37, 'ml_h': 111.1, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3180, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 37.7, 'end': '18:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 35, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 86, 'ml_h': 85.7, 'end': '11:20', 'day_offset': 0})]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"12873decc47feb680c6b69ec2a87c9deaf9d737a7a98868fa6c518f9f8abd494","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    gtt = Fraction(x['volume_ml'] * x['drop_factor'], x['duration_min'])\n    gtt_i = math.floor(gtt + Fraction(1, 2))\n    mlh = Fraction(x['volume_ml'] * 60, x['duration_min'])\n    mlh_t = math.floor(mlh * 10 + Fraction(1, 2))\n    h, m = map(int, x['start'].split(':'))\n    total = h * 60 + m + x['duration_min']\n    day = total // 1440\n    total = total % 1440\n    return {'gtt_min': gtt_i, 'ml_h': mlh_t / 10, 'end': '%02d:%02d' % (total // 60, total % 60), 'day_offset': day}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:05'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:05', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 103, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 34, 'ml_h': 103.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 150, 'drop_factor': 20, 'start': '22:00'},\n   {'gtt_min': 67, 'ml_h': 200.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 2940, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 41, 'ml_h': 40.8, 'end': '14:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 31, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 97, 'ml_h': 96.8, 'end': '11:16', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:10'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:10', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 106, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 35, 'ml_h': 106.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 180, 'drop_factor': 20, 'start': '21:30'},\n   {'gtt_min': 56, 'ml_h': 166.7, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3000, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 40, 'ml_h': 40.0, 'end': '15:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 32, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 94, 'ml_h': 93.8, 'end': '11:17', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 10, 'start': '14:15'},\n   {'gtt_min': 21, 'ml_h': 125.0, 'end': '22:15', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 10, 'start': '08:00'},\n   {'gtt_min': 25, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 109, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 36, 'ml_h': 109.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 210, 'drop_factor': 20, 'start': '21:00'},\n   {'gtt_min': 48, 'ml_h': 142.9, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3060, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 39, 'ml_h': 39.2, 'end': '16:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 33, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 91, 'ml_h': 90.9, 'end': '11:18', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 15, 'start': '14:20'},\n   {'gtt_min': 31, 'ml_h': 125.0, 'end': '22:20', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 20, 'start': '08:00'},\n   {'gtt_min': 50, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 112, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 37, 'ml_h': 112.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 240, 'drop_factor': 20, 'start': '20:30'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3120, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 38.5, 'end': '17:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 34, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 88, 'ml_h': 88.2, 'end': '11:19', 'day_offset': 0})],\n [('macrodrip set afternoon start',\n   {'volume_ml': 1000, 'duration_min': 480, 'drop_factor': 20, 'start': '14:25'},\n   {'gtt_min': 42, 'ml_h': 125.0, 'end': '22:25', 'day_offset': 0}),\n  ('drop rate rounds half up',\n   {'volume_ml': 250, 'duration_min': 100, 'drop_factor': 15, 'start': '08:00'},\n   {'gtt_min': 38, 'ml_h': 150.0, 'end': '09:40', 'day_offset': 0}),\n  ('fractional drop rate rounds down',\n   {'volume_ml': 115, 'duration_min': 60, 'drop_factor': 20, 'start': '09:30'},\n   {'gtt_min': 38, 'ml_h': 115.0, 'end': '10:30', 'day_offset': 0}),\n  ('ends exactly at midnight',\n   {'volume_ml': 500, 'duration_min': 270, 'drop_factor': 20, 'start': '20:00'},\n   {'gtt_min': 37, 'ml_h': 111.1, 'end': '00:30', 'day_offset': 1}),\n  ('multi-day infusion',\n   {'volume_ml': 2000, 'duration_min': 3180, 'drop_factor': 60, 'start': '13:15'},\n   {'gtt_min': 38, 'ml_h': 37.7, 'end': '18:15', 'day_offset': 2}),\n  ('short microdrip before noon',\n   {'volume_ml': 50, 'duration_min': 35, 'drop_factor': 60, 'start': '10:45'},\n   {'gtt_min': 86, 'ml_h': 85.7, 'end': '11:20', 'day_offset': 0})]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"A deterministic toy software model with explicitly stipulated thresholds and formulas; it is not clinical guidance, not a validated medical calculator, and makes no claim of conformance to any published protocol. Numbered variants vary patient and order inputs. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-meddose-gravity-drip-hourly-rate-conversion","generated_at":"2026-09-29T14:47:21.200714+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Manual gravity infusions depend on drop-factor arithmetic and clock arithmetic across midnight, each with its own failure modes.","repair":"Multiply volume by 60 before dividing by the duration in minutes.","root_cause":"The hourly rate omits the x60 minutes-per-hour factor.","sha256":"b6f14204a1edfde3ab21ef9bd1586b08e206746b09eabcf348cc2d3372d9a17d","title":"Gravity drip rate and infusion end time: hourly rate conversion · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.097,"exit_code":1,"observations":[{"actual":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":125.0},"check":"macrodrip set afternoon start","expected":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":125.0},"passed":true},{"actual":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":250.0},"check":"drop rate rounds half up","expected":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":150.0},"passed":false},{"actual":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":103.0},"check":"fractional drop rate rounds down","expected":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":103.0},"passed":true},{"actual":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":250.0},"check":"ends exactly at midnight","expected":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":200.0},"passed":false},{"actual":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":40.8},"check":"multi-day infusion","expected":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":40.8},"passed":true},{"actual":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":50.0},"check":"short microdrip before noon","expected":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":96.8},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"macrodrip set afternoon start\", \"actual\": {\"gtt_min\": 31, \"ml_h\": 125.0, \"end\": \"22:05\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 31, \"ml_h\": 125.0, \"end\": \"22:05\", \"day_offset\": 0}, \"passed\": true}, {\"check\": \"drop rate rounds half up\", \"actual\": {\"gtt_min\": 38, \"ml_h\": 250.0, \"end\": \"09:40\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 38, \"ml_h\": 150.0, \"end\": \"09:40\", \"day_offset\": 0}, \"passed\": false}, {\"check\": \"fractional drop rate rounds down\", \"actual\": {\"gtt_min\": 34, \"ml_h\": 103.0, \"end\": \"10:30\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 34, \"ml_h\": 103.0, \"end\": \"10:30\", \"day_offset\": 0}, \"passed\": true}, {\"check\": \"ends exactly at midnight\", \"actual\": {\"gtt_min\": 67, \"ml_h\": 250.0, \"end\": \"00:30\", \"day_offset\": 1}, \"expected\": {\"gtt_min\": 67, \"ml_h\": 200.0, \"end\": \"00:30\", \"day_offset\": 1}, \"passed\": false}, {\"check\": \"multi-day infusion\", \"actual\": {\"gtt_min\": 41, \"ml_h\": 40.8, \"end\": \"14:15\", \"day_offset\": 2}, \"expected\": {\"gtt_min\": 41, \"ml_h\": 40.8, \"end\": \"14:15\", \"day_offset\": 2}, \"passed\": true}, {\"check\": \"short microdrip before noon\", \"actual\": {\"gtt_min\": 97, \"ml_h\": 50.0, \"end\": \"11:16\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 97, \"ml_h\": 96.8, \"end\": \"11:16\", \"day_offset\": 0}, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.966,"exit_code":1,"observations":[{"actual":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":2.1},"check":"macrodrip set afternoon start","expected":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":125.0},"passed":false},{"actual":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":2.5},"check":"drop rate rounds half up","expected":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":150.0},"passed":false},{"actual":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":1.7},"check":"fractional drop rate rounds down","expected":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":103.0},"passed":false},{"actual":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":3.3},"check":"ends exactly at midnight","expected":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":200.0},"passed":false},{"actual":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":0.7},"check":"multi-day infusion","expected":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":40.8},"passed":false},{"actual":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":1.6},"check":"short microdrip before noon","expected":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":96.8},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"macrodrip set afternoon start\", \"actual\": {\"gtt_min\": 31, \"ml_h\": 2.1, \"end\": \"22:05\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 31, \"ml_h\": 125.0, \"end\": \"22:05\", \"day_offset\": 0}, \"passed\": false}, {\"check\": \"drop rate rounds half up\", \"actual\": {\"gtt_min\": 38, \"ml_h\": 2.5, \"end\": \"09:40\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 38, \"ml_h\": 150.0, \"end\": \"09:40\", \"day_offset\": 0}, \"passed\": false}, {\"check\": \"fractional drop rate rounds down\", \"actual\": {\"gtt_min\": 34, \"ml_h\": 1.7, \"end\": \"10:30\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 34, \"ml_h\": 103.0, \"end\": \"10:30\", \"day_offset\": 0}, \"passed\": false}, {\"check\": \"ends exactly at midnight\", \"actual\": {\"gtt_min\": 67, \"ml_h\": 3.3, \"end\": \"00:30\", \"day_offset\": 1}, \"expected\": {\"gtt_min\": 67, \"ml_h\": 200.0, \"end\": \"00:30\", \"day_offset\": 1}, \"passed\": false}, {\"check\": \"multi-day infusion\", \"actual\": {\"gtt_min\": 41, \"ml_h\": 0.7, \"end\": \"14:15\", \"day_offset\": 2}, \"expected\": {\"gtt_min\": 41, \"ml_h\": 40.8, \"end\": \"14:15\", \"day_offset\": 2}, \"passed\": false}, {\"check\": \"short microdrip before noon\", \"actual\": {\"gtt_min\": 97, \"ml_h\": 1.6, \"end\": \"11:16\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 97, \"ml_h\": 96.8, \"end\": \"11:16\", \"day_offset\": 0}, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.432,"exit_code":0,"observations":[{"actual":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":125.0},"check":"macrodrip set afternoon start","expected":{"day_offset":0,"end":"22:05","gtt_min":31,"ml_h":125.0},"passed":true},{"actual":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":150.0},"check":"drop rate rounds half up","expected":{"day_offset":0,"end":"09:40","gtt_min":38,"ml_h":150.0},"passed":true},{"actual":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":103.0},"check":"fractional drop rate rounds down","expected":{"day_offset":0,"end":"10:30","gtt_min":34,"ml_h":103.0},"passed":true},{"actual":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":200.0},"check":"ends exactly at midnight","expected":{"day_offset":1,"end":"00:30","gtt_min":67,"ml_h":200.0},"passed":true},{"actual":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":40.8},"check":"multi-day infusion","expected":{"day_offset":2,"end":"14:15","gtt_min":41,"ml_h":40.8},"passed":true},{"actual":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":96.8},"check":"short microdrip before noon","expected":{"day_offset":0,"end":"11:16","gtt_min":97,"ml_h":96.8},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"macrodrip set afternoon start\", \"actual\": {\"gtt_min\": 31, \"ml_h\": 125.0, \"end\": \"22:05\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 31, \"ml_h\": 125.0, \"end\": \"22:05\", \"day_offset\": 0}, \"passed\": true}, {\"check\": \"drop rate rounds half up\", \"actual\": {\"gtt_min\": 38, \"ml_h\": 150.0, \"end\": \"09:40\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 38, \"ml_h\": 150.0, \"end\": \"09:40\", \"day_offset\": 0}, \"passed\": true}, {\"check\": \"fractional drop rate rounds down\", \"actual\": {\"gtt_min\": 34, \"ml_h\": 103.0, \"end\": \"10:30\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 34, \"ml_h\": 103.0, \"end\": \"10:30\", \"day_offset\": 0}, \"passed\": true}, {\"check\": \"ends exactly at midnight\", \"actual\": {\"gtt_min\": 67, \"ml_h\": 200.0, \"end\": \"00:30\", \"day_offset\": 1}, \"expected\": {\"gtt_min\": 67, \"ml_h\": 200.0, \"end\": \"00:30\", \"day_offset\": 1}, \"passed\": true}, {\"check\": \"multi-day infusion\", \"actual\": {\"gtt_min\": 41, \"ml_h\": 40.8, \"end\": \"14:15\", \"day_offset\": 2}, \"expected\": {\"gtt_min\": 41, \"ml_h\": 40.8, \"end\": \"14:15\", \"day_offset\": 2}, \"passed\": true}, {\"check\": \"short microdrip before noon\", \"actual\": {\"gtt_min\": 97, \"ml_h\": 96.8, \"end\": \"11:16\", \"day_offset\": 0}, \"expected\": {\"gtt_min\": 97, \"ml_h\": 96.8, \"end\": \"11:16\", \"day_offset\": 0}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}