FAILURE MAP
← Case archive

FA-64673 / Clinical triage scoring / Member archive

Shock index, mean arterial pressure and flags: elevated category threshold · case 03

A shock index of exactly 0.7 is reported as normal.

Member previewVariant 3 · 3 implementations · 9 checks per implementation

Case contract

Input {hr, sbp, dbp}. Invalid when sbp <= 0, dbp <= 0 or dbp >= sbp ({error INVALID_BP}). SI = hr/sbp; MAP = (sbp + 2*dbp)/3; modified SI = hr/MAP. Category: SI >= 1.0 SHOCK_LIKELY, SI >= 0.7 ELEVATED, else NORMAL. msi_flag when modified SI > 1.3; map_low when MAP < 65. SI and MAP are reported rounded half-up to 2 decimals. Return {si, map, category, msi_flag, map_low}.

Why this case matters

Ratio-based haemodynamic flags are sensitive to integer arithmetic, weighting of pressures and early rounding.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
shock index exactly 0.7{"category": "NORMAL", "map": 72.0, "map_low": false, "msi_flag": false, "si": 0.7}{"category": "ELEVATED", "map": 72.0, "map_low": false, "msi_flag": false, "si": 0.7}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 ↗