{"uid":"cap_T3r0UdMhtK1Orp85oglm9","slug":"hardin-2019-scarf-score-calculator-2fad9c99","name":"Hardin 2019 SCARF Score Calculator","description":"Hardin 2019 SCARF from four caller-assigned flags (incentive spirometry <50% predicted, respiratory rate >20, numeric pain score ≥5, inadequate cough). 1 point each, total 0-4. Proposed threshold is score greater than 2. magent does not measure spirometry or examine the chest. Not a named risk class, analgesia order, or SSRF order.","url":"https://api.magentlab.com/api/calc/scarf","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":["incentive_spirometry_lt_50_predicted","respiratory_rate_gt_20","pain_score_ge_5","inadequate_cough"],"properties":{"pain_score_ge_5":{"type":"boolean","description":"Numeric pain score ≥5 as assigned by the caller (Hardin 2019). true or false. magent does not score pain."},"inadequate_cough":{"type":"boolean","description":"Inadequate cough (unable to clear secretions) as assigned by the caller (Hardin 2019). true or false. magent does not examine the chest or cough."},"respiratory_rate_gt_20":{"type":"boolean","description":"Respiratory rate >20 breaths/min as assigned by the caller (Hardin 2019). true or false. magent does not count respiratory rate."},"incentive_spirometry_lt_50_predicted":{"type":"boolean","description":"Incentive spirometry volume <50% of predicted as assigned by the caller (Hardin 2019). true or false. magent does not measure incentive spirometry."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_oqSk6dJU4oGg_zw6GbxYv","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 4-point SCARF score (Hardin 2019) for post-surgical respiratory complication risk from four caller-assigned boolean flags","exampleAgentPrompt":"My postop patient has incentive spirometry below 50% predicted, a respiratory rate over 20, a pain score of 7, and can't clear secretions adequately — can you calculate their SCARF score using the Hardin 2019 criteria?","exampleUseCases":[{"title":"Postoperative respiratory triage","prompt":"I have a patient who just came out of surgery: their spirometry is below 50% predicted, respiratory rate is 22, pain score is 6, but they have an adequate cough — what is their SCARF score and do they exceed the risk threshold?"},{"title":"Automated clinical documentation","prompt":"For our surgical patient record, calculate the Hardin 2019 SCARF score: incentive spirometry is above 50%, respiratory rate is normal, pain score is 3, and cough is adequate."},{"title":"Risk stratification workflow","prompt":"Flag this ICU patient for pulmonary complication risk using SCARF — they have inadequate cough, respiratory rate over 20, pain score of 8, and spirometry below half of predicted."}],"resultDescription":"Returns the integer SCARF score (0–4) summing the four boolean flags, each worth 1 point. A score greater than 2 meets the Hardin 2019 proposed high-risk threshold for surgical respiratory failure. Does not include spirometry measurements, pain assessment, chest examination, or clinical orders.","failureModes":["Missing required boolean flags returns a validation error","Non-boolean input for any flag causes a schema error","All four flags must be explicitly provided; defaults are not assumed","Score is caller-dependent — incorrect clinical assessment upstream leads to inaccurate results"],"whenToPreferThis":"Use this endpoint when you have already assessed a postoperative or surgical patient for the four SCARF criteria (spirometry volume, respiratory rate, pain score, cough adequacy) and need to aggregate them into a validated integer risk score. Prefer this over manual summation when building clinical decision-support workflows, automated documentation pipelines, or risk-stratification triggers for respiratory monitoring. This endpoint does not replace clinical assessment — it only performs the arithmetic aggregation and threshold comparison defined by Hardin 2019.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:04:41.353Z","isFirstParty":false}