Urine Anion Gap Calculator (Batlle 1988) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).
Calculates urine anion gap (Na + K − Cl) from urine electrolytes and returns an interpretive band distinguishing GI bicarbonate loss from renal tubular acidosis (RTA).
Urine anion gap from urine sodium, potassium, and chloride (Na + K − Cl). Batlle 1988 interpretive band: negative suggests increased NH4+ (GI bicarbonate loss); positive suggests impaired NH4+ (RTA). Deterministic published arithmetic with citation; not a diagnosis.
Returns the numeric urine anion gap value (Na + K − Cl in mmol/L) along with a Batlle 1988 interpretive classification: a negative UAG suggests increased ammonium excretion consistent with GI bicarbonate loss (e.g. diarrhea), while a positive UAG suggests impaired NH4+ excretion consistent with renal tubular acidosis (RTA). Result is a deterministic arithmetic calculation with citation, not a clinical diagnosis.
GEThttps://api.magentlab.com/api/calc/urine_anion_gapChoose this endpoint when you need a fast, citable, deterministic urine anion gap calculation with a built-in Batlle 1988 interpretive band for differentiating GI bicarbonate loss from renal tubular acidosis in the workup of non-anion gap metabolic acidosis. Prefer it over manual calculation when you need a machine-readable result with clinical interpretation text, or when logging acid-base assessments in an automated clinical workflow.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"path": "/api/calc/urine_anion_gap",
"count": 2,
"items": [
{
"formula": "urine_anion_gap",
"citation": {
"id": "batlle-1988",
"doi": "10.1056/NEJM198803033180902",
"title": "The use of the urinary anion gap in the diagnosis of hyperchloremic metabolic acidosis",
"source": "N Engl J Med. 1988;318(10):594-599",
"authors": "Batlle DC, Hizon M, Cohen E, Gutterman C, Gupta R"
},
"uag_band": "negative",
"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_expression": "urine_anion_gap_mmol_l = urine_sodium_mmol_l + urine_potassium_mmol_l - urine_chloride_mmol_l",
"urine_sodium_mmol_l": 20,
"urine_chloride_mmol_l": 90,
"urine_anion_gap_mmol_l": -40,
"urine_potassium_mmol_l": 30
},
{
"formula": "urine_anion_gap",
"citation": {
"id": "batlle-1988",
"doi": "10.1056/NEJM198803033180902",
"title": "The use of the urinary anion gap in the diagnosis of hyperchloremic metabolic acidosis",
"source": "N Engl J Med. 1988;318(10):594-599",
"authors": "Batlle DC, Hizon M, Cohen E, Gutterman C, Gupta R"
},
"uag_band": "negative",
"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_expression": "urine_anion_gap_mmol_l = urine_sodium_mmol_l + urine_potassium_mmol_l - urine_chloride_mmol_l",
"urine_sodium_mmol_l": 20,
"urine_chloride_mmol_l": 90,
"urine_anion_gap_mmol_l": -40,
"urine_potassium_mmol_l": 30
}
]
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"