Calc Hct Ci
by magent in Security & trust
Sorror 2005 HCT-specific comorbidity index. Seventeen caller-assigned comorbidities with published weights 1, 2, or 3 (max 26). Pulmonary moderate vs severe and hepatic mild vs moderate/severe are mutually exclusive. Risk groups: 0 low, 1–2 intermediate, ≥3 high. Caller supplies the published category; magent does not interpret PFTs or echo and does not list for transplant. Not Charlson. Not a diagnosis. Not a medical device.
https://api.magentlab.com/api/calc/hct_ci- Price
- $0.005
- per call in USDC
- Uptime
- 92.3%
- last 30 days
- Response time
- 241 ms
- 396 ms slowest 5%
- Last check
- Failed
- 3 h ago, next in 3 h
Reliability
Latest check failed 3 h ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.magentlab.com/api/calc/hct_ci
Each call costs $0.005 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=falseParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
arrhythmia | boolean | Yes | Arrhythmia as assigned by the caller (Sorror 2005: atrial fibrillation or flutter, sick sinus syndrome, or ventricular arrhythmias). true scores 1. magent does not diagnose arrhythmia. |
cardiac | boolean | Yes | Cardiac comorbidity as assigned by the caller (Sorror 2005: coronary artery disease, congestive heart failure, myocardial infarction, or ejection fraction ≤50%). true scores 1. magent does not interpret echo or diagnose cardiac disease. |
cerebrovascular_disease | boolean | Yes | Cerebrovascular disease as assigned by the caller (Sorror 2005: TIA or cerebrovascular accident). true scores 1. magent does not diagnose stroke or TIA. |
diabetes | boolean | Yes | Diabetes requiring insulin or oral hypoglycemics, not diet alone, as assigned by the caller (Sorror 2005). true scores 1. magent does not diagnose diabetes. |
heart_valve_disease | boolean | Yes | Heart valve disease except mitral valve prolapse as assigned by the caller (Sorror 2005). true scores 3. magent does not interpret echo. |
infection | boolean | Yes | Infection requiring continuation of antimicrobial treatment after day 0 as assigned by the caller (Sorror 2005). true scores 1. magent does not diagnose infection. |
inflammatory_bowel_disease | boolean | Yes | Inflammatory bowel disease as assigned by the caller (Sorror 2005: Crohn disease or ulcerative colitis). true scores 1. magent does not diagnose IBD. |
mild_hepatic | boolean | Yes | Mild hepatic comorbidity as assigned by the caller (Sorror 2005: chronic hepatitis, bilirubin >ULN to 1.5×ULN, or AST/ALT >ULN to 2.5×ULN). true scores 1. Mutually exclusive with moderate_severe_hepatic. magent does not grade liver tests. |
moderate_pulmonary | boolean | Yes | Moderate pulmonary comorbidity as assigned by the caller (Sorror 2005: DLco and/or FEV1 66%–80% or dyspnea on slight activity). true scores 2. Mutually exclusive with severe_pulmonary. magent does not interpret PFTs. |
moderate_severe_hepatic | boolean | Yes | Moderate/severe hepatic comorbidity as assigned by the caller (Sorror 2005: cirrhosis, bilirubin >1.5×ULN, or AST/ALT >2.5×ULN). true scores 3. Mutually exclusive with mild_hepatic. magent does not grade liver tests. |
moderate_severe_renal | boolean | Yes | Moderate/severe renal comorbidity as assigned by the caller (Sorror 2005: serum creatinine >2 mg/dL, dialysis, or prior renal transplantation). true scores 2. magent does not grade kidney disease from creatinine. |
obesity | boolean | Yes | Obesity as assigned by the caller (Sorror 2005: body mass index >35 kg/m²). true scores 1. magent does not compute BMI. |
peptic_ulcer | boolean | Yes | Peptic ulcer requiring treatment as assigned by the caller (Sorror 2005). true scores 2. magent does not diagnose ulcer disease. |
prior_solid_tumor | boolean | Yes | Prior solid tumor treated at any time, excluding nonmelanoma skin cancer, as assigned by the caller (Sorror 2005). true scores 3. magent does not diagnose cancer. |
psychiatric_disturbance | boolean | Yes | Psychiatric disturbance as assigned by the caller (Sorror 2005: depression or anxiety requiring psychiatric consult or treatment). true scores 1. magent does not diagnose psychiatric disease. |
rheumatologic | boolean | Yes | Rheumatologic comorbidity as assigned by the caller (Sorror 2005: SLE, RA, polymyositis, mixed CTD, or polymyalgia rheumatica). true scores 2. magent does not diagnose rheumatologic disease. |
severe_pulmonary | boolean | Yes | Severe pulmonary comorbidity as assigned by the caller (Sorror 2005: DLco and/or FEV1 ≤65% or dyspnea at rest or requiring oxygen). true scores 3. Mutually exclusive with moderate_pulmonary. magent does not interpret PFTs. |
Example response
The provider's example. We can't check it without paying.
Example response, 103 lines
{
"citation": {
"authors": "Sorror ML, Maris MB, Storb R, et al.",
"doi": "10.1182/blood-2005-05-2004",
"id": "sorror-2005",
"pmid": "15994282",
"source": "Blood. 2005;106(9):2912-2919",
"title": "Hematopoietic cell transplantation (HCT)-specific comorbidity index: a new tool for risk assessment before allogeneic HCT"
},
"components": [
{
"factor": "arrhythmia",
"points": 0,
"present": false
},
{
"factor": "cardiac",
"points": 0,
"present": false
},
{
"factor": "inflammatory_bowel_disease",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "cerebrovascular_disease",
"points": 0,
"present": false
},
{
"factor": "psychiatric_disturbance",
"points": 0,
"present": false
},
{
"factor": "mild_hepatic",
"points": 0,
"present": false
},
{
"factor": "obesity",
"points": 0,
"present": false
},
{
"factor": "infection",
"points": 0,
"present": false
},
{
"factor": "rheumatologic",
"points": 0,
"present": false
},
{
"factor": "peptic_ulcer",
"points": 0,
"present": false
},
{
"factor": "moderate_severe_renal",
"points": 0,
"present": false
},
{
"factor": "moderate_pulmonary",
"points": 0,
"present": false
},
{
"factor": "prior_solid_tumor",
"points": 0,
"present": false
},
{
"factor": "heart_valve_disease",
"points": 0,
"present": false
},
{
"factor": "severe_pulmonary",
"points": 0,
"present": false
},
{
"factor": "moderate_severe_hepatic",
"points": 0,
"present": 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": "hct_ci",
"formula_expression": "HCT-CI = arrhythmia 1 + cardiac 1 + inflammatory_bowel_disease 1 + diabetes 1 + cerebrovascular_disease 1 + psychiatric_disturbance 1 + mild_hepatic 1 + obesity 1 + infection 1 + rheumatologic 2 + peptic_ulcer 2 + moderate_severe_renal 2 + moderate_pulmonary 2 + prior_solid_tumor 3 + heart_valve_disease 3 + severe_pulmonary 3 + moderate_severe_hepatic 3; Sorror 2005 HCT-CI weights; max 26; pulmonary moderate vs severe exclusive; hepatic mild vs moderate/severe exclusive; risk groups 0 low / 1-2 intermediate / >=3 high",
"max_score": 26,
"risk_group": "low",
"score": 0
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fhct_ci
const res = await pay("https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false")
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 3 h ago | Timed out | - | - | - |
| 13 h ago | Passed | 402 | 179 ms | $0.005 |
| 23 h ago | Passed | 402 | 258 ms | $0.005 |
| 33 h ago | Passed | 402 | 265 ms | $0.005 |
| 43 h ago | Passed | 402 | 308 ms | $0.005 |
Show 8 older checks
| 2 days ago | Passed | 402 | 298 ms | $0.005 |
| 3 days ago | Passed | 402 | 161 ms | $0.005 |
| 3 days ago | Passed | 402 | 241 ms | $0.005 |
| 3 days ago | Passed | 402 | 396 ms | $0.005 |
| 4 days ago | Passed | 402 | 143 ms | $0.005 |
| 4 days ago | Passed | 402 | 152 ms | $0.005 |
| 5 days ago | Passed | 402 | 295 ms | $0.005 |
| 5 days ago | Passed | 402 | 141 ms | $0.005 |