MAGENT

Kidney · LIVE

D'Amico 1998 clinically localized prostate cancer groups

D'Amico

Apply the D'Amico 1998 JAMA clinically localized three-group rule to caller-assigned clinical T (t1c, t2a, t2b, t2c), Gleason sum 2-10, and PSA ng/mL, and return risk low, intermediate, or high. Does not assay PSA, assign Gleason, or compute CAPRA or NCCN groups.

LIVE $0.005 USDC GET /api/calc/damico

Markdown: /docs/damico.md · Canonical: https://magentlab.com/docs/damico

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Apply the D'Amico 1998 JAMA clinically localized three-group rule to caller-assigned clinical T (t1c, t2a, t2b, t2c), Gleason sum 2-10, and PSA ng/mL, and return risk low, intermediate, or high. Does not assay PSA, assign Gleason, or compute CAPRA or NCCN groups.

When to use

When an agent already has a clinically localized prostate-cancer T stage in {t1c, t2a, t2b, t2c}, a Gleason sum, and a PSA, and needs the published D'Amico 1998 three-group box. magent does not assay PSA, assign Gleason, or assign TNM. Not CAPRA and not NCCN.

When not to use

  • Not a medical device and not a diagnosis of prostate cancer. magent does not assay PSA, assign Gleason, or assign TNM.
  • D'Amico 1998 JAMA clinically localized groups only (abstract three-group rule). t_stage is limited to t1c, t2a, t2b, and t2c. T1a, T1b, and T3+ are out of scope.
  • Not CAPRA. This tool does not implement Cooperberg 2005 CAPRA.
  • Not NCCN risk groups. This tool does not implement NCCN very-low / favorable-intermediate / unfavorable-intermediate / very-high boxes.
  • t_stage, gleason_score, and psa_ng_ml are caller-assigned. magent does not read slides, compute Grade Group / ISUP 2014, or assay PSA. High beats intermediate beats low (a T2c with PSA 5 Gleason 6 is high).

Formula

D'Amico 1998 JAMA clinically localized groups: high if t_stage t2c OR psa_ng_ml > 20 OR gleason_score ≥ 8; else intermediate if t_stage t2b OR gleason_score == 7 OR (psa_ng_ml > 10 AND psa_ng_ml ≤ 20); else low if t_stage in {t1c, t2a} AND psa_ng_ml ≤ 10 AND gleason_score ≤ 6. Not CAPRA. Not NCCN. magent does not assay PSA or assign Gleason.

Citation

Title
Biochemical outcome after radical prostatectomy, external beam radiation therapy, or interstitial radiation therapy for clinically localized prostate cancer
Authors
D'Amico AV, Whittington R, Malkowicz SB, Schultz D, Blank K, Broderick GA, Tomaszewski JE, Renshaw AA, Kaplan I, Beard CJ, Wein A
Source
JAMA. 1998;280(11):969-974
DOI
10.1001/jama.280.11.969

Worked example

T1c PSA 5 Gleason 6 is low

Given: gleason_score=6psa_ng_ml=5t_stage=t1c

  1. t_stage t1c, psa_ng_ml 5, gleason_score 6
  2. Not T2c, PSA not > 20, Gleason not ≥ 8; not T2b, Gleason not 7, PSA not > 10; T1c AND PSA ≤ 10 AND Gleason ≤ 6 → risk low

T2c with PSA 5 Gleason 6 is high

Given: gleason_score=6psa_ng_ml=5t_stage=t2c

  1. t_stage t2c, psa_ng_ml 5, gleason_score 6
  2. T2c is high regardless of PSA or Gleason (high beats intermediate beats low)

Also searched as

  • D'Amico
  • D'Amico risk classification
  • D'Amico 1998
  • clinically localized prostate cancer
  • prostate cancer risk group
  • D'Amico low intermediate high
  • JAMA 1998 prostate risk

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/damico?t_stage=t1c&psa_ng_ml=5&gleason_score=6

Full URL: https://api.magentlab.com/api/calc/damico?t_stage=t1c&psa_ng_ml=5&gleason_score=6

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/damico?t_stage=t1c&psa_ng_ml=5&gleason_score=6"

Parameters

Name Type Required Description
t_stage string required · t1c, t2a, t2b, t2c Clinical T as assigned by the caller (D'Amico 1998 clinically localized groups). t1c, t2a, t2b, or t2c. T1a, T1b, and T3+ are out of scope. magent does not assign TNM or read staging studies.
gleason_score integer required Gleason sum 2-10 as assigned by the caller (D'Amico 1998). Integer 2-10 only; reject 1, 11, and 6.5. Not Grade Group / ISUP 2014. magent does not assign Gleason or read slides.
psa_ng_ml number required Serum PSA in ng/mL as assayed by the caller (0.1-200). D'Amico 1998 uses ≤10, >10 and ≤20, and >20. magent does not assay PSA.

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.

POST /api/calc/damico Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 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": [
    {
      "gleason_score": "6",
      "psa_ng_ml": "5",
      "t_stage": "t1c"
    },
    {
      "gleason_score": "6",
      "psa_ng_ml": "5",
      "t_stage": "t1c"
    }
  ]
}

Open bulk paywall →

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/damico",
  "items": [
    {
      "components": [
        {
          "value": "t1c",
          "factor": "t_stage",
          "met": true
        },
        {
          "value": 6,
          "factor": "gleason_score",
          "met": true
        },
        {
          "value": 5.0,
          "factor": "psa_ng_ml",
          "met": true
        },
        {
          "factor": "low",
          "met": true
        },
        {
          "factor": "intermediate",
          "met": false
        },
        {
          "factor": "high",
          "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.",
      "citation": {
        "authors": "D'Amico AV, Whittington R, Malkowicz SB, Schultz D, Blank K, Broderick GA, Tomaszewski JE, Renshaw AA, Kaplan I, Beard CJ, Wein A",
        "doi": "10.1001/jama.280.11.969",
        "id": "damico-1998",
        "pmid": "9749478",
        "source": "JAMA. 1998;280(11):969-974",
        "title": "Biochemical outcome after radical prostatectomy, external beam radiation therapy, or interstitial radiation therapy for clinically localized prostate cancer"
      },
      "formula": "damico",
      "formula_expression": "D'Amico 1998 JAMA clinically localized groups: high if t_stage t2c OR psa_ng_ml > 20 OR gleason_score ≥ 8; else intermediate if t_stage t2b OR gleason_score == 7 OR (psa_ng_ml > 10 AND psa_ng_ml ≤ 20); else low if t_stage in {t1c, t2a} AND psa_ng_ml ≤ 10 AND gleason_score ≤ 6. Not CAPRA. Not NCCN. magent does not assay PSA or assign Gleason.",
      "psa_ng_ml": 5.0,
      "t_stage": "t1c",
      "gleason_score": 6,
      "risk": "low"
    },
    {
      "components": [
        {
          "value": "t1c",
          "factor": "t_stage",
          "met": true
        },
        {
          "value": 6,
          "factor": "gleason_score",
          "met": true
        },
        {
          "value": 5.0,
          "factor": "psa_ng_ml",
          "met": true
        },
        {
          "factor": "low",
          "met": true
        },
        {
          "factor": "intermediate",
          "met": false
        },
        {
          "factor": "high",
          "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.",
      "citation": {
        "authors": "D'Amico AV, Whittington R, Malkowicz SB, Schultz D, Blank K, Broderick GA, Tomaszewski JE, Renshaw AA, Kaplan I, Beard CJ, Wein A",
        "doi": "10.1001/jama.280.11.969",
        "id": "damico-1998",
        "pmid": "9749478",
        "source": "JAMA. 1998;280(11):969-974",
        "title": "Biochemical outcome after radical prostatectomy, external beam radiation therapy, or interstitial radiation therapy for clinically localized prostate cancer"
      },
      "formula": "damico",
      "formula_expression": "D'Amico 1998 JAMA clinically localized groups: high if t_stage t2c OR psa_ng_ml > 20 OR gleason_score ≥ 8; else intermediate if t_stage t2b OR gleason_score == 7 OR (psa_ng_ml > 10 AND psa_ng_ml ≤ 20); else low if t_stage in {t1c, t2a} AND psa_ng_ml ≤ 10 AND gleason_score ≤ 6. Not CAPRA. Not NCCN. magent does not assay PSA or assign Gleason.",
      "psa_ng_ml": 5.0,
      "t_stage": "t1c",
      "gleason_score": 6,
      "risk": "low"
    }
  ]
}

Response

Field Type Description
formula string damico
formula_expression string Published D'Amico 1998 JAMA clinically localized three-group rule
t_stage string Caller-assigned clinical T used (t1c, t2a, t2b, or t2c)
gleason_score integer Caller-assigned Gleason sum 2-10
psa_ng_ml number Caller-assigned serum PSA in ng/mL
risk string low, intermediate, or high (D'Amico 1998). High beats intermediate beats low. Not CAPRA. Not NCCN. Not a Grade Group.
components array Tree rows for t_stage, gleason_score, psa_ng_ml, and exclusive low, intermediate, high with factor and met
citation object D'Amico 1998 JAMA citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "value": "t1c",
      "factor": "t_stage",
      "met": true
    },
    {
      "value": 6,
      "factor": "gleason_score",
      "met": true
    },
    {
      "value": 5.0,
      "factor": "psa_ng_ml",
      "met": true
    },
    {
      "factor": "low",
      "met": true
    },
    {
      "factor": "intermediate",
      "met": false
    },
    {
      "factor": "high",
      "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.",
  "citation": {
    "authors": "D'Amico AV, Whittington R, Malkowicz SB, Schultz D, Blank K, Broderick GA, Tomaszewski JE, Renshaw AA, Kaplan I, Beard CJ, Wein A",
    "doi": "10.1001/jama.280.11.969",
    "id": "damico-1998",
    "pmid": "9749478",
    "source": "JAMA. 1998;280(11):969-974",
    "title": "Biochemical outcome after radical prostatectomy, external beam radiation therapy, or interstitial radiation therapy for clinically localized prostate cancer"
  },
  "formula": "damico",
  "formula_expression": "D'Amico 1998 JAMA clinically localized groups: high if t_stage t2c OR psa_ng_ml > 20 OR gleason_score ≥ 8; else intermediate if t_stage t2b OR gleason_score == 7 OR (psa_ng_ml > 10 AND psa_ng_ml ≤ 20); else low if t_stage in {t1c, t2a} AND psa_ng_ml ≤ 10 AND gleason_score ≤ 6. Not CAPRA. Not NCCN. magent does not assay PSA or assign Gleason.",
  "psa_ng_ml": 5.0,
  "t_stage": "t1c",
  "gleason_score": 6,
  "risk": "low"
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_damico t_stage must be t1c, t2a, t2b, or t2c; gleason_score an integer 2–10; psa_ng_ml a number from 0.1 to 200 (D'Amico 1998 clinically localized groups). 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

  • UISS — Apply the Zisman 2002 localized N0M0 three-group UISS algorithm to caller-assigned 1997 pathological T, Fuhrman grade, and ECOG PS and return low_risk, intermediate_risk, or high_risk. Does not compute a predicted 5-year disease-specific survival.
  • Fuhrman — Echo the caller-assigned Fuhrman 1982 nuclear grade (1-4) with the published nuclear-feature description. magent does not read slides. Not WHO/ISUP 2016.
  • R.E.N.A.L. nephrometry — Sum the Kutikov 2009 R.E.N.A.L. nephrometry score for a renal mass from four caller-assigned published item points (radius, exophytic/endophytic, nearness, location) and return the integer total (4–12) plus anterior and hilar descriptors. Does not return complexity bands.

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.