{
  "x402Version": 2,
  "id": 38752,
  "slug": "38752",
  "resource": "https://api.magentlab.com/api/calc/canrisk",
  "description": "Robinson 2011 Table 3 pCANRISK (not eCANRISK). Age 0/7/13/15; male 6; BMI 0/4/9/14; waist 0/4/6 by sex; inactivity 1; no daily fruit/veg 2; high BP 4; high glucose 14; macrosomia 1 (women); family first-degree categories ×2; caller-assigned ethnicity White 0 Aboriginal 3 Black 5 East Asian 10 South Asian 11; education 5/1/0. Max 81 F/86 M. Cutoffs 21, 29, 32, 33, 43. Not a diagnosis.",
  "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": [
              {
                "activity_30min": true,
                "age": 40,
                "bmi_kg_m2": 22,
                "daily_fruit_veg": true,
                "education": "university",
                "ethnicity": "white",
                "family_history_count": 0,
                "high_bp": false,
                "high_glucose": false,
                "macrosomia": false,
                "sex": "female",
                "waist_cm": 80
              },
              {
                "activity_30min": true,
                "age": 40,
                "bmi_kg_m2": 22,
                "daily_fruit_veg": true,
                "education": "university",
                "ethnicity": "white",
                "family_history_count": 0,
                "high_bp": false,
                "high_glucose": false,
                "macrosomia": false,
                "sex": "female",
                "waist_cm": 80
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 40,
                "bmi_kg_m2": 22,
                "citation": {
                  "authors": "Robinson CA, Agarwal G, Nerenberg K",
                  "doi": "10.24095/hpcdp.32.1.04",
                  "id": "robinson-2011-canrisk",
                  "pmid": "22153173",
                  "source": "Chronic Dis Inj Can. 2011;32(1):19-31",
                  "title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "bmi",
                    "points": 0,
                    "present": false,
                    "value": 22
                  },
                  {
                    "factor": "waist",
                    "points": 4,
                    "present": true,
                    "value": 80
                  },
                  {
                    "factor": "inactivity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "no_daily_fruit_veg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "high_bp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "high_glucose",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "macrosomia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_history",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "ethnicity",
                    "points": 0,
                    "present": false,
                    "value": "white"
                  },
                  {
                    "factor": "education",
                    "points": 0,
                    "present": false,
                    "value": "university"
                  }
                ],
                "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.",
                "education": "university",
                "ethnicity": "white",
                "family_history_count": 0,
                "formula": "canrisk",
                "formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
                "max_score": 81,
                "score": 4,
                "score_ge_21": false,
                "score_ge_29": false,
                "score_ge_32": false,
                "score_ge_33": false,
                "score_ge_43": false,
                "sex": "female",
                "waist_cm": 80
              },
              {
                "age_years": 40,
                "bmi_kg_m2": 22,
                "citation": {
                  "authors": "Robinson CA, Agarwal G, Nerenberg K",
                  "doi": "10.24095/hpcdp.32.1.04",
                  "id": "robinson-2011-canrisk",
                  "pmid": "22153173",
                  "source": "Chronic Dis Inj Can. 2011;32(1):19-31",
                  "title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "bmi",
                    "points": 0,
                    "present": false,
                    "value": 22
                  },
                  {
                    "factor": "waist",
                    "points": 4,
                    "present": true,
                    "value": 80
                  },
                  {
                    "factor": "inactivity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "no_daily_fruit_veg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "high_bp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "high_glucose",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "macrosomia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_history",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "ethnicity",
                    "points": 0,
                    "present": false,
                    "value": "white"
                  },
                  {
                    "factor": "education",
                    "points": 0,
                    "present": false,
                    "value": "university"
                  }
                ],
                "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.",
                "education": "university",
                "ethnicity": "white",
                "family_history_count": 0,
                "formula": "canrisk",
                "formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
                "max_score": 81,
                "score": 4,
                "score_ge_21": false,
                "score_ge_29": false,
                "score_ge_32": false,
                "score_ge_33": false,
                "score_ge_43": false,
                "sex": "female",
                "waist_cm": 80
              }
            ],
            "path": "/api/calc/canrisk"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "activity_30min": {
                          "description": "Usually at least 30 minutes of physical activity daily (Robinson 2011 Table 3). true scores 0; false scores 1. Caller-assigned; magent does not measure activity.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years (18-120). Robinson 2011 Table 3 pCANRISK: 19-44 scores 0; magent scores 18-44 as 0. 45-54 scores 7; 55-64 scores 13; 65-78 scores 15; magent scores ≥65 as 15. Age 44 scores 0; 45 and 54 score 7; 55 and 64 score 13; 65 scores 15.",
                          "type": "integer"
                        },
                        "bmi_kg_m2": {
                          "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Robinson 2011 Table 3: <25 scores 0; 25-29.9 scores 4; 30-34.9 scores 9; ≥35 scores 14. 25.0 and 29.9 score 4; 30.0 and 34.9 score 9; 35.0 scores 14.",
                          "type": "number"
                        },
                        "daily_fruit_veg": {
                          "description": "Eats fruit or vegetables every day (Robinson 2011 Table 3). true scores 0; false scores 2.",
                          "type": "boolean"
                        },
                        "education": {
                          "description": "Highest education completed (Robinson 2011 Table 3). less_than_high_school scores 5; high_school scores 1; some_college or university scores 0.",
                          "enum": [
                            "less_than_high_school",
                            "high_school",
                            "some_college",
                            "university"
                          ],
                          "type": "string"
                        },
                        "ethnicity": {
                          "description": "Caller-assigned ethnicity using Robinson 2011 Table 3 terms. white scores 0; aboriginal 3; black 5; east_asian 10; south_asian 11. latin_american and other score 0 (Table 3 assigned no pCANRISK points; both were statistically insignificant). magent does not assign ethnicity.",
                          "enum": [
                            "white",
                            "aboriginal",
                            "black",
                            "east_asian",
                            "south_asian",
                            "latin_american",
                            "other"
                          ],
                          "type": "string"
                        },
                        "family_history_count": {
                          "description": "Count of first-degree relative categories with diabetes: mother, father, sibling, child (Robinson 2011 Table 3 footnote g). Integer 0-4. Each category scores 2 (0, 2, 4, 6, or 8). Not second-degree relatives. magent does not take named relatives.",
                          "type": "integer"
                        },
                        "high_bp": {
                          "description": "History of high blood pressure (Robinson 2011 Table 3). true scores 4; false scores 0. magent does not measure blood pressure.",
                          "type": "boolean"
                        },
                        "high_glucose": {
                          "description": "History of high blood glucose (Robinson 2011 Table 3). Caller-assigned; magent does not assay glucose. true scores 14; false scores 0.",
                          "type": "boolean"
                        },
                        "macrosomia": {
                          "description": "Gave birth to a baby weighing 4.1 kg or more (Robinson 2011 Table 3 macrosomia, women). true scores 1 for female; false or male (N/A) scores 0.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male. Robinson 2011 Table 3: female scores 0; male scores 6. Selects the sex-specific waist bands. Macrosomia is N/A for male (0).",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "waist_cm": {
                          "description": "Waist circumference in cm (40-200). Robinson 2011 Table 3 men: <94 scores 0; 94-102 scores 4; >102 scores 6. Women: <80 scores 0; 80-88 scores 4; >88 scores 6. 94 and 102 (men) and 80 and 88 (women) score 4.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "bmi_kg_m2",
                        "waist_cm",
                        "activity_30min",
                        "daily_fruit_veg",
                        "high_bp",
                        "high_glucose",
                        "macrosomia",
                        "family_history_count",
                        "ethnicity",
                        "education"
                      ],
                      "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": [
    "canrisk",
    "pcanrisk",
    "diabetes-risk",
    "glucose",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:01:06.74Z",
  "quality": {
    "calls30d": 7,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-13T01:01:06.347Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "activity_30min": true,
                  "age": 40,
                  "bmi_kg_m2": 22,
                  "daily_fruit_veg": true,
                  "education": "university",
                  "ethnicity": "white",
                  "family_history_count": 0,
                  "high_bp": false,
                  "high_glucose": false,
                  "macrosomia": false,
                  "sex": "female",
                  "waist_cm": 80
                },
                {
                  "activity_30min": true,
                  "age": 40,
                  "bmi_kg_m2": 22,
                  "daily_fruit_veg": true,
                  "education": "university",
                  "ethnicity": "white",
                  "family_history_count": 0,
                  "high_bp": false,
                  "high_glucose": false,
                  "macrosomia": false,
                  "sex": "female",
                  "waist_cm": 80
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 40,
                  "bmi_kg_m2": 22,
                  "citation": {
                    "authors": "Robinson CA, Agarwal G, Nerenberg K",
                    "doi": "10.24095/hpcdp.32.1.04",
                    "id": "robinson-2011-canrisk",
                    "pmid": "22153173",
                    "source": "Chronic Dis Inj Can. 2011;32(1):19-31",
                    "title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "bmi",
                      "points": 0,
                      "present": false,
                      "value": 22
                    },
                    {
                      "factor": "waist",
                      "points": 4,
                      "present": true,
                      "value": 80
                    },
                    {
                      "factor": "inactivity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "no_daily_fruit_veg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "high_bp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "high_glucose",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "macrosomia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_history",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "ethnicity",
                      "points": 0,
                      "present": false,
                      "value": "white"
                    },
                    {
                      "factor": "education",
                      "points": 0,
                      "present": false,
                      "value": "university"
                    }
                  ],
                  "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.",
                  "education": "university",
                  "ethnicity": "white",
                  "family_history_count": 0,
                  "formula": "canrisk",
                  "formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
                  "max_score": 81,
                  "score": 4,
                  "score_ge_21": false,
                  "score_ge_29": false,
                  "score_ge_32": false,
                  "score_ge_33": false,
                  "score_ge_43": false,
                  "sex": "female",
                  "waist_cm": 80
                },
                {
                  "age_years": 40,
                  "bmi_kg_m2": 22,
                  "citation": {
                    "authors": "Robinson CA, Agarwal G, Nerenberg K",
                    "doi": "10.24095/hpcdp.32.1.04",
                    "id": "robinson-2011-canrisk",
                    "pmid": "22153173",
                    "source": "Chronic Dis Inj Can. 2011;32(1):19-31",
                    "title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "bmi",
                      "points": 0,
                      "present": false,
                      "value": 22
                    },
                    {
                      "factor": "waist",
                      "points": 4,
                      "present": true,
                      "value": 80
                    },
                    {
                      "factor": "inactivity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "no_daily_fruit_veg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "high_bp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "high_glucose",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "macrosomia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_history",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "ethnicity",
                      "points": 0,
                      "present": false,
                      "value": "white"
                    },
                    {
                      "factor": "education",
                      "points": 0,
                      "present": false,
                      "value": "university"
                    }
                  ],
                  "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.",
                  "education": "university",
                  "ethnicity": "white",
                  "family_history_count": 0,
                  "formula": "canrisk",
                  "formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
                  "max_score": 81,
                  "score": 4,
                  "score_ge_21": false,
                  "score_ge_29": false,
                  "score_ge_32": false,
                  "score_ge_33": false,
                  "score_ge_43": false,
                  "sex": "female",
                  "waist_cm": 80
                }
              ],
              "path": "/api/calc/canrisk"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "activity_30min": {
                            "description": "Usually at least 30 minutes of physical activity daily (Robinson 2011 Table 3). true scores 0; false scores 1. Caller-assigned; magent does not measure activity.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years (18-120). Robinson 2011 Table 3 pCANRISK: 19-44 scores 0; magent scores 18-44 as 0. 45-54 scores 7; 55-64 scores 13; 65-78 scores 15; magent scores ≥65 as 15. Age 44 scores 0; 45 and 54 score 7; 55 and 64 score 13; 65 scores 15.",
                            "type": "integer"
                          },
                          "bmi_kg_m2": {
                            "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Robinson 2011 Table 3: <25 scores 0; 25-29.9 scores 4; 30-34.9 scores 9; ≥35 scores 14. 25.0 and 29.9 score 4; 30.0 and 34.9 score 9; 35.0 scores 14.",
                            "type": "number"
                          },
                          "daily_fruit_veg": {
                            "description": "Eats fruit or vegetables every day (Robinson 2011 Table 3). true scores 0; false scores 2.",
                            "type": "boolean"
                          },
                          "education": {
                            "description": "Highest education completed (Robinson 2011 Table 3). less_than_high_school scores 5; high_school scores 1; some_college or university scores 0.",
                            "enum": [
                              "less_than_high_school",
                              "high_school",
                              "some_college",
                              "university"
                            ],
                            "type": "string"
                          },
                          "ethnicity": {
                            "description": "Caller-assigned ethnicity using Robinson 2011 Table 3 terms. white scores 0; aboriginal 3; black 5; east_asian 10; south_asian 11. latin_american and other score 0 (Table 3 assigned no pCANRISK points; both were statistically insignificant). magent does not assign ethnicity.",
                            "enum": [
                              "white",
                              "aboriginal",
                              "black",
                              "east_asian",
                              "south_asian",
                              "latin_american",
                              "other"
                            ],
                            "type": "string"
                          },
                          "family_history_count": {
                            "description": "Count of first-degree relative categories with diabetes: mother, father, sibling, child (Robinson 2011 Table 3 footnote g). Integer 0-4. Each category scores 2 (0, 2, 4, 6, or 8). Not second-degree relatives. magent does not take named relatives.",
                            "type": "integer"
                          },
                          "high_bp": {
                            "description": "History of high blood pressure (Robinson 2011 Table 3). true scores 4; false scores 0. magent does not measure blood pressure.",
                            "type": "boolean"
                          },
                          "high_glucose": {
                            "description": "History of high blood glucose (Robinson 2011 Table 3). Caller-assigned; magent does not assay glucose. true scores 14; false scores 0.",
                            "type": "boolean"
                          },
                          "macrosomia": {
                            "description": "Gave birth to a baby weighing 4.1 kg or more (Robinson 2011 Table 3 macrosomia, women). true scores 1 for female; false or male (N/A) scores 0.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male. Robinson 2011 Table 3: female scores 0; male scores 6. Selects the sex-specific waist bands. Macrosomia is N/A for male (0).",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "waist_cm": {
                            "description": "Waist circumference in cm (40-200). Robinson 2011 Table 3 men: <94 scores 0; 94-102 scores 4; >102 scores 6. Women: <80 scores 0; 80-88 scores 4; >88 scores 6. 94 and 102 (men) and 80 and 88 (women) score 4.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "bmi_kg_m2",
                          "waist_cm",
                          "activity_30min",
                          "daily_fruit_veg",
                          "high_bp",
                          "high_glucose",
                          "macrosomia",
                          "family_history_count",
                          "ethnicity",
                          "education"
                        ],
                        "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"
  }
}