# Swede colposcopy score (Strander)

Swede score

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/swede`
HTML: https://magentlab.com/docs/swede
Markdown: https://magentlab.com/docs/swede.md

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

## What it computes

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.

## When to use

When an agent has already assigned Strander 2005 Table I 0-2 integers for acetowhiteness, margins and surface, vessels, lesion size, and iodine and needs the published Swede total and bands, not a CIN diagnosis, see-and-treat order, or Reid index. magent does not read the colposcope.

## When not to use

- Not a medical device. magent does not diagnose CIN or high-grade dysplasia.
- Inputs are caller-assigned Strander 2005 Table I integers (each 0, 1, or 2). magent does not read the colposcope.
- Published derivation-set findings: score ≥5 identified all high-grade lesions (HGL); score ≥8 had 90% specificity for HGL. magent reports bands <5, 5-7, and >=8. Score 5 is 5-7. Score 8 is >=8. magent does not invent a see-and-treat order.
- Not the Reid colposcopic index. Not a CIN diagnosis.

## Formula

```
Swede = acetowhiteness + margins_surface + vessels + lesion_size + iodine; each caller-assigned 0-2 (Strander 2005 Table I final rounded weights); max 10; bands <5, 5-7, >=8
```

## Citation

[The performance of a new scoring system for colposcopy in detecting high-grade dysplasia in the uterine cervix](https://doi.org/10.1111/j.0001-6349.2005.00895.x)
Strander B, Ellström-Andersson A, Franzén S, Milsom I, Rådberg T
Acta Obstet Gynecol Scand. 2005;84(10):1013-1017
DOI: [10.1111/j.0001-6349.2005.00895.x](https://doi.org/10.1111/j.0001-6349.2005.00895.x)

## Worked example

### Distinct acetowhiteness and iodine, even margins, absent vessels, mid size

Given: `acetowhiteness=2, iodine=2, lesion_size=1, margins_surface=2, vessels=1`

1. acetowhiteness 2 + margins_surface 2 + vessels 1 + lesion_size 1 + iodine 2
2. Score = 8 (max 10); swede_band >=8


### All items 0

Given: `acetowhiteness=0, iodine=0, lesion_size=0, margins_surface=0, vessels=0`

1. acetowhiteness 0 + margins_surface 0 + vessels 0 + lesion_size 0 + iodine 0
2. Score = 0 (max 10); swede_band <5


### All items 2

Given: `acetowhiteness=2, iodine=2, lesion_size=2, margins_surface=2, vessels=2`

1. acetowhiteness 2 + margins_surface 2 + vessels 2 + lesion_size 2 + iodine 2
2. Score = 10 (max 10); swede_band >=8


## Also searched as

- Swede score
- Swede colposcopy score
- Strander Swede score
- Strander 2005 colposcopy score
- Swede acetowhiteness iodine
- colposcopy scoring system cervix
- Swede high-grade dysplasia

## Parameters

- `acetowhiteness` (integer, required): Caller-assigned Strander 2005 Table I acetowhiteness (integer 0-2): 0 none/transparent; 1 shady/milky; 2 distinct/stearin (opaque white). magent does not read the colposcope.
- `margins_surface` (integer, required): Caller-assigned Strander 2005 Table I margins and surface (integer 0-2): 0 none/diffuse; 1 sharp but irregular/jagged/geographical (satellites); 2 sharp and even, surface-level difference (cuffing). magent does not read the colposcope.
- `vessels` (integer, required): Caller-assigned Strander 2005 Table I vessels (integer 0-2): 0 fine/regular; 1 absent; 2 coarse or atypical. magent does not read the colposcope.
- `lesion_size` (integer, required): Caller-assigned Strander 2005 Table I lesion size (integer 0-2): 0 <5 mm; 1 5-15 mm or 2 quadrants; 2 >15 mm or 3-4 quadrants or endocervically undefined. magent does not read the colposcope.
- `iodine` (integer, required): Caller-assigned Strander 2005 Table I iodine staining (integer 0-2): 0 brown; 1 faintly or patchy yellow; 2 distinct yellow. magent does not read the colposcope.

## 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.

Method: `POST /api/calc/swede`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: 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:

```json
{
  "items": [
    {
      "acetowhiteness": "2",
      "iodine": "2",
      "lesion_size": "1",
      "margins_surface": "2",
      "vessels": "1"
    },
    {
      "acetowhiteness": "2",
      "iodine": "2",
      "lesion_size": "1",
      "margins_surface": "2",
      "vessels": "1"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/swede

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/swede",
  "items": [
    {
      "components": [
        {
          "value": 2,
          "factor": "acetowhiteness",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "margins_surface",
          "points": 2,
          "present": true
        },
        {
          "value": 1,
          "factor": "vessels",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "lesion_size",
          "points": 1,
          "present": true
        },
        {
          "value": 2,
          "factor": "iodine",
          "points": 2,
          "present": true
        }
      ],
      "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": "Strander B, Ellström-Andersson A, Franzén S, Milsom I, Rådberg T",
        "doi": "10.1111/j.0001-6349.2005.00895.x",
        "id": "strander-2005",
        "pmid": "16181155",
        "source": "Acta Obstet Gynecol Scand. 2005;84(10):1013-1017",
        "title": "The performance of a new scoring system for colposcopy in detecting high-grade dysplasia in the uterine cervix"
      },
      "formula": "swede",
      "formula_expression": "Swede = acetowhiteness + margins_surface + vessels + lesion_size + iodine; each caller-assigned 0-2 (Strander 2005 Table I final rounded weights); max 10; bands <5, 5-7, >=8",
      "max_score": 10,
      "score": 8,
      "acetowhiteness": 2,
      "iodine": 2,
      "lesion_size": 1,
      "margins_surface": 2,
      "swede_band": ">=8",
      "vessels": 1
    },
    {
      "components": [
        {
          "value": 2,
          "factor": "acetowhiteness",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "margins_surface",
          "points": 2,
          "present": true
        },
        {
          "value": 1,
          "factor": "vessels",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "lesion_size",
          "points": 1,
          "present": true
        },
        {
          "value": 2,
          "factor": "iodine",
          "points": 2,
          "present": true
        }
      ],
      "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": "Strander B, Ellström-Andersson A, Franzén S, Milsom I, Rådberg T",
        "doi": "10.1111/j.0001-6349.2005.00895.x",
        "id": "strander-2005",
        "pmid": "16181155",
        "source": "Acta Obstet Gynecol Scand. 2005;84(10):1013-1017",
        "title": "The performance of a new scoring system for colposcopy in detecting high-grade dysplasia in the uterine cervix"
      },
      "formula": "swede",
      "formula_expression": "Swede = acetowhiteness + margins_surface + vessels + lesion_size + iodine; each caller-assigned 0-2 (Strander 2005 Table I final rounded weights); max 10; bands <5, 5-7, >=8",
      "max_score": 10,
      "score": 8,
      "acetowhiteness": 2,
      "iodine": 2,
      "lesion_size": 1,
      "margins_surface": 2,
      "swede_band": ">=8",
      "vessels": 1
    }
  ]
}
```

## Response fields

- `formula` (string): swede
- `formula_expression` (string): Exact expression used
- `score` (integer): Swede points 0-10
- `max_score` (integer): Always 10
- `swede_band` (string): Strander 2005 band: <5, 5-7, or >=8. Score ≥5 identified all high-grade lesions in that derivation set; ≥8 had 90% specificity. Score 5 is 5-7. Score 8 is >=8. Not a see-and-treat order.
- `acetowhiteness` (integer): Caller-assigned acetowhiteness points 0-2
- `margins_surface` (integer): Caller-assigned margins and surface points 0-2
- `vessels` (integer): Caller-assigned vessels points 0-2
- `lesion_size` (integer): Caller-assigned lesion size points 0-2
- `iodine` (integer): Caller-assigned iodine points 0-2
- `components` (array): Per-item caller-assigned points
- `citation` (object): Strander et al. Acta Obstet Gynecol Scand 2005 citation
- `disclaimer` (string): Not a medical device

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 2,
      "factor": "acetowhiteness",
      "points": 2,
      "present": true
    },
    {
      "value": 2,
      "factor": "margins_surface",
      "points": 2,
      "present": true
    },
    {
      "value": 1,
      "factor": "vessels",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "lesion_size",
      "points": 1,
      "present": true
    },
    {
      "value": 2,
      "factor": "iodine",
      "points": 2,
      "present": true
    }
  ],
  "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": "Strander B, Ellström-Andersson A, Franzén S, Milsom I, Rådberg T",
    "doi": "10.1111/j.0001-6349.2005.00895.x",
    "id": "strander-2005",
    "pmid": "16181155",
    "source": "Acta Obstet Gynecol Scand. 2005;84(10):1013-1017",
    "title": "The performance of a new scoring system for colposcopy in detecting high-grade dysplasia in the uterine cervix"
  },
  "formula": "swede",
  "formula_expression": "Swede = acetowhiteness + margins_surface + vessels + lesion_size + iodine; each caller-assigned 0-2 (Strander 2005 Table I final rounded weights); max 10; bands <5, 5-7, >=8",
  "max_score": 10,
  "score": 8,
  "acetowhiteness": 2,
  "iodine": 2,
  "lesion_size": 1,
  "margins_surface": 2,
  "swede_band": ">=8",
  "vessels": 1
}
```

## Errors

- HTTP 400 `invalid_swede`: Swede score needs acetowhiteness, margins_surface, vessels, lesion_size, and iodine, each 0, 1, or 2. Returned before settlement; you are not charged.
- HTTP 400 `invalid_swede_item`: acetowhiteness, margins_surface, vessels, lesion_size, and iodine must each be 0, 1, or 2 (Strander 2005). Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [RMI](https://magentlab.com/docs/rmi) — Compute the Jacobs 1990 risk of malignancy index as ultrasound score × menopausal score × CA125 (U/ml), then whether that product exceeds the published cutoff of 200.

## 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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
