# ARISCAT postoperative pulmonary risk

ARISCAT

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

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

## What it computes

Sum Canet 2010 Table 6 simplified ARISCAT points (β×10 rounded) from age, preoperative SpO2, respiratory infection, anemia flag, incision, duration of surgery, and emergency, and return the published low / intermediate / high band.

## When to use

When an agent needs the published Canet 2010 ARISCAT point total and must not invent a diagnosis, a cancel-surgery order, or a measured PPC percent.

## When not to use

- Not a medical device. Not a diagnosis and not a cancel-surgery order.
- Canet 2010 Table 6 simplified risk score (β×10 rounded) only. Mazo 2014 reprints the same points. magent does not return observed PPC percents (Canet 2010 validation subsample: 1.6% / 13.3% / 42.1% for low / intermediate / high).
- magent does not measure SpO2; spo2_percent is caller-assigned. Preoperative anemia is a caller-assigned Hb <=10 g/dL flag; magent does not collect a hemoglobin number.
- Surgical incision is the published category peripheral, upper_abdominal, or intrathoracic as assigned by the caller. magent does not classify the procedure from an op note.
- Bands follow Canet 2010 risk-score intervals: low <26, intermediate 26-44, high >=45.

## Formula

```
ARISCAT = age (<=50: 0, 51-80: 3, >80: 16) + spo2 (>=96: 0, 91-95: 8, <=90: 24) + respiratory_infection(17) + anemia(11) + incision (peripheral 0, upper_abdominal 15, intrathoracic 24) + duration_hours (<=2: 0, >2 to 3: 16, >3: 23) + emergency(8); max 123; low <26, intermediate 26-44, high >=45
```

## Citation

[Prediction of Postoperative Pulmonary Complications in a Population-based Surgical Cohort](https://doi.org/10.1097/ALN.0b013e3181fc6e0a)
Canet J, Gallart L, Gomar C, et al
Anesthesiology. 2010;113(6):1338-1350
DOI: [10.1097/ALN.0b013e3181fc6e0a](https://doi.org/10.1097/ALN.0b013e3181fc6e0a)

## Worked example

### Age 50, SpO2 97, peripheral, 2.0 h, no other factors

Given: `age=50, anemia=false, duration_hours=2.0, emergency=false, incision=peripheral, respiratory_infection=false, spo2_percent=97`

1. Age 50 is <=50 → 0; SpO2 97 is >=96 → 0; respiratory_infection false → 0; anemia false → 0
2. incision peripheral → 0; duration_hours 2.0 is <=2 → 0; emergency false → 0
3. Score = 0 (max 123); risk_band low


### Age 51, anemia, duration 3.1 h, emergency (high band edge)

Given: `age=51, anemia=true, duration_hours=3.1, emergency=true, incision=peripheral, respiratory_infection=false, spo2_percent=97`

1. Age 51 → 3; anemia → 11; duration 3.1 >3 → 23; emergency → 8; all others 0
2. Score = 45 (max 123); risk_band high


## Also searched as

- ARISCAT
- Canet score
- postoperative pulmonary complications
- ARISCAT 2010
- Canet PPC
- Assess Respiratory Risk in Surgical Patients in Catalonia
- preoperative pulmonary risk
- Canet 2010 pulmonary

## Parameters

- `age` (integer, required): Age in years (18-120). Canet 2010 Table 6: <=50 scores 0; 51-80 scores 3; >80 scores 16. Age 50 scores 0; 51 scores 3; 80 scores 3; 81 scores 16.
- `spo2_percent` (number, required): Preoperative SpO2 percent (50-100) as assigned by the caller. Canet 2010 Table 6: >=96 scores 0; 91-95 scores 8; <=90 scores 24. magent does not measure SpO2.
- `respiratory_infection` (boolean, required): Respiratory infection in the last month as assigned by the caller (Canet 2010 Table 6). true scores 17. true or false.
- `anemia` (boolean, required): Preoperative anemia (Hb <=10 g/dL) as assigned by the caller (Canet 2010 Table 6). true scores 11. Flag only; do not send a hemoglobin number.
- `incision` (string, required): Surgical incision as assigned by the caller (Canet 2010 Table 6): peripheral scores 0, upper_abdominal scores 15, intrathoracic scores 24. magent does not classify the procedure from an op note.
- `duration_hours` (number, required): Duration of surgery in hours (0.1-24). Canet 2010 Table 6: <=2 scores 0; >2 to 3 scores 16; >3 scores 23. Duration 2.0 scores 0; 2.1 scores 16; 3.0 scores 16; 3.1 scores 23.
- `emergency` (boolean, required): Emergency procedure as assigned by the caller (Canet 2010 Table 6; β 0.768 × 10 rounded). true scores 8. true or false.

## 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/ariscat`
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": [
    {
      "age": "50",
      "anemia": "false",
      "duration_hours": "2.0",
      "emergency": "false",
      "incision": "peripheral",
      "respiratory_infection": "false",
      "spo2_percent": "97"
    },
    {
      "age": "50",
      "anemia": "false",
      "duration_hours": "2.0",
      "emergency": "false",
      "incision": "peripheral",
      "respiratory_infection": "false",
      "spo2_percent": "97"
    }
  ]
}
```

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

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/ariscat",
  "items": [
    {
      "emergency": false,
      "components": [
        {
          "value": 50,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": 97.0,
          "factor": "spo2_percent",
          "points": 0,
          "present": false
        },
        {
          "factor": "respiratory_infection",
          "points": 0,
          "present": false
        },
        {
          "factor": "anemia",
          "points": 0,
          "present": false
        },
        {
          "value": "peripheral",
          "factor": "incision",
          "points": 0,
          "present": false
        },
        {
          "value": 2.0,
          "factor": "duration_hours",
          "points": 0,
          "present": false
        },
        {
          "factor": "emergency",
          "points": 0,
          "present": 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.",
      "age_years": 50,
      "citation": {
        "authors": "Canet J, Gallart L, Gomar C, et al",
        "doi": "10.1097/ALN.0b013e3181fc6e0a",
        "id": "canet-2010",
        "pmid": "21045639",
        "source": "Anesthesiology. 2010;113(6):1338-1350",
        "title": "Prediction of Postoperative Pulmonary Complications in a Population-based Surgical Cohort"
      },
      "formula": "ariscat",
      "formula_expression": "ARISCAT = age (<=50: 0, 51-80: 3, >80: 16) + spo2 (>=96: 0, 91-95: 8, <=90: 24) + respiratory_infection(17) + anemia(11) + incision (peripheral 0, upper_abdominal 15, intrathoracic 24) + duration_hours (<=2: 0, >2 to 3: 16, >3: 23) + emergency(8); max 123; low <26, intermediate 26-44, high >=45",
      "max_score": 123,
      "score": 0,
      "risk_band": "low",
      "anemia": false,
      "duration_hours": 2.0,
      "incision": "peripheral",
      "respiratory_infection": false,
      "spo2_percent": 97.0
    },
    {
      "emergency": false,
      "components": [
        {
          "value": 50,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": 97.0,
          "factor": "spo2_percent",
          "points": 0,
          "present": false
        },
        {
          "factor": "respiratory_infection",
          "points": 0,
          "present": false
        },
        {
          "factor": "anemia",
          "points": 0,
          "present": false
        },
        {
          "value": "peripheral",
          "factor": "incision",
          "points": 0,
          "present": false
        },
        {
          "value": 2.0,
          "factor": "duration_hours",
          "points": 0,
          "present": false
        },
        {
          "factor": "emergency",
          "points": 0,
          "present": 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.",
      "age_years": 50,
      "citation": {
        "authors": "Canet J, Gallart L, Gomar C, et al",
        "doi": "10.1097/ALN.0b013e3181fc6e0a",
        "id": "canet-2010",
        "pmid": "21045639",
        "source": "Anesthesiology. 2010;113(6):1338-1350",
        "title": "Prediction of Postoperative Pulmonary Complications in a Population-based Surgical Cohort"
      },
      "formula": "ariscat",
      "formula_expression": "ARISCAT = age (<=50: 0, 51-80: 3, >80: 16) + spo2 (>=96: 0, 91-95: 8, <=90: 24) + respiratory_infection(17) + anemia(11) + incision (peripheral 0, upper_abdominal 15, intrathoracic 24) + duration_hours (<=2: 0, >2 to 3: 16, >3: 23) + emergency(8); max 123; low <26, intermediate 26-44, high >=45",
      "max_score": 123,
      "score": 0,
      "risk_band": "low",
      "anemia": false,
      "duration_hours": 2.0,
      "incision": "peripheral",
      "respiratory_infection": false,
      "spo2_percent": 97.0
    }
  ]
}
```

## Response fields

- `formula` (string): ariscat
- `formula_expression` (string): Canet 2010 Table 6 simplified risk score
- `score` (integer): ARISCAT points 0-123
- `max_score` (integer): 123
- `risk_band` (string): Canet 2010 interval: low (<26), intermediate (26-44), or high (>=45). A band, not a diagnosis or cancel-surgery order.
- `age_years` (integer): Age used for the exclusive age band
- `spo2_percent` (number): Caller-assigned preoperative SpO2 percent
- `respiratory_infection` (boolean): Caller-assigned respiratory infection in the last month
- `anemia` (boolean): Caller-assigned preoperative anemia (Hb <=10 g/dL) flag
- `incision` (string): peripheral, upper_abdominal, or intrathoracic
- `duration_hours` (number): Duration of surgery in hours used for the exclusive duration band
- `emergency` (boolean): Caller-assigned emergency procedure
- `components` (array): Per-factor points
- `citation` (object): Canet et al. Anesthesiology 2010 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "emergency": false,
  "components": [
    {
      "value": 50,
      "factor": "age",
      "points": 0,
      "present": false
    },
    {
      "value": 97.0,
      "factor": "spo2_percent",
      "points": 0,
      "present": false
    },
    {
      "factor": "respiratory_infection",
      "points": 0,
      "present": false
    },
    {
      "factor": "anemia",
      "points": 0,
      "present": false
    },
    {
      "value": "peripheral",
      "factor": "incision",
      "points": 0,
      "present": false
    },
    {
      "value": 2.0,
      "factor": "duration_hours",
      "points": 0,
      "present": false
    },
    {
      "factor": "emergency",
      "points": 0,
      "present": 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.",
  "age_years": 50,
  "citation": {
    "authors": "Canet J, Gallart L, Gomar C, et al",
    "doi": "10.1097/ALN.0b013e3181fc6e0a",
    "id": "canet-2010",
    "pmid": "21045639",
    "source": "Anesthesiology. 2010;113(6):1338-1350",
    "title": "Prediction of Postoperative Pulmonary Complications in a Population-based Surgical Cohort"
  },
  "formula": "ariscat",
  "formula_expression": "ARISCAT = age (<=50: 0, 51-80: 3, >80: 16) + spo2 (>=96: 0, 91-95: 8, <=90: 24) + respiratory_infection(17) + anemia(11) + incision (peripheral 0, upper_abdominal 15, intrathoracic 24) + duration_hours (<=2: 0, >2 to 3: 16, >3: 23) + emergency(8); max 123; low <26, intermediate 26-44, high >=45",
  "max_score": 123,
  "score": 0,
  "risk_band": "low",
  "anemia": false,
  "duration_hours": 2.0,
  "incision": "peripheral",
  "respiratory_infection": false,
  "spo2_percent": 97.0
}
```

## Errors

- HTTP 400 `invalid_age`: age must be an integer from 18 to 120 Returned before settlement; you are not charged.
- HTTP 400 `invalid_spo2`: spo2_percent must be a number from 50 to 100. Returned before settlement; you are not charged.
- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 400 `invalid_surgical_incision`: incision must be peripheral, upper_abdominal, or intrathoracic (Canet 2010). Returned before settlement; you are not charged.
- HTTP 400 `invalid_ariscat`: duration_hours must be 0.1-24, and each other ARISCAT 2010 item must be a published category. 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

- [Gupta MICA](https://magentlab.com/docs/gupta-mica) — Compute the Gupta 2011 Table 2 logistic probability of 30-day myocardial infarction or cardiac arrest after surgery from age, ASA class, functional status, creatinine category, and surgery type.

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