# AUSDRISK Australian type 2 diabetes risk

AUSDRISK

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/ausdrisk`
HTML: https://magentlab.com/docs/ausdrisk
Markdown: https://magentlab.com/docs/ausdrisk.md

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

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

## Worked example

### All 0-point bands

Given: `age=30, ancestry=other, antihypertensive=false, current_smoker=false, history_high_glucose=false, parental_diabetes=false, physically_inactive=false, sex=female, waist_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=55, ancestry=other, antihypertensive=false, current_smoker=false, history_high_glucose=true, parental_diabetes=false, physically_inactive=false, sex=female, waist_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

## Parameters

- `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 or male. Chen 2010: male scores 3; female scores 0.
- `ancestry` (string, required): 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.

Method: `POST /api/calc/ausdrisk`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: 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:

```json
{
  "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"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/ausdrisk

Example 200:

```json
{
  "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.",
      "age_years": 30,
      "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,
      "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.",
      "age_years": 30,
      "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,
      "sex": "female",
      "ancestry": "other",
      "at_risk": false,
      "waist_category": "cat1",
      "waist_cm": 80.0
    }
  ]
}
```

## Response fields

- `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

Frozen fixture. Not a live lookup.

```json
{
  "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.",
  "age_years": 30,
  "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,
  "sex": "female",
  "ancestry": "other",
  "at_risk": false,
  "waist_category": "cat1",
  "waist_cm": 80.0
}
```

## Errors

- HTTP 400 `invalid_age`: age must be an integer from 18 to 120 Returned before settlement; you are not charged.
- HTTP 400 `invalid_sex`: sex must be female or male Returned before settlement; you are not charged.
- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 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.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [FINDRISC](https://magentlab.com/docs/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](https://magentlab.com/docs/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](https://magentlab.com/docs/ada-diabetes) — 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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
