# PLAN Score Calculator (O'Donnell 2012)

> PLAN Score Calculator (O'Donnell 2012) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the PLAN score for ischemic stroke outcome prediction using O'Donnell 2012 Arch Intern Med Table 4 clinical variables

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/plan
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plan-score-calculator-o-donnell-2012-6e4a6071
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G6uai86jC9u_s2Nadx-mN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability plan-score-calculator-o-donnell-2012-6e4a6071
```

Example prompt: Calculate the PLAN score for a 72-year-old stroke patient who has preadmission dependence, a history of cancer, no CHF, no atrial fibrillation, is alert, has significant arm weakness and leg weakness, and has aphasia.

## When to prefer this

Use this endpoint when you need a validated, reproducible PLAN score for ischemic stroke patients per O'Donnell 2012; prefer this over manual computation to avoid arithmetic errors. Note: this is not a tPA eligibility tool and should not be confused with the iScore — it is specifically for functional outcome risk stratification post-stroke.

## Known failure modes

- Missing required query parameters returns an error — all nine fields are required
- Age outside supported range (below 18 or above 120) may be rejected
- Boolean fields passed as non-boolean values will cause a validation error
- Payment failure via x402 protocol results in 402 response and no score returned

## How this service works

PLAN score (O'Donnell 2012 Arch Intern Med Table 4): preadmission dependence 1.5, cancer 1.5, CHF 1, atrial fibrillation 1, reduced LOC 5, age 1 point per decade (max 10), significant/total arm weakness 2, leg weakness 2, aphasia or neglect 1. Max 25. Bands <10, 10-15, >15. Not a tPA decision and not iScore. magent does not examine the patient.

## Output

Returns the total PLAN score (0–25) and the corresponding risk band: low (<10), medium (10–15), or high (>15), based on summing points for preadmission dependence (1.5), cancer (1.5), CHF (1), atrial fibrillation (1), reduced LOC (5), age in decades capped at 10 points, arm weakness (2), leg weakness (2), and aphasia/neglect (1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "age",
      "preadmission_dependence",
      "cancer",
      "congestive_heart_failure",
      "atrial_fibrillation",
      "reduced_loc",
      "arm_weakness",
      "leg_weakness",
      "aphasia_or_neglect"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). O'Donnell 2012 Table 4: 1 point per decade (floor age/10), maximum 10. The derivation excluded patients younger than 18."
      },
      "cancer": {
       "type": "boolean",
       "description": "History of cancer on the admission notes (O'Donnell 2012 Table 4; not a diagnosis made during the incident hospitalization). true scores 1.5; false scores 0. The caller assigns the item."
      },
      "reduced_loc": {
       "type": "boolean",
       "description": "Caller-assigned reduced level of consciousness (O'Donnell 2012 Table 4). true scores 5; false (alert) scores 0. magent does not examine the patient."
      },
      "arm_weakness": {
       "type": "boolean",
       "description": "Caller-assigned significant or total arm weakness (O'Donnell 2012 Table 4). true scores 2. Mild or no weakness scores 0. magent does not examine the patient."
      },
      "leg_weakness": {
       "type": "boolean",
       "description": "Caller-assigned significant or total leg weakness (O'Donnell 2012 Table 4). true scores 2. Mild or no weakness scores 0. magent does not examine the patient."
      },
      "aphasia_or_neglect": {
       "type": "boolean",
       "description": "Caller-assigned aphasia or neglect (O'Donnell 2012 Table 4 combined item). true scores 1 whether one or both are present; false scores 0. magent does not examine the patient."
      },
      "atrial_fibrillation": {
       "type": "boolean",
       "description": "Atrial fibrillation (O'Donnell 2012 Table 4). true scores 1; false scores 0. The caller assigns the item."
      },
      "preadmission_depen
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plan-score-calculator-o-donnell-2012-6e4a6071/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
