FAILURE MAP
← Case archive

FA-64828 / Clinical triage scoring / Member archive

Acute asthma severity from peak flow and signs: life-threatening criteria · case 03

A peak flow of exactly 33% is graded life-threatening.

Member previewVariant 3 · 3 implementations · 10 checks per implementation

Case contract

Input {pef, best (best or predicted PEF), spo2, sentences (can complete sentences), rr, hr, age}. pct = pef*100/best. Toy classification: LIFE_THREATENING when pct < 33 or spo2 < 92; ACUTE_SEVERE when pct <= 50, rr >= 25, hr >= 110 or sentences cannot be completed; MODERATE when pct <= 75; else MILD. Return {pct (1 dp), severity}.

Why this case matters

Severity grading from a percentage of best peak flow mixes ratio arithmetic with or-combined bedside signs.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
exactly 33 percent{"pct": 33.0, "severity": "LIFE_THREATENING"}{"pct": 33.0, "severity": "ACUTE_SEVERE"}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 ↗