{"uid":"cap_YAKO2liF2cfmgJrugw2tU","slug":"magent-corrected-sodium-for-hyperglycemia-82eff0b9","name":"magent Corrected Sodium for Hyperglycemia","description":"Sodium correction for hyperglycemia (Katz 1.6 or Hillier 2.4). formula is required; magent does not pick one silently. Deterministic published correction with citation; not a treatment recommendation.","url":"https://api.magentlab.com/api/calc/corrected_sodium","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":["sodium_mmol_l","formula"],"properties":{"formula":{"enum":["katz","hillier"],"type":"string","description":"Correction factor. Required; magent does not pick one silently."},"glucose_mg_dl":{"type":"number","description":"Plasma glucose in mg/dL (50-1000). Provide this or glucose_mmol_l."},"sodium_mmol_l":{"type":"number","description":"Measured serum sodium in mmol/L (110-160)."},"glucose_mmol_l":{"type":"number","description":"Plasma glucose in mmol/L (2.8-55.5). Converted as mg/dL = mmol/L * 18.015."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/corrected_sodium","count":2,"items":[{"factor":1.6,"formula":"katz","citation":{"id":"katz-1973","doi":"10.1056/NEJM197310182891607","title":"Hyperglycemia-induced hyponatremia — calculation of expected serum sodium depression","source":"N Engl J Med. 1973;289(16):843-844","authors":"Katz MA"},"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.","glucose_mg_dl":400,"sodium_mmol_l":125,"formula_expression":"corrected_na_mmol_l = sodium_mmol_l + 1.6 * (glucose_mg_dl - 100) / 100","corrected_sodium_mmol_l":129.8},{"factor":1.6,"formula":"katz","citation":{"id":"katz-1973","doi":"10.1056/NEJM197310182891607","title":"Hyperglycemia-induced hyponatremia — calculation of expected serum sodium depression","source":"N Engl J Med. 1973;289(16):843-844","authors":"Katz MA"},"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.","glucose_mg_dl":400,"sodium_mmol_l":125,"formula_expression":"corrected_na_mmol_l = sodium_mmol_l + 1.6 * (glucose_mg_dl - 100) / 100","corrected_sodium_mmol_l":129.8}]}},"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_uNiyF6PEVL54fIERnojxV","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":"Calculates corrected serum sodium for hyperglycemia using either the Katz (1.6) or Hillier (2.4) correction formula, returning a deterministic result with citation.","exampleAgentPrompt":"My patient has a measured serum sodium of 132 mmol/L and a plasma glucose of 600 mg/dL — can you calculate the corrected sodium using the Hillier 2.4 formula?","exampleUseCases":[{"title":"DKA sodium correction in ICU","prompt":"My DKA patient has a measured sodium of 128 mmol/L and glucose of 720 mg/dL. Calculate the corrected sodium using the Katz 1.6 formula so I can assess the true sodium level."},{"title":"HHS workup corrected sodium","prompt":"For my hyperosmolar hyperglycemic state patient with sodium 135 mmol/L and glucose 38 mmol/L, what is the corrected sodium using the Hillier correction factor?"},{"title":"Comparing Katz vs Hillier results","prompt":"My patient has a serum sodium of 140 mmol/L and glucose of 450 mg/dL. Can you run the corrected sodium calculation using Katz 1.6 so I can compare it to the Hillier 2.4 result I already have?"}],"resultDescription":"Returns the corrected serum sodium in mmol/L computed using the selected formula (Katz 1.6 or Hillier 2.4), along with the correction factor applied, the formula used, and a published citation for the method. No treatment recommendation is included.","failureModes":["Missing required 'formula' parameter — endpoint does not pick a formula silently and will return an error","Sodium value outside valid range (110–160 mmol/L) causes validation error","Glucose value outside valid range (50–1000 mg/dL or 2.8–55.5 mmol/L) causes validation error","Neither glucose_mg_dl nor glucose_mmol_l provided results in missing input error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed corrected sodium value for a hyperglycemic patient and you want to explicitly choose between the Katz (1.6) or Hillier (2.4) correction factor. Prefer this over manual calculation to ensure formula fidelity and auditability. Particularly useful in clinical decision-support pipelines, EMR enrichment, or AI-assisted triage tools where traceability to a published formula is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:00:29.312Z","isFirstParty":false}