78trust / 100
Calc Adhere
by magent in AI models & inference
x402 APIPassing, checked 4 h ago
Fonarow 2005 ADHERE CART bedside tree from admission BUN, systolic BP, and serum creatinine. high: BUN>=43, SBP<115, Cr>=2.75; intermediate_1: BUN>=43, SBP<115, Cr<2.75; intermediate_2: BUN>=43, SBP>=115; intermediate_3: BUN<43, SBP<115; low: BUN<43, SBP>=115. Creatinine consulted only when BUN>=43 and SBP<115. CART tree only, not the logistic model or GWTG-HF. Not a heart-failure diagnosis or treatment/ICU order.
POST https://api.magentlab.com/api/calc/adhere
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 156 ms typical, 505 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/adhere" \
-H "content-type: application/json" \
-d '{"items":[{"bun_mg_dl":20,"creatinine_mg_dl":1,"creatinine_umol_l":88.4,"systolic_bp_mm_hg":140},{"bun_mg_dl":20,"creatinine_mg_dl":1,"creatinine_umol_l":88.4,"systolic_bp_mm_hg":140}]}'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%2Fadhere
const res = await pay("https://api.magentlab.com/api/calc/adhere", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"bun_mg_dl":20,"creatinine_mg_dl":1,"creatinine_umol_l":88.4,"systolic_bp_mm_hg":140},{"bun_mg_dl":20,"creatinine_mg_dl":1,"creatinine_umol_l":88.4,"systolic_bp_mm_hg":140}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"bun_mg_dl": 20,
"creatinine_mg_dl": 1,
"creatinine_umol_l": 88.4,
"systolic_bp_mm_hg": 140
},
{
"bun_mg_dl": 20,
"creatinine_mg_dl": 1,
"creatinine_umol_l": 88.4,
"systolic_bp_mm_hg": 140
}
]
}Example output
{
"count": 2,
"items": [
{
"adhere_risk": "low",
"bun_mg_dl": 20,
"citation": {
"authors": "Fonarow GC, Adams KF Jr, Abraham WT, Yancy CW, Boscardin WJ; ADHERE Scientific Advisory Committee, Study Group, and Investigators",
"doi": "10.1001/jama.293.5.572",
"id": "fonarow-2005",
"pmid": "15687312",
"source": "JAMA. 2005;293(5):572-580",
"title": "Risk stratification for in-hospital mortality in acutely decompensated heart failure: classification and regression tree analysis"
},
"creatinine_mg_dl": 1,
"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": "adhere",
"formula_expression": "high: bun_mg_dl >= 43 AND systolic_bp_mm_hg < 115 AND creatinine_mg_dl >= 2.75; intermediate_1: bun_mg_dl >= 43 AND systolic_bp_mm_hg < 115 AND creatinine_mg_dl < 2.75; intermediate_2: bun_mg_dl >= 43 AND systolic_bp_mm_hg >= 115; intermediate_3: bun_mg_dl < 43 AND systolic_bp_mm_hg < 115; low: bun_mg_dl < 43 AND systolic_bp_mm_hg >= 115 (Fonarow 2005 CART)",
"systolic_bp_mm_hg": 140
},
{
"adhere_risk": "low",
"bun_mg_dl": 20,
"citation": {
"authors": "Fonarow GC, Adams KF Jr, Abraham WT, Yancy CW, Boscardin WJ; ADHERE Scientific Advisory Committee, Study Group, and Investigators",
"doi": "10.1001/jama.293.5.572",
"id": "fonarow-2005",
"pmid": "15687312",
"source": "JAMA. 2005;293(5):572-580",
"title": "Risk stratification for in-hospital mortality in acutely decompensated heart failure: classification and regression tree analysis"
},
"creatinine_mg_dl": 1,
"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": "adhere",
"formula_expression": "high: bun_mg_dl >= 43 AND systolic_bp_mm_hg < 115 AND creatinine_mg_dl >= 2.75; intermediate_1: bun_mg_dl >= 43 AND systolic_bp_mm_hg < 115 AND creatinine_mg_dl < 2.75; intermediate_2: bun_mg_dl >= 43 AND systolic_bp_mm_hg >= 115; intermediate_3: bun_mg_dl < 43 AND systolic_bp_mm_hg < 115; low: bun_mg_dl < 43 AND systolic_bp_mm_hg >= 115 (Fonarow 2005 CART)",
"systolic_bp_mm_hg": 140
}
],
"path": "/api/calc/adhere"
}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 |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 229 ms | $0.005 |
| 7 h ago | Passed | 402 | 151 ms | $0.005 |
| 11 h ago | Passed | 402 | 505 ms | $0.005 |
| 14 h ago | Passed | 402 | 166 ms | $0.005 |
| 23 h ago | Passed | 402 | 149 ms | $0.005 |
| 26 h ago | Passed | 402 | 149 ms | $0.005 |
| 30 h ago | Passed | 402 | 239 ms | $0.005 |
| 33 h ago | Passed | 402 | 328 ms | $0.005 |
| 37 h ago | Passed | 402 | 151 ms | $0.005 |
| 41 h ago | Passed | 402 | 139 ms | $0.005 |
| 44 h ago | Passed | 402 | 156 ms | $0.005 |
| 2 days ago | Passed | 402 | 509 ms | $0.005 |