{
  "x402Version": 2,
  "id": 39565,
  "slug": "39565",
  "resource": "https://api.magentlab.com/api/calc/ukeld",
  "description": "Barber 2011 United Kingdom end-stage liver disease (UKELD) from INR, creatinine, bilirubin, and sodium in native SI units. UKELD = 5.395*ln(INR) + 1.485*ln(creatinine_umol_l) + 3.13*ln(bilirubin_umol_l) - 81.565*ln(sodium_mmol_l) + 435, nearest integer. below_listing if <49; listing_threshold if ≥49 (UK elective-list 9% 1-year mortality cut). Not a transplant listing or allocation order. Not MELD or MELD-Na.",
  "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": 2.3,
                "bilirubin_umol_l": 40,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 90,
                "inr": 1.2,
                "sodium_mmol_l": 135
              },
              {
                "bilirubin_mg_dl": 2.3,
                "bilirubin_umol_l": 40,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 90,
                "inr": 1.2,
                "sodium_mmol_l": 135
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bilirubin_umol_l": 40,
                "citation": {
                  "authors": "Barber K, Madden S, Allen J, Collett D, Neuberger J, Gimson A; United Kingdom Liver Transplant Selection and Allocation Working Party",
                  "doi": "10.1097/TP.0b013e318225db4d",
                  "id": "barber-2011",
                  "pmid": "21775931",
                  "source": "Transplantation. 2011;92(4):469-476",
                  "title": "Elective liver transplant list mortality: development of a United Kingdom end-stage liver disease score"
                },
                "creatinine_umol_l": 90,
                "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": "ukeld",
                "formula_expression": "UKELD = 5.395 * ln(INR) + 1.485 * ln(creatinine_umol_l) + 3.13 * ln(bilirubin_umol_l) - 81.565 * ln(sodium_mmol_l) + 435",
                "inr": 1.2,
                "sodium_mmol_l": 135,
                "ukeld": 54,
                "ukeld_band": "listing_threshold"
              },
              {
                "bilirubin_umol_l": 40,
                "citation": {
                  "authors": "Barber K, Madden S, Allen J, Collett D, Neuberger J, Gimson A; United Kingdom Liver Transplant Selection and Allocation Working Party",
                  "doi": "10.1097/TP.0b013e318225db4d",
                  "id": "barber-2011",
                  "pmid": "21775931",
                  "source": "Transplantation. 2011;92(4):469-476",
                  "title": "Elective liver transplant list mortality: development of a United Kingdom end-stage liver disease score"
                },
                "creatinine_umol_l": 90,
                "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": "ukeld",
                "formula_expression": "UKELD = 5.395 * ln(INR) + 1.485 * ln(creatinine_umol_l) + 3.13 * ln(bilirubin_umol_l) - 81.565 * ln(sodium_mmol_l) + 435",
                "inr": 1.2,
                "sodium_mmol_l": 135,
                "ukeld": 54,
                "ukeld_band": "listing_threshold"
              }
            ],
            "path": "/api/calc/ukeld"
          },
          "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). Converted as µmol/L = mg/dL × 17.1. Provide this or bilirubin_umol_l, not both.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L (2-684). Provide this or bilirubin_mg_dl, not both. Barber 2011 uses µmol/L; no MELD floor.",
                          "type": "number"
                        },
                        "creatinine_mg_dl": {
                          "description": "Serum creatinine in mg/dL (0.1-20). Converted as µmol/L = mg/dL × 88.42. Provide this or creatinine_umol_l, not both.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Serum creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl, not both. Barber 2011 uses µmol/L; no MELD floor.",
                          "type": "number"
                        },
                        "inr": {
                          "description": "International normalized ratio (0.8-10). Barber 2011 does not floor INR at 1.",
                          "type": "number"
                        },
                        "sodium_mmol_l": {
                          "description": "Serum sodium in mmol/L (110-160). Barber 2011 does not clamp sodium to 125–137.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "inr",
                        "sodium_mmol_l"
                      ],
                      "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": [
    "ukeld",
    "liver",
    "cirrhosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T13:53:18.962Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T13:53:18.83Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bilirubin_mg_dl": 2.3,
                  "bilirubin_umol_l": 40,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 90,
                  "inr": 1.2,
                  "sodium_mmol_l": 135
                },
                {
                  "bilirubin_mg_dl": 2.3,
                  "bilirubin_umol_l": 40,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 90,
                  "inr": 1.2,
                  "sodium_mmol_l": 135
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bilirubin_umol_l": 40,
                  "citation": {
                    "authors": "Barber K, Madden S, Allen J, Collett D, Neuberger J, Gimson A; United Kingdom Liver Transplant Selection and Allocation Working Party",
                    "doi": "10.1097/TP.0b013e318225db4d",
                    "id": "barber-2011",
                    "pmid": "21775931",
                    "source": "Transplantation. 2011;92(4):469-476",
                    "title": "Elective liver transplant list mortality: development of a United Kingdom end-stage liver disease score"
                  },
                  "creatinine_umol_l": 90,
                  "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": "ukeld",
                  "formula_expression": "UKELD = 5.395 * ln(INR) + 1.485 * ln(creatinine_umol_l) + 3.13 * ln(bilirubin_umol_l) - 81.565 * ln(sodium_mmol_l) + 435",
                  "inr": 1.2,
                  "sodium_mmol_l": 135,
                  "ukeld": 54,
                  "ukeld_band": "listing_threshold"
                },
                {
                  "bilirubin_umol_l": 40,
                  "citation": {
                    "authors": "Barber K, Madden S, Allen J, Collett D, Neuberger J, Gimson A; United Kingdom Liver Transplant Selection and Allocation Working Party",
                    "doi": "10.1097/TP.0b013e318225db4d",
                    "id": "barber-2011",
                    "pmid": "21775931",
                    "source": "Transplantation. 2011;92(4):469-476",
                    "title": "Elective liver transplant list mortality: development of a United Kingdom end-stage liver disease score"
                  },
                  "creatinine_umol_l": 90,
                  "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": "ukeld",
                  "formula_expression": "UKELD = 5.395 * ln(INR) + 1.485 * ln(creatinine_umol_l) + 3.13 * ln(bilirubin_umol_l) - 81.565 * ln(sodium_mmol_l) + 435",
                  "inr": 1.2,
                  "sodium_mmol_l": 135,
                  "ukeld": 54,
                  "ukeld_band": "listing_threshold"
                }
              ],
              "path": "/api/calc/ukeld"
            },
            "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). Converted as µmol/L = mg/dL × 17.1. Provide this or bilirubin_umol_l, not both.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L (2-684). Provide this or bilirubin_mg_dl, not both. Barber 2011 uses µmol/L; no MELD floor.",
                            "type": "number"
                          },
                          "creatinine_mg_dl": {
                            "description": "Serum creatinine in mg/dL (0.1-20). Converted as µmol/L = mg/dL × 88.42. Provide this or creatinine_umol_l, not both.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Serum creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl, not both. Barber 2011 uses µmol/L; no MELD floor.",
                            "type": "number"
                          },
                          "inr": {
                            "description": "International normalized ratio (0.8-10). Barber 2011 does not floor INR at 1.",
                            "type": "number"
                          },
                          "sodium_mmol_l": {
                            "description": "Serum sodium in mmol/L (110-160). Barber 2011 does not clamp sodium to 125–137.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "inr",
                          "sodium_mmol_l"
                        ],
                        "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"
  }
}