{
  "x402Version": 2,
  "id": 39065,
  "slug": "39065",
  "resource": "https://api.magentlab.com/api/calc/kim_meldna",
  "description": "Kim 2008 NEJM MELD-Na from creatinine, bilirubin, INR, sodium, and dialysis. Then-current UNOS MELD: dialysis sets creatinine 4.0 else clamp 1.0-4.0; bilirubin and INR floor 1.0. Sodium bound 125-140. MELDNa = MELD - Na - 0.025*MELD*(140-Na) + 140. Not OPTN 2016 MELD-Na (Na 125-137 only if MELD>11). Not Kim 2021 MELD 3.0. Not a transplant listing or allocation order.",
  "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": [
              {
                "bilirubin_mg_dl": 1.1,
                "bilirubin_umol_l": 19,
                "creatinine_mg_dl": 1.2,
                "creatinine_umol_l": 106,
                "dialysis": false,
                "inr": 1.1,
                "sodium_mmol_l": 125
              },
              {
                "bilirubin_mg_dl": 1.1,
                "bilirubin_umol_l": 19,
                "creatinine_mg_dl": 1.2,
                "creatinine_umol_l": 106,
                "dialysis": false,
                "inr": 1.1,
                "sodium_mmol_l": 125
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bilirubin_mg_dl": 1.1,
                "bilirubin_used_mg_dl": 1.1,
                "citation": {
                  "authors": "Kim WR, Biggins SW, Kremers WK, Wiesner RH, Kamath PS, Benson JT, Edwards E, Therneau TM",
                  "doi": "10.1056/NEJMoa0801209",
                  "id": "kim-2008-meldna",
                  "pmid": "18768945",
                  "source": "N Engl J Med. 2008;359(10):1018-1026",
                  "title": "Hyponatremia and mortality among patients on the liver-transplant waiting list"
                },
                "creatinine_mg_dl": 1.2,
                "creatinine_used_mg_dl": 1.2,
                "dialysis": 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": "kim_meldna_2008",
                "formula_expression": "MELD = round(10 * (0.957*ln(Cr) + 0.378*ln(bili) + 1.120*ln(INR) + 0.643)); MELDNa = round(MELD - Na - 0.025*MELD*(140 - Na) + 140); dialysis sets Cr 4.0 else Cr clamp 1.0-4.0; bili and INR floor 1.0; Na bound 125-140. Kim 2008 NEJM, not OPTN 2016, not MELD 3.0",
                "inr": 1.1,
                "inr_used": 1.1,
                "meld": 10,
                "meld_na": 21,
                "sodium_mmol_l": 125,
                "sodium_used_mmol_l": 125
              },
              {
                "bilirubin_mg_dl": 1.1,
                "bilirubin_used_mg_dl": 1.1,
                "citation": {
                  "authors": "Kim WR, Biggins SW, Kremers WK, Wiesner RH, Kamath PS, Benson JT, Edwards E, Therneau TM",
                  "doi": "10.1056/NEJMoa0801209",
                  "id": "kim-2008-meldna",
                  "pmid": "18768945",
                  "source": "N Engl J Med. 2008;359(10):1018-1026",
                  "title": "Hyponatremia and mortality among patients on the liver-transplant waiting list"
                },
                "creatinine_mg_dl": 1.2,
                "creatinine_used_mg_dl": 1.2,
                "dialysis": 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": "kim_meldna_2008",
                "formula_expression": "MELD = round(10 * (0.957*ln(Cr) + 0.378*ln(bili) + 1.120*ln(INR) + 0.643)); MELDNa = round(MELD - Na - 0.025*MELD*(140 - Na) + 140); dialysis sets Cr 4.0 else Cr clamp 1.0-4.0; bili and INR floor 1.0; Na bound 125-140. Kim 2008 NEJM, not OPTN 2016, not MELD 3.0",
                "inr": 1.1,
                "inr_used": 1.1,
                "meld": 10,
                "meld_na": 21,
                "sodium_mmol_l": 125,
                "sodium_used_mmol_l": 125
              }
            ],
            "path": "/api/calc/kim_meldna"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Floored at 1.0.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                          "type": "number"
                        },
                        "creatinine_mg_dl": {
                          "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. Dialysis sets used creatinine to 4.0; otherwise clamp 1.0-4.0 (then-current UNOS, Kim 2008).",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Serum creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42.",
                          "type": "number"
                        },
                        "dialysis": {
                          "description": "Dialysis twice in the last week. true sets creatinine used to 4.0.",
                          "type": "boolean"
                        },
                        "inr": {
                          "description": "INR (0.8-10). Floored at 1.0.",
                          "type": "number"
                        },
                        "sodium_mmol_l": {
                          "description": "Serum sodium in mmol/L (110-160). Kim 2008 bounds the sodium term at 125-140. Applied at every MELD (not only MELD>11).",
                          "type": "number"
                        }
                      },
                      "required": [
                        "inr",
                        "sodium_mmol_l",
                        "dialysis"
                      ],
                      "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": [
    "kim-meldna",
    "liver",
    "meld-na",
    "hyponatremia",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:26:22.319Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T07:26:22.17Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bilirubin_mg_dl": 1.1,
                  "bilirubin_umol_l": 19,
                  "creatinine_mg_dl": 1.2,
                  "creatinine_umol_l": 106,
                  "dialysis": false,
                  "inr": 1.1,
                  "sodium_mmol_l": 125
                },
                {
                  "bilirubin_mg_dl": 1.1,
                  "bilirubin_umol_l": 19,
                  "creatinine_mg_dl": 1.2,
                  "creatinine_umol_l": 106,
                  "dialysis": false,
                  "inr": 1.1,
                  "sodium_mmol_l": 125
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bilirubin_mg_dl": 1.1,
                  "bilirubin_used_mg_dl": 1.1,
                  "citation": {
                    "authors": "Kim WR, Biggins SW, Kremers WK, Wiesner RH, Kamath PS, Benson JT, Edwards E, Therneau TM",
                    "doi": "10.1056/NEJMoa0801209",
                    "id": "kim-2008-meldna",
                    "pmid": "18768945",
                    "source": "N Engl J Med. 2008;359(10):1018-1026",
                    "title": "Hyponatremia and mortality among patients on the liver-transplant waiting list"
                  },
                  "creatinine_mg_dl": 1.2,
                  "creatinine_used_mg_dl": 1.2,
                  "dialysis": 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": "kim_meldna_2008",
                  "formula_expression": "MELD = round(10 * (0.957*ln(Cr) + 0.378*ln(bili) + 1.120*ln(INR) + 0.643)); MELDNa = round(MELD - Na - 0.025*MELD*(140 - Na) + 140); dialysis sets Cr 4.0 else Cr clamp 1.0-4.0; bili and INR floor 1.0; Na bound 125-140. Kim 2008 NEJM, not OPTN 2016, not MELD 3.0",
                  "inr": 1.1,
                  "inr_used": 1.1,
                  "meld": 10,
                  "meld_na": 21,
                  "sodium_mmol_l": 125,
                  "sodium_used_mmol_l": 125
                },
                {
                  "bilirubin_mg_dl": 1.1,
                  "bilirubin_used_mg_dl": 1.1,
                  "citation": {
                    "authors": "Kim WR, Biggins SW, Kremers WK, Wiesner RH, Kamath PS, Benson JT, Edwards E, Therneau TM",
                    "doi": "10.1056/NEJMoa0801209",
                    "id": "kim-2008-meldna",
                    "pmid": "18768945",
                    "source": "N Engl J Med. 2008;359(10):1018-1026",
                    "title": "Hyponatremia and mortality among patients on the liver-transplant waiting list"
                  },
                  "creatinine_mg_dl": 1.2,
                  "creatinine_used_mg_dl": 1.2,
                  "dialysis": 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": "kim_meldna_2008",
                  "formula_expression": "MELD = round(10 * (0.957*ln(Cr) + 0.378*ln(bili) + 1.120*ln(INR) + 0.643)); MELDNa = round(MELD - Na - 0.025*MELD*(140 - Na) + 140); dialysis sets Cr 4.0 else Cr clamp 1.0-4.0; bili and INR floor 1.0; Na bound 125-140. Kim 2008 NEJM, not OPTN 2016, not MELD 3.0",
                  "inr": 1.1,
                  "inr_used": 1.1,
                  "meld": 10,
                  "meld_na": 21,
                  "sodium_mmol_l": 125,
                  "sodium_used_mmol_l": 125
                }
              ],
              "path": "/api/calc/kim_meldna"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Floored at 1.0.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                            "type": "number"
                          },
                          "creatinine_mg_dl": {
                            "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. Dialysis sets used creatinine to 4.0; otherwise clamp 1.0-4.0 (then-current UNOS, Kim 2008).",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Serum creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42.",
                            "type": "number"
                          },
                          "dialysis": {
                            "description": "Dialysis twice in the last week. true sets creatinine used to 4.0.",
                            "type": "boolean"
                          },
                          "inr": {
                            "description": "INR (0.8-10). Floored at 1.0.",
                            "type": "number"
                          },
                          "sodium_mmol_l": {
                            "description": "Serum sodium in mmol/L (110-160). Kim 2008 bounds the sodium term at 125-140. Applied at every MELD (not only MELD>11).",
                            "type": "number"
                          }
                        },
                        "required": [
                          "inr",
                          "sodium_mmol_l",
                          "dialysis"
                        ],
                        "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"
  }
}