Brahmer 2018 ASCO Table 4.4 irAE diabetes from glucose_mg_dl (50-1000, mg/dL onl
Brahmer 2018 ASCO Table 4.4 irAE diabetes from glucose_mg_dl (50-1000, mg/dL only) plus caller ketosis, t1dm, severe_unable_adl, and life_threatening. First-match: G4 if life_threatening or glucose >500; else G3 if severe_unable_adl or glucose >250; else G2 if ketosis or t1dm or glucose >160; else G1 if glucose >99; else G0. ICI continue (0-1), hold_until_control (2), hold_admit (3-4). Not DKA diagnostic criteria. magent does not assay glucose. Not a diagnosis. Not an insulin dose.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/irae_diabetes
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.007 | 257 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"glucose_mg_dl": 140,
"ketosis": false,
"life_threatening": false,
"severe_unable_adl": false,
"t1dm": false
},
{
"glucose_mg_dl": 140,
"ketosis": false,
"life_threatening": false,
"severe_unable_adl": false,
"t1dm": false
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"glucose_mg_dl": {
"description": "Fasting glucose in mg/dL (50-1000). Brahmer 2018 Table 4.4 bands: >500 grade 4; >250 grade 3; >160 grade 2; >99 grade 1; else grade 0 unless a flag upgrades. mmol/L is not accepted. magent does not assay glucose.",
"type": "number"
},
"ketosis": {
"description": "Ketosis as assigned by the caller (Brahmer 2018 Table 4.4 grade 2; ketosis at any glucose). true or false. When true and grade 4/3 criteria are not met, grade is 2. magent does not assay ketones.",
"type": "boolean"
},
"life_threatening": {
"description": "Life-threatening consequences as assigned by the caller (Brahmer 2018 Table 4.4 grade 4). true or false. When true, grade is 4 regardless of glucose. magent does not examine the patient.",
"type": "boolean"
},
"severe_unable_adl": {
"description": "Severe symptoms limiting self-care ADL as assigned by the caller (Brahmer 2018 Table 4.4 grade 3). true or false. When true and life_threatening is false and glucose is not >500, grade is 3. magent does not assess ADL.",
"type": "boolean"
},
"t1dm": {
"description": "Evidence of type 1 diabetes as assigned by the caller (Brahmer 2018 Table 4.4 grade 2; T1DM at any glucose). true or false. When true and grade 4/3 criteria are not met, grade is 2. magent does not diagnose diabetes.",
"type": "boolean"
}
},
"required": [
"glucose_mg_dl",
"ketosis",
"t1dm",
"life_threatening",
"severe_unable_adl"
],
"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"
}