{"uid":"cap_4ds3UKCcyev4YGR7PRIer","slug":"has-bled-score-calculator-5686cd87","name":"HAS-BLED Score Calculator","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/has_bled?utm_source=zero.xyz","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":["age","hypertension","abnormal_renal","abnormal_liver","stroke","bleeding","labile_inr","drugs","alcohol"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Age >65 scores 1 (E)."},"drugs":{"type":"boolean","description":"Concomitant antiplatelet or NSAID (D). true or false."},"stroke":{"type":"boolean","description":"Prior stroke (S). true or false."},"alcohol":{"type":"boolean","description":"Alcohol excess (D). true or false. Drugs and alcohol each score 1."},"bleeding":{"type":"boolean","description":"Bleeding history or predisposition (B). true or false."},"labile_inr":{"type":"boolean","description":"Labile INR (L). true or false."},"hypertension":{"type":"boolean","description":"Uncontrolled hypertension (H). true or false."},"abnormal_liver":{"type":"boolean","description":"Abnormal liver function (A). true or false. Renal and liver each score 1."},"abnormal_renal":{"type":"boolean","description":"Abnormal renal function (A). true or false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/has_bled","count":2,"items":[{"score":2,"formula":"has_bled","citation":{"id":"pisters-2010","doi":"10.1378/chest.10-0134","title":"A novel user-friendly score (HAS-BLED) to assess 1-year risk of major bleeding in patients with atrial fibrillation: the Euro Heart Survey","source":"Chest. 2010;138(5):1093-1100","authors":"Pisters R, Lane DA, Nieuwlaat R, de Vos CB, Crijns HJ, Lip GYH"},"age_years":78,"max_score":9,"components":[{"factor":"hypertension","points":1,"present":true},{"factor":"abnormal_renal","points":0,"present":false},{"factor":"abnormal_liver","points":0,"present":false},{"factor":"stroke","points":0,"present":false},{"factor":"bleeding","points":0,"present":false},{"factor":"labile_inr","points":0,"present":false},{"value":78,"factor":"elderly_age_gt_65","points":1,"present":true},{"factor":"drugs","points":0,"present":false},{"factor":"alcohol","points":0,"present":false}],"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.","formula_expression":"HAS-BLED = hypertension + abnormal_renal + abnormal_liver + stroke + bleeding + labile_inr + elderly(age>65) + drugs + alcohol; max 9"},{"score":2,"formula":"has_bled","citation":{"id":"pisters-2010","doi":"10.1378/chest.10-0134","title":"A novel user-friendly score (HAS-BLED) to assess 1-year risk of major bleeding in patients with atrial fibrillation: the Euro Heart Survey","source":"Chest. 2010;138(5):1093-1100","authors":"Pisters R, Lane DA, Nieuwlaat R, de Vos CB, Crijns HJ, Lip GYH"},"age_years":78,"max_score":9,"components":[{"factor":"hypertension","points":1,"present":true},{"factor":"abnormal_renal","points":0,"present":false},{"factor":"abnormal_liver","points":0,"present":false},{"factor":"stroke","points":0,"present":false},{"factor":"bleeding","points":0,"present":false},{"factor":"labile_inr","points":0,"present":false},{"value":78,"factor":"elderly_age_gt_65","points":1,"present":true},{"factor":"drugs","points":0,"present":false},{"factor":"alcohol","points":0,"present":false}],"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.","formula_expression":"HAS-BLED = hypertension + abnormal_renal + abnormal_liver + stroke + bleeding + labile_inr + elderly(age>65) + drugs + alcohol; max 9"}]}},"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_fzM3tTHYoFHkS9e8OZBwj","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 HAS-BLED bleeding risk score for patients with atrial fibrillation from discrete clinical flags","exampleAgentPrompt":"Calculate the HAS-BLED bleeding risk score for a 68-year-old patient with uncontrolled hypertension and a prior stroke, no abnormal renal or liver function, no bleeding history, labile INR, taking an antiplatelet agent, and no alcohol excess.","exampleUseCases":[{"title":"Pre-anticoagulation bleeding risk check","prompt":"Before starting this 74-year-old AF patient on warfarin, calculate their HAS-BLED score — they have uncontrolled hypertension, a prior stroke, no renal or liver problems, stable INR, no bleeding history, no NSAIDs, and no alcohol use."},{"title":"High-risk AF patient stratification","prompt":"I need the HAS-BLED score for a 71-year-old with atrial fibrillation who has abnormal liver function, abnormal renal function, prior bleeding history, labile INR, drinks heavily, and is on an antiplatelet — no hypertension or stroke history."},{"title":"Annual anticoagulation review reassessment","prompt":"Reassess this 66-year-old AF patient's HAS-BLED score for their annual anticoagulation review: no hypertension, no stroke, normal renal and liver function, stable INR, no bleeding history, takes NSAIDs daily, and no alcohol excess."}],"resultDescription":"Returns the computed HAS-BLED score (integer 0–9) based on the nine clinical flags, along with a risk interpretation (e.g., low, moderate, or high bleeding risk) and a citation to the published scoring system.","failureModes":["Missing required query parameters returns a 400 error","Age outside valid range (18–120) causes a validation error","Non-boolean values passed to boolean fields cause a schema validation error","Payment not included or insufficient USDC causes a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed HAS-BLED bleeding risk score for an atrial fibrillation patient — particularly when deciding whether to initiate or continue anticoagulation therapy. Prefer this over general-purpose LLM reasoning for clinical scoring, as it guarantees the published formula is applied correctly and consistently.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:30:24.870Z","isFirstParty":false,"canonicalSlug":"has-bled-score-calculator-5686cd87"}