FA-64838 / Clinical triage scoring / Member archive
Acute asthma severity from peak flow and signs: tachycardia criterion · case 03
A heart rate of exactly 110 is not treated as a severe sign.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| heart rate exactly 110 | {"pct": 72.0, "severity": "MODERATE"} | {"pct": 72.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 ↗