# RESP Score Calculator (Schmidt 2014)

> RESP Score Calculator (Schmidt 2014) 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 Schmidt 2014 RESP (Respiratory ECMO Survival Prediction) score and survival class from 12 pre-ECMO clinical variables

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/resp
- 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/resp-score-calculator-schmidt-2014-a01c4bb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6BGrziN_3_uXZw6lw2T6F

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 resp-score-calculator-schmidt-2014-a01c4bb7
```

Example prompt: Calculate the RESP score for a 45-year-old non-immunocompromised patient with viral pneumonia who has been on mechanical ventilation for 3 days, no CNS dysfunction, no nonpulmonary infection, neuromuscular blockade used, no nitric oxide, no bicarbonate infusion, no prior cardiac arrest, PaCO2 of 65 mmHg, and peak inspiratory pressure of 38 cmH2O.

## When to prefer this

Use this endpoint when you need a standardized, reproducible RESP score calculation for a pre-ECMO respiratory patient and want to avoid manual arithmetic errors. Prefer it over generic clinical calculators when you specifically need the Schmidt 2014 RESP scoring rubric with survival class lookup. Not appropriate for ECMO ordering, patient diagnosis, ABG interpretation, or kPa-to-mmHg unit conversion — caller must supply pre-converted, pre-assigned values.

## Known failure modes

- Missing required query parameters returns a validation error
- Out-of-range age (below 18 or above 120) rejected
- PaCO2 value outside 8–200 mmHg range rejected
- Invalid diagnosis enum value returns error
- Boolean fields passed as non-boolean strings may fail parsing
- Payment not included or insufficient USDC returns 402

## How this service works

Schmidt 2014 RESP Table 3 (-22 to 15): age 18-49 0, 50-59 -2, >=60 -3; immunocompromised -2; MV lt_48h +3, h48_to_7d +1, gt_7d 0; one diagnosis (viral/bacterial pneumonia +3, asthma +11, trauma_burn +3, aspiration_pneumonitis +5, other acute +1, nonrespiratory 0); CNS -7; nonpulmonary infection -3; NMB +1; NO -1; bicarbonate -2; arrest -2; PaCO2 >=75 -1; PIP >=42 -1. Class I >=6 92%, II 3-5 76%, III -1 to 2 57%, IV -5 to -2 33%, V <=-6 18%. Not an ECMO order.

## Output

Returns the integer RESP score computed from the 12 Schmidt 2014 Table 3 variables, plus the survival class (I through V) and associated predicted in-hospital survival probability (Class I ≥6 → ~92%, Class II 3–5 → ~76%, Class III −1 to 2 → ~57%, Class IV −5 to −2 → ~33%, Class V ≤−6 → ~18%).

## 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_years",
      "immunocompromised",
      "mechanical_ventilation_before_ecmo",
      "diagnosis",
      "cns_dysfunction",
      "acute_nonpulmonary_infection",
      "neuromuscular_blockade_before_ecmo",
      "nitric_oxide_before_ecmo",
      "bicarbonate_infusion_before_ecmo",
      "cardiac_arrest_before_ecmo",
      "paco2_mm_hg",
      "peak_inspiratory_pressure_cm_h2o"
     ],
     "properties": {
      "age_years": {
       "type": "integer",
       "description": "Age in years, integer 18-120, as assigned before ECMO (Schmidt 2014 Table 3). 18-49 → 0; 50-59 → -2; ≥60 → -3."
      },
      "diagnosis": {
       "enum": [
        "viral_pneumonia",
        "bacterial_pneumonia",
        "asthma",
        "trauma_burn",
        "aspiration_pneumonitis",
        "other_acute_respiratory",
        "nonrespiratory_or_chronic_respiratory"
       ],
       "type": "string",
       "description": "One acute respiratory diagnosis group (Schmidt 2014 Table 3). viral_pneumonia → +3; bacterial_pneumonia → +3; asthma → +11; trauma_burn → +3; aspiration_pneumonitis → +5; other_acute_respiratory → +1; nonrespiratory_or_chronic_respiratory → 0. Select one token. magent does not diagnose."
      },
      "paco2_mm_hg": {
       "type": "number",
       "description": "Arterial PaCO2 in mm Hg (8-200) as assigned before ECMO. ≥75 scores -1 (Schmidt 2014 Table 3; the paper also states ≥10 kPa). magent does not convert kPa and does not read an ABG."
      },
      "cns_dysfunction": {
       "type": "boolean",
       "description": "Central nervous system dysfunction as assigned by the caller (Schmidt 2014: neurotrauma, stroke, encephalopathy, cerebral embolism, or seizure). true or false. true scores -7. magent does not examine the patient."
      },
      "immunocompromised": {
       "type": "boolean",
       "description": "Immunocompromised status as assigned by the caller (Schmidt 2014: ma
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/resp-score-calculator-schmidt-2014-a01c4bb7/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)
