{
  "x402Version": 2,
  "id": 39096,
  "slug": "39096",
  "resource": "https://api.magentlab.com/api/calc/idf_dar",
  "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "acute_complication": "none",
                "age": 50,
                "duration_ge_10": false,
                "fasting_hours_ge_16": false,
                "glycaemic_control": "lt_7_5",
                "home_support": true,
                "hypoglycemia": "none",
                "impaired_cognition_or_frail": false,
                "mvd": "none",
                "physical_labor": "none",
                "pregnancy": "not_pregnant",
                "previous_ramadan_negative": false,
                "renal": "egfr_gt_60",
                "smbg": "as_indicated",
                "treatment": "other",
                "type_1_diabetes": false
              },
              {
                "acute_complication": "none",
                "age": 50,
                "duration_ge_10": false,
                "fasting_hours_ge_16": false,
                "glycaemic_control": "lt_7_5",
                "home_support": true,
                "hypoglycemia": "none",
                "impaired_cognition_or_frail": false,
                "mvd": "none",
                "physical_labor": "none",
                "pregnancy": "not_pregnant",
                "previous_ramadan_negative": false,
                "renal": "egfr_gt_60",
                "smbg": "as_indicated",
                "treatment": "other",
                "type_1_diabetes": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al.",
                  "doi": "10.1016/j.diabres.2021.109185",
                  "id": "hassanein-2021",
                  "pmid": "35016991",
                  "source": "Diabetes Res Clin Pract. 2022;185:109185",
                  "title": "Diabetes and Ramadan: Practical guidelines 2021"
                },
                "components": [
                  {
                    "factor": "diabetes_type",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "duration",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "hypoglycemia",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "glycaemic_control",
                    "points": 0,
                    "present": false,
                    "value": "lt_7_5"
                  },
                  {
                    "factor": "treatment",
                    "points": 0,
                    "present": false,
                    "value": "other"
                  },
                  {
                    "factor": "smbg",
                    "points": 0,
                    "present": false,
                    "value": "as_indicated"
                  },
                  {
                    "factor": "acute_complication",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "mvd",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "renal",
                    "points": 0,
                    "present": false,
                    "value": "egfr_gt_60"
                  },
                  {
                    "factor": "pregnancy",
                    "points": 0,
                    "present": false,
                    "value": "not_pregnant"
                  },
                  {
                    "factor": "frailty",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "physical_labor",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "previous_ramadan",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "fasting_hours",
                    "points": 0,
                    "present": false,
                    "value": 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": "idf_dar",
                "formula_expression": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table",
                "max_score": 50.5,
                "risk": "low",
                "score": 0
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al.",
                  "doi": "10.1016/j.diabres.2021.109185",
                  "id": "hassanein-2021",
                  "pmid": "35016991",
                  "source": "Diabetes Res Clin Pract. 2022;185:109185",
                  "title": "Diabetes and Ramadan: Practical guidelines 2021"
                },
                "components": [
                  {
                    "factor": "diabetes_type",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "duration",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "hypoglycemia",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "glycaemic_control",
                    "points": 0,
                    "present": false,
                    "value": "lt_7_5"
                  },
                  {
                    "factor": "treatment",
                    "points": 0,
                    "present": false,
                    "value": "other"
                  },
                  {
                    "factor": "smbg",
                    "points": 0,
                    "present": false,
                    "value": "as_indicated"
                  },
                  {
                    "factor": "acute_complication",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "mvd",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "renal",
                    "points": 0,
                    "present": false,
                    "value": "egfr_gt_60"
                  },
                  {
                    "factor": "pregnancy",
                    "points": 0,
                    "present": false,
                    "value": "not_pregnant"
                  },
                  {
                    "factor": "frailty",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "physical_labor",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "previous_ramadan",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "fasting_hours",
                    "points": 0,
                    "present": false,
                    "value": 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": "idf_dar",
                "formula_expression": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table",
                "max_score": 50.5,
                "risk": "low",
                "score": 0
              }
            ],
            "path": "/api/calc/idf_dar"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "acute_complication": {
                          "description": "Caller-assigned DKA or HONC recency (Hassanein 2021). none 0; last_12_months 1; last_6_months 2; last_3_months 3.",
                          "enum": [
                            "none",
                            "last_12_months",
                            "last_6_months",
                            "last_3_months"
                          ],
                          "type": "string"
                        },
                        "age": {
                          "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.",
                          "type": "integer"
                        },
                        "duration_ge_10": {
                          "description": "Caller-assigned diabetes duration ≥10 years (Hassanein 2021). true scores 1; false (<10 years) scores 0.",
                          "type": "boolean"
                        },
                        "fasting_hours_ge_16": {
                          "description": "Caller-assigned fasting hours ≥16 (location; Hassanein 2021). true scores 1; false (<16 hours) scores 0. magent does not advise fasting.",
                          "type": "boolean"
                        },
                        "glycaemic_control": {
                          "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.",
                          "enum": [
                            "lt_7_5",
                            "7_5_to_9",
                            "gt_9"
                          ],
                          "type": "string"
                        },
                        "home_support": {
                          "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.",
                          "type": "boolean"
                        },
                        "hypoglycemia": {
                          "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.",
                          "enum": [
                            "none",
                            "lt_weekly",
                            "multiple_weekly",
                            "recent_severe",
                            "unawareness"
                          ],
                          "type": "string"
                        },
                        "impaired_cognition_or_frail": {
                          "description": "Caller-assigned impaired cognitive function or frailty (Hassanein 2021). true scores 6.5 and supersedes the age>70 / no-home-support band.",
                          "type": "boolean"
                        },
                        "mvd": {
                          "description": "Caller-assigned macrovascular disease (Hassanein 2021). none 0; stable 2; unstable 6.5.",
                          "enum": [
                            "none",
                            "stable",
                            "unstable"
                          ],
                          "type": "string"
                        },
                        "physical_labor": {
                          "description": "Caller-assigned physical labour (Hassanein 2021). none 0; moderate 2; high 4.",
                          "enum": [
                            "none",
                            "moderate",
                            "high"
                          ],
                          "type": "string"
                        },
                        "pregnancy": {
                          "description": "Caller-assigned pregnancy band (Hassanein 2021). not_pregnant 0; within_targets 3.5; not_within_targets 6.5. magent does not advise fasting.",
                          "enum": [
                            "not_pregnant",
                            "within_targets",
                            "not_within_targets"
                          ],
                          "type": "string"
                        },
                        "previous_ramadan_negative": {
                          "description": "Caller-assigned overall negative previous Ramadan experience (Hassanein 2021). true scores 1; false scores 0.",
                          "type": "boolean"
                        },
                        "renal": {
                          "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.",
                          "enum": [
                            "egfr_gt_60",
                            "egfr_45_to_60",
                            "egfr_30_to_45",
                            "egfr_lt_30"
                          ],
                          "type": "string"
                        },
                        "smbg": {
                          "description": "Caller-assigned self-monitoring of blood glucose (Hassanein 2021). as_indicated 0; suboptimal 1; not_conducted 2. magent does not assay glucose.",
                          "enum": [
                            "as_indicated",
                            "suboptimal",
                            "not_conducted"
                          ],
                          "type": "string"
                        },
                        "treatment": {
                          "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.",
                          "enum": [
                            "other",
                            "gliclazide_class",
                            "glibenclamide",
                            "basal_insulin",
                            "once_daily_mixed",
                            "basal_bolus_pump",
                            "multiple_daily_mixed"
                          ],
                          "type": "string"
                        },
                        "type_1_diabetes": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "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"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "idf-dar",
    "ramadan",
    "diabetes",
    "fasting-risk",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T06:32:05.735Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T06:32:05.506Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "acute_complication": "none",
                  "age": 50,
                  "duration_ge_10": false,
                  "fasting_hours_ge_16": false,
                  "glycaemic_control": "lt_7_5",
                  "home_support": true,
                  "hypoglycemia": "none",
                  "impaired_cognition_or_frail": false,
                  "mvd": "none",
                  "physical_labor": "none",
                  "pregnancy": "not_pregnant",
                  "previous_ramadan_negative": false,
                  "renal": "egfr_gt_60",
                  "smbg": "as_indicated",
                  "treatment": "other",
                  "type_1_diabetes": false
                },
                {
                  "acute_complication": "none",
                  "age": 50,
                  "duration_ge_10": false,
                  "fasting_hours_ge_16": false,
                  "glycaemic_control": "lt_7_5",
                  "home_support": true,
                  "hypoglycemia": "none",
                  "impaired_cognition_or_frail": false,
                  "mvd": "none",
                  "physical_labor": "none",
                  "pregnancy": "not_pregnant",
                  "previous_ramadan_negative": false,
                  "renal": "egfr_gt_60",
                  "smbg": "as_indicated",
                  "treatment": "other",
                  "type_1_diabetes": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al.",
                    "doi": "10.1016/j.diabres.2021.109185",
                    "id": "hassanein-2021",
                    "pmid": "35016991",
                    "source": "Diabetes Res Clin Pract. 2022;185:109185",
                    "title": "Diabetes and Ramadan: Practical guidelines 2021"
                  },
                  "components": [
                    {
                      "factor": "diabetes_type",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "duration",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "hypoglycemia",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "glycaemic_control",
                      "points": 0,
                      "present": false,
                      "value": "lt_7_5"
                    },
                    {
                      "factor": "treatment",
                      "points": 0,
                      "present": false,
                      "value": "other"
                    },
                    {
                      "factor": "smbg",
                      "points": 0,
                      "present": false,
                      "value": "as_indicated"
                    },
                    {
                      "factor": "acute_complication",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "mvd",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "renal",
                      "points": 0,
                      "present": false,
                      "value": "egfr_gt_60"
                    },
                    {
                      "factor": "pregnancy",
                      "points": 0,
                      "present": false,
                      "value": "not_pregnant"
                    },
                    {
                      "factor": "frailty",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "physical_labor",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "previous_ramadan",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "fasting_hours",
                      "points": 0,
                      "present": false,
                      "value": 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": "idf_dar",
                  "formula_expression": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table",
                  "max_score": 50.5,
                  "risk": "low",
                  "score": 0
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al.",
                    "doi": "10.1016/j.diabres.2021.109185",
                    "id": "hassanein-2021",
                    "pmid": "35016991",
                    "source": "Diabetes Res Clin Pract. 2022;185:109185",
                    "title": "Diabetes and Ramadan: Practical guidelines 2021"
                  },
                  "components": [
                    {
                      "factor": "diabetes_type",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "duration",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "hypoglycemia",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "glycaemic_control",
                      "points": 0,
                      "present": false,
                      "value": "lt_7_5"
                    },
                    {
                      "factor": "treatment",
                      "points": 0,
                      "present": false,
                      "value": "other"
                    },
                    {
                      "factor": "smbg",
                      "points": 0,
                      "present": false,
                      "value": "as_indicated"
                    },
                    {
                      "factor": "acute_complication",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "mvd",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "renal",
                      "points": 0,
                      "present": false,
                      "value": "egfr_gt_60"
                    },
                    {
                      "factor": "pregnancy",
                      "points": 0,
                      "present": false,
                      "value": "not_pregnant"
                    },
                    {
                      "factor": "frailty",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "physical_labor",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "previous_ramadan",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "fasting_hours",
                      "points": 0,
                      "present": false,
                      "value": 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": "idf_dar",
                  "formula_expression": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table",
                  "max_score": 50.5,
                  "risk": "low",
                  "score": 0
                }
              ],
              "path": "/api/calc/idf_dar"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "acute_complication": {
                            "description": "Caller-assigned DKA or HONC recency (Hassanein 2021). none 0; last_12_months 1; last_6_months 2; last_3_months 3.",
                            "enum": [
                              "none",
                              "last_12_months",
                              "last_6_months",
                              "last_3_months"
                            ],
                            "type": "string"
                          },
                          "age": {
                            "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.",
                            "type": "integer"
                          },
                          "duration_ge_10": {
                            "description": "Caller-assigned diabetes duration ≥10 years (Hassanein 2021). true scores 1; false (<10 years) scores 0.",
                            "type": "boolean"
                          },
                          "fasting_hours_ge_16": {
                            "description": "Caller-assigned fasting hours ≥16 (location; Hassanein 2021). true scores 1; false (<16 hours) scores 0. magent does not advise fasting.",
                            "type": "boolean"
                          },
                          "glycaemic_control": {
                            "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.",
                            "enum": [
                              "lt_7_5",
                              "7_5_to_9",
                              "gt_9"
                            ],
                            "type": "string"
                          },
                          "home_support": {
                            "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.",
                            "type": "boolean"
                          },
                          "hypoglycemia": {
                            "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.",
                            "enum": [
                              "none",
                              "lt_weekly",
                              "multiple_weekly",
                              "recent_severe",
                              "unawareness"
                            ],
                            "type": "string"
                          },
                          "impaired_cognition_or_frail": {
                            "description": "Caller-assigned impaired cognitive function or frailty (Hassanein 2021). true scores 6.5 and supersedes the age>70 / no-home-support band.",
                            "type": "boolean"
                          },
                          "mvd": {
                            "description": "Caller-assigned macrovascular disease (Hassanein 2021). none 0; stable 2; unstable 6.5.",
                            "enum": [
                              "none",
                              "stable",
                              "unstable"
                            ],
                            "type": "string"
                          },
                          "physical_labor": {
                            "description": "Caller-assigned physical labour (Hassanein 2021). none 0; moderate 2; high 4.",
                            "enum": [
                              "none",
                              "moderate",
                              "high"
                            ],
                            "type": "string"
                          },
                          "pregnancy": {
                            "description": "Caller-assigned pregnancy band (Hassanein 2021). not_pregnant 0; within_targets 3.5; not_within_targets 6.5. magent does not advise fasting.",
                            "enum": [
                              "not_pregnant",
                              "within_targets",
                              "not_within_targets"
                            ],
                            "type": "string"
                          },
                          "previous_ramadan_negative": {
                            "description": "Caller-assigned overall negative previous Ramadan experience (Hassanein 2021). true scores 1; false scores 0.",
                            "type": "boolean"
                          },
                          "renal": {
                            "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.",
                            "enum": [
                              "egfr_gt_60",
                              "egfr_45_to_60",
                              "egfr_30_to_45",
                              "egfr_lt_30"
                            ],
                            "type": "string"
                          },
                          "smbg": {
                            "description": "Caller-assigned self-monitoring of blood glucose (Hassanein 2021). as_indicated 0; suboptimal 1; not_conducted 2. magent does not assay glucose.",
                            "enum": [
                              "as_indicated",
                              "suboptimal",
                              "not_conducted"
                            ],
                            "type": "string"
                          },
                          "treatment": {
                            "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.",
                            "enum": [
                              "other",
                              "gliclazide_class",
                              "glibenclamide",
                              "basal_insulin",
                              "once_daily_mixed",
                              "basal_bolus_pump",
                              "multiple_daily_mixed"
                            ],
                            "type": "string"
                          },
                          "type_1_diabetes": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "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"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}