{
  "x402Version": 2,
  "id": 39337,
  "slug": "39337",
  "resource": "https://api.magentlab.com/api/calc/adrogue_madias",
  "description": "Adrogué–Madias change in serum sodium after 1 L of infusate from TBW (child 0.6; adult male 0.6; adult female 0.5; elderly male 0.5; elderly female 0.45) and infusate Na plus K. Deterministic published arithmetic with citation; not a correction-rate order or infusion protocol.",
  "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": [
              {
                "age": 40,
                "infusate_k_mmol_l": 0,
                "infusate_na_mmol_l": 513,
                "pediatric": false,
                "sex": "female",
                "sodium_mmol_l": 110,
                "weight_kg": 70,
                "weight_lb": 154.3236
              },
              {
                "age": 40,
                "infusate_k_mmol_l": 0,
                "infusate_na_mmol_l": 513,
                "pediatric": false,
                "sex": "female",
                "sodium_mmol_l": 110,
                "weight_kg": 70,
                "weight_lb": 154.3236
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 40,
                "citation": {
                  "authors": "Adrogué HJ, Madias NE",
                  "doi": "10.1056/NEJM200005253422107",
                  "id": "adrogue-madias-2000",
                  "source": "N Engl J Med. 2000;342(21):1581-1589",
                  "title": "Hyponatremia"
                },
                "delta_na_mmol_l": 11.2,
                "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": "adrogue_madias",
                "formula_expression": "delta_na_mmol_l = (infusate_na_mmol_l + infusate_k_mmol_l - sodium_mmol_l) / (tbw_l + 1); tbw_l = tbw_fraction * weight_kg",
                "infusate_k_mmol_l": 0,
                "infusate_na_mmol_l": 513,
                "pediatric": false,
                "sex": "female",
                "sodium_mmol_l": 110,
                "tbw_fraction": 0.5,
                "tbw_l": 35,
                "weight_kg": 70
              },
              {
                "age_years": 40,
                "citation": {
                  "authors": "Adrogué HJ, Madias NE",
                  "doi": "10.1056/NEJM200005253422107",
                  "id": "adrogue-madias-2000",
                  "source": "N Engl J Med. 2000;342(21):1581-1589",
                  "title": "Hyponatremia"
                },
                "delta_na_mmol_l": 11.2,
                "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": "adrogue_madias",
                "formula_expression": "delta_na_mmol_l = (infusate_na_mmol_l + infusate_k_mmol_l - sodium_mmol_l) / (tbw_l + 1); tbw_l = tbw_fraction * weight_kg",
                "infusate_k_mmol_l": 0,
                "infusate_na_mmol_l": 513,
                "pediatric": false,
                "sex": "female",
                "sodium_mmol_l": 110,
                "tbw_fraction": 0.5,
                "tbw_l": 35,
                "weight_kg": 70
              }
            ],
            "path": "/api/calc/adrogue_madias"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years. pediatric=false: integer 18-120; age ≥65 uses the elderly TBW fraction. pediatric=true: integer 0-17; TBW uses the child fraction 0.6.",
                          "type": "integer"
                        },
                        "infusate_k_mmol_l": {
                          "description": "Potassium concentration of the same 1 L infusate in mmol/L (0-200). Omitted uses 0. Added to infusate sodium in the numerator.",
                          "type": "number"
                        },
                        "infusate_na_mmol_l": {
                          "description": "Sodium concentration of 1 L of infusate in mmol/L (0-1000). Adrogué–Madias table examples: 5% dextrose 0; 0.9% NaCl 154; 3% NaCl 513.",
                          "type": "number"
                        },
                        "pediatric": {
                          "description": "true uses the child TBW fraction 0.6. false uses adult or elderly fractions from sex and age. Required; magent does not infer child vs adult from age.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "Sex used for adult and elderly TBW fractions. Ignored for the TBW fraction when pediatric=true (child fraction 0.6).",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "sodium_mmol_l": {
                          "description": "Measured serum sodium in mmol/L. Range 90-190.",
                          "type": "number"
                        },
                        "weight_kg": {
                          "description": "Weight in kilograms. Provide weight_kg or weight_lb.",
                          "type": "number"
                        },
                        "weight_lb": {
                          "description": "Weight in pounds. Converted as kg = lb * 0.45359237.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "sodium_mmol_l",
                        "infusate_na_mmol_l",
                        "sex",
                        "age",
                        "pediatric"
                      ],
                      "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": [
    "adrogue-madias",
    "sodium",
    "electrolytes",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T22:56:07.779Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T22:56:07.547Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "infusate_k_mmol_l": 0,
                  "infusate_na_mmol_l": 513,
                  "pediatric": false,
                  "sex": "female",
                  "sodium_mmol_l": 110,
                  "weight_kg": 70,
                  "weight_lb": 154.3236
                },
                {
                  "age": 40,
                  "infusate_k_mmol_l": 0,
                  "infusate_na_mmol_l": 513,
                  "pediatric": false,
                  "sex": "female",
                  "sodium_mmol_l": 110,
                  "weight_kg": 70,
                  "weight_lb": 154.3236
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 40,
                  "citation": {
                    "authors": "Adrogué HJ, Madias NE",
                    "doi": "10.1056/NEJM200005253422107",
                    "id": "adrogue-madias-2000",
                    "source": "N Engl J Med. 2000;342(21):1581-1589",
                    "title": "Hyponatremia"
                  },
                  "delta_na_mmol_l": 11.2,
                  "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": "adrogue_madias",
                  "formula_expression": "delta_na_mmol_l = (infusate_na_mmol_l + infusate_k_mmol_l - sodium_mmol_l) / (tbw_l + 1); tbw_l = tbw_fraction * weight_kg",
                  "infusate_k_mmol_l": 0,
                  "infusate_na_mmol_l": 513,
                  "pediatric": false,
                  "sex": "female",
                  "sodium_mmol_l": 110,
                  "tbw_fraction": 0.5,
                  "tbw_l": 35,
                  "weight_kg": 70
                },
                {
                  "age_years": 40,
                  "citation": {
                    "authors": "Adrogué HJ, Madias NE",
                    "doi": "10.1056/NEJM200005253422107",
                    "id": "adrogue-madias-2000",
                    "source": "N Engl J Med. 2000;342(21):1581-1589",
                    "title": "Hyponatremia"
                  },
                  "delta_na_mmol_l": 11.2,
                  "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": "adrogue_madias",
                  "formula_expression": "delta_na_mmol_l = (infusate_na_mmol_l + infusate_k_mmol_l - sodium_mmol_l) / (tbw_l + 1); tbw_l = tbw_fraction * weight_kg",
                  "infusate_k_mmol_l": 0,
                  "infusate_na_mmol_l": 513,
                  "pediatric": false,
                  "sex": "female",
                  "sodium_mmol_l": 110,
                  "tbw_fraction": 0.5,
                  "tbw_l": 35,
                  "weight_kg": 70
                }
              ],
              "path": "/api/calc/adrogue_madias"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years. pediatric=false: integer 18-120; age ≥65 uses the elderly TBW fraction. pediatric=true: integer 0-17; TBW uses the child fraction 0.6.",
                            "type": "integer"
                          },
                          "infusate_k_mmol_l": {
                            "description": "Potassium concentration of the same 1 L infusate in mmol/L (0-200). Omitted uses 0. Added to infusate sodium in the numerator.",
                            "type": "number"
                          },
                          "infusate_na_mmol_l": {
                            "description": "Sodium concentration of 1 L of infusate in mmol/L (0-1000). Adrogué–Madias table examples: 5% dextrose 0; 0.9% NaCl 154; 3% NaCl 513.",
                            "type": "number"
                          },
                          "pediatric": {
                            "description": "true uses the child TBW fraction 0.6. false uses adult or elderly fractions from sex and age. Required; magent does not infer child vs adult from age.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "Sex used for adult and elderly TBW fractions. Ignored for the TBW fraction when pediatric=true (child fraction 0.6).",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "sodium_mmol_l": {
                            "description": "Measured serum sodium in mmol/L. Range 90-190.",
                            "type": "number"
                          },
                          "weight_kg": {
                            "description": "Weight in kilograms. Provide weight_kg or weight_lb.",
                            "type": "number"
                          },
                          "weight_lb": {
                            "description": "Weight in pounds. Converted as kg = lb * 0.45359237.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "sodium_mmol_l",
                          "infusate_na_mmol_l",
                          "sex",
                          "age",
                          "pediatric"
                        ],
                        "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"
  }
}