Hematology · LIVE
MAPS (systemic mastocytosis)
MAPS
Sum the Pardanani 2018 MAPS hybrid clinical-molecular (Figure 3) points for systemic mastocytosis and return low (≤2), intermediate_1 (3), intermediate_2 (4), or high (≥5).
Markdown: /docs/maps.md · Canonical: https://magentlab.com/docs/maps
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum the Pardanani 2018 MAPS hybrid clinical-molecular (Figure 3) points for systemic mastocytosis and return low (≤2), intermediate_1 (3), intermediate_2 (4), or high (≥5).
When to use
When an agent needs the published MAPS hybrid clinical-molecular point total and risk band and must not invent a mastocytosis diagnosis, WHO SM criteria, ICC SM, or the clinical-only MAPS Figure 1.
When not to use
- Not a medical device and not a diagnosis of systemic mastocytosis. magent does not examine the patient.
- This is Pardanani 2018 hybrid clinical-molecular Figure 3 only (HR-weighted). Not the clinical-only MAPS Figure 1 (unweighted count with anemia instead of mutations).
- Not WHO SM diagnostic criteria (who-sm). Not ICC SM.
- magent does not sequence. adverse_mutations (ASXL1, RUNX1, or NRAS) is caller-assigned.
- magent does not assay ALP or platelets. alp_above_unl and platelets_10e9_l are caller-supplied.
Formula
MAPS = sm_category_advanced 2 + age_gt_60 1 + platelets_lt_150 1 + alp_above_unl 1 + adverse_mutations 1; Pardanani 2018 hybrid Figure 3; max 6; low ≤2, intermediate_1 3, intermediate_2 4, high ≥5
Citation
- Title
- Mayo alliance prognostic system for mastocytosis: clinical and hybrid clinical-molecular models
- Authors
- Pardanani A, Shah S, Mannelli F, Elala YC, Guglielmelli P, Lasho TL, Patnaik MM, Gangat N, Ketterling RP, Reichard KK, Hanson CA, Vannucchi AM, Tefferi A
- Source
- Blood Adv. 2018;2(21):2964-2972
Worked example
Advanced SM, age 65, platelets 100, ALP above UNL
Given:
adverse_mutations=falseage=65alp_above_unl=trueplatelets_10e9_l=100sm_category=advanced
- sm_category advanced → 2; age 65 >60 → 1; platelets 100 <150 → 1; alp_above_unl true → 1; adverse_mutations false → 0
- Score = 5 (max 6); risk_band = high (≥5)
Indolent SM with no hybrid adverse factors
Given:
adverse_mutations=falseage=50alp_above_unl=falseplatelets_10e9_l=200sm_category=indolent
- sm_category indolent → 0; age 50 ≤60 → 0; platelets 200 ≥150 → 0; alp_above_unl false → 0; adverse_mutations false → 0
- Score = 0 (max 6); risk_band = low (≤2)
Also searched as
- Mayo alliance prognostic system
- MAPS mastocytosis
- Pardanani MAPS
- systemic mastocytosis MAPS
- hybrid clinical-molecular MAPS
- ISM SSM advanced SM score
- MAPS hybrid Figure 3
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
Full URL: https://api.magentlab.com/api/calc/maps?sm_category=advanced&age=65&platelets_10e9_l=100&alp_above_unl=true&adverse_mutations=false
Call
Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params
return HTTP 400 before any quote or charge.
curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/maps?sm_category=advanced&age=65&platelets_10e9_l=100&alp_above_unl=true&adverse_mutations=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sm_category |
string | required | Caller-assigned SM category for Pardanani 2018 hybrid Figure 3. indolent (ISM/SSM) scores 0. advanced (ASM, SM-AHN, or MCL) scores 2. Other tokens are invalid_maps. Not WHO SM criteria. magent does not assign WHO or ICC SM. |
age |
integer | required | Age in years (18-120, Params.age). >60 scores 1 (Pardanani 2018 Figure 3). 60 is the ≤60 arm and scores 0. |
platelets_10e9_l |
number | required | Platelet count in 10^9/L (1-2000). <150 scores 1 (Pardanani 2018 Figure 3). 150.0 is the ≥150 arm and scores 0. magent does not assay platelets. |
alp_above_unl |
boolean | required | Serum alkaline phosphatase above the upper normal limit as assigned by the caller (Pardanani 2018 Figure 3). true scores 1. magent does not assay ALP. |
adverse_mutations |
boolean | required | ASXL1, RUNX1, or NRAS as assigned by the caller (Pardanani 2018 hybrid Figure 3). true scores 1. magent does not sequence. |
Bulk (POST)
POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.
- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.
Example request (fixture)
{
"items": [
{
"adverse_mutations": "false",
"age": "65",
"alp_above_unl": "true",
"platelets_10e9_l": "100",
"sm_category": "advanced"
},
{
"adverse_mutations": "false",
"age": "65",
"alp_above_unl": "true",
"platelets_10e9_l": "100",
"sm_category": "advanced"
}
]
}
Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.
Example 200 (fixture)
{
"count": 2,
"path": "/api/calc/maps",
"items": [
{
"components": [
{
"value": "advanced",
"factor": "sm_category_advanced",
"points": 2,
"present": true
},
{
"value": 65,
"factor": "age_gt_60",
"points": 1,
"present": true
},
{
"value": 100.0,
"factor": "platelets_lt_150",
"points": 1,
"present": true
},
{
"factor": "alp_above_unl",
"points": 1,
"present": true
},
{
"factor": "adverse_mutations",
"points": 0,
"present": false
}
],
"age": 65,
"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.",
"citation": {
"authors": "Pardanani A, Shah S, Mannelli F, Elala YC, Guglielmelli P, Lasho TL, Patnaik MM, Gangat N, Ketterling RP, Reichard KK, Hanson CA, Vannucchi AM, Tefferi A",
"doi": "10.1182/bloodadvances.2018026245",
"id": "pardanani-2018",
"pmid": "30413432",
"source": "Blood Adv. 2018;2(21):2964-2972",
"title": "Mayo alliance prognostic system for mastocytosis: clinical and hybrid clinical-molecular models"
},
"formula": "maps",
"formula_expression": "MAPS = sm_category_advanced 2 + age_gt_60 1 + platelets_lt_150 1 + alp_above_unl 1 + adverse_mutations 1; Pardanani 2018 hybrid Figure 3; max 6; low ≤2, intermediate_1 3, intermediate_2 4, high ≥5",
"max_score": 6,
"score": 5,
"platelets_10e9_l": 100.0,
"risk_band": "high",
"adverse_mutations": false,
"alp_above_unl": true,
"sm_category": "advanced"
},
{
"components": [
{
"value": "advanced",
"factor": "sm_category_advanced",
"points": 2,
"present": true
},
{
"value": 65,
"factor": "age_gt_60",
"points": 1,
"present": true
},
{
"value": 100.0,
"factor": "platelets_lt_150",
"points": 1,
"present": true
},
{
"factor": "alp_above_unl",
"points": 1,
"present": true
},
{
"factor": "adverse_mutations",
"points": 0,
"present": false
}
],
"age": 65,
"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.",
"citation": {
"authors": "Pardanani A, Shah S, Mannelli F, Elala YC, Guglielmelli P, Lasho TL, Patnaik MM, Gangat N, Ketterling RP, Reichard KK, Hanson CA, Vannucchi AM, Tefferi A",
"doi": "10.1182/bloodadvances.2018026245",
"id": "pardanani-2018",
"pmid": "30413432",
"source": "Blood Adv. 2018;2(21):2964-2972",
"title": "Mayo alliance prognostic system for mastocytosis: clinical and hybrid clinical-molecular models"
},
"formula": "maps",
"formula_expression": "MAPS = sm_category_advanced 2 + age_gt_60 1 + platelets_lt_150 1 + alp_above_unl 1 + adverse_mutations 1; Pardanani 2018 hybrid Figure 3; max 6; low ≤2, intermediate_1 3, intermediate_2 4, high ≥5",
"max_score": 6,
"score": 5,
"platelets_10e9_l": 100.0,
"risk_band": "high",
"adverse_mutations": false,
"alp_above_unl": true,
"sm_category": "advanced"
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | maps |
formula_expression |
string | Exact expression used |
score |
integer | MAPS hybrid Figure 3 points 0-6 |
max_score |
integer | Always 6 (2+1+1+1+1) |
risk_band |
string | low when score is ≤2, intermediate_1 when 3, intermediate_2 when 4, high when ≥5 (Pardanani 2018 hybrid Figure 3A). Not a diagnosis. Not WHO SM. Not ICC SM. Not clinical-only Figure 1. |
sm_category |
string | Caller-assigned indolent or advanced used for the 0 vs 2-point SM rung |
age |
integer | Age in years used for the >60 criterion |
platelets_10e9_l |
number | Platelets in 10^9/L used for the <150 criterion |
alp_above_unl |
boolean | Caller-assigned serum ALP above UNL flag used |
adverse_mutations |
boolean | Caller-assigned ASXL1, RUNX1, or NRAS flag used |
components |
array | Per-factor points |
citation |
object | Pardanani et al. Blood Adv 2018 MAPS hybrid citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": "advanced",
"factor": "sm_category_advanced",
"points": 2,
"present": true
},
{
"value": 65,
"factor": "age_gt_60",
"points": 1,
"present": true
},
{
"value": 100.0,
"factor": "platelets_lt_150",
"points": 1,
"present": true
},
{
"factor": "alp_above_unl",
"points": 1,
"present": true
},
{
"factor": "adverse_mutations",
"points": 0,
"present": false
}
],
"age": 65,
"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.",
"citation": {
"authors": "Pardanani A, Shah S, Mannelli F, Elala YC, Guglielmelli P, Lasho TL, Patnaik MM, Gangat N, Ketterling RP, Reichard KK, Hanson CA, Vannucchi AM, Tefferi A",
"doi": "10.1182/bloodadvances.2018026245",
"id": "pardanani-2018",
"pmid": "30413432",
"source": "Blood Adv. 2018;2(21):2964-2972",
"title": "Mayo alliance prognostic system for mastocytosis: clinical and hybrid clinical-molecular models"
},
"formula": "maps",
"formula_expression": "MAPS = sm_category_advanced 2 + age_gt_60 1 + platelets_lt_150 1 + alp_above_unl 1 + adverse_mutations 1; Pardanani 2018 hybrid Figure 3; max 6; low ≤2, intermediate_1 3, intermediate_2 4, high ≥5",
"max_score": 6,
"score": 5,
"platelets_10e9_l": 100.0,
"risk_band": "high",
"adverse_mutations": false,
"alp_above_unl": true,
"sm_category": "advanced"
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_maps |
sm_category must be indolent or advanced (Pardanani 2018 MAPS hybrid Figure 3: ISM/SSM vs advanced SM). Returned before settlement; you are not charged. |
| 400 | invalid_age |
age must be an integer from 18 to 120 Returned before settlement; you are not charged. |
| 400 | invalid_platelets |
platelets_10e9_l must be a number from 1 to 2000 Returned before settlement; you are not charged. |
| 400 | invalid_flag |
boolean clinical flags must be true or false Returned before settlement; you are not charged. |
| 400 | invalid_items |
POST body must be a JSON object with only an items array Returned before settlement; you are not charged. |
| 400 | invalid_item_count |
items must be an array of 1 to 25 objects Returned before settlement; you are not charged. |
| 400 | invalid_item |
each items entry must be a JSON object Returned before settlement; you are not charged. |
Related tools
- WHO 2016 SM criteria — Apply the Valent 2016 / WHO 2016 systemic mastocytosis diagnostic criteria (Table 1) and return whether the published combination of the major criterion plus at least one minor, or at least three minors, is met. Tryptase >20 ng/mL does not count when an unrelated myeloid neoplasm is present.
- MIPSS70 — Sum the Guglielmelli 2018 MIPSS70 (mutation-enhanced international prognostic score system) for transplantation-age primary myelofibrosis and return low (0–1), intermediate (2–4), or high (≥5).
- WHO 2016 PV criteria — Apply the Arber 2016 / WHO 2016 polycythemia vera diagnostic criteria and return whether the published combination of three majors, or major 1 and major 2 plus subnormal EPO, is met.
Payment
Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64
PAYMENT-REQUIRED
header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake
and shared payment errors: Payments.
Stdio MCP: /docs/mcp.
Guarantees
- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.