{"uid":"cap_KAogSM1fSm2QuVbbPujdY","slug":"decaf-score-calculator-steer-2012-d61468a4","name":"DECAF Score Calculator (Steer 2012)","description":"Steer 2012 DECAF: eMRCD 1-4 → 0, 5a → 1, 5b → 2; eosinophils <0.05 ×10^9/L → 1 (0.05 does not score); caller-assigned consolidation → 1; arterial pH <7.30 → 1 (7.30 does not score); atrial fibrillation → 1. Returns a 0–6 total and band 0-1 / 2 / 3-6. Deterministic published points with citation. Not an early-discharge or escalation protocol and not a medical device.","url":"https://api.magentlab.com/api/calc/decaf","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["emrcd","eosinophils_10e9_l","consolidation","arterial_ph","atrial_fibrillation"],"properties":{"emrcd":{"enum":["1-4","5a","5b"],"type":"string","description":"Steer 2012 extended MRC dyspnoea as assigned by the caller. 1-4 scores 0; 5a scores 1; 5b scores 2. magent does not interview the patient."},"arterial_ph":{"type":"number","description":"Arterial pH (6.80-7.80). Steer 2012: <7.30 scores 1; 7.30 does not score."},"consolidation":{"type":"boolean","description":"Chest radiograph consolidation as assigned by the caller (Steer 2012 C). true or false. 1 point if true. magent does not interpret radiographs."},"eosinophils_10e9_l":{"type":"number","description":"Blood eosinophil count ×10^9/L (0-5). Steer 2012: <0.05 scores 1; 0.05 does not score."},"atrial_fibrillation":{"type":"boolean","description":"Atrial fibrillation as assigned by the caller (Steer 2012 F). true or false. 1 point if true. magent does not interpret the ECG."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/decaf","count":2,"items":[{"emrcd":"1-4","score":0,"formula":"decaf","citation":{"id":"steer-2012","doi":"10.1136/thoraxjnl-2012-202103","pmid":"22895999","title":"The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease","source":"Thorax. 2012;67(11):970-976","authors":"Steer J, Gibson J, Bourke SC"},"max_score":6,"components":[{"value":"1-4","factor":"emrcd","points":0,"present":false},{"value":0.1,"factor":"eosinopenia","points":0,"present":false},{"factor":"consolidation","points":0,"present":false},{"value":7.4,"factor":"acidemia","points":0,"present":false},{"factor":"atrial_fibrillation","points":0,"present":false}],"decaf_band":"0-1","disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","arterial_ph":7.4,"consolidation":false,"eosinophils_10e9_l":0.1,"formula_expression":"DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6","atrial_fibrillation":false},{"emrcd":"1-4","score":0,"formula":"decaf","citation":{"id":"steer-2012","doi":"10.1136/thoraxjnl-2012-202103","pmid":"22895999","title":"The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease","source":"Thorax. 2012;67(11):970-976","authors":"Steer J, Gibson J, Bourke SC"},"max_score":6,"components":[{"value":"1-4","factor":"emrcd","points":0,"present":false},{"value":0.1,"factor":"eosinopenia","points":0,"present":false},{"factor":"consolidation","points":0,"present":false},{"value":7.4,"factor":"acidemia","points":0,"present":false},{"factor":"atrial_fibrillation","points":0,"present":false}],"decaf_band":"0-1","disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","arterial_ph":7.4,"consolidation":false,"eosinophils_10e9_l":0.1,"formula_expression":"DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6","atrial_fibrillation":false}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sFUL37IDs0Cb_X-Vd0Pwj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the DECAF (AECOPD) score from five caller-assigned clinical variables and returns a 0–6 total with severity band.","exampleAgentPrompt":"Calculate the DECAF score for a COPD patient with eMRCD grade 5a, eosinophil count of 0.03 ×10^9/L, no chest X-ray consolidation, arterial pH of 7.25, and no atrial fibrillation.","exampleUseCases":[{"title":"AECOPD admission severity triage","prompt":"My patient is admitted with an acute COPD exacerbation — eMRCD is 5b, eosinophils are 0.04, chest X-ray shows consolidation, arterial pH is 7.28, and they're in atrial fibrillation. What's their DECAF score and which severity band does that put them in?"},{"title":"Low-risk AECOPD risk stratification","prompt":"I have a COPD patient in the ED with eMRCD 1-4, eosinophils 0.10, no consolidation on CXR, pH 7.38, and normal sinus rhythm. Can you run the DECAF score to see if they're in the low-risk band?"},{"title":"Prior-auth or audit documentation","prompt":"I need to document the DECAF score for billing purposes: the patient's eMRCD was 5a, eosinophil count 0.02, consolidation present, arterial pH 7.31, and no atrial fibrillation — please compute the exact Steer 2012 points and total."}],"resultDescription":"Returns the total DECAF score (integer 0–6) and the corresponding severity band (0–1 = low, 2 = intermediate, 3–6 = high), computed deterministically per Steer 2012 published criteria with a citation.","failureModes":["Missing required query parameter (emrcd, eosinophils_10e9_l, consolidation, arterial_ph, or atrial_fibrillation) — returns 4xx validation error","arterial_ph outside physiological range 6.80–7.80 — rejected with validation error","eosinophils_10e9_l outside 0–5 range — rejected with validation error","Invalid emrcd enum value (must be '1-4', '5a', or '5b') — returns 4xx","Payment not provided or insufficient USDC — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citable DECAF score per Steer 2012 for an AECOPD patient, especially in automated workflows requiring audit-grade arithmetic without manual lookup. Prefer it over general-purpose LLM computation when reproducibility and a published citation are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:12:45.675Z","isFirstParty":false}