# CART Score Calculator (Churpek 2012)

> CART Score Calculator (Churpek 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-13).

Computes the CART (Cardiac Arrest Risk Triage) integer score (0–57) from maximum respiratory rate, maximum heart rate, minimum diastolic BP, and age using Churpek 2012 Table 3 point assignments.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cart
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cart-score-calculator-churpek-2012-69931f84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__6BAu_ZoSG-YVOOhAab2O

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 cart-score-calculator-churpek-2012-69931f84
```

Example prompt: Calculate the CART score for a 67-year-old patient whose maximum respiratory rate was 24 breaths/min, maximum heart rate was 118 bpm, and minimum diastolic BP was 42 mm Hg.

## When to prefer this

Choose this endpoint when you need a deterministic, published CART integer score per Churpek 2012 Table 3 and the caller already has the four required vital/demographic values. It is ideal for automating ward triage workflows, clinical decision support pipelines, or educational tools where reproducibility and citation traceability matter. Do not use it if you need risk-band probabilities, cardiac arrest diagnosis, or RRT order generation.

## Known failure modes

- Missing required query parameters (respiratory_rate, heart_rate_bpm, diastolic_mm_hg, or age) return a 4xx error
- Values outside valid integer ranges (e.g. age <18 or >120, RR >80) may be rejected or return an error
- Non-integer inputs cause schema validation failure
- Network or payment (x402) errors prevent score retrieval

## How this service works

CART integer score from Churpek 2012 Table 3 (beta x 9): maximum respiratory rate, maximum heart rate, minimum diastolic BP, and age, summed to 0-57. magent does not measure vitals; the caller assigns the numbers. Deterministic published arithmetic with citation; not a cardiac-arrest diagnosis and not an RRT order. Does not return risk-band percents.

## Output

Returns a single integer CART score (0–57) computed by summing the Churpek 2012 Table 3 point values for each of the four inputs: respiratory rate, heart rate, diastolic BP, and age. No risk-band percentages or diagnostic interpretations are returned.

## 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": [
      "respiratory_rate",
      "heart_rate_bpm",
      "diastolic_mm_hg",
      "age"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Churpek 2012 Table 3: <55 → 0, 55-69 → 4, >69 → 9. magent does not assign age."
      },
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Maximum heart rate in beats/min (integer 30-220). Churpek 2012 Table 3: <110 → 0, 110-139 → 4, >139 → 13. magent does not measure vitals; the caller assigns the number."
      },
      "diastolic_mm_hg": {
       "type": "integer",
       "description": "Minimum diastolic blood pressure in mm Hg (integer 20-160). Churpek 2012 Table 3: >49 → 0, 40-49 → 4, 35-39 → 6, <35 → 13. magent does not measure vitals; the caller assigns the number."
      },
      "respiratory_rate": {
       "type": "integer",
       "description": "Maximum respiratory rate in breaths/min (integer 0-80). Churpek 2012 Table 3: <21 → 0, 21-23 → 8, 24-25 → 12, 26-29 → 15, >29 → 22. magent does not measure vitals; the caller assigns the number."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cart-score-calculator-churpek-2012-69931f84/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)
