# REMS Calculator (Rapid Emergency Medicine Score)

> REMS Calculator (Rapid Emergency Medicine Score) 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-14).

Computes the Rapid Emergency Medicine Score (REMS) per Olsson 2004 Table 1 from six vital-sign and demographic inputs to estimate in-hospital mortality risk for nonsurgical adult ED patients.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rems
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rems-calculator-rapid-emergency-medicine-score-a91c59dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6GjJSNKTxUAmySqsekT_H

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 rems-calculator-rapid-emergency-medicine-score-a91c59dc
```

Example prompt: Calculate the REMS score for a 67-year-old nonsurgical ED patient with MAP 85 mmHg, heart rate 112 bpm, respiratory rate 22 breaths/min, SpO2 96%, and GCS 14.

## When to prefer this

Use this endpoint when you need a validated, published, deterministic Rapid Emergency Medicine Score (REMS) per Olsson 2004 for a nonsurgical adult ED patient. Prefer over MEWS or NEWS when the Olsson 2004 citation is required, or when scoring specifically targets nonsurgical adult ED in-hospital mortality rather than general ward deterioration or ICU admission. Not appropriate for pediatric patients, surgical patients, or ICU admission scoring.

## Known failure modes

- Missing any required query parameter (map_mm_hg, heart_rate_bpm, respiratory_rate, spo2_percent, gcs, age) returns an error
- Out-of-range integer values (e.g. age <18 or >120, MAP <30 or >180) may return a validation error
- GCS must be caller-assigned 3–15; the API does not decompose eye/verbal/motor components
- MAP must be caller-computed; the API does not derive MAP from systolic and diastolic BP
- Non-integer inputs will fail schema validation

## How this service works

REMS from Olsson 2004 Table 1: MAP, heart rate, respiratory rate, SpO2, GCS (RAPS 0–4, not 15−GCS), and age summed to a 0–26 total for nonsurgical adult ED in-hospital mortality. Deterministic published arithmetic with citation; not MEWS, NEWS, or APACHE II; not an ICU-admission order.

## Output

Returns the REMS total score (0–26) computed by deterministic arithmetic per Olsson 2004 Table 1, summing age, MAP, heart rate, respiratory rate, SpO2, and RAPS (GCS-derived) subscores. Higher scores indicate higher predicted in-hospital mortality risk in nonsurgical adult ED patients.

## 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": [
      "map_mm_hg",
      "heart_rate_bpm",
      "respiratory_rate",
      "spo2_percent",
      "gcs",
      "age"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Adult ED. Olsson 2004 Table 1: <45 → 0, 45-54 → 2, 55-64 → 3, 65-74 → 5, >74 → 6."
      },
      "gcs": {
       "type": "integer",
       "description": "Glasgow Coma Scale total 3-15, caller-assigned. Olsson 2004 REMS/RAPS 0-4: 14-15 → 0, 11-13 → 1, 8-10 → 2, 5-7 → 3, 3-4 → 4. Not APACHE II 15−GCS. magent does not score eye/verbal/motor."
      },
      "map_mm_hg": {
       "type": "integer",
       "description": "Mean arterial pressure in mm Hg (integer 30-180). Olsson 2004 Table 1: ≤49 → 4, 50-69 → 2, 70-109 → 0, 110-129 → 2, 130-159 → 3, ≥160 → 4. magent does not compute MAP from SBP/DBP."
      },
      "spo2_percent": {
       "type": "integer",
       "description": "Pulse oximetry SpO2 percent (integer 50-100). Olsson 2004 Table 1: >89 → 0, 86-89 → 1, 75-85 → 3, <75 → 4."
      },
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Heart rate in beats/min (integer 30-220). Olsson 2004 Table 1: ≤39 → 4, 40-54 → 2, 55-69 → 1, 70-109 → 0, 110-139 → 2, 140-179 → 3, ≥180 → 4."
      },
      "respiratory_rate": {
       "type": "integer",
       "description": "Respiratory rate in breaths/min (integer 0-80). Olsson 2004 Table 1: ≤5 → 4, 6-9 → 2, 10-11 → 1, 12-24 → 0, 25-34 → 1, 35-49 → 3, ≥50 → 4."
      }
     }
    }
   },
   "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/rems-calculator-rapid-emergency-medicine-score-a91c59dc/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)
