# PRAM (Preschool Respiratory Assessment Measure) Score Calculator

> PRAM (Preschool Respiratory Assessment Measure) Score Calculator 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 Chalut 2000 PRAM score (0–12) by summing five caller-assigned clinical items: oxygen saturation points, suprasternal retractions, scalene contraction, air entry, and wheezing.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pram
- 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/pram-preschool-respiratory-assessment-measure-score-calculator-6384814c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0BLNHST8ugO3DeF1zN7D9

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 pram-preschool-respiratory-assessment-measure-score-calculator-6384814c
```

Example prompt: Calculate the PRAM score for a child with oxygen sat points 1, suprasternal retractions present (2), scalene contraction absent (0), air entry decreased at the base (1), and expiratory-only wheezing (1).

## When to prefer this

Use this endpoint when you need an automated, reproducible PRAM arithmetic sum from five pre-assessed clinical values — ideal for EMR integrations, clinical decision support pipelines, or research data processing where the clinician has already observed and scored each item. Prefer this over manual calculation to avoid arithmetic errors. Do not use if you need severity band labeling, a diagnosis, or any other respiratory score such as Westley croup score.

## Known failure modes

- Missing any of the five required query parameters returns an error
- Out-of-range integer values (e.g. scalene=1 instead of 0 or 2) may be rejected or produce unexpected results
- Non-integer values for any parameter will fail validation
- Payment not provided or insufficient USDC will return a 402 error

## How this service works

Chalut 2000 Preschool Respiratory Assessment Measure (PRAM): five caller-assigned items — oxygen_sat_points (0/1/2), suprasternal retractions (0/2), scalene contraction (0/2), air_entry (0-3), and wheezing (0-3). magent sums only (max 12) and does not auscultate or measure saturation. Score only; no invented mild/moderate/severe bands. Not a diagnosis and not the Westley 1978 croup score.

## Output

Returns a single integer PRAM total score (0–12) representing the arithmetic sum of the five caller-supplied input values. No severity band labels, no diagnosis, and no auscultation or saturation measurement is performed by the endpoint.

## 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": [
      "oxygen_sat_points",
      "suprasternal",
      "scalene",
      "air_entry",
      "wheezing"
     ],
     "properties": {
      "scalene": {
       "type": "integer",
       "description": "Caller-assigned Chalut 2000 PRAM scalene muscle contraction (integer 0 or 2): 0 absent; 2 present. Not 1. magent does not examine the patient."
      },
      "wheezing": {
       "type": "integer",
       "description": "Caller-assigned Chalut 2000 PRAM wheezing (integer 0, 1, 2, or 3): 0 absent; 1 expiratory only; 2 inspiratory with or without expiratory; 3 audible without a stethoscope or silent chest. magent does not auscultate."
      },
      "air_entry": {
       "type": "integer",
       "description": "Caller-assigned Chalut 2000 PRAM air entry (integer 0, 1, 2, or 3): 0 normal; 1 decreased at the base; 2 decreased at the apex and base; 3 minimal or absent. magent does not auscultate."
      },
      "suprasternal": {
       "type": "integer",
       "description": "Caller-assigned Chalut 2000 PRAM suprasternal retractions (integer 0 or 2): 0 absent; 2 present. Not 1. magent does not examine the patient."
      },
      "oxygen_sat_points": {
       "type": "integer",
       "description": "Caller-assigned Chalut 2000 PRAM oxygen saturation points (integer 0, 1, or 2): 0 if ≥95%; 1 if 92-94%; 2 if <92%. magent does not measure oxygen saturation."
      }
     }
    }
   },
   "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/pram-preschool-respiratory-assessment-measure-score-calculator-6384814c/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)
