{
  "x402Version": 2,
  "id": 39206,
  "slug": "39206",
  "resource": "https://api.magentlab.com/api/calc/dka_mpm",
  "description": "Efstathiou 2002 DKA-MPM. Six caller-assigned flags: severe coexisting disease at presentation (+6), pH <7.0 at presentation (+4), regular insulin >50 IU in the first 12 h (+4), glucose >16.7 mmol/L after 12 h (+4), depressed mental state after 24 h (+4), fever after 24 h (+3). Max 25. Published in-hospital death 0.86% for scores 0–14 and 93.3% for 19–25; scores 15–18 return the total only. magent does not assay pH or glucose. Not a DKA treatment or insulin-dose order. Not a medical device.",
  "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": [
              {
                "depressed_mental_24h": false,
                "fever_24h": false,
                "glucose_gt_16_7_12h": false,
                "insulin_gt_50_12h": false,
                "ph_lt_7": false,
                "severe_comorbidity": false
              },
              {
                "depressed_mental_24h": false,
                "fever_24h": false,
                "glucose_gt_16_7_12h": false,
                "insulin_gt_50_12h": false,
                "ph_lt_7": false,
                "severe_comorbidity": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Efstathiou SP, Tsioulos DI, Tsiakou AG, Gratsias YG, Pefanis AV, Mountokalakis TD",
                  "doi": "10.1046/j.1365-2265.2002.01636.x",
                  "id": "efstathiou-2002",
                  "pmid": "12390332",
                  "source": "Clin Endocrinol (Oxf). 2002;57(5):595-601",
                  "title": "A mortality prediction model in diabetic ketoacidosis"
                },
                "components": [
                  {
                    "factor": "severe_comorbidity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ph_lt_7",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "insulin_gt_50_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "glucose_gt_16_7_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "depressed_mental_24h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "fever_24h",
                    "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.",
                "formula": "dka_mpm",
                "formula_expression": "DKA-MPM = severe_comorbidity 6 + ph_lt_7 4 + insulin_gt_50_12h 4 + glucose_gt_16_7_12h 4 + depressed_mental_24h 4 + fever_24h 3; Efstathiou 2002; max 25; published in-hospital death 0.86% scores 0-14 and 93.3% scores 19-25",
                "max_score": 25,
                "observed_mortality_percent": 0.86,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Efstathiou SP, Tsioulos DI, Tsiakou AG, Gratsias YG, Pefanis AV, Mountokalakis TD",
                  "doi": "10.1046/j.1365-2265.2002.01636.x",
                  "id": "efstathiou-2002",
                  "pmid": "12390332",
                  "source": "Clin Endocrinol (Oxf). 2002;57(5):595-601",
                  "title": "A mortality prediction model in diabetic ketoacidosis"
                },
                "components": [
                  {
                    "factor": "severe_comorbidity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ph_lt_7",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "insulin_gt_50_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "glucose_gt_16_7_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "depressed_mental_24h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "fever_24h",
                    "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.",
                "formula": "dka_mpm",
                "formula_expression": "DKA-MPM = severe_comorbidity 6 + ph_lt_7 4 + insulin_gt_50_12h 4 + glucose_gt_16_7_12h 4 + depressed_mental_24h 4 + fever_24h 3; Efstathiou 2002; max 25; published in-hospital death 0.86% scores 0-14 and 93.3% scores 19-25",
                "max_score": 25,
                "observed_mortality_percent": 0.86,
                "score": 0
              }
            ],
            "path": "/api/calc/dka_mpm"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "depressed_mental_24h": {
                          "description": "Depressed mental state after 24 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "fever_24h": {
                          "description": "Fever after 24 h as assigned by the caller (Efstathiou 2002). true scores 3. true or false. magent does not take temperature.",
                          "type": "boolean"
                        },
                        "glucose_gt_16_7_12h": {
                          "description": "Serum glucose > 16.7 mmol/L after 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay glucose.",
                          "type": "boolean"
                        },
                        "insulin_gt_50_12h": {
                          "description": "Regular insulin > 50 IU in the first 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. Not an insulin dose. magent does not order insulin.",
                          "type": "boolean"
                        },
                        "ph_lt_7": {
                          "description": "Arterial pH < 7.0 at presentation as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay pH.",
                          "type": "boolean"
                        },
                        "severe_comorbidity": {
                          "description": "Severe coexisting disease at presentation as assigned by the caller (Efstathiou 2002). true scores 6. true or false. magent does not diagnose comorbidity.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "severe_comorbidity",
                        "ph_lt_7",
                        "insulin_gt_50_12h",
                        "glucose_gt_16_7_12h",
                        "depressed_mental_24h",
                        "fever_24h"
                      ],
                      "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": [
    "dka-mpm",
    "dka",
    "ketoacidosis",
    "mortality",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:46:12.647Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:46:12.54Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "depressed_mental_24h": false,
                  "fever_24h": false,
                  "glucose_gt_16_7_12h": false,
                  "insulin_gt_50_12h": false,
                  "ph_lt_7": false,
                  "severe_comorbidity": false
                },
                {
                  "depressed_mental_24h": false,
                  "fever_24h": false,
                  "glucose_gt_16_7_12h": false,
                  "insulin_gt_50_12h": false,
                  "ph_lt_7": false,
                  "severe_comorbidity": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Efstathiou SP, Tsioulos DI, Tsiakou AG, Gratsias YG, Pefanis AV, Mountokalakis TD",
                    "doi": "10.1046/j.1365-2265.2002.01636.x",
                    "id": "efstathiou-2002",
                    "pmid": "12390332",
                    "source": "Clin Endocrinol (Oxf). 2002;57(5):595-601",
                    "title": "A mortality prediction model in diabetic ketoacidosis"
                  },
                  "components": [
                    {
                      "factor": "severe_comorbidity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ph_lt_7",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "insulin_gt_50_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "glucose_gt_16_7_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "depressed_mental_24h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "fever_24h",
                      "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.",
                  "formula": "dka_mpm",
                  "formula_expression": "DKA-MPM = severe_comorbidity 6 + ph_lt_7 4 + insulin_gt_50_12h 4 + glucose_gt_16_7_12h 4 + depressed_mental_24h 4 + fever_24h 3; Efstathiou 2002; max 25; published in-hospital death 0.86% scores 0-14 and 93.3% scores 19-25",
                  "max_score": 25,
                  "observed_mortality_percent": 0.86,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Efstathiou SP, Tsioulos DI, Tsiakou AG, Gratsias YG, Pefanis AV, Mountokalakis TD",
                    "doi": "10.1046/j.1365-2265.2002.01636.x",
                    "id": "efstathiou-2002",
                    "pmid": "12390332",
                    "source": "Clin Endocrinol (Oxf). 2002;57(5):595-601",
                    "title": "A mortality prediction model in diabetic ketoacidosis"
                  },
                  "components": [
                    {
                      "factor": "severe_comorbidity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ph_lt_7",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "insulin_gt_50_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "glucose_gt_16_7_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "depressed_mental_24h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "fever_24h",
                      "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.",
                  "formula": "dka_mpm",
                  "formula_expression": "DKA-MPM = severe_comorbidity 6 + ph_lt_7 4 + insulin_gt_50_12h 4 + glucose_gt_16_7_12h 4 + depressed_mental_24h 4 + fever_24h 3; Efstathiou 2002; max 25; published in-hospital death 0.86% scores 0-14 and 93.3% scores 19-25",
                  "max_score": 25,
                  "observed_mortality_percent": 0.86,
                  "score": 0
                }
              ],
              "path": "/api/calc/dka_mpm"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "depressed_mental_24h": {
                            "description": "Depressed mental state after 24 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "fever_24h": {
                            "description": "Fever after 24 h as assigned by the caller (Efstathiou 2002). true scores 3. true or false. magent does not take temperature.",
                            "type": "boolean"
                          },
                          "glucose_gt_16_7_12h": {
                            "description": "Serum glucose > 16.7 mmol/L after 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay glucose.",
                            "type": "boolean"
                          },
                          "insulin_gt_50_12h": {
                            "description": "Regular insulin > 50 IU in the first 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. Not an insulin dose. magent does not order insulin.",
                            "type": "boolean"
                          },
                          "ph_lt_7": {
                            "description": "Arterial pH < 7.0 at presentation as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay pH.",
                            "type": "boolean"
                          },
                          "severe_comorbidity": {
                            "description": "Severe coexisting disease at presentation as assigned by the caller (Efstathiou 2002). true scores 6. true or false. magent does not diagnose comorbidity.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "severe_comorbidity",
                          "ph_lt_7",
                          "insulin_gt_50_12h",
                          "glucose_gt_16_7_12h",
                          "depressed_mental_24h",
                          "fever_24h"
                        ],
                        "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"
  }
}