{"uid":"cap_KExQ6jr_bX4VapXNDZZjA","slug":"bard-score-calculator-for-nafld-advanced-fibrosis-cee76669","name":"BARD Score Calculator for NAFLD Advanced Fibrosis","description":"Harrison 2008 BARD score for NAFLD advanced fibrosis: BMI ≥28 kg/m² (1), AST/ALT ≥0.8 (2), diabetes mellitus (1); max 4. Low 0–1, high 2–4 (paper 2–4 vs 0–1 split). Not a NASH diagnosis; magent does not interpret a biopsy or compute BMI. Not FIB-4, APRI, or the NAFLD fibrosis score.","url":"https://api.magentlab.com/api/calc/bard","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":["bmi","ast_u_l","alt_u_l","diabetes"],"properties":{"bmi":{"type":"number","description":"Body-mass index in kg/m^2 (10-80). >=28 scores 1 (Harrison 2008). 27.9 scores 0. Caller-supplied; magent does not compute BMI from height and weight."},"alt_u_l":{"type":"number","description":"Alanine aminotransferase in U/L (1-10000). AST/ALT >= 0.8 scores 2 (Harrison 2008). 0.799 scores 0. ALT must be >0."},"ast_u_l":{"type":"number","description":"Aspartate aminotransferase in U/L (1-10000). Used with ALT for the AAR."},"diabetes":{"type":"boolean","description":"Diabetes mellitus as assigned by the caller (Harrison 2008). true scores 1. magent does not diagnose diabetes."}}}},"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_h1iU6Hp2gVyLxHNAfTewC","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 Harrison 2008 BARD score (0–4) for predicting advanced fibrosis in NAFLD using BMI, AST/ALT ratio, and diabetes status","exampleAgentPrompt":"Calculate the BARD score for a patient with a BMI of 31.2 kg/m², AST of 55 U/L, ALT of 42 U/L, and a confirmed diagnosis of diabetes mellitus — I need to know if they're in the low or high risk category for advanced NAFLD fibrosis.","exampleUseCases":[{"title":"NAFLD fibrosis risk triage in clinic","prompt":"My patient has a BMI of 29.5, AST of 48 U/L, ALT of 60 U/L, and no diabetes. What is their BARD score and are they at low or high risk for advanced liver fibrosis?"},{"title":"EHR-integrated NAFLD risk flagging","prompt":"Run the BARD score for a patient with BMI 33, AST 70 U/L, ALT 45 U/L, and diabetes — I want to flag them automatically if their score is 2 or higher."},{"title":"Research cohort fibrosis stratification","prompt":"Compute the Harrison 2008 BARD score for a study participant: BMI 25.8 kg/m², AST 38 U/L, ALT 52 U/L, no diabetes diagnosis. What's their fibrosis risk stratum?"}],"resultDescription":"Returns a BARD score integer from 0 to 4 and a risk stratum (low: 0–1, high: 2–4) based on the Harrison 2008 criteria: BMI ≥28 contributes 1 point, AST/ALT ratio ≥0.8 contributes 2 points, and diabetes mellitus contributes 1 point. Does not diagnose NASH, interpret biopsy results, or compute BMI from height and weight.","failureModes":["Missing required query parameters (bmi, ast_u_l, alt_u_l, diabetes) returns a 400 error","ALT value of 0 causes division-by-zero in AST/ALT ratio — must be >0","BMI outside range 10–80 may be rejected or produce unexpected results","AST or ALT outside range 1–10000 may be rejected","Payment not provided or insufficient USDC results in 402 Payment Required","Boolean diabetes field passed as string instead of true/false may cause parsing error"],"whenToPreferThis":"Use this endpoint when you need the specific Harrison 2008 BARD score for NAFLD advanced fibrosis risk stratification, distinct from FIB-4, APRI, or the NAFLD Fibrosis Score (NFS). Prefer this when a clinical workflow or guideline explicitly references the BARD score or when comparing non-invasive fibrosis markers in research settings. It is appropriate when BMI, AST, ALT, and diabetes status are already available from the EHR or caller, and no biopsy interpretation or BMI computation is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:48:03.199Z","isFirstParty":false}