MAGENT

Electrolytes / glucose · LIVE

AUSDRISK Australian type 2 diabetes risk

AUSDRISK

Sum the Chen 2010 AUSDRISK Box 3 questionnaire points (waist model) and return at_risk when the total is ≥12.

LIVE $0.005 USDC GET /api/calc/ausdrisk

Markdown: /docs/ausdrisk.md · Canonical: https://magentlab.com/docs/ausdrisk

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Sum the Chen 2010 AUSDRISK Box 3 questionnaire points (waist model) and return at_risk when the total is ≥12.

When to use

When an agent needs the published Chen 2010 AUSDRISK point total and must not invent a type 2 diabetes diagnosis, a 1-in-N government risk statement, or the BMI substitute used only for validation.

When not to use

  • Not a medical device. magent does not diagnose type 2 diabetes or assay glucose.
  • Chen 2010 Box 3 waist model only. Does not add BMI points. The BMI substitute in that paper was used only for validation and is not implemented.
  • at_risk is the paper ROC cutoff (score ≥12), not a type 2 diabetes diagnosis and not a 1-in-N 5-year government risk statement.
  • Ancestry is caller-assigned (atsi_or_asian, southern_european_or_pacific, or other) using the paper's Southern European, Asian, Aboriginal and Torres Strait Islander or Pacific Islander grouping for +2. magent does not assign ancestry. Waist cutoffs for Aboriginal and Torres Strait Islander or Asian descent follow the paper footnote; Southern European or Pacific Islander uses the otherwise cutoffs.
  • Age 18–24 scores 0 (the paper's 25–34 band is 0). Physical inactivity is not meeting at least 2.5 hours of activity per week as in Chen 2010. Not FINDRISC.

Formula

AUSDRISK = sex + age + ancestry + parental_diabetes + history_high_glucose + antihypertensive + current_smoker + physically_inactive + waist; male 3; age 18-34 -> 0, 35-44 -> 2, 45-54 -> 4, 55-64 -> 6, >=65 -> 8; ancestry atsi_or_asian or southern_european_or_pacific 2 else 0; parental_diabetes 3; history_high_glucose 6; antihypertensive 2; current_smoker 2; physically_inactive 2; waist cat1 0 cat2 4 cat3 7 (atsi_or_asian men <90 / >=90 and <100 / >=100, women <80 / >=80 and <90 / >=90; otherwise including southern_european_or_pacific men <102 / >=102 and <110 / >=110, women <88 / >=88 and <100 / >=100); max 35; at_risk iff score>=12; Chen 2010 Box 3 waist model not BMI

Citation

Title
AUSDRISK: an Australian Type 2 Diabetes Risk Assessment Tool based on demographic, lifestyle and simple anthropometric measures
Authors
Chen L, Magliano DJ, Balkau B, Colagiuri S, Zimmet PZ, Tonkin AM, Mitchell P, Phillips PJ, Shaw JE
Source
Med J Aust. 2010;192(4):197-202
DOI
10.5694/j.1326-5377.2010.tb03506.x

Worked example

All 0-point bands

Given: age=30ancestry=otherantihypertensive=falsecurrent_smoker=falsehistory_high_glucose=falseparental_diabetes=falsephysically_inactive=falsesex=femalewaist_cm=80

  1. Age 30 (18-34) → 0; female → 0; ancestry other → 0
  2. No parental diabetes, high glucose, antihypertensives, smoking, or inactivity → 0
  3. Female other waist 80 <88 → cat1 → 0
  4. Score = 0 (published max 35); at_risk false

ROC cutoff ≥12 (age 55-64 plus high-glucose history)

Given: age=55ancestry=otherantihypertensive=falsecurrent_smoker=falsehistory_high_glucose=trueparental_diabetes=falsephysically_inactive=falsesex=femalewaist_cm=80

  1. Age 55 → 6; history_high_glucose true → 6; other items 0
  2. Score = 12; at_risk true (ROC cutoff ≥12). Not a diagnosis.

Also searched as

  • AUSDRISK
  • Australian diabetes risk
  • Chen AUSDRISK
  • Australian Type 2 Diabetes Risk Assessment Tool
  • type 2 diabetes risk Australia
  • AUSDRISK waist model

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/ausdrisk?age=30&sex=female&ancestry=other&parental_diabetes=false&history_high_glucose=false&antihypertensive=false&current_smoker=false&physically_inactive=false&waist_cm=80

Full URL: https://api.magentlab.com/api/calc/ausdrisk?age=30&sex=female&ancestry=other&parental_diabetes=false&history_high_glucose=false&antihypertensive=false&current_smoker=false&physically_inactive=false&waist_cm=80

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/ausdrisk?age=30&sex=female&ancestry=other&parental_diabetes=false&history_high_glucose=false&antihypertensive=false&current_smoker=false&physically_inactive=false&waist_cm=80"

Parameters

Name Type Required Description
age integer required Age in years (18-120). Chen 2010: 25-34 scores 0; magent scores 18-34 as 0 and does not reject 18-24. 35-44 scores 2; 45-54 scores 4; 55-64 scores 6; ≥65 scores 8. Age 34 scores 0; 35 and 44 score 2; 45 and 54 score 4; 55 and 64 score 6; 65 scores 8.
sex string required · female, male female or male. Chen 2010: male scores 3; female scores 0.
ancestry string required · atsi_or_asian, southern_european_or_pacific, other Caller-assigned ancestry as used in Chen 2010. atsi_or_asian (Aboriginal and Torres Strait Islander or Asian) or southern_european_or_pacific (Southern European or Pacific Islander) scores 2; other scores 0. magent does not assign ancestry. Waist cutoffs for atsi_or_asian follow the paper footnote; southern_european_or_pacific uses the otherwise cutoffs.
parental_diabetes boolean required Parent with diabetes (Chen 2010). true scores 3; false scores 0.
history_high_glucose boolean required History of high blood glucose including during illness or pregnancy (Chen 2010). Caller-assigned; magent does not assay glucose. true scores 6; false scores 0.
antihypertensive boolean required Currently taking antihypertensive medication (Chen 2010). true scores 2; false scores 0.
current_smoker boolean required Currently smokes (Chen 2010). true scores 2; false scores 0.
physically_inactive boolean required Not doing at least 2.5 hours of physical activity per week (Chen 2010). true scores 2; false scores 0. Caller-assigned; magent does not measure activity.
waist_cm number required Waist circumference in cm (40-200). Chen 2010 Box 3 footnote, not BMI. If ancestry is atsi_or_asian: men cat1 <90, cat2 ≥90 and <100, cat3 ≥100; women cat1 <80, cat2 ≥80 and <90, cat3 ≥90. Otherwise (including southern_european_or_pacific and other): men cat1 <102, cat2 ≥102 and <110, cat3 ≥110; women cat1 <88, cat2 ≥88 and <100, cat3 ≥100. cat1 scores 0; cat2 scores 4; cat3 scores 7. 90 and 100 (atsi_or_asian men) and 80 and 90 (atsi_or_asian women) are the published boundaries.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/ausdrisk Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "age": "30",
      "ancestry": "other",
      "antihypertensive": "false",
      "current_smoker": "false",
      "history_high_glucose": "false",
      "parental_diabetes": "false",
      "physically_inactive": "false",
      "sex": "female",
      "waist_cm": "80"
    },
    {
      "age": "30",
      "ancestry": "other",
      "antihypertensive": "false",
      "current_smoker": "false",
      "history_high_glucose": "false",
      "parental_diabetes": "false",
      "physically_inactive": "false",
      "sex": "female",
      "waist_cm": "80"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/ausdrisk",
  "items": [
    {
      "components": [
        {
          "value": "female",
          "factor": "sex",
          "points": 0,
          "present": false
        },
        {
          "value": 30,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": "other",
          "factor": "ancestry",
          "points": 0,
          "present": false
        },
        {
          "factor": "parental_diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "history_high_glucose",
          "points": 0,
          "present": false
        },
        {
          "factor": "antihypertensive",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "physically_inactive",
          "points": 0,
          "present": false
        },
        {
          "value": 80.0,
          "factor": "waist",
          "category": "cat1",
          "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.",
      "citation": {
        "authors": "Chen L, Magliano DJ, Balkau B, Colagiuri S, Zimmet PZ, Tonkin AM, Mitchell P, Phillips PJ, Shaw JE",
        "doi": "10.5694/j.1326-5377.2010.tb03506.x",
        "id": "chen-2010-ausdrisk",
        "pmid": "20170456",
        "source": "Med J Aust. 2010;192(4):197-202",
        "title": "AUSDRISK: an Australian Type 2 Diabetes Risk Assessment Tool based on demographic, lifestyle and simple anthropometric measures"
      },
      "formula": "ausdrisk",
      "formula_expression": "AUSDRISK = sex + age + ancestry + parental_diabetes + history_high_glucose + antihypertensive + current_smoker + physically_inactive + waist; male 3; age 18-34 -> 0, 35-44 -> 2, 45-54 -> 4, 55-64 -> 6, >=65 -> 8; ancestry atsi_or_asian or southern_european_or_pacific 2 else 0; parental_diabetes 3; history_high_glucose 6; antihypertensive 2; current_smoker 2; physically_inactive 2; waist cat1 0 cat2 4 cat3 7 (atsi_or_asian men <90 / >=90 and <100 / >=100, women <80 / >=80 and <90 / >=90; otherwise including southern_european_or_pacific men <102 / >=102 and <110 / >=110, women <88 / >=88 and <100 / >=100); max 35; at_risk iff score>=12; Chen 2010 Box 3 waist model not BMI",
      "max_score": 35,
      "score": 0,
      "age_years": 30,
      "sex": "female",
      "ancestry": "other",
      "at_risk": false,
      "waist_category": "cat1",
      "waist_cm": 80.0
    },
    {
      "components": [
        {
          "value": "female",
          "factor": "sex",
          "points": 0,
          "present": false
        },
        {
          "value": 30,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": "other",
          "factor": "ancestry",
          "points": 0,
          "present": false
        },
        {
          "factor": "parental_diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "history_high_glucose",
          "points": 0,
          "present": false
        },
        {
          "factor": "antihypertensive",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "physically_inactive",
          "points": 0,
          "present": false
        },
        {
          "value": 80.0,
          "factor": "waist",
          "category": "cat1",
          "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.",
      "citation": {
        "authors": "Chen L, Magliano DJ, Balkau B, Colagiuri S, Zimmet PZ, Tonkin AM, Mitchell P, Phillips PJ, Shaw JE",
        "doi": "10.5694/j.1326-5377.2010.tb03506.x",
        "id": "chen-2010-ausdrisk",
        "pmid": "20170456",
        "source": "Med J Aust. 2010;192(4):197-202",
        "title": "AUSDRISK: an Australian Type 2 Diabetes Risk Assessment Tool based on demographic, lifestyle and simple anthropometric measures"
      },
      "formula": "ausdrisk",
      "formula_expression": "AUSDRISK = sex + age + ancestry + parental_diabetes + history_high_glucose + antihypertensive + current_smoker + physically_inactive + waist; male 3; age 18-34 -> 0, 35-44 -> 2, 45-54 -> 4, 55-64 -> 6, >=65 -> 8; ancestry atsi_or_asian or southern_european_or_pacific 2 else 0; parental_diabetes 3; history_high_glucose 6; antihypertensive 2; current_smoker 2; physically_inactive 2; waist cat1 0 cat2 4 cat3 7 (atsi_or_asian men <90 / >=90 and <100 / >=100, women <80 / >=80 and <90 / >=90; otherwise including southern_european_or_pacific men <102 / >=102 and <110 / >=110, women <88 / >=88 and <100 / >=100); max 35; at_risk iff score>=12; Chen 2010 Box 3 waist model not BMI",
      "max_score": 35,
      "score": 0,
      "age_years": 30,
      "sex": "female",
      "ancestry": "other",
      "at_risk": false,
      "waist_category": "cat1",
      "waist_cm": 80.0
    }
  ]
}

Response

Field Type Description
formula string ausdrisk
formula_expression string Exact Chen 2010 Box 3 waist-model expression
score integer AUSDRISK points; published range 0-35
max_score integer 35 (Chen 2010 published maximum)
at_risk boolean true iff score ≥12 (Chen 2010 ROC cutoff). Not a type 2 diabetes diagnosis and not a 1-in-N 5-year government risk statement.
age_years integer Age in years used for the age band
sex string female or male, used for sex points and waist
ancestry string atsi_or_asian, southern_european_or_pacific, or other
waist_cm number Waist circumference in cm used
waist_category string cat1 (0), cat2 (4), or cat3 (7) from sex, ancestry, and waist_cm
components array Per-factor points
citation object Chen 2010 Medical Journal of Australia citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "value": "female",
      "factor": "sex",
      "points": 0,
      "present": false
    },
    {
      "value": 30,
      "factor": "age",
      "points": 0,
      "present": false
    },
    {
      "value": "other",
      "factor": "ancestry",
      "points": 0,
      "present": false
    },
    {
      "factor": "parental_diabetes",
      "points": 0,
      "present": false
    },
    {
      "factor": "history_high_glucose",
      "points": 0,
      "present": false
    },
    {
      "factor": "antihypertensive",
      "points": 0,
      "present": false
    },
    {
      "factor": "current_smoker",
      "points": 0,
      "present": false
    },
    {
      "factor": "physically_inactive",
      "points": 0,
      "present": false
    },
    {
      "value": 80.0,
      "factor": "waist",
      "category": "cat1",
      "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.",
  "citation": {
    "authors": "Chen L, Magliano DJ, Balkau B, Colagiuri S, Zimmet PZ, Tonkin AM, Mitchell P, Phillips PJ, Shaw JE",
    "doi": "10.5694/j.1326-5377.2010.tb03506.x",
    "id": "chen-2010-ausdrisk",
    "pmid": "20170456",
    "source": "Med J Aust. 2010;192(4):197-202",
    "title": "AUSDRISK: an Australian Type 2 Diabetes Risk Assessment Tool based on demographic, lifestyle and simple anthropometric measures"
  },
  "formula": "ausdrisk",
  "formula_expression": "AUSDRISK = sex + age + ancestry + parental_diabetes + history_high_glucose + antihypertensive + current_smoker + physically_inactive + waist; male 3; age 18-34 -> 0, 35-44 -> 2, 45-54 -> 4, 55-64 -> 6, >=65 -> 8; ancestry atsi_or_asian or southern_european_or_pacific 2 else 0; parental_diabetes 3; history_high_glucose 6; antihypertensive 2; current_smoker 2; physically_inactive 2; waist cat1 0 cat2 4 cat3 7 (atsi_or_asian men <90 / >=90 and <100 / >=100, women <80 / >=80 and <90 / >=90; otherwise including southern_european_or_pacific men <102 / >=102 and <110 / >=110, women <88 / >=88 and <100 / >=100); max 35; at_risk iff score>=12; Chen 2010 Box 3 waist model not BMI",
  "max_score": 35,
  "score": 0,
  "age_years": 30,
  "sex": "female",
  "ancestry": "other",
  "at_risk": false,
  "waist_category": "cat1",
  "waist_cm": 80.0
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_age age must be an integer from 18 to 120 Returned before settlement; you are not charged.
400 invalid_sex sex must be female or male Returned before settlement; you are not charged.
400 invalid_flag boolean clinical flags must be true or false Returned before settlement; you are not charged.
400 invalid_ausdrisk AUSDRISK inputs must match Chen 2010 age, sex, ancestry, parental diabetes, high glucose, antihypertensives, smoking, inactivity, and waist. Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • FINDRISC — Sum the original Lindström 2003 seven-item Finnish diabetes risk score (FINDRISC, 0–20) and return at_risk when the total is ≥9.
  • Cambridge diabetes — Compute the Griffin 2000 Cambridge logistic probability of undetected type 2 diabetes from age, sex, BMI, prescribed antihypertensive medication, prescribed steroids, first-degree family history, and smoking.
  • Bang diabetes screening — Sum the Bang 2009 Table 2 development screening score for undiagnosed diabetes and return high_risk when the total is ≥5.

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.