Calc Who Pv
by magent in Other
WHO 2016 polycythemia vera criteria (Arber 2016). Met when all three majors hold, or when major 1 and major 2 hold with subnormal EPO. Major 1 is male Hb >16.5 g/dL or Hct >49%, female Hb >16.0 or Hct >48%, or increased red-cell mass. Major 2 is caller-assigned marrow panmyelosis. Major 3 is JAK2 V617F or exon 12. Not a medical device, not a WHO diagnosis, and not WHO 2022. magent does not assay EPO or sequence JAK2.
https://api.magentlab.com/api/calc/who_pv- Price
- $0.007
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 163 ms
- 528 ms slowest 5%
- Last check
- Passed
- 3 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/who_pv
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/who_pv
content-type: application/json
{
"items": [
{
"bone_marrow_panmyelosis": false,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"sex": "male",
"subnormal_epo": false
},
{
"bone_marrow_panmyelosis": false,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"sex": "male",
"subnormal_epo": 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, 92 lines
{
"count": 2,
"items": [
{
"bone_marrow_panmyelosis": false,
"citation": {
"authors": "Arber DA, Orazi A, Hasserjian R, Thiele J, Borowitz MJ, Le Beau MM, Bloomfield CD, Cazzola M, Vardiman JW",
"doi": "10.1182/blood-2016-03-643544",
"id": "arber-2016",
"pmid": "27069254",
"source": "Blood. 2016;127(20):2391-2405",
"title": "The 2016 revision to the World Health Organization classification of myeloid neoplasms and acute leukemia"
},
"criteria": [
{
"factor": "major_1",
"met": false
},
{
"factor": "major_2",
"met": false
},
{
"factor": "major_3",
"met": false
},
{
"factor": "minor",
"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.",
"formula": "who_pv",
"formula_expression": "pv_criteria_met iff (major_1 and major_2 and major_3) or (major_1 and major_2 and minor); major_1 iff increased_red_cell_mass or (male and (hemoglobin_g_dl > 16.5 or hematocrit_percent > 49)) or (female and (hemoglobin_g_dl > 16.0 or hematocrit_percent > 48)); major_2 bone_marrow_panmyelosis; major_3 jak2_v617f_or_exon12; minor subnormal_epo (Arber 2016 WHO 2016 PV). Not WHO 2022",
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"major_1": false,
"major_2": false,
"major_3": false,
"minor": false,
"pv_criteria_met": false,
"sex": "male",
"subnormal_epo": false
},
{
"bone_marrow_panmyelosis": false,
"citation": {
"authors": "Arber DA, Orazi A, Hasserjian R, Thiele J, Borowitz MJ, Le Beau MM, Bloomfield CD, Cazzola M, Vardiman JW",
"doi": "10.1182/blood-2016-03-643544",
"id": "arber-2016",
"pmid": "27069254",
"source": "Blood. 2016;127(20):2391-2405",
"title": "The 2016 revision to the World Health Organization classification of myeloid neoplasms and acute leukemia"
},
"criteria": [
{
"factor": "major_1",
"met": false
},
{
"factor": "major_2",
"met": false
},
{
"factor": "major_3",
"met": false
},
{
"factor": "minor",
"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.",
"formula": "who_pv",
"formula_expression": "pv_criteria_met iff (major_1 and major_2 and major_3) or (major_1 and major_2 and minor); major_1 iff increased_red_cell_mass or (male and (hemoglobin_g_dl > 16.5 or hematocrit_percent > 49)) or (female and (hemoglobin_g_dl > 16.0 or hematocrit_percent > 48)); major_2 bone_marrow_panmyelosis; major_3 jak2_v617f_or_exon12; minor subnormal_epo (Arber 2016 WHO 2016 PV). Not WHO 2022",
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"major_1": false,
"major_2": false,
"major_3": false,
"minor": false,
"pv_criteria_met": false,
"sex": "male",
"subnormal_epo": false
}
],
"path": "/api/calc/who_pv"
}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/who_pv' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"bone_marrow_panmyelosis":false,"hematocrit_percent":45,"hemoglobin_g_dl":15,"increased_red_cell_mass":false,"jak2_v617f_or_exon12":false,"sex":"male","subnormal_epo":false},{"bone_marrow_panmyelosis":false,"hematocrit_percent":45,"hemoglobin_g_dl":15,"increased_red_cell_mass":false,"jak2_v617f_or_exon12":false,"sex":"male","subnormal_epo":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/who_pv' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"bone_marrow_panmyelosis":false,"hematocrit_percent":45,"hemoglobin_g_dl":15,"increased_red_cell_mass":false,"jak2_v617f_or_exon12":false,"sex":"male","subnormal_epo":false},{"bone_marrow_panmyelosis":false,"hematocrit_percent":45,"hemoglobin_g_dl":15,"increased_red_cell_mass":false,"jak2_v617f_or_exon12":false,"sex":"male","subnormal_epo":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%2Fwho_pv&method=POST
const res = await pay("https://api.magentlab.com/api/calc/who_pv", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"bone_marrow_panmyelosis": false,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"sex": "male",
"subnormal_epo": false
},
{
"bone_marrow_panmyelosis": false,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": false,
"jak2_v617f_or_exon12": false,
"sex": "male",
"subnormal_epo": 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/who_pv",
json={
"items": [
{
"bone_marrow_panmyelosis": False,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": False,
"jak2_v617f_or_exon12": False,
"sex": "male",
"subnormal_epo": False,
},
{
"bone_marrow_panmyelosis": False,
"hematocrit_percent": 45,
"hemoglobin_g_dl": 15,
"increased_red_cell_mass": False,
"jak2_v617f_or_exon12": False,
"sex": "male",
"subnormal_epo": 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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 163 ms | $0.007 |
| 8 h ago | Passed | 402 | 152 ms | $0.007 |
| 12 h ago | Passed | 402 | 140 ms | $0.007 |
| 17 h ago | Passed | 402 | 235 ms | $0.007 |
| 21 h ago | Passed | 402 | 152 ms | $0.007 |
Show 10 older checks
| 26 h ago | Passed | 402 | 152 ms | $0.007 |
| 30 h ago | Passed | 402 | 439 ms | $0.007 |
| 34 h ago | Passed | 402 | 139 ms | $0.007 |
| 38 h ago | Passed | 402 | 326 ms | $0.007 |
| 43 h ago | Passed | 402 | 158 ms | $0.007 |
| 47 h ago | Passed | 402 | 528 ms | $0.007 |
| 2 days ago | Passed | 402 | 268 ms | $0.007 |
| 2 days ago | Passed | 402 | 192 ms | $0.007 |
| 3 days ago | Passed | 402 | 141 ms | $0.007 |
| 3 days ago | Passed | 402 | 148 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |