Calc Revised Geneva
by magent in Other
Revised Geneva score (Le Gal 2006) for suspected PE in the emergency department: age >65 (1), previous DVT or PE (3), surgery or lower-limb fracture within 1 month (2), active malignancy (2), unilateral lower-limb pain (3), hemoptysis (2), heart rate 75-94 (3) or >=95 (5), pain on deep-vein palpation and unilateral edema (4). Max 22. Bands 0-3, 4-10, and 11-22. Not a diagnosis, not simplified Geneva, and not Wells.
https://api.magentlab.com/api/calc/revised_geneva- Price
- $0.007
- per call in USDC
- Uptime
- 96.9%
- last 30 days
- Response time
- 256 ms
- 386 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/revised_geneva
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/revised_geneva
content-type: application/json
{
"items": [
{
"active_malignancy": false,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": false,
"pain_on_deep_vein_palpation_and_unilateral_edema": false,
"previous_dvt_or_pe": false,
"surgery_or_fracture_within_1_month": false,
"unilateral_lower_limb_pain": false
},
{
"active_malignancy": false,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": false,
"pain_on_deep_vein_palpation_and_unilateral_edema": false,
"previous_dvt_or_pe": false,
"surgery_or_fracture_within_1_month": false,
"unilateral_lower_limb_pain": 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, 140 lines
{
"count": 2,
"items": [
{
"age_years": 50,
"citation": {
"authors": "Le Gal G, Righini M, Roy PM, et al.",
"doi": "10.7326/0003-4819-144-3-200602070-00004",
"id": "le-gal-2006",
"source": "Ann Intern Med. 2006;144(3):165-171",
"title": "Prediction of pulmonary embolism in the emergency department: the revised Geneva score"
},
"components": [
{
"factor": "age_gt_65",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "previous_dvt_or_pe",
"points": 0,
"present": false
},
{
"factor": "surgery_or_fracture_within_1_month",
"points": 0,
"present": false
},
{
"factor": "active_malignancy",
"points": 0,
"present": false
},
{
"factor": "unilateral_lower_limb_pain",
"points": 0,
"present": false
},
{
"factor": "hemoptysis",
"points": 0,
"present": false
},
{
"factor": "heart_rate_75_94",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "heart_rate_ge_95",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "pain_on_deep_vein_palpation_and_unilateral_edema",
"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": "revised_geneva",
"formula_expression": "revised Geneva = age>65 (1) + previous_dvt_or_pe (3) + surgery_or_fracture_within_1_month (2) + active_malignancy (2) + unilateral_lower_limb_pain (3) + hemoptysis (2) + heart_rate_75_94 (3) or heart_rate_ge_95 (5) + pain_on_deep_vein_palpation_and_unilateral_edema (4); max 22; bands 0-3, 4-10, 11-22",
"geneva_band": "0-3",
"heart_rate_bpm": 70,
"max_score": 22,
"score": 0
},
{
"age_years": 50,
"citation": {
"authors": "Le Gal G, Righini M, Roy PM, et al.",
"doi": "10.7326/0003-4819-144-3-200602070-00004",
"id": "le-gal-2006",
"source": "Ann Intern Med. 2006;144(3):165-171",
"title": "Prediction of pulmonary embolism in the emergency department: the revised Geneva score"
},
"components": [
{
"factor": "age_gt_65",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "previous_dvt_or_pe",
"points": 0,
"present": false
},
{
"factor": "surgery_or_fracture_within_1_month",
"points": 0,
"present": false
},
{
"factor": "active_malignancy",
"points": 0,
"present": false
},
{
"factor": "unilateral_lower_limb_pain",
"points": 0,
"present": false
},
{
"factor": "hemoptysis",
"points": 0,
"present": false
},
{
"factor": "heart_rate_75_94",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "heart_rate_ge_95",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "pain_on_deep_vein_palpation_and_unilateral_edema",
"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": "revised_geneva",
"formula_expression": "revised Geneva = age>65 (1) + previous_dvt_or_pe (3) + surgery_or_fracture_within_1_month (2) + active_malignancy (2) + unilateral_lower_limb_pain (3) + hemoptysis (2) + heart_rate_75_94 (3) or heart_rate_ge_95 (5) + pain_on_deep_vein_palpation_and_unilateral_edema (4); max 22; bands 0-3, 4-10, 11-22",
"geneva_band": "0-3",
"heart_rate_bpm": 70,
"max_score": 22,
"score": 0
}
],
"path": "/api/calc/revised_geneva"
}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/revised_geneva' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"active_malignancy":false,"age":50,"heart_rate_bpm":70,"hemoptysis":false,"pain_on_deep_vein_palpation_and_unilateral_edema":false,"previous_dvt_or_pe":false,"surgery_or_fracture_within_1_month":false,"unilateral_lower_limb_pain":false},{"active_malignancy":false,"age":50,"heart_rate_bpm":70,"hemoptysis":false,"pain_on_deep_vein_palpation_and_unilateral_edema":false,"previous_dvt_or_pe":false,"surgery_or_fracture_within_1_month":false,"unilateral_lower_limb_pain":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/revised_geneva' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"active_malignancy":false,"age":50,"heart_rate_bpm":70,"hemoptysis":false,"pain_on_deep_vein_palpation_and_unilateral_edema":false,"previous_dvt_or_pe":false,"surgery_or_fracture_within_1_month":false,"unilateral_lower_limb_pain":false},{"active_malignancy":false,"age":50,"heart_rate_bpm":70,"hemoptysis":false,"pain_on_deep_vein_palpation_and_unilateral_edema":false,"previous_dvt_or_pe":false,"surgery_or_fracture_within_1_month":false,"unilateral_lower_limb_pain":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%2Frevised_geneva&method=POST
const res = await pay("https://api.magentlab.com/api/calc/revised_geneva", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"active_malignancy": false,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": false,
"pain_on_deep_vein_palpation_and_unilateral_edema": false,
"previous_dvt_or_pe": false,
"surgery_or_fracture_within_1_month": false,
"unilateral_lower_limb_pain": false
},
{
"active_malignancy": false,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": false,
"pain_on_deep_vein_palpation_and_unilateral_edema": false,
"previous_dvt_or_pe": false,
"surgery_or_fracture_within_1_month": false,
"unilateral_lower_limb_pain": 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/revised_geneva",
json={
"items": [
{
"active_malignancy": False,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": False,
"pain_on_deep_vein_palpation_and_unilateral_edema": False,
"previous_dvt_or_pe": False,
"surgery_or_fracture_within_1_month": False,
"unilateral_lower_limb_pain": False,
},
{
"active_malignancy": False,
"age": 50,
"heart_rate_bpm": 70,
"hemoptysis": False,
"pain_on_deep_vein_palpation_and_unilateral_edema": False,
"previous_dvt_or_pe": False,
"surgery_or_fracture_within_1_month": False,
"unilateral_lower_limb_pain": 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 | Passed | 402 | 226 ms | $0.007 |
| 8 h ago | Passed | 402 | 140 ms | $0.007 |
| 13 h ago | Passed | 402 | 285 ms | $0.007 |
| 18 h ago | Passed | 402 | 365 ms | $0.007 |
| 22 h ago | Passed | 402 | 233 ms | $0.007 |
Show 10 older checks
| 27 h ago | Passed | 402 | 386 ms | $0.007 |
| 31 h ago | Passed | 402 | 274 ms | $0.007 |
| 35 h ago | Passed | 402 | 282 ms | $0.007 |
| 39 h ago | Passed | 402 | 385 ms | $0.007 |
| 44 h ago | Passed | 402 | 291 ms | $0.007 |
| 2 days ago | Passed | 402 | 313 ms | $0.007 |
| 2 days ago | Passed | 402 | 309 ms | $0.007 |
| 2 days ago | Passed | 402 | 337 ms | $0.007 |
| 3 days ago | Passed | 402 | 393 ms | $0.007 |
| 3 days ago | Passed | 402 | 245 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |