MAGENT

Emergency · LIVE

ASAS peripheral SpA classification criteria

ASAS peripheral SpA

Apply the 2011 ASAS classification criteria for peripheral spondyloarthritis (Rudwaleit set 2D / figure 1): require current arthritis, enthesitis, or dactylitis, then return whether arm A (≥1 of 6 SpA features) or arm B (≥2 of 5 additional features) classifies peripheral SpA. Not a diagnosis.

LIVE $0.005 USDC GET /api/calc/asas_peripheral_spa

Markdown: /docs/asas-peripheral-spa.md · Canonical: https://magentlab.com/docs/asas-peripheral-spa

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

What it computes

Apply the 2011 ASAS classification criteria for peripheral spondyloarthritis (Rudwaleit set 2D / figure 1): require current arthritis, enthesitis, or dactylitis, then return whether arm A (≥1 of 6 SpA features) or arm B (≥2 of 5 additional features) classifies peripheral SpA. Not a diagnosis.

When to use

When an agent already has caller-assigned Rudwaleit 2011 entry and SpA feature flags and needs the published peripheral SpA classification result for research, not a diagnosis, not ASAS 2009 axial, and not ESSG/Amor.

When not to use

  • Not a medical device and not a diagnosis of peripheral spondyloarthritis, psoriatic arthritis, reactive arthritis, or IBD-associated SpA. Classification criteria for research.
  • Entry (current arthritis, enthesitis, or dactylitis) must be met or the request is HTTP 400 and is not returned as classified=false.
  • Age at onset is a study limitation (Rudwaleit 2011 usually ≤45 years) and is not a parameter and not an HTTP 400.
  • This tool is ASAS 2011 peripheral SpA classification (set 2D) only. It is not the 2009 ASAS axial criteria and not ESSG or Amor criteria.
  • Arthritis, enthesitis, dactylitis, psoriasis, IBD, preceding infection, HLA-B27, uveitis, sacroiliitis on imaging, IBP in the past, and family history are caller-assigned. magent does not examine joints or assay HLA-B27.

Formula

ASAS 2011 peripheral SpA classification (Rudwaleit set 2D / fig 1 + table 5): required arthritis or enthesitis or dactylitis (current). arm_a iff ≥1 of psoriasis, ibd, preceding_infection, hla_b27, uveitis, sacroiliitis_on_imaging. arm_b iff ≥2 of arthritis, enthesitis, dactylitis, ibp_past, family_history_spa (same caller flags as entry for arthritis/enthesitis/dactylitis). classified iff entry and (arm_a or arm_b). Not a diagnosis. Not ASAS 2009 axial. Not ESSG/Amor

Citation

Title
The Assessment of SpondyloArthritis international Society classification criteria for peripheral spondyloarthritis and for spondyloarthritis in general
Authors
Rudwaleit M, van der Heijde D, Landewé R, Akkoc N, Brandt J, Chou CT, Dougados M, Huang F, Gu J, Kirazli Y, Van den Bosch F, Olivieri I, Roussou E, Scarpato S, Sørensen IJ, Valle-Oñate R, Weber U, Wei J, Sieper J
Source
Ann Rheum Dis. 2011;70(1):25-31
DOI
10.1136/ard.2010.133645

Worked example

Arthritis plus psoriasis, arm A

Given: arthritis=truedactylitis=falseenthesitis=falsefamily_history_spa=falsehla_b27=falseibd=falseibp_past=falsepreceding_infection=falsepsoriasis=truesacroiliitis_on_imaging=falseuveitis=false

  1. Required: arthritis true (entry met); enthesitis and dactylitis false
  2. psoriasis true; remaining arm A flags false → arm_a_count 1, arm_a true
  3. arm_b_count 1 (arthritis only of 5); arm_b false; classified true

Arthritis plus enthesitis, arm B

Given: arthritis=truedactylitis=falseenthesitis=truefamily_history_spa=falsehla_b27=falseibd=falseibp_past=falsepreceding_infection=falsepsoriasis=falsesacroiliitis_on_imaging=falseuveitis=false

  1. arthritis and enthesitis true; no arm A features
  2. arm_a_count 0; arm_b_count 2
  3. arm_a false; arm_b true; classified true

Entry met, one arm B feature, not classified

Given: arthritis=truedactylitis=falseenthesitis=falsefamily_history_spa=falsehla_b27=falseibd=falseibp_past=falsepreceding_infection=falsepsoriasis=falsesacroiliitis_on_imaging=falseuveitis=false

  1. arthritis true; remaining flags false
  2. arm_a_count 0; arm_b_count 1
  3. arm_a false; arm_b false; classified false

Arthritis plus HLA-B27, arm A

Given: arthritis=truedactylitis=falseenthesitis=falsefamily_history_spa=falsehla_b27=trueibd=falseibp_past=falsepreceding_infection=falsepsoriasis=falsesacroiliitis_on_imaging=falseuveitis=false

  1. arthritis true; hla_b27 true; remaining flags false
  2. arm_a_count 1; arm_b_count 1
  3. arm_a true; arm_b false; classified true

Arthritis plus sacroiliitis on imaging, arm A

Given: arthritis=truedactylitis=falseenthesitis=falsefamily_history_spa=falsehla_b27=falseibd=falseibp_past=falsepreceding_infection=falsepsoriasis=falsesacroiliitis_on_imaging=trueuveitis=false

  1. arthritis true; sacroiliitis_on_imaging true; remaining flags false
  2. arm_a_count 1; arm_b_count 1
  3. arm_a true; arm_b false; classified true

Also searched as

  • ASAS peripheral spondyloarthritis
  • ASAS 2011 classification criteria
  • Rudwaleit peripheral SpA
  • peripheral spondyloarthritis classification
  • ASAS pSpA
  • not ASAS 2009 axial
  • not ESSG Amor criteria
  • HLA-B27 peripheral SpA

Try

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

/api/calc/asas_peripheral_spa?arthritis=true&enthesitis=false&dactylitis=false&psoriasis=true&ibd=false&preceding_infection=false&hla_b27=false&uveitis=false&sacroiliitis_on_imaging=false&ibp_past=false&family_history_spa=false

Full URL: https://api.magentlab.com/api/calc/asas_peripheral_spa?arthritis=true&enthesitis=false&dactylitis=false&psoriasis=true&ibd=false&preceding_infection=false&hla_b27=false&uveitis=false&sacroiliitis_on_imaging=false&ibp_past=false&family_history_spa=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/asas_peripheral_spa?arthritis=true&enthesitis=false&dactylitis=false&psoriasis=true&ibd=false&preceding_infection=false&hla_b27=false&uveitis=false&sacroiliitis_on_imaging=false&ibp_past=false&family_history_spa=false"

Parameters

Name Type Required Description
arthritis boolean required Current peripheral arthritis (usually asymmetric and/or of lower limbs) as assigned by the caller (Rudwaleit 2011 set 2D entry). Table 5 additional feature is past or present synovitis diagnosed by a physician; the same caller flag counts toward arm B. true or false. magent does not examine joints.
enthesitis boolean required Current enthesitis as assigned by the caller (Rudwaleit 2011 set 2D entry). Table 5 additional feature is past or present spontaneous pain or tenderness at an enthesis; the same caller flag counts toward arm B. true or false. magent does not examine entheses.
dactylitis boolean required Current dactylitis as assigned by the caller (Rudwaleit 2011 set 2D entry). Table 5 additional feature is past or present dactylitis diagnosed by a physician; the same caller flag counts toward arm B. true or false. magent does not examine digits.
psoriasis boolean required Past or present psoriasis diagnosed by a physician, as assigned by the caller (Rudwaleit 2011 arm A). true or false. magent does not examine skin.
ibd boolean required Past or present Crohn's disease or ulcerative colitis diagnosed by a physician, as assigned by the caller (Rudwaleit 2011 arm A). true or false. magent does not diagnose IBD.
preceding_infection boolean required Urethritis/cervicitis or diarrhoea within 1 month before arthritis, enthesitis, or dactylitis, as assigned by the caller (Rudwaleit 2011 arm A). true or false. magent does not take a history.
hla_b27 boolean required HLA-B27 positive as assigned by the caller (Rudwaleit 2011 arm A). true or false. magent does not assay HLA-B27.
uveitis boolean required Past or present uveitis confirmed by an ophthalmologist, as assigned by the caller (Rudwaleit 2011 arm A). true or false. magent does not examine the eye.
sacroiliitis_on_imaging boolean required Sacroiliitis on imaging as assigned by the caller (Rudwaleit 2011 arm A): definite radiographic sacroiliitis (bilateral grade 2–4 or unilateral grade 3–4) or active inflammation on MRI highly suggestive of SpA-associated sacroiliitis. true or false. magent does not read films.
ibp_past boolean required Inflammatory back pain in the past according to experts, as assigned by the caller (Rudwaleit 2011 arm B). true or false. magent does not take a history.
family_history_spa boolean required Family history of SpA as assigned by the caller (Rudwaleit 2011 arm B): first-degree or second-degree relatives with ankylosing spondylitis, psoriasis, acute uveitis, reactive arthritis, or IBD. true or false. magent does not take a pedigree.

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/asas_peripheral_spa 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": [
    {
      "arthritis": "true",
      "dactylitis": "false",
      "enthesitis": "false",
      "family_history_spa": "false",
      "hla_b27": "false",
      "ibd": "false",
      "ibp_past": "false",
      "preceding_infection": "false",
      "psoriasis": "true",
      "sacroiliitis_on_imaging": "false",
      "uveitis": "false"
    },
    {
      "arthritis": "true",
      "dactylitis": "false",
      "enthesitis": "false",
      "family_history_spa": "false",
      "hla_b27": "false",
      "ibd": "false",
      "ibp_past": "false",
      "preceding_infection": "false",
      "psoriasis": "true",
      "sacroiliitis_on_imaging": "false",
      "uveitis": "false"
    }
  ]
}

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/asas_peripheral_spa",
  "items": [
    {
      "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": "Rudwaleit M, van der Heijde D, Landewé R, Akkoc N, Brandt J, Chou CT, Dougados M, Huang F, Gu J, Kirazli Y, Van den Bosch F, Olivieri I, Roussou E, Scarpato S, Sørensen IJ, Valle-Oñate R, Weber U, Wei J, Sieper J",
        "doi": "10.1136/ard.2010.133645",
        "id": "rudwaleit-2011",
        "pmid": "21109520",
        "source": "Ann Rheum Dis. 2011;70(1):25-31",
        "title": "The Assessment of SpondyloArthritis international Society classification criteria for peripheral spondyloarthritis and for spondyloarthritis in general"
      },
      "formula": "asas_peripheral_spa",
      "formula_expression": "ASAS 2011 peripheral SpA classification (Rudwaleit set 2D / fig 1 + table 5): required arthritis or enthesitis or dactylitis (current). arm_a iff ≥1 of psoriasis, ibd, preceding_infection, hla_b27, uveitis, sacroiliitis_on_imaging. arm_b iff ≥2 of arthritis, enthesitis, dactylitis, ibp_past, family_history_spa (same caller flags as entry for arthritis/enthesitis/dactylitis). classified iff entry and (arm_a or arm_b). Not a diagnosis. Not ASAS 2009 axial. Not ESSG/Amor",
      "classified": true,
      "arm_a": true,
      "arm_a_count": 1,
      "arm_b": false,
      "arm_b_count": 1
    },
    {
      "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": "Rudwaleit M, van der Heijde D, Landewé R, Akkoc N, Brandt J, Chou CT, Dougados M, Huang F, Gu J, Kirazli Y, Van den Bosch F, Olivieri I, Roussou E, Scarpato S, Sørensen IJ, Valle-Oñate R, Weber U, Wei J, Sieper J",
        "doi": "10.1136/ard.2010.133645",
        "id": "rudwaleit-2011",
        "pmid": "21109520",
        "source": "Ann Rheum Dis. 2011;70(1):25-31",
        "title": "The Assessment of SpondyloArthritis international Society classification criteria for peripheral spondyloarthritis and for spondyloarthritis in general"
      },
      "formula": "asas_peripheral_spa",
      "formula_expression": "ASAS 2011 peripheral SpA classification (Rudwaleit set 2D / fig 1 + table 5): required arthritis or enthesitis or dactylitis (current). arm_a iff ≥1 of psoriasis, ibd, preceding_infection, hla_b27, uveitis, sacroiliitis_on_imaging. arm_b iff ≥2 of arthritis, enthesitis, dactylitis, ibp_past, family_history_spa (same caller flags as entry for arthritis/enthesitis/dactylitis). classified iff entry and (arm_a or arm_b). Not a diagnosis. Not ASAS 2009 axial. Not ESSG/Amor",
      "classified": true,
      "arm_a": true,
      "arm_a_count": 1,
      "arm_b": false,
      "arm_b_count": 1
    }
  ]
}

Response

Field Type Description
formula string asas_peripheral_spa
formula_expression string Rudwaleit 2011 ASAS peripheral SpA classification expression (set 2D / fig 1)
classified boolean true iff arm_a or arm_b after required current arthritis, enthesitis, or dactylitis. Classification criteria for research, not a diagnosis of peripheral SpA. Not ASAS 2009 axial. Not ESSG/Amor.
arm_a boolean true iff ≥1 of psoriasis, ibd, preceding_infection, hla_b27, uveitis, sacroiliitis_on_imaging (Rudwaleit 2011 fig 1)
arm_b boolean true iff ≥2 of arthritis, enthesitis, dactylitis, ibp_past, family_history_spa (Rudwaleit 2011 fig 1). Arthritis, enthesitis, and dactylitis use the same caller flags as entry.
arm_a_count integer Count of the 6 arm A SpA features that are true (0–6).
arm_b_count integer Count of the 5 arm B additional features that are true (0–5), including arthritis, enthesitis, and dactylitis when true.
citation object Rudwaleit 2011 Ann Rheum Dis citation
disclaimer string Not-a-device notice

Example JSON

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

{
  "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": "Rudwaleit M, van der Heijde D, Landewé R, Akkoc N, Brandt J, Chou CT, Dougados M, Huang F, Gu J, Kirazli Y, Van den Bosch F, Olivieri I, Roussou E, Scarpato S, Sørensen IJ, Valle-Oñate R, Weber U, Wei J, Sieper J",
    "doi": "10.1136/ard.2010.133645",
    "id": "rudwaleit-2011",
    "pmid": "21109520",
    "source": "Ann Rheum Dis. 2011;70(1):25-31",
    "title": "The Assessment of SpondyloArthritis international Society classification criteria for peripheral spondyloarthritis and for spondyloarthritis in general"
  },
  "formula": "asas_peripheral_spa",
  "formula_expression": "ASAS 2011 peripheral SpA classification (Rudwaleit set 2D / fig 1 + table 5): required arthritis or enthesitis or dactylitis (current). arm_a iff ≥1 of psoriasis, ibd, preceding_infection, hla_b27, uveitis, sacroiliitis_on_imaging. arm_b iff ≥2 of arthritis, enthesitis, dactylitis, ibp_past, family_history_spa (same caller flags as entry for arthritis/enthesitis/dactylitis). classified iff entry and (arm_a or arm_b). Not a diagnosis. Not ASAS 2009 axial. Not ESSG/Amor",
  "classified": true,
  "arm_a": true,
  "arm_a_count": 1,
  "arm_b": false,
  "arm_b_count": 1
}

Client errors (HTTP 400)

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

HTTP Code When
400 invalid_asas_peripheral arthritis, enthesitis, or dactylitis must be true (Rudwaleit 2011 ASAS peripheral SpA set 2D entry: current peripheral arthritis, enthesitis, or dactylitis). Returned before settlement; you are not charged.
400 invalid_flag boolean clinical flags must be true or false 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

  • ASAS axial SpA — Apply the 2009 ASAS classification criteria for axial spondyloarthritis (Rudwaleit set 3a / figure 2): require chronic back pain ≥3 months with age at onset <45, then return whether the imaging arm (sacroiliitis plus ≥1 SpA feature) or the clinical arm (HLA-B27 plus ≥2 other SpA features) classifies axial SpA. Not a diagnosis.
  • ACR/EULAR gout — Apply the 2015 ACR/EULAR gout classification criteria (Neogi Table 2): require the entry episode, classify immediately if MSU crystals are present, otherwise return the Step 3 score (max 23) and whether score ≥8 classifies gout. Not a gout diagnosis.
  • ACR/EULAR Sjögren — Apply the 2016 ACR/EULAR classification criteria for primary Sjögren's syndrome (Shiboski Table 3): require published inclusion and no exclusion, then return the five-item weighted score and whether the ≥4 cut point classifies primary Sjögren's syndrome. Not a diagnosis.

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.