# Braden Scale (Bergstrom)

Braden Scale

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

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

## What it computes

Sum six caller-assigned Bergstrom 1987 Braden Scale subscale points and return at_risk when the total is ≤16.

## When to use

When an agent has already assigned published Bergstrom 1987 subscale points and needs the 6-23 total and that paper's cutoff-16 at-risk flag. magent does not examine the patient or diagnose a pressure sore.

## When not to use

- Not a medical device and not a diagnosis or treatment plan.
- Each subscale is a caller-assigned published integer from Bergstrom 1987. magent does not examine the patient.
- Only the 1987 predictive-validity cutoff of 16 is returned (at_risk true iff score ≤16). magent does not emit later mild, moderate, high, or severe bands.

## Formula

```
Braden = sensory_perception + moisture + activity + mobility + nutrition + friction_shear; Bergstrom 1987 caller-assigned points; 1-4 except friction_shear 1-3; range 6-23; at_risk iff score ≤ 16
```

## Citation

[The Braden Scale for Predicting Pressure Sore Risk](https://doi.org/10.1097/00006199-198707000-00002)
Bergstrom N, Braden BJ, Laguzza A, Holman V
Nurs Res. 1987;36(4):205-210
DOI: [10.1097/00006199-198707000-00002](https://doi.org/10.1097/00006199-198707000-00002)

## Worked example

### All items 1

Given: `activity=1, friction_shear=1, mobility=1, moisture=1, nutrition=1, sensory_perception=1`

1. sensory_perception 1 + moisture 1 + activity 1 + mobility 1 + nutrition 1 + friction_shear 1
2. Score = 6 (max 23); at_risk true (minimum / highest risk)


### All independent

Given: `activity=4, friction_shear=3, mobility=4, moisture=4, nutrition=4, sensory_perception=4`

1. sensory_perception 4 + moisture 4 + activity 4 + mobility 4 + nutrition 4 + friction_shear 3
2. Score = 23 (max 23); at_risk false


## Also searched as

- Braden Scale
- Braden score
- Bergstrom Braden
- pressure sore risk
- Braden 1987
- Braden Scale for Predicting Pressure Sore Risk
- pressure ulcer risk

## Parameters

- `sensory_perception` (integer, required): Caller-assigned Bergstrom 1987 Braden sensory perception (integer 1-4): 1 completely limited; 2 very limited; 3 slightly limited; 4 no impairment. magent does not examine the patient.
- `moisture` (integer, required): Caller-assigned Bergstrom 1987 Braden moisture (integer 1-4): 1 constantly moist; 2 very moist; 3 occasionally moist; 4 rarely moist. magent does not examine the patient.
- `activity` (integer, required): Caller-assigned Bergstrom 1987 Braden activity (integer 1-4): 1 bedfast; 2 chairfast; 3 walks occasionally; 4 walks frequently. magent does not examine the patient.
- `mobility` (integer, required): Caller-assigned Bergstrom 1987 Braden mobility (integer 1-4): 1 completely immobile; 2 very limited; 3 slightly limited; 4 no limitations. magent does not examine the patient.
- `nutrition` (integer, required): Caller-assigned Bergstrom 1987 Braden nutrition (integer 1-4): 1 very poor; 2 probably inadequate; 3 adequate; 4 excellent. magent does not examine the patient.
- `friction_shear` (integer, required): Caller-assigned Bergstrom 1987 Braden friction and shear (integer 1-3 only): 1 problem; 2 potential problem; 3 no apparent problem. magent does not examine the patient.

## 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/braden`
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": "1",
      "friction_shear": "1",
      "mobility": "1",
      "moisture": "1",
      "nutrition": "1",
      "sensory_perception": "1"
    },
    {
      "activity": "1",
      "friction_shear": "1",
      "mobility": "1",
      "moisture": "1",
      "nutrition": "1",
      "sensory_perception": "1"
    }
  ]
}
```

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

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/braden",
  "items": [
    {
      "components": [
        {
          "value": 1,
          "factor": "sensory_perception",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "moisture",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "activity",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "mobility",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "nutrition",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "friction_shear",
          "points": 1,
          "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": "Bergstrom N, Braden BJ, Laguzza A, Holman V",
        "doi": "10.1097/00006199-198707000-00002",
        "id": "bergstrom-1987",
        "pmid": "3299278",
        "source": "Nurs Res. 1987;36(4):205-210",
        "title": "The Braden Scale for Predicting Pressure Sore Risk"
      },
      "formula": "braden",
      "formula_expression": "Braden = sensory_perception + moisture + activity + mobility + nutrition + friction_shear; Bergstrom 1987 caller-assigned points; 1-4 except friction_shear 1-3; range 6-23; at_risk iff score ≤ 16",
      "max_score": 23,
      "score": 6,
      "at_risk": true
    },
    {
      "components": [
        {
          "value": 1,
          "factor": "sensory_perception",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "moisture",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "activity",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "mobility",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "nutrition",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "friction_shear",
          "points": 1,
          "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": "Bergstrom N, Braden BJ, Laguzza A, Holman V",
        "doi": "10.1097/00006199-198707000-00002",
        "id": "bergstrom-1987",
        "pmid": "3299278",
        "source": "Nurs Res. 1987;36(4):205-210",
        "title": "The Braden Scale for Predicting Pressure Sore Risk"
      },
      "formula": "braden",
      "formula_expression": "Braden = sensory_perception + moisture + activity + mobility + nutrition + friction_shear; Bergstrom 1987 caller-assigned points; 1-4 except friction_shear 1-3; range 6-23; at_risk iff score ≤ 16",
      "max_score": 23,
      "score": 6,
      "at_risk": true
    }
  ]
}
```

## Response fields

- `formula` (string): braden
- `formula_expression` (string): Exact expression used
- `score` (integer): Braden Scale points 6-23
- `max_score` (integer): Always 23
- `at_risk` (boolean): true iff Bergstrom 1987 score ≤16 (100% sensitivity cutoff in both predictive-validity studies). Not a diagnosis.
- `components` (array): Per-subscale caller-assigned points
- `citation` (object): Bergstrom et al. Nurs Res 1987 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 1,
      "factor": "sensory_perception",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "moisture",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "activity",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "mobility",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "nutrition",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "friction_shear",
      "points": 1,
      "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": "Bergstrom N, Braden BJ, Laguzza A, Holman V",
    "doi": "10.1097/00006199-198707000-00002",
    "id": "bergstrom-1987",
    "pmid": "3299278",
    "source": "Nurs Res. 1987;36(4):205-210",
    "title": "The Braden Scale for Predicting Pressure Sore Risk"
  },
  "formula": "braden",
  "formula_expression": "Braden = sensory_perception + moisture + activity + mobility + nutrition + friction_shear; Bergstrom 1987 caller-assigned points; 1-4 except friction_shear 1-3; range 6-23; at_risk iff score ≤ 16",
  "max_score": 23,
  "score": 6,
  "at_risk": true
}
```

## Errors

- HTTP 400 `invalid_braden_item`: sensory_perception, moisture, activity, mobility, and nutrition must each be 1-4, and friction_shear must be 1-3 (Bergstrom 1987). 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

- [NRS-2002](https://magentlab.com/docs/nrs-2002) — Sum Kondrup 2003 NRS-2002 impaired nutritional status (0–3), disease severity (0–3), and 1 if age ≥70, and return whether the total is at nutritional risk (score ≥3).
- [NUTRIC](https://magentlab.com/docs/nutric) — Sum Heyland 2011 original 6-variable NUTRIC (Nutrition Risk in the Critically Ill) Table 4 overall points, including IL-6, and return whether the total is high nutrition risk (score ≥6).
- [Charlson CCI](https://magentlab.com/docs/charlson) — Sum the nineteen Charlson 1987 original comorbidity weights and return the published 1-year mortality group.

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