Hematology · LIVE
Swede colposcopy score (Strander)
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.
Markdown: /docs/swede.md · Canonical: https://magentlab.com/docs/swede
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
- Authors
- Strander B, Ellström-Andersson A, Franzén S, Milsom I, Rådberg T
- Source
- Acta Obstet Gynecol Scand. 2005;84(10):1013-1017
Worked example
Distinct acetowhiteness and iodine, even margins, absent vessels, mid size
Given:
acetowhiteness=2iodine=2lesion_size=1margins_surface=2vessels=1
- acetowhiteness 2 + margins_surface 2 + vessels 1 + lesion_size 1 + iodine 2
- Score = 8 (max 10); swede_band >=8
All items 0
Given:
acetowhiteness=0iodine=0lesion_size=0margins_surface=0vessels=0
- acetowhiteness 0 + margins_surface 0 + vessels 0 + lesion_size 0 + iodine 0
- Score = 0 (max 10); swede_band <5
All items 2
Given:
acetowhiteness=2iodine=2lesion_size=2margins_surface=2vessels=2
- acetowhiteness 2 + margins_surface 2 + vessels 2 + lesion_size 2 + iodine 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
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
/api/calc/swede?acetowhiteness=2&margins_surface=2&vessels=1&lesion_size=1&iodine=2
Full URL: https://api.magentlab.com/api/calc/swede?acetowhiteness=2&margins_surface=2&vessels=1&lesion_size=1&iodine=2
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/swede?acetowhiteness=2&margins_surface=2&vessels=1&lesion_size=1&iodine=2"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
acetowhiteness |
integer | required · 0, 1, 2 | 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 · 0, 1, 2 | 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 · 0, 1, 2 | 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 · 0, 1, 2 | 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 · 0, 1, 2 | 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.
- 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": [
{
"acetowhiteness": "2",
"iodine": "2",
"lesion_size": "1",
"margins_surface": "2",
"vessels": "1"
},
{
"acetowhiteness": "2",
"iodine": "2",
"lesion_size": "1",
"margins_surface": "2",
"vessels": "1"
}
]
}
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/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
| Field | Type | Description |
|---|---|---|
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
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"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
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 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. |
| 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. |
| 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
- 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. 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.