78trust / 100
Calc Ukeld
by magent in Weather & location
x402 APIPassing, checked 26 min ago
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.
POST https://api.magentlab.com/api/calc/ukeld
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 151 ms typical, 407 ms slowest 5%
- Last check
- 26 min ago
- Next check
- in 3 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/ukeld" \
-H "content-type: application/json" \
-d '{"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}]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fukeld
const res = await pay("https://api.magentlab.com/api/calc/ukeld", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"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}]}),
});
console.log(await res.json());Example input
{
"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
}
]
}Example output
{
"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"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 155 ms | $0.005 |
| 4 h ago | Passed | 402 | 333 ms | $0.005 |
| 8 h ago | Passed | 402 | 407 ms | $0.005 |
| 11 h ago | Passed | 402 | 267 ms | $0.005 |
| 20 h ago | Passed | 402 | 303 ms | $0.005 |
| 23 h ago | Passed | 402 | 139 ms | $0.005 |
| 27 h ago | Passed | 402 | 148 ms | $0.005 |
| 31 h ago | Passed | 402 | 151 ms | $0.005 |
| 34 h ago | Passed | 402 | 142 ms | $0.005 |
| 39 h ago | Passed | 402 | 144 ms | $0.005 |
| 41 h ago | Passed | 402 | 140 ms | $0.005 |
| 47 h ago | Passed | 402 | 457 ms | $0.005 |