{"uid":"cap_8NU2Qe2KGIJvom9A-J5Oo","slug":"idf-dar-fasting-risk-score-hassanein-2021-c5b949c1","name":"IDF-DAR Fasting Risk Score (Hassanein 2021)","description":"Hassanein 2021 IDF-DAR fasting risk table: type 1 scores 1; duration ≥10 scores 1; hypoglycemia 0/1/3.5/5.5/6.5; HbA1c band 0/1/2; treatment 0/0.5/1/1.5/2/2.5/3; SMBG 0/1/2; DKA/HONC 0/1/2/3; MVD 0/2/6.5; eGFR band 0/2/4/6.5; pregnancy 0/3.5/6.5; frailty 0/3.5/6.5; labour 0/2/4; prior negative Ramadan 1; fasting ≥16 h 1. Low 0–3, moderate 3.5–6, high >6. Caller-assigned; not a fasting order or insulin dose.","url":"https://api.magentlab.com/api/calc/idf_dar","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","type_1_diabetes","duration_ge_10","hypoglycemia","glycaemic_control","treatment","smbg","acute_complication","mvd","renal","pregnancy","impaired_cognition_or_frail","home_support","physical_labor","previous_ramadan_negative","fasting_hours_ge_16"],"properties":{"age":{"type":"integer","description":"Age in years (integer 18-120). Hassanein 2021 frailty band: age >70 with no home support scores 3.5 unless impaired_cognition_or_frail is true (6.5). Age 70 does not enter that band. magent does not read a chart."},"mvd":{"enum":["none","stable","unstable"],"type":"string","description":"Caller-assigned macrovascular disease (Hassanein 2021). none 0; stable 2; unstable 6.5."},"smbg":{"enum":["as_indicated","suboptimal","not_conducted"],"type":"string","description":"Caller-assigned self-monitoring of blood glucose (Hassanein 2021). as_indicated 0; suboptimal 1; not_conducted 2. magent does not assay glucose."},"renal":{"enum":["egfr_gt_60","egfr_45_to_60","egfr_30_to_45","egfr_lt_30"],"type":"string","description":"Caller-assigned eGFR band in mL/min (Hassanein 2021). egfr_gt_60 (>60) 0; egfr_45_to_60 (45–60) 2; egfr_30_to_45 (30–45) 4; egfr_lt_30 (<30) 6.5. magent does not compute eGFR."},"pregnancy":{"enum":["not_pregnant","within_targets","not_within_targets"],"type":"string","description":"Caller-assigned pregnancy band (Hassanein 2021). not_pregnant 0; within_targets 3.5; not_within_targets 6.5. magent does not advise fasting."},"treatment":{"enum":["other","gliclazide_class","glibenclamide","basal_insulin","once_daily_mixed","basal_bolus_pump","multiple_daily_mixed"],"type":"string","description":"Caller-assigned treatment (Hassanein 2021). other (diet or metformin-class, no SU or insulin) 0; gliclazide_class (gliclazide/MR, glimepiride, or repaglinide) 0.5; glibenclamide 1; basal_insulin 1.5; once_daily_mixed 2; basal_bolus_pump 2.5; multiple_daily_mixed 3. Not an insulin dose."},"home_support":{"type":"boolean","description":"Caller-assigned home support (Hassanein 2021). When age >70 and this is false and impaired_cognition_or_frail is false, frailty scores 3.5. true or false."},"hypoglycemia":{"enum":["none","lt_weekly","multiple_weekly","recent_severe","unawareness"],"type":"string","description":"Caller-assigned hypoglycemia history (Hassanein 2021; highest applicable). none 0; lt_weekly (less than once per week) 1; multiple_weekly 3.5; recent_severe 5.5; unawareness 6.5. magent does not assay glucose."},"duration_ge_10":{"type":"boolean","description":"Caller-assigned diabetes duration ≥10 years (Hassanein 2021). true scores 1; false (<10 years) scores 0."},"physical_labor":{"enum":["none","moderate","high"],"type":"string","description":"Caller-assigned physical labour (Hassanein 2021). none 0; moderate 2; high 4."},"type_1_diabetes":{"type":"boolean","description":"Caller-assigned diabetes type (Hassanein 2021). true is type 1 and scores 1; false is type 2 and scores 0. magent does not diagnose diabetes."},"glycaemic_control":{"enum":["lt_7_5","7_5_to_9","gt_9"],"type":"string","description":"Caller-assigned HbA1c band (Hassanein 2021). lt_7_5 (<7.5%) scores 0; 7_5_to_9 (7.5–9%) scores 1; gt_9 (>9%) scores 2. magent does not assay glucose or HbA1c."},"acute_complication":{"enum":["none","last_12_months","last_6_months","last_3_months"],"type":"string","description":"Caller-assigned DKA or HONC recency (Hassanein 2021). none 0; last_12_months 1; last_6_months 2; last_3_months 3."},"fasting_hours_ge_16":{"type":"boolean","description":"Caller-assigned fasting hours ≥16 (location; Hassanein 2021). true scores 1; false (<16 hours) scores 0. magent does not advise fasting."},"previous_ramadan_negative":{"type":"boolean","description":"Caller-assigned overall negative previous Ramadan experience (Hassanein 2021). true scores 1; false scores 0."},"impaired_cognition_or_frail":{"type":"boolean","description":"Caller-assigned impaired cognitive function or frailty (Hassanein 2021). true scores 6.5 and supersedes the age>70 / no-home-support band."}}}},"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_Jgz8R4odYAaf4pHXMDzhV","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 IDF-DAR 2021 fasting risk score for diabetic patients considering Ramadan fasting, returning a numeric total and low/moderate/high risk tier.","exampleAgentPrompt":"Calculate the IDF-DAR 2021 Ramadan fasting risk score for a 58-year-old type 2 diabetic patient who has had diabetes for 12 years, is on basal-bolus insulin, has moderate hypoglycemia history (score 3.5), HbA1c in the fair band (1 point), does SMBG suboptimally, no acute complications, stable macrovascular disease, eGFR above 60, not pregnant, not frail, has home support, does non-physical labour, no prior negative Ramadan experience, and plans to fast under 16 hours.","exampleUseCases":[{"title":"Pre-Ramadan clinic risk triage","prompt":"I need the IDF-DAR fasting risk score for a 72-year-old type 1 diabetic who has had diabetes for 15 years, is on a basal-bolus pump, has had severe hypoglycemia (6.5 points), poor glycaemic control (HbA1c band 2), doesn't do SMBG, had a prior DKA episode (2 points), has unstable macrovascular disease, eGFR between 30 and 45, is not pregnant, is cognitively impaired and frail, has no home support, does light work, has had a negative Ramadan before, and plans to fast 16 or more hours."},{"title":"Moderate-risk renal patient assessment","prompt":"Score this patient on the Hassanein 2021 IDF-DAR table: 55-year-old type 2 diabetic, diabetes for 8 years, on gliclazide-class medication, mild hypoglycemia history (1 point), HbA1c in the good band (0 points), SMBG as indicated, no acute complications, no macrovascular disease, eGFR between 45 and 60, not pregnant, not frail, has home support, sedentary job, no prior negative Ramadan, fasting under 16 hours."},{"title":"Pregnant diabetic fasting risk evaluation","prompt":"What is the IDF-DAR fasting risk category for a 30-year-old type 2 diabetic who has had diabetes for 5 years, is on once-daily mixed insulin, no hypoglycemia history, fair glycaemic control (1 point), suboptimal SMBG, no acute complications, no macrovascular disease, eGFR above 60, pregnant but not within glycaemic targets, not frail, has home support, light physical labour, no prior negative Ramadan, and plans fasting under 16 hours?"}],"resultDescription":"Returns the numeric IDF-DAR total score and the corresponding risk tier (low: 0–3, moderate: 3.5–6, high: >6) based on the Hassanein 2021 scoring table. Component subscores for each domain (hypoglycemia, glycaemic control, treatment, SMBG, acute complications, macrovascular disease, renal, pregnancy, frailty, labour, prior Ramadan, fasting duration) may also be included. The endpoint does not issue clinical recommendations or fasting orders.","failureModes":["Missing required query parameters return a 400 error","Invalid enum values for categorical fields (e.g. unknown renal band) return a validation error","Age outside 18–120 range may return an error or unexpected result","No score is returned if required fields are absent","Network or payment (x402) errors may prevent response delivery"],"whenToPreferThis":"Use this endpoint when you need a structured, rule-based computation of the IDF-DAR 2021 Hassanein fasting risk score for a diabetic patient and have already pre-classified all categorical inputs (eGFR band, treatment regimen, SMBG frequency, etc.). It is not a substitute for clinical judgement, does not compute eGFR or assay lab values, and does not issue fasting or insulin recommendations. Prefer this over manual table lookup when integrating risk stratification into an automated clinical or health workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:02:20.023Z","isFirstParty":false}