Hematology · LIVE
Duval 2010 AML score (Table 5)
Duval AML
Sum the Duval 2010 AML Table 5 points and return risk_group 0, 1, 2, or ge_3 (scores ≥3 share one group).
Markdown: /docs/duval-aml.md · Canonical: https://magentlab.com/docs/duval-aml
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum the Duval 2010 AML Table 5 points and return risk_group 0, 1, 2, or ge_3 (scores ≥3 share one group).
When to use
When an agent needs the published Duval 2010 AML (not ALL) Table 5 point total from caller-assigned categories and must not invent a transplant listing, karyotype parse, or ALL score.
When not to use
- Not a medical device and not a diagnosis. Not a transplant listing. magent does not examine the patient.
- This is Duval 2010 Table 5 for AML only. It does not implement the ALL table in the same paper.
- magent does not read a karyotype string or HLA type. The caller assigns disease_group, ECOG/SWOG cytogenetics (poor vs good/intermediate), and the Table 5 three-level hla_match.
- magent does not collect numeric Karnofsky or Lansky. kps_lt_90 is a caller-assigned flag.
- Table 5 groups scores ≥3 together. Published 3-year overall survival in the derivation cohort was 42% at score 0 and 6% at score ≥3. Those figures are not returned on the JSON 200.
Formula
Duval AML Table 5 = disease_group (pif_or_cr1_gt_6mo 0, cr1_lt_6mo 1) + cytogenetics (good_or_intermediate 0, poor 1) + hla_match (sibling_or_matched_unrelated 0, mismatched_unrelated 1, related_other 2) + circulating_blasts 1 + kps_lt_90 1; Duval 2010 AML only (not ALL); max 6; risk_group 0 / 1 / 2 / ge_3
Citation
- Title
- Hematopoietic Stem-Cell Transplantation for Acute Leukemia in Relapse or Primary Induction Failure
- Authors
- Duval M, Klein JP, He W, et al
- Source
- J Clin Oncol. 2010;28(23):3730-3738
Worked example
All favorable AML Table 5 categories
Given:
circulating_blasts=falsecytogenetics=good_or_intermediatedisease_group=pif_or_cr1_gt_6mohla_match=sibling_or_matched_unrelatedkps_lt_90=false
- disease_group pif_or_cr1_gt_6mo → 0; cytogenetics good_or_intermediate → 0; hla_match sibling_or_matched_unrelated → 0; circulating_blasts false → 0; kps_lt_90 false → 0
- Score = 0 (max 6); risk_group = 0
Maximum published AML Table 5 score
Given:
circulating_blasts=truecytogenetics=poordisease_group=cr1_lt_6mohla_match=related_otherkps_lt_90=true
- cr1_lt_6mo → 1; poor cytogenetics → 1; related_other → 2; circulating_blasts → 1; kps_lt_90 → 1
- Score = 6 (max 6); risk_group = ge_3
Also searched as
- Duval AML score
- Duval 2010 AML
- CIBMTR AML score
- AML transplant score Duval
- Duval Table 5 AML
- AML PIF relapse HCT score
- Duval CIBMTR AML
- hematopoietic stem-cell AML 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/duval_aml?disease_group=pif_or_cr1_gt_6mo&cytogenetics=good_or_intermediate&hla_match=sibling_or_matched_unrelated&circulating_blasts=false&kps_lt_90=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/duval_aml?disease_group=pif_or_cr1_gt_6mo&cytogenetics=good_or_intermediate&hla_match=sibling_or_matched_unrelated&circulating_blasts=false&kps_lt_90=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
disease_group |
string | required · pif_or_cr1_gt_6mo, cr1_lt_6mo | Duval 2010 AML Table 5 disease status as assigned by the caller. pif_or_cr1_gt_6mo is primary induction failure or duration of first CR >6 months and scores 0. cr1_lt_6mo is duration of first CR <6 months and scores 1. magent does not date remissions. |
cytogenetics |
string | required · good_or_intermediate, poor | ECOG/SWOG cytogenetic risk as assigned by the caller (Duval 2010). poor is −5/del(5q), −7/del(7q), inv(3q), abn11q, 20q or 21q, del(9q), t(6;9), t(9;22), abn17p, or complex (≥3 abnormalities) and scores 1. good_or_intermediate is everything else in that classification and scores 0. magent does not read a karyotype string. |
hla_match |
string | required · sibling_or_matched_unrelated, mismatched_unrelated, related_other | Duval 2010 AML Table 5 donor HLA match as assigned by the caller (not a flattened 0/1 donor flag). sibling_or_matched_unrelated is HLA-identical sibling or well matched or partially matched unrelated and scores 0. mismatched_unrelated scores 1. related_other is related other than HLA-identical sibling and scores 2. magent does not HLA-type. |
circulating_blasts |
boolean | required | Circulating blasts present as assigned by the caller (Duval 2010 AML Table 5). true scores 1. magent does not count blasts. |
kps_lt_90 |
boolean | required | Karnofsky or Lansky <90 as assigned by the caller (Duval 2010 AML Table 5). true scores 1. magent does not collect numeric KPS or Lansky. |
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": [
{
"circulating_blasts": "false",
"cytogenetics": "good_or_intermediate",
"disease_group": "pif_or_cr1_gt_6mo",
"hla_match": "sibling_or_matched_unrelated",
"kps_lt_90": "false"
},
{
"circulating_blasts": "false",
"cytogenetics": "good_or_intermediate",
"disease_group": "pif_or_cr1_gt_6mo",
"hla_match": "sibling_or_matched_unrelated",
"kps_lt_90": "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/duval_aml",
"items": [
{
"components": [
{
"value": "pif_or_cr1_gt_6mo",
"factor": "disease_group",
"points": 0,
"present": false
},
{
"value": "good_or_intermediate",
"factor": "cytogenetics",
"points": 0,
"present": false
},
{
"value": "sibling_or_matched_unrelated",
"factor": "hla_match",
"points": 0,
"present": false
},
{
"factor": "circulating_blasts",
"points": 0,
"present": false
},
{
"factor": "kps_lt_90",
"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": "Duval M, Klein JP, He W, et al",
"doi": "10.1200/JCO.2010.28.8852",
"id": "duval-2010",
"pmid": "20625126",
"source": "J Clin Oncol. 2010;28(23):3730-3738",
"title": "Hematopoietic Stem-Cell Transplantation for Acute Leukemia in Relapse or Primary Induction Failure"
},
"formula": "duval_aml",
"formula_expression": "Duval AML Table 5 = disease_group (pif_or_cr1_gt_6mo 0, cr1_lt_6mo 1) + cytogenetics (good_or_intermediate 0, poor 1) + hla_match (sibling_or_matched_unrelated 0, mismatched_unrelated 1, related_other 2) + circulating_blasts 1 + kps_lt_90 1; Duval 2010 AML only (not ALL); max 6; risk_group 0 / 1 / 2 / ge_3",
"max_score": 6,
"score": 0,
"risk_group": "0",
"circulating_blasts": false,
"cytogenetics": "good_or_intermediate",
"disease_group": "pif_or_cr1_gt_6mo",
"hla_match": "sibling_or_matched_unrelated",
"kps_lt_90": false
},
{
"components": [
{
"value": "pif_or_cr1_gt_6mo",
"factor": "disease_group",
"points": 0,
"present": false
},
{
"value": "good_or_intermediate",
"factor": "cytogenetics",
"points": 0,
"present": false
},
{
"value": "sibling_or_matched_unrelated",
"factor": "hla_match",
"points": 0,
"present": false
},
{
"factor": "circulating_blasts",
"points": 0,
"present": false
},
{
"factor": "kps_lt_90",
"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": "Duval M, Klein JP, He W, et al",
"doi": "10.1200/JCO.2010.28.8852",
"id": "duval-2010",
"pmid": "20625126",
"source": "J Clin Oncol. 2010;28(23):3730-3738",
"title": "Hematopoietic Stem-Cell Transplantation for Acute Leukemia in Relapse or Primary Induction Failure"
},
"formula": "duval_aml",
"formula_expression": "Duval AML Table 5 = disease_group (pif_or_cr1_gt_6mo 0, cr1_lt_6mo 1) + cytogenetics (good_or_intermediate 0, poor 1) + hla_match (sibling_or_matched_unrelated 0, mismatched_unrelated 1, related_other 2) + circulating_blasts 1 + kps_lt_90 1; Duval 2010 AML only (not ALL); max 6; risk_group 0 / 1 / 2 / ge_3",
"max_score": 6,
"score": 0,
"risk_group": "0",
"circulating_blasts": false,
"cytogenetics": "good_or_intermediate",
"disease_group": "pif_or_cr1_gt_6mo",
"hla_match": "sibling_or_matched_unrelated",
"kps_lt_90": false
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | duval_aml |
formula_expression |
string | Exact expression used |
score |
integer | Duval 2010 AML Table 5 points 0-6 |
max_score |
integer | 6 (1+1+2+1+1) |
risk_group |
string | 0, 1, 2, or ge_3 when score is ≥3 (Duval 2010 Table 5 note). Not a transplant listing. Not a diagnosis. Not the ALL table. |
disease_group |
string | Caller-assigned pif_or_cr1_gt_6mo or cr1_lt_6mo |
cytogenetics |
string | Caller-assigned good_or_intermediate or poor |
hla_match |
string | Caller-assigned sibling_or_matched_unrelated, mismatched_unrelated, or related_other |
circulating_blasts |
boolean | Caller-assigned circulating-blasts flag used |
kps_lt_90 |
boolean | Caller-assigned Karnofsky or Lansky <90 flag used |
components |
array | Per-factor points |
citation |
object | Duval et al. J Clin Oncol 2010 citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": "pif_or_cr1_gt_6mo",
"factor": "disease_group",
"points": 0,
"present": false
},
{
"value": "good_or_intermediate",
"factor": "cytogenetics",
"points": 0,
"present": false
},
{
"value": "sibling_or_matched_unrelated",
"factor": "hla_match",
"points": 0,
"present": false
},
{
"factor": "circulating_blasts",
"points": 0,
"present": false
},
{
"factor": "kps_lt_90",
"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": "Duval M, Klein JP, He W, et al",
"doi": "10.1200/JCO.2010.28.8852",
"id": "duval-2010",
"pmid": "20625126",
"source": "J Clin Oncol. 2010;28(23):3730-3738",
"title": "Hematopoietic Stem-Cell Transplantation for Acute Leukemia in Relapse or Primary Induction Failure"
},
"formula": "duval_aml",
"formula_expression": "Duval AML Table 5 = disease_group (pif_or_cr1_gt_6mo 0, cr1_lt_6mo 1) + cytogenetics (good_or_intermediate 0, poor 1) + hla_match (sibling_or_matched_unrelated 0, mismatched_unrelated 1, related_other 2) + circulating_blasts 1 + kps_lt_90 1; Duval 2010 AML only (not ALL); max 6; risk_group 0 / 1 / 2 / ge_3",
"max_score": 6,
"score": 0,
"risk_group": "0",
"circulating_blasts": false,
"cytogenetics": "good_or_intermediate",
"disease_group": "pif_or_cr1_gt_6mo",
"hla_match": "sibling_or_matched_unrelated",
"kps_lt_90": false
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_flag |
boolean clinical flags must be true or false Returned before settlement; you are not charged. |
| 400 | invalid_duval |
each Duval 2010 AML item must be a published Table 5 category. Returned before settlement; you are not charged. |
| 400 | invalid_hla_match |
hla_match must be sibling_or_matched_unrelated, mismatched_unrelated, or related_other (Duval 2010). 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
- Karnofsky — Return the Karnofsky 1949 Performance Status 10-100 from a caller-assigned integer, with a stable label.
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.