{"uid":"cap_Sb1gKxvizfw8q2-1c3qX4","slug":"ada-diabetes-risk-score-bang-2009-table-2-a2bb60d8","name":"ADA Diabetes Risk Score (Bang 2009 Table 2)","description":"Bang 2009 Table 2 development screening score for undiagnosed diabetes. Age (<40 → 0, 40–49 → 1, 50–59 → 2, ≥60 → 3); male 1; family history of diabetes 1; hypertension 1; BMI (≥40 extremely obese 3; 30–<40 obese 2; 25–<30 overweight 1; else 0); physically active −1. Returns score and high_risk (true iff score ≥ 5). BMI-only, no waist. Not Appendix ARIC/CHS, not a diagnosis.","url":"https://api.magentlab.com/api/calc/ada_diabetes","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","sex","bmi_kg_m2","family_history_diabetes","hypertension","physically_active"],"properties":{"age":{"type":"integer","description":"Age in years (20-120). Bang 2009 Table 2: <40 scores 0; 40-49 scores 1; 50-59 scores 2; ≥60 scores 3. Age 40 and 49 score 1; 50 and 59 score 2; 60 scores 3."},"sex":{"enum":["female","male"],"type":"string","description":"female or male. Bang 2009 Table 2: female scores 0; male scores 1."},"bmi_kg_m2":{"type":"number","description":"Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Bang 2009 Table 2 obesity from BMI only (no waist): ≥40 extremely obese scores 3; 30 ≤ BMI < 40 obese scores 2; 25 ≤ BMI < 30 overweight scores 1; else 0. 25.0 scores 1; 30.0 scores 2; 40.0 scores 3."},"hypertension":{"type":"boolean","description":"History of hypertension (Bang 2009 Table 2). true scores 1; false scores 0. magent does not read a medication list or measure blood pressure."},"physically_active":{"type":"boolean","description":"Physically active (Bang 2009 Table 2). true scores −1; false scores 0. The total may be −1."},"family_history_diabetes":{"type":"boolean","description":"Family history of diabetes (Bang 2009 Table 2). true scores 1; false scores 0."}}}},"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_FSwoG9mTEBkz-77PmKCyB","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 Bang 2009 Table 2 undiagnosed diabetes screening score from age, sex, BMI, family history, hypertension, and physical activity, returning the total score and a high-risk flag (score ≥ 5).","exampleAgentPrompt":"Can you run the Bang 2009 ADA diabetes screening score for a 54-year-old male with a BMI of 31.2, a family history of diabetes, hypertension, and who is not physically active?","exampleUseCases":[{"title":"Pre-visit diabetes risk triage","prompt":"Before the patient's appointment, calculate their undiagnosed diabetes risk score using the Bang 2009 method — she's 62 years old, female, BMI is 27.5, has a family history of diabetes, no hypertension, and is physically active."},{"title":"Population health screening pipeline","prompt":"I'm running a screening on our clinic population — score this individual for undiagnosed diabetes risk: age 47, male, BMI 38.0, no family history of diabetes, hypertension positive, not physically active. Tell me if they're high risk."},{"title":"Wellness app risk check","prompt":"A user on our wellness app wants to know their ADA diabetes risk score. They entered: age 35, female, BMI 24.0, no family history, no hypertension, and physically active. What's their Bang 2009 score and are they high risk?"}],"resultDescription":"Returns a numeric total screening score (which can range from −1 to 10) calculated by summing age-band points (0–3), sex points (male = 1), family history points (1 if true), hypertension points (1 if true), BMI-band points (0–3), and physical activity deduction (−1 if active). Also returns a boolean field high_risk that is true when the total score is 5 or higher, indicating elevated risk for undiagnosed diabetes per Bang 2009 Table 2.","failureModes":["Missing required query parameters (age, sex, bmi_kg_m2, family_history_diabetes, hypertension, physically_active) returns a 400 validation error","Age outside valid range 20–120 or BMI outside 10–80 rejected with validation error","Invalid enum value for sex (not 'male' or 'female') returns error","Payment not included or insufficient USDC balance returns 402 Payment Required","Network timeout or server error returns 5xx; retry with same parameters is safe since endpoint is idempotent"],"whenToPreferThis":"Choose this endpoint when you need a validated, well-documented implementation of the Bang 2009 Table 2 diabetes screening score specifically using BMI (not waist circumference) as the obesity criterion. It is the right choice for clinical decision-support tools, pre-visit risk triage, or population-level screening pipelines that need a reproducible score with a clear high-risk threshold. Prefer alternatives if you need waist-based obesity criteria (ARIC/CHS appendix methodology), an HbA1c-based risk tool, or actual diabetes diagnosis logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:14:14.885Z","isFirstParty":false}