MAGENT

Hematology · LIVE

Reid colposcopic index

Reid RCI

Sum four caller-assigned Reid 1985 RCI integers (margin, color, vessels, iodine; each 0-2; max 8) and return the published total and low_grade / intermediate / high_grade bands.

LIVE $0.005 USDC GET /api/calc/reid_rci

Markdown: /docs/reid-rci.md · Canonical: https://magentlab.com/docs/reid-rci

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

What it computes

Sum four caller-assigned Reid 1985 RCI integers (margin, color, vessels, iodine; each 0-2; max 8) and return the published total and low_grade / intermediate / high_grade bands.

When to use

When an agent has already assigned Reid 1985 four-sign 0-2 integers for margin, color, vessels, and iodine and needs the published RCI total and bands, not a CIN diagnosis, biopsy order, or Swede score. magent does not look through a colposcope.

When not to use

  • Not a medical device. magent does not diagnose CIN, HPV, or high-grade dysplasia.
  • Inputs are caller-assigned Reid 1985 integers (each 0, 1, or 2). magent does not look through a colposcope and does not recompute iodine from the first three signs.
  • Published RCI totals: 0-2 low_grade (HPV or CIN I); 3-5 intermediate (CIN I or CIN II); 6-8 high_grade (CIN II or CIN III). magent does not invent a biopsy or see-and-treat order.
  • Not the Swede score. Not IOTA Simple Rules. Not FIGO ovarian staging.

Formula

Reid RCI = margin + color + vessels + iodine; each caller-assigned 0-2 (Reid 1985 four-sign index); max 8; bands 0-2 low_grade (HPV or CIN I), 3-5 intermediate (CIN I or CIN II), 6-8 high_grade (CIN II or CIN III)

Citation

Title
Genital warts and cervical cancer. VII. An improved colposcopic index for differentiating benign papillomaviral infections from high-grade cervical intraepithelial neoplasia
Authors
Reid R, Scalzi P
Source
Am J Obstet Gynecol. 1985;153(6):611-618
DOI
10.1016/S0002-9378(85)80244-1

Worked example

All signs 0

Given: color=0iodine=0margin=0vessels=0

  1. margin 0 + color 0 + vessels 0 + iodine 0
  2. Score = 0 (max 8); band low_grade

All signs 1

Given: color=1iodine=1margin=1vessels=1

  1. margin 1 + color 1 + vessels 1 + iodine 1
  2. Score = 4 (max 8); band intermediate

All signs 2

Given: color=2iodine=2margin=2vessels=2

  1. margin 2 + color 2 + vessels 2 + iodine 2
  2. Score = 8 (max 8); band high_grade

Also searched as

  • Reid colposcopic index
  • Reid RCI
  • Reid 1985 index
  • improved colposcopic index
  • Reid four-sign index
  • colposcopic index cervix
  • Reid CIN index

Try

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

/api/calc/reid_rci?margin=0&color=0&vessels=0&iodine=0

Full URL: https://api.magentlab.com/api/calc/reid_rci?margin=0&color=0&vessels=0&iodine=0

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/reid_rci?margin=0&color=0&vessels=0&iodine=0"

Parameters

Name Type Required Description
margin integer required · 0, 1, 2 Caller-assigned Reid 1985 margin (integer 0-2): 0 condylomatous or micropapillary contour, indistinct acetowhitening, feathered or jagged margins, satellites; 1 regular smooth straight outlines; 2 rolled peeling edges or internal demarcations. magent does not look through a colposcope.
color integer required · 0, 1, 2 Caller-assigned Reid 1985 color (integer 0-2): 0 shiny snow-white, indistinct, transparent or translucent; 1 intermediate shiny gray; 2 dull oyster-white. magent does not look through a colposcope.
vessels integer required · 0, 1, 2 Caller-assigned Reid 1985 vessels (integer 0-2): 0 fine-caliber poorly formed or condylomatous; 1 absent; 2 definite punctation or mosaic. magent does not look through a colposcope.
iodine integer required · 0, 1, 2 Caller-assigned Reid 1985 iodine (integer 0-2): 0 mahogany-brown uptake or insignificant uptake with insignificant acetowhitening; 1 partial, variegated, or speckled; 2 mustard-yellow negative uptake in significant acetowhite. magent does not look through a colposcope and does not recompute iodine from the first three signs.

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/reid_rci 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": [
    {
      "color": "0",
      "iodine": "0",
      "margin": "0",
      "vessels": "0"
    },
    {
      "color": "0",
      "iodine": "0",
      "margin": "0",
      "vessels": "0"
    }
  ]
}

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/reid_rci",
  "items": [
    {
      "band": "low_grade",
      "components": [
        {
          "value": 0,
          "factor": "margin",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "color",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "vessels",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "iodine",
          "points": 0,
          "present": true
        }
      ],
      "color": 0,
      "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": "Reid R, Scalzi P",
        "doi": "10.1016/S0002-9378(85)80244-1",
        "id": "reid-1985",
        "pmid": "2998190",
        "source": "Am J Obstet Gynecol. 1985;153(6):611-618",
        "title": "Genital warts and cervical cancer. VII. An improved colposcopic index for differentiating benign papillomaviral infections from high-grade cervical intraepithelial neoplasia"
      },
      "formula": "reid_rci",
      "formula_expression": "Reid RCI = margin + color + vessels + iodine; each caller-assigned 0-2 (Reid 1985 four-sign index); max 8; bands 0-2 low_grade (HPV or CIN I), 3-5 intermediate (CIN I or CIN II), 6-8 high_grade (CIN II or CIN III)",
      "max_score": 8,
      "score": 0,
      "iodine": 0,
      "margin": 0,
      "vessels": 0
    },
    {
      "band": "low_grade",
      "components": [
        {
          "value": 0,
          "factor": "margin",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "color",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "vessels",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "iodine",
          "points": 0,
          "present": true
        }
      ],
      "color": 0,
      "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": "Reid R, Scalzi P",
        "doi": "10.1016/S0002-9378(85)80244-1",
        "id": "reid-1985",
        "pmid": "2998190",
        "source": "Am J Obstet Gynecol. 1985;153(6):611-618",
        "title": "Genital warts and cervical cancer. VII. An improved colposcopic index for differentiating benign papillomaviral infections from high-grade cervical intraepithelial neoplasia"
      },
      "formula": "reid_rci",
      "formula_expression": "Reid RCI = margin + color + vessels + iodine; each caller-assigned 0-2 (Reid 1985 four-sign index); max 8; bands 0-2 low_grade (HPV or CIN I), 3-5 intermediate (CIN I or CIN II), 6-8 high_grade (CIN II or CIN III)",
      "max_score": 8,
      "score": 0,
      "iodine": 0,
      "margin": 0,
      "vessels": 0
    }
  ]
}

Response

Field Type Description
formula string reid_rci
formula_expression string Exact expression used
score integer Reid RCI points 0-8
max_score integer Always 8
band string Reid 1985 published RCI total: low_grade (0-2, HPV or CIN I), intermediate (3-5, CIN I or CIN II), or high_grade (6-8, CIN II or CIN III). Not a CIN diagnosis or biopsy order.
margin integer Caller-assigned margin points 0-2
color integer Caller-assigned color points 0-2
vessels integer Caller-assigned vessels points 0-2
iodine integer Caller-assigned iodine points 0-2
components array Per-sign caller-assigned points
citation object Reid and Scalzi Am J Obstet Gynecol 1985 citation
disclaimer string Not a medical device

Example JSON

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

{
  "band": "low_grade",
  "components": [
    {
      "value": 0,
      "factor": "margin",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "color",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "vessels",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "iodine",
      "points": 0,
      "present": true
    }
  ],
  "color": 0,
  "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": "Reid R, Scalzi P",
    "doi": "10.1016/S0002-9378(85)80244-1",
    "id": "reid-1985",
    "pmid": "2998190",
    "source": "Am J Obstet Gynecol. 1985;153(6):611-618",
    "title": "Genital warts and cervical cancer. VII. An improved colposcopic index for differentiating benign papillomaviral infections from high-grade cervical intraepithelial neoplasia"
  },
  "formula": "reid_rci",
  "formula_expression": "Reid RCI = margin + color + vessels + iodine; each caller-assigned 0-2 (Reid 1985 four-sign index); max 8; bands 0-2 low_grade (HPV or CIN I), 3-5 intermediate (CIN I or CIN II), 6-8 high_grade (CIN II or CIN III)",
  "max_score": 8,
  "score": 0,
  "iodine": 0,
  "margin": 0,
  "vessels": 0
}

Client errors (HTTP 400)

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

HTTP Code When
400 invalid_reid_rci Reid 1985 RCI inputs must each be an integer 0, 1, or 2 for margin, color, vessels, and iodine as published in that index. 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

  • Swede score — Sum five caller-assigned Strander 2005 Swede integers (acetowhiteness, margins_surface, vessels, lesion_size, iodine; each 0-2; max 10) and return the published total and <5 / 5-7 / >=8 bands.
  • IOTA Simple Rules — Apply Timmerman 2008 simple ultrasound-based rules from ten caller-assigned M-rule and B-rule flags and return m_count, b_count, and whether the mass classifies as malignant, benign, or inconclusive.
  • FIGO ovarian — Echo the caller-assigned Prat 2014 FIGO stage for cancer of the ovary, fallopian tube, and peritoneum and return the published defining-features description. magent does not read imaging or pathology.

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.