{"uid":"cap_H369rDvw2ztJJ-MHUkriA","slug":"efstathiou-2002-dka-mpm-score-calculator-1c329fc7","name":"Efstathiou 2002 DKA-MPM Score Calculator","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.","url":"https://api.magentlab.com/api/calc/dka_mpm","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["severe_comorbidity","ph_lt_7","insulin_gt_50_12h","glucose_gt_16_7_12h","depressed_mental_24h","fever_24h"],"properties":{"ph_lt_7":{"type":"boolean","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."},"fever_24h":{"type":"boolean","description":"Fever after 24 h as assigned by the caller (Efstathiou 2002). true scores 3. true or false. magent does not take temperature."},"insulin_gt_50_12h":{"type":"boolean","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."},"severe_comorbidity":{"type":"boolean","description":"Severe coexisting disease at presentation as assigned by the caller (Efstathiou 2002). true scores 6. true or false. magent does not diagnose comorbidity."},"glucose_gt_16_7_12h":{"type":"boolean","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."},"depressed_mental_24h":{"type":"boolean","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."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vjf6Zuxa5wY9g5Ra5GnhG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Efstathiou 2002 DKA Mortality Prediction Model (DKA-MPM) score from six caller-assigned boolean flags and returns estimated in-hospital mortality risk category.","exampleAgentPrompt":"Score this DKA patient using the Efstathiou 2002 DKA-MPM: they have severe coexisting disease and a pH below 7.0 at presentation, received more than 50 IU regular insulin in the first 12 hours, glucose is still above 16.7 mmol/L after 12 hours, but they have no depressed mental state or fever after 24 hours.","exampleUseCases":[{"title":"ICU DKA triage risk stratification","prompt":"I have a DKA patient in the ICU — severe comorbidities at admission, pH was under 7.0 on arrival, insulin use was over 50 IU in the first 12 hours, glucose still above 16.7 after 12 hours, no altered mental status, no fever after 24 hours. What does the Efstathiou DKA-MPM score come out to?"},{"title":"Low-risk DKA discharge planning","prompt":"Can you run the Efstathiou 2002 DKA-MPM on a patient with no severe comorbidities, pH was fine at presentation (not below 7.0), insulin under 50 IU in 12 hours, glucose normalized within 12 hours, alert and no fever after 24 hours — want to see their mortality score before considering discharge pathway."},{"title":"High-acuity DKA mortality flag for clinical audit","prompt":"For our quality audit, calculate the DKA-MPM score for a patient who had severe coexisting disease, pH below 7.0, over 50 IU insulin in the first 12 hours, persistent glucose above 16.7 after 12 hours, depressed mental state after 24 hours, and fever after 24 hours."}],"resultDescription":"Returns the total DKA-MPM score (integer, 0–25). For scores 0–14, the published in-hospital mortality is approximately 0.86%; for scores 19–25, it is approximately 93.3%. Scores in the 15–18 range return the numeric total only without a discrete mortality band. The response does not include pH measurements, glucose assays, or treatment recommendations.","failureModes":["Missing required boolean flag — returns validation error if any of the six required query parameters are absent","Invalid parameter type — non-boolean value for any flag results in a schema error","Network or payment failure — x402 payment not completed results in a 402 response and no score returned","All flags true simultaneously may indicate data entry error but is not caught by the endpoint itself"],"whenToPreferThis":"Use this endpoint when you need to apply the validated Efstathiou 2002 DKA-MPM scoring algorithm to caller-assigned clinical flags and obtain a standardized in-hospital mortality risk score. Prefer this over general LLM reasoning about DKA prognosis when reproducibility and citation to a published model are required. This is a pure computation endpoint — you supply the clinical determinations, it applies the published point weights. Not appropriate for querying raw lab values, ordering treatment, or any other DKA scoring system (e.g., Kitabchi or BICS).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:03:03.642Z","isFirstParty":false}