78trust / 100
Calc Periop Doac
by magent in Security & trust
x402 APIPassing, checked 1 h ago
Douketis 2022 ACCP elective perioperative DOAC interruption (PAUSE-style, recommendations 22-25). Returns hold_days_before and resume_days_after from INN (apixaban, rivaroxaban, edoxaban, dabigatran) and bleed_risk. dabigatran also needs caller-assigned CrCl. heparin_bridge is always false (recommendation 26). Not warfarin, not urgent surgery, not a prescription. magent does not assay CrCl.
POST https://api.magentlab.com/api/calc/periop_doac
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 149 ms typical, 304 ms slowest 5%
- Last check
- 1 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/periop_doac" \
-H "content-type: application/json" \
-d '{"items":[{"bleed_risk":"low_to_moderate","crcl_ml_min":40,"doac":"apixaban"},{"bleed_risk":"low_to_moderate","crcl_ml_min":40,"doac":"apixaban"}]}'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%2Fperiop_doac
const res = await pay("https://api.magentlab.com/api/calc/periop_doac", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"bleed_risk":"low_to_moderate","crcl_ml_min":40,"doac":"apixaban"},{"bleed_risk":"low_to_moderate","crcl_ml_min":40,"doac":"apixaban"}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"bleed_risk": "low_to_moderate",
"crcl_ml_min": 40,
"doac": "apixaban"
},
{
"bleed_risk": "low_to_moderate",
"crcl_ml_min": 40,
"doac": "apixaban"
}
]
}Example output
{
"count": 2,
"items": [
{
"bleed_risk": "low_to_moderate",
"citation": {
"authors": "Douketis JD, Spyropoulos AC, Murad MH, et al.",
"doi": "10.1016/j.chest.2022.07.025",
"id": "douketis-2022",
"pmid": "35964704",
"source": "Chest. 2022;162(5):e207-e243",
"title": "Perioperative Management of Antithrombotic Therapy: An American College of Chest Physicians Clinical Practice Guideline"
},
"criteria": [
{
"factor": "doac",
"met": true,
"value": "apixaban"
},
{
"factor": "high_bleed_risk",
"met": false,
"value": "low_to_moderate"
},
{
"factor": "dabigatran",
"met": false
},
{
"factor": "dabigatran_crcl_lt_50",
"met": 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": "apixaban",
"formula": "periop_doac",
"formula_expression": "Douketis 2022 PAUSE-style elective DOAC interruption (recommendations 22-25): apixaban/rivaroxaban/edoxaban hold 1 day (low_to_moderate) or 2 days (high); dabigatran CrCl>=50 same 1/2; dabigatran CrCl<50 hold 2 (low_to_moderate) or 4 (high); resume 1 day after low_to_moderate or 2 days after high; heparin_bridge always false (recommendation 26)",
"heparin_bridge": false,
"hold_days_before": 1,
"resume_days_after": 1,
"total_pre_post_days": 2
},
{
"bleed_risk": "low_to_moderate",
"citation": {
"authors": "Douketis JD, Spyropoulos AC, Murad MH, et al.",
"doi": "10.1016/j.chest.2022.07.025",
"id": "douketis-2022",
"pmid": "35964704",
"source": "Chest. 2022;162(5):e207-e243",
"title": "Perioperative Management of Antithrombotic Therapy: An American College of Chest Physicians Clinical Practice Guideline"
},
"criteria": [
{
"factor": "doac",
"met": true,
"value": "apixaban"
},
{
"factor": "high_bleed_risk",
"met": false,
"value": "low_to_moderate"
},
{
"factor": "dabigatran",
"met": false
},
{
"factor": "dabigatran_crcl_lt_50",
"met": 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": "apixaban",
"formula": "periop_doac",
"formula_expression": "Douketis 2022 PAUSE-style elective DOAC interruption (recommendations 22-25): apixaban/rivaroxaban/edoxaban hold 1 day (low_to_moderate) or 2 days (high); dabigatran CrCl>=50 same 1/2; dabigatran 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 |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 253 ms | $0.005 |
| 5 h ago | Passed | 402 | 149 ms | $0.005 |
| 13 h ago | Passed | 402 | 152 ms | $0.005 |
| 16 h ago | Passed | 402 | 241 ms | $0.005 |
| 21 h ago | Passed | 402 | 149 ms | $0.005 |
| 24 h ago | Passed | 402 | 136 ms | $0.005 |
| 27 h ago | Passed | 402 | 535 ms | $0.005 |
| 32 h ago | Passed | 402 | 148 ms | $0.005 |
| 35 h ago | Passed | 402 | 138 ms | $0.005 |
| 40 h ago | Passed | 402 | 304 ms | $0.005 |