Hematology · LIVE
GIPSS (primary myelofibrosis)
GIPSS
Sum the Tefferi 2018 GIPSS (genetically inspired prognostic scoring system) for primary myelofibrosis and return low (0), intermediate_1 (1), intermediate_2 (2), or high (≥3).
Markdown: /docs/gipss.md · Canonical: https://magentlab.com/docs/gipss
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum the Tefferi 2018 GIPSS (genetically inspired prognostic scoring system) for primary myelofibrosis and return low (0), intermediate_1 (1), intermediate_2 (2), or high (≥3).
When to use
When an agent needs the published GIPSS point total and risk group and must not invent a PMF diagnosis or transplant listing, and must not substitute DIPSS, DIPSS Plus, or MIPSS70-plus.
When not to use
- Not a medical device and not a PMF diagnosis or transplant listing. magent does not examine the patient.
- This is Tefferi 2018 GIPSS only, not DIPSS, not DIPSS Plus, not MIPSS70, and not MIPSS70-plus.
- magent does not karyotype. karyotype is the caller-assigned three-tier class (favorable, unfavorable, vhr) from Tefferi 2018 revised cytogenetics.
- magent does not sequence. calr_type1_like, asxl1_mutated, srsf2_mutated, and u2af1_q157_mutated are caller-assigned flags. U2AF1 scores only Q157, not S34.
- Published median and 5-year survivals are Tefferi 2018 cohort figures for the four GIPSS bands, not a patient-specific prediction.
Formula
GIPSS = karyotype (favorable 0, unfavorable 1, vhr 2) + absence of type 1/like CALR 1 + asxl1_mutated 1 + srsf2_mutated 1 + u2af1_q157_mutated 1; Tefferi 2018; max 6; low 0, intermediate_1 1, intermediate_2 2, high ≥3
Citation
- Authors
- Tefferi A, Guglielmelli P, Nicolosi M, Mannelli F, Mudireddy M, Bartalucci N, Finke CM, Lasho TL, Hanson CA, Ketterling RP, Begna KH, Gangat N, Pardanani A, Vannucchi AM
- Source
- Leukemia. 2018;32(7):1631-1642
Worked example
Favorable karyotype, type 1/like CALR, no high-risk mutations
Given:
asxl1_mutated=falsecalr_type1_like=truekaryotype=favorablesrsf2_mutated=falseu2af1_q157_mutated=false
- karyotype favorable → 0; calr_type1_like true → 0; asxl1_mutated false → 0; srsf2_mutated false → 0; u2af1_q157_mutated false → 0
- Score = 0 (max 6); risk_group = low
VHR karyotype, no type 1/like CALR, ASXL1 and SRSF2
Given:
asxl1_mutated=truecalr_type1_like=falsekaryotype=vhrsrsf2_mutated=trueu2af1_q157_mutated=false
- karyotype vhr → 2; absence of type 1/like CALR → 1; asxl1_mutated → 1; srsf2_mutated → 1; u2af1_q157_mutated false → 0
- Score = 5 (max 6); risk_group = high (≥3)
Also searched as
- GIPSS
- genetically inspired prognostic scoring system
- Tefferi GIPSS
- GIPSS myelofibrosis
- primary myelofibrosis GIPSS
- PMF GIPSS
- Tefferi 2018 GIPSS
- genetically inspired PMF score
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/gipss?karyotype=favorable&calr_type1_like=true&asxl1_mutated=false&srsf2_mutated=false&u2af1_q157_mutated=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/gipss?karyotype=favorable&calr_type1_like=true&asxl1_mutated=false&srsf2_mutated=false&u2af1_q157_mutated=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
karyotype |
string | required · favorable, unfavorable, vhr | Tefferi 2018 revised three-tier karyotype as assigned by the caller (mutually exclusive). favorable is a normal karyotype or sole 13q−, +9, 20q−, chromosome 1 translocation/duplication, or sex chromosome abnormality including −Y and scores 0. unfavorable is all other abnormalities and scores 1. vhr is very high risk: single/multiple −7, i(17q), inv(3)/3q21, 12p−/12p11.2, 11q−/11q23, +21, or other autosomal trisomies not including +8/+9 and scores 2. magent does not karyotype. |
calr_type1_like |
boolean | required | Presence of a type 1/like CALR mutation as assigned by the caller (Tefferi 2018). false (absence) scores 1. true scores 0. Type 2/like CALR, JAK2, MPL, and triple-negative are absence of type 1/like CALR. magent does not sequence. |
asxl1_mutated |
boolean | required | ASXL1 mutation as assigned by the caller (Tefferi 2018). true scores 1. magent does not sequence. |
srsf2_mutated |
boolean | required | SRSF2 mutation as assigned by the caller (Tefferi 2018). true scores 1. magent does not sequence. |
u2af1_q157_mutated |
boolean | required | U2AF1 Q157 mutation (Q157P or Q157R) as assigned by the caller (Tefferi 2018). true scores 1. U2AF1 S34 does not score. 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": [
{
"asxl1_mutated": "false",
"calr_type1_like": "true",
"karyotype": "favorable",
"srsf2_mutated": "false",
"u2af1_q157_mutated": "false"
},
{
"asxl1_mutated": "false",
"calr_type1_like": "true",
"karyotype": "favorable",
"srsf2_mutated": "false",
"u2af1_q157_mutated": "false"
}
]
}
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/gipss",
"items": [
{
"components": [
{
"value": "favorable",
"factor": "karyotype",
"points": 0,
"present": false
},
{
"factor": "absence_of_calr_type1_like",
"points": 0,
"present": false
},
{
"factor": "asxl1_mutated",
"points": 0,
"present": false
},
{
"factor": "srsf2_mutated",
"points": 0,
"present": false
},
{
"factor": "u2af1_q157_mutated",
"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.",
"citation": {
"authors": "Tefferi A, Guglielmelli P, Nicolosi M, Mannelli F, Mudireddy M, Bartalucci N, Finke CM, Lasho TL, Hanson CA, Ketterling RP, Begna KH, Gangat N, Pardanani A, Vannucchi AM",
"doi": "10.1038/s41375-018-0107-z",
"id": "tefferi-2018",
"pmid": "29654267",
"source": "Leukemia. 2018;32(7):1631-1642",
"title": "GIPSS: genetically inspired prognostic scoring system for primary myelofibrosis"
},
"formula": "gipss",
"formula_expression": "GIPSS = karyotype (favorable 0, unfavorable 1, vhr 2) + absence of type 1/like CALR 1 + asxl1_mutated 1 + srsf2_mutated 1 + u2af1_q157_mutated 1; Tefferi 2018; max 6; low 0, intermediate_1 1, intermediate_2 2, high ≥3",
"max_score": 6,
"score": 0,
"risk_group": "low",
"asxl1_mutated": false,
"calr_type1_like": true,
"five_year_survival_percent": 94,
"karyotype": "favorable",
"median_survival_years": 26.4,
"srsf2_mutated": false,
"u2af1_q157_mutated": false
},
{
"components": [
{
"value": "favorable",
"factor": "karyotype",
"points": 0,
"present": false
},
{
"factor": "absence_of_calr_type1_like",
"points": 0,
"present": false
},
{
"factor": "asxl1_mutated",
"points": 0,
"present": false
},
{
"factor": "srsf2_mutated",
"points": 0,
"present": false
},
{
"factor": "u2af1_q157_mutated",
"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.",
"citation": {
"authors": "Tefferi A, Guglielmelli P, Nicolosi M, Mannelli F, Mudireddy M, Bartalucci N, Finke CM, Lasho TL, Hanson CA, Ketterling RP, Begna KH, Gangat N, Pardanani A, Vannucchi AM",
"doi": "10.1038/s41375-018-0107-z",
"id": "tefferi-2018",
"pmid": "29654267",
"source": "Leukemia. 2018;32(7):1631-1642",
"title": "GIPSS: genetically inspired prognostic scoring system for primary myelofibrosis"
},
"formula": "gipss",
"formula_expression": "GIPSS = karyotype (favorable 0, unfavorable 1, vhr 2) + absence of type 1/like CALR 1 + asxl1_mutated 1 + srsf2_mutated 1 + u2af1_q157_mutated 1; Tefferi 2018; max 6; low 0, intermediate_1 1, intermediate_2 2, high ≥3",
"max_score": 6,
"score": 0,
"risk_group": "low",
"asxl1_mutated": false,
"calr_type1_like": true,
"five_year_survival_percent": 94,
"karyotype": "favorable",
"median_survival_years": 26.4,
"srsf2_mutated": false,
"u2af1_q157_mutated": false
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | gipss |
formula_expression |
string | Exact expression used |
score |
integer | GIPSS points 0-6 |
max_score |
integer | Always 6 (2+1+1+1+1) |
risk_group |
string | low when score is 0, intermediate_1 when 1, intermediate_2 when 2, high when ≥3 (Tefferi 2018). Not a PMF diagnosis. Not DIPSS. Not MIPSS70-plus. |
karyotype |
string | Caller-assigned three-tier karyotype used (favorable, unfavorable, or vhr) |
calr_type1_like |
boolean | Caller-assigned type 1/like CALR flag used |
asxl1_mutated |
boolean | Caller-assigned ASXL1 mutation flag used |
srsf2_mutated |
boolean | Caller-assigned SRSF2 mutation flag used |
u2af1_q157_mutated |
boolean | Caller-assigned U2AF1 Q157 mutation flag used (not S34) |
median_survival_years |
number | Tefferi 2018 published median overall survival in years for this GIPSS band (low 26.4, intermediate_1 8.0, intermediate_2 4.2, high 2). Cohort figure, not a patient-specific prediction. |
five_year_survival_percent |
integer | Tefferi 2018 published 5-year survival percent for this GIPSS band (low 94, intermediate_1 73, intermediate_2 40, high 14). Cohort figure, not a patient-specific prediction. |
components |
array | Per-factor points |
citation |
object | Tefferi et al. Leukemia 2018 GIPSS citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": "favorable",
"factor": "karyotype",
"points": 0,
"present": false
},
{
"factor": "absence_of_calr_type1_like",
"points": 0,
"present": false
},
{
"factor": "asxl1_mutated",
"points": 0,
"present": false
},
{
"factor": "srsf2_mutated",
"points": 0,
"present": false
},
{
"factor": "u2af1_q157_mutated",
"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.",
"citation": {
"authors": "Tefferi A, Guglielmelli P, Nicolosi M, Mannelli F, Mudireddy M, Bartalucci N, Finke CM, Lasho TL, Hanson CA, Ketterling RP, Begna KH, Gangat N, Pardanani A, Vannucchi AM",
"doi": "10.1038/s41375-018-0107-z",
"id": "tefferi-2018",
"pmid": "29654267",
"source": "Leukemia. 2018;32(7):1631-1642",
"title": "GIPSS: genetically inspired prognostic scoring system for primary myelofibrosis"
},
"formula": "gipss",
"formula_expression": "GIPSS = karyotype (favorable 0, unfavorable 1, vhr 2) + absence of type 1/like CALR 1 + asxl1_mutated 1 + srsf2_mutated 1 + u2af1_q157_mutated 1; Tefferi 2018; max 6; low 0, intermediate_1 1, intermediate_2 2, high ≥3",
"max_score": 6,
"score": 0,
"risk_group": "low",
"asxl1_mutated": false,
"calr_type1_like": true,
"five_year_survival_percent": 94,
"karyotype": "favorable",
"median_survival_years": 26.4,
"srsf2_mutated": false,
"u2af1_q157_mutated": false
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_gipss_karyotype |
karyotype must be favorable, unfavorable, or vhr (Tefferi 2018 GIPSS revised cytogenetic tiers). 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
- DIPSS — Sum the Passamonti 2010 DIPSS (dynamic international prognostic scoring system) for primary myelofibrosis and return low (0), intermediate_1 (1–2), intermediate_2 (3–4), or high (5–6).
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.