Calc Ivt Contraindications
by magent in Other
Powers 2018 Table 6 Class III Harm IVT. contraindicated iff any of 15 caller flags: CT ICH; recent ischemic stroke, severe head trauma, or intracranial/spinal surgery; posttraumatic infarction; history of ICH; SAH presentation; GI malignancy or bleed 21d; coagulopathy; LMWH 24h; DOAC not cleared; GP IIb/IIIa; infective endocarditis; aortic arch dissection; intra-axial neoplasm. Not Class I eligibility, time window, or a dose. magent does not read CT or assay labs. Not a treatment order.
https://api.magentlab.com/api/calc/ivt_contraindications- Price
- $0.007
- per call in USDC
- Uptime
- 94.3%
- last 30 days
- Response time
- 195 ms
- 440 ms slowest 5%
- Last check
- Failed
- 4 h ago, next any minute now
Reliability
Latest check failed 4 h ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/ivt_contraindications
Each call costs $0.007 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.
POST https://api.magentlab.com/api/calc/ivt_contraindications
content-type: application/json
{
"items": [
{
"aortic_arch_dissection": false,
"coagulopathy": false,
"ct_ich": false,
"doac_not_cleared": false,
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": false
},
{
"aortic_arch_dissection": false,
"coagulopathy": false,
"ct_ich": false,
"doac_not_cleared": false,
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": false
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 196 lines
{
"count": 2,
"items": [
{
"aortic_arch_dissection": false,
"citation": {
"authors": "Powers WJ, Rabinstein AA, Ackerson T, et al.",
"doi": "10.1161/STR.0000000000000158",
"id": "powers-2018",
"pmid": "29133354",
"source": "Stroke. 2018;49(3):e46-e110",
"title": "2018 Guidelines for the Early Management of Patients With Acute Ischemic Stroke: A Guideline for Healthcare Professionals From the American Heart Association/American Stroke Association"
},
"coagulopathy": false,
"contraindicated": false,
"criteria": [
{
"factor": "ct_ich",
"met": false
},
{
"factor": "ischemic_stroke_within_3_mo",
"met": false
},
{
"factor": "severe_head_trauma_within_3_mo",
"met": false
},
{
"factor": "posttraumatic_infarction_in_hospital",
"met": false
},
{
"factor": "intracranial_spinal_surgery_within_3_mo",
"met": false
},
{
"factor": "history_ich",
"met": false
},
{
"factor": "sah_presentation",
"met": false
},
{
"factor": "gi_malignancy_or_gi_bleed_21d",
"met": false
},
{
"factor": "coagulopathy",
"met": false
},
{
"factor": "lmwh_treatment_dose_within_24h",
"met": false
},
{
"factor": "doac_not_cleared",
"met": false
},
{
"factor": "gp2b3a_concurrent",
"met": false
},
{
"factor": "infective_endocarditis",
"met": false
},
{
"factor": "aortic_arch_dissection",
"met": false
},
{
"factor": "intra_axial_neoplasm",
"met": false
},
{
"factor": "contraindicated",
"met": false
}
],
"ct_ich": 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.",
"doac_not_cleared": false,
"formula": "ivt_contraindications",
"formula_expression": "contraindicated iff ct_ich or ischemic_stroke_within_3_mo or severe_head_trauma_within_3_mo or posttraumatic_infarction_in_hospital or intracranial_spinal_surgery_within_3_mo or history_ich or sah_presentation or gi_malignancy_or_gi_bleed_21d or coagulopathy or lmwh_treatment_dose_within_24h or doac_not_cleared or gp2b3a_concurrent or infective_endocarditis or aortic_arch_dissection or intra_axial_neoplasm (Powers 2018 Table 6 Class III: Harm). Not Class III No Benefit (unclear/wake-up onset windows, extensive CT hypoattenuation). Not Class I eligibility. Not 0-3h vs 3-4.5h. Not a dose. magent does not read CT, assay coagulation, or examine the patient. Not a treatment order",
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": false
},
{
"aortic_arch_dissection": false,
"citation": {
"authors": "Powers WJ, Rabinstein AA, Ackerson T, et al.",
"doi": "10.1161/STR.0000000000000158",
"id": "powers-2018",
"pmid": "29133354",
"source": "Stroke. 2018;49(3):e46-e110",
"title": "2018 Guidelines for the Early Management of Patients With Acute Ischemic Stroke: A Guideline for Healthcare Professionals From the American Heart Association/American Stroke Association"
},
"coagulopathy": false,
"contraindicated": false,
"criteria": [
{
"factor": "ct_ich",
"met": false
},
{
"factor": "ischemic_stroke_within_3_mo",
"met": false
},
{
"factor": "severe_head_trauma_within_3_mo",
"met": false
},
{
"factor": "posttraumatic_infarction_in_hospital",
"met": false
},
{
"factor": "intracranial_spinal_surgery_within_3_mo",
"met": false
},
{
"factor": "history_ich",
"met": false
},
{
"factor": "sah_presentation",
"met": false
},
{
"factor": "gi_malignancy_or_gi_bleed_21d",
"met": false
},
{
"factor": "coagulopathy",
"met": false
},
{
"factor": "lmwh_treatment_dose_within_24h",
"met": false
},
{
"factor": "doac_not_cleared",
"met": false
},
{
"factor": "gp2b3a_concurrent",
"met": false
},
{
"factor": "infective_endocarditis",
"met": false
},
{
"factor": "aortic_arch_dissection",
"met": false
},
{
"factor": "intra_axial_neoplasm",
"met": false
},
{
"factor": "contraindicated",
"met": false
}
],
"ct_ich": 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.",
"doac_not_cleared": false,
"formula": "ivt_contraindications",
"formula_expression": "contraindicated iff ct_ich or ischemic_stroke_within_3_mo or severe_head_trauma_within_3_mo or posttraumatic_infarction_in_hospital or intracranial_spinal_surgery_within_3_mo or history_ich or sah_presentation or gi_malignancy_or_gi_bleed_21d or coagulopathy or lmwh_treatment_dose_within_24h or doac_not_cleared or gp2b3a_concurrent or infective_endocarditis or aortic_arch_dissection or intra_axial_neoplasm (Powers 2018 Table 6 Class III: Harm). Not Class III No Benefit (unclear/wake-up onset windows, extensive CT hypoattenuation). Not Class I eligibility. Not 0-3h vs 3-4.5h. Not a dose. magent does not read CT, assay coagulation, or examine the patient. Not a treatment order",
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": false
}
],
"path": "/api/calc/ivt_contraindications"
}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.007.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.magentlab.com/api/calc/ivt_contraindications' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"aortic_arch_dissection":false,"coagulopathy":false,"ct_ich":false,"doac_not_cleared":false,"gi_malignancy_or_gi_bleed_21d":false,"gp2b3a_concurrent":false,"history_ich":false,"infective_endocarditis":false,"intra_axial_neoplasm":false,"intracranial_spinal_surgery_within_3_mo":false,"ischemic_stroke_within_3_mo":false,"lmwh_treatment_dose_within_24h":false,"posttraumatic_infarction_in_hospital":false,"sah_presentation":false,"severe_head_trauma_within_3_mo":false},{"aortic_arch_dissection":false,"coagulopathy":false,"ct_ich":false,"doac_not_cleared":false,"gi_malignancy_or_gi_bleed_21d":false,"gp2b3a_concurrent":false,"history_ich":false,"infective_endocarditis":false,"intra_axial_neoplasm":false,"intracranial_spinal_surgery_within_3_mo":false,"ischemic_stroke_within_3_mo":false,"lmwh_treatment_dose_within_24h":false,"posttraumatic_infarction_in_hospital":false,"sah_presentation":false,"severe_head_trauma_within_3_mo":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 - -X POST 'https://api.magentlab.com/api/calc/ivt_contraindications' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"aortic_arch_dissection":false,"coagulopathy":false,"ct_ich":false,"doac_not_cleared":false,"gi_malignancy_or_gi_bleed_21d":false,"gp2b3a_concurrent":false,"history_ich":false,"infective_endocarditis":false,"intra_axial_neoplasm":false,"intracranial_spinal_surgery_within_3_mo":false,"ischemic_stroke_within_3_mo":false,"lmwh_treatment_dose_within_24h":false,"posttraumatic_infarction_in_hospital":false,"sah_presentation":false,"severe_head_trauma_within_3_mo":false},{"aortic_arch_dissection":false,"coagulopathy":false,"ct_ich":false,"doac_not_cleared":false,"gi_malignancy_or_gi_bleed_21d":false,"gp2b3a_concurrent":false,"history_ich":false,"infective_endocarditis":false,"intra_axial_neoplasm":false,"intracranial_spinal_surgery_within_3_mo":false,"ischemic_stroke_within_3_mo":false,"lmwh_treatment_dose_within_24h":false,"posttraumatic_infarction_in_hospital":false,"sah_presentation":false,"severe_head_trauma_within_3_mo":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.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
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.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fivt_contraindications&method=POST
const res = await pay("https://api.magentlab.com/api/calc/ivt_contraindications", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"aortic_arch_dissection": false,
"coagulopathy": false,
"ct_ich": false,
"doac_not_cleared": false,
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": false
},
{
"aortic_arch_dissection": false,
"coagulopathy": false,
"ct_ich": false,
"doac_not_cleared": false,
"gi_malignancy_or_gi_bleed_21d": false,
"gp2b3a_concurrent": false,
"history_ich": false,
"infective_endocarditis": false,
"intra_axial_neoplasm": false,
"intracranial_spinal_surgery_within_3_mo": false,
"ischemic_stroke_within_3_mo": false,
"lmwh_treatment_dose_within_24h": false,
"posttraumatic_infarction_in_hospital": false,
"sah_presentation": false,
"severe_head_trauma_within_3_mo": 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.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.magentlab.com/api/calc/ivt_contraindications",
json={
"items": [
{
"aortic_arch_dissection": False,
"coagulopathy": False,
"ct_ich": False,
"doac_not_cleared": False,
"gi_malignancy_or_gi_bleed_21d": False,
"gp2b3a_concurrent": False,
"history_ich": False,
"infective_endocarditis": False,
"intra_axial_neoplasm": False,
"intracranial_spinal_surgery_within_3_mo": False,
"ischemic_stroke_within_3_mo": False,
"lmwh_treatment_dose_within_24h": False,
"posttraumatic_infarction_in_hospital": False,
"sah_presentation": False,
"severe_head_trauma_within_3_mo": False,
},
{
"aortic_arch_dissection": False,
"coagulopathy": False,
"ct_ich": False,
"doac_not_cleared": False,
"gi_malignancy_or_gi_bleed_21d": False,
"gp2b3a_concurrent": False,
"history_ich": False,
"infective_endocarditis": False,
"intra_axial_neoplasm": False,
"intracranial_spinal_surgery_within_3_mo": False,
"ischemic_stroke_within_3_mo": False,
"lmwh_treatment_dose_within_24h": False,
"posttraumatic_infarction_in_hospital": False,
"sah_presentation": False,
"severe_head_trauma_within_3_mo": False,
},
],
},
)
print(res.status_code, res.text)Security scan
1 finding
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Timed out | - | - | - |
| 9 h ago | Timed out | - | - | - |
| 13 h ago | Passed | 402 | 176 ms | $0.007 |
| 18 h ago | Passed | 402 | 471 ms | $0.007 |
| 23 h ago | Passed | 402 | 146 ms | $0.007 |
Show 10 older checks
| 27 h ago | Passed | 402 | 339 ms | $0.007 |
| 32 h ago | Passed | 402 | 252 ms | $0.007 |
| 36 h ago | Passed | 402 | 157 ms | $0.007 |
| 41 h ago | Passed | 402 | 353 ms | $0.007 |
| 45 h ago | Passed | 402 | 255 ms | $0.007 |
| 2 days ago | Passed | 402 | 155 ms | $0.007 |
| 2 days ago | Passed | 402 | 157 ms | $0.007 |
| 2 days ago | Passed | 402 | 321 ms | $0.007 |
| 3 days ago | Passed | 402 | 189 ms | $0.007 |
| 3 days ago | Passed | 402 | 187 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |