# Aldrete postanesthetic recovery score

Aldrete

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

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

## What it computes

Compute the Aldrete 1970 postanesthetic recovery score as the sum of five caller-assigned 0-2 signs (activity, respiration, circulation, consciousness, color) and return the 1970 recovery-room band.

## When to use

When an agent has already assigned the five Aldrete 1970 signs and needs the published 0-10 total and 0_to_7 / 8_to_9 / 10 band. magent does not examine the patient or issue a PACU discharge order.

## When not to use

- Not a medical device and not a PACU discharge, ward-transfer, or monitoring order.
- Each sign is a caller-supplied integer 0-2. magent does not observe activity, respiration, blood pressure change, consciousness, or color.
- Aldrete 1970 five signs including color. Not the 1995 revision that replaced color with SpO2. Not Marshall-Chung PADSS.
- Totals of 8 or 9 were acceptable for discharge from the recovery room to the ward; 10 is ideal; 7 or less indicated continuous close observation. That 1970 language is not a discharge order.

## Formula

```
Aldrete = activity + respiration + circulation + consciousness + color; each 0-2; max 10; 8-9 acceptable for recovery-room discharge to ward; 10 ideal; 0-7 close observation (Aldrete 1970)
```

## Citation

[A postanesthetic recovery score](https://doi.org/10.1213/00000539-197011000-00020)
Aldrete JA, Kroulik D
Anesth Analg. 1970;49(6):924-934
DOI: [10.1213/00000539-197011000-00020](https://doi.org/10.1213/00000539-197011000-00020)

## Worked example

### All signs 2

Given: `activity=2, circulation=2, color=2, consciousness=2, respiration=2`

1. activity 2 + respiration 2 + circulation 2 + consciousness 2 + color 2
2. Score = 10 (max 10); category 10 (ideal)


### Color 0, other signs 2

Given: `activity=2, circulation=2, color=0, consciousness=2, respiration=2`

1. activity 2 + respiration 2 + circulation 2 + consciousness 2 + color 0
2. Score = 8; category 8_to_9 (acceptable for recovery-room discharge to the ward)


### Score 7

Given: `activity=2, circulation=2, color=0, consciousness=1, respiration=2`

1. activity 2 + respiration 2 + circulation 2 + consciousness 1 + color 0
2. Score = 7; category 0_to_7 (continuous close observation)


## Also searched as

- Aldrete score
- postanesthetic recovery score
- Aldrete 1970
- PACU recovery score
- postanesthesia recovery score
- recovery room score
- post anaesthetic recovery
- PAR score

## Parameters

- `activity` (integer, required): Muscle activity (Aldrete 1970). Integer 0, 1, or 2 as assigned by the caller. 2 = moves 4 extremities voluntarily or on command; 1 = 2 extremities; 0 = none. magent does not examine the patient.
- `respiration` (integer, required): Respiration (Aldrete 1970). Integer 0, 1, or 2 as assigned by the caller. 2 = able to deep breathe and cough freely; 1 = dyspnea or limited breathing; 0 = apneic. magent does not auscultate.
- `circulation` (integer, required): Circulation (Aldrete 1970). Integer 0, 1, or 2 as assigned by the caller. 2 = BP within 20% of preanesthetic level; 1 = BP 20-50% of preanesthetic; 0 = BP 50% or more from preanesthetic. magent does not measure blood pressure.
- `consciousness` (integer, required): Consciousness (Aldrete 1970). Integer 0, 1, or 2 as assigned by the caller. 2 = fully awake; 1 = arousable on calling; 0 = not responding. magent does not examine the patient.
- `color` (integer, required): Color (Aldrete 1970). Integer 0, 1, or 2 as assigned by the caller. 2 = pink; 1 = pale, dusky, blotchy, jaundiced, or other; 0 = cyanotic. Not the 1995 SpO2 revision. magent does not observe skin color.

## 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/aldrete`
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": [
    {
      "activity": "2",
      "circulation": "2",
      "color": "2",
      "consciousness": "2",
      "respiration": "2"
    },
    {
      "activity": "2",
      "circulation": "2",
      "color": "2",
      "consciousness": "2",
      "respiration": "2"
    }
  ]
}
```

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

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/aldrete",
  "items": [
    {
      "components": [
        {
          "value": 2,
          "factor": "activity",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "respiration",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "circulation",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "consciousness",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "color",
          "points": 2,
          "present": true
        }
      ],
      "category": "10",
      "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": "Aldrete JA, Kroulik D",
        "doi": "10.1213/00000539-197011000-00020",
        "id": "aldrete-1970",
        "pmid": "5534693",
        "source": "Anesth Analg. 1970;49(6):924-934",
        "title": "A postanesthetic recovery score"
      },
      "formula": "aldrete",
      "formula_expression": "Aldrete = activity + respiration + circulation + consciousness + color; each 0-2; max 10; 8-9 acceptable for recovery-room discharge to ward; 10 ideal; 0-7 close observation (Aldrete 1970)",
      "max_score": 10,
      "score": 10
    },
    {
      "components": [
        {
          "value": 2,
          "factor": "activity",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "respiration",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "circulation",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "consciousness",
          "points": 2,
          "present": true
        },
        {
          "value": 2,
          "factor": "color",
          "points": 2,
          "present": true
        }
      ],
      "category": "10",
      "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": "Aldrete JA, Kroulik D",
        "doi": "10.1213/00000539-197011000-00020",
        "id": "aldrete-1970",
        "pmid": "5534693",
        "source": "Anesth Analg. 1970;49(6):924-934",
        "title": "A postanesthetic recovery score"
      },
      "formula": "aldrete",
      "formula_expression": "Aldrete = activity + respiration + circulation + consciousness + color; each 0-2; max 10; 8-9 acceptable for recovery-room discharge to ward; 10 ideal; 0-7 close observation (Aldrete 1970)",
      "max_score": 10,
      "score": 10
    }
  ]
}
```

## Response fields

- `formula` (string): aldrete
- `formula_expression` (string): Exact expression used
- `score` (integer): Total points 0-10
- `max_score` (integer): Always 10
- `category` (string): Aldrete 1970 recovery-room band: 0_to_7 (continuous close observation), 8_to_9 (acceptable for discharge from the recovery room to the ward), or 10 (ideal). Not a discharge order.
- `components` (array): Per-sign points
- `citation` (object): Anesth Analg 1970 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 2,
      "factor": "activity",
      "points": 2,
      "present": true
    },
    {
      "value": 2,
      "factor": "respiration",
      "points": 2,
      "present": true
    },
    {
      "value": 2,
      "factor": "circulation",
      "points": 2,
      "present": true
    },
    {
      "value": 2,
      "factor": "consciousness",
      "points": 2,
      "present": true
    },
    {
      "value": 2,
      "factor": "color",
      "points": 2,
      "present": true
    }
  ],
  "category": "10",
  "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": "Aldrete JA, Kroulik D",
    "doi": "10.1213/00000539-197011000-00020",
    "id": "aldrete-1970",
    "pmid": "5534693",
    "source": "Anesth Analg. 1970;49(6):924-934",
    "title": "A postanesthetic recovery score"
  },
  "formula": "aldrete",
  "formula_expression": "Aldrete = activity + respiration + circulation + consciousness + color; each 0-2; max 10; 8-9 acceptable for recovery-room discharge to ward; 10 ideal; 0-7 close observation (Aldrete 1970)",
  "max_score": 10,
  "score": 10
}
```

## Errors

- HTTP 400 `invalid_aldrete_component`: activity, respiration, circulation, consciousness, and color must each be 0, 1, or 2 (Aldrete 1970). 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

- [Apgar score](https://magentlab.com/docs/apgar) — Compute the Apgar newborn evaluation score as the sum of five caller-assigned 0-2 signs.
- [Mallampati](https://magentlab.com/docs/mallampati) — Return the Samsoon 1987 modified Mallampati class 1-4 from a caller-assigned integer, with a stable label.
- [Surgical Apgar](https://magentlab.com/docs/surgical-apgar) — Compute the Gawande 2007 intraoperative Surgical Apgar score from estimated blood loss, lowest mean arterial pressure, and lowest heart rate.

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