# NUTRIC Score Calculator (Original 6-Variable, Heyland 2011)

> NUTRIC Score Calculator (Original 6-Variable, Heyland 2011) 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).

Calculates the original 6-variable NUTRIC (Nutrition Risk in the Critically Ill) score per Heyland 2011, including IL-6, and returns a high-risk flag (score ≥6)

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/nutric
- 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/nutric-score-calculator-original-6-variable-heyland-2011-6a8fab92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R4ONgVL_w74JkKKkI-Xyd

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 nutric-score-calculator-original-6-variable-heyland-2011-6a8fab92
```

Example prompt: Calculate the original Heyland 2011 NUTRIC score for a 68-year-old ICU patient with an APACHE II of 24, SOFA of 9, 2 comorbidities, 0 hospital days before ICU admission, and an IL-6 of 520 pg/mL — and tell me if they're high risk.

## When to prefer this

Use this endpoint when you specifically need the original Heyland 2011 6-variable NUTRIC score that includes serum IL-6, as opposed to the Rahman 2015 mNUTRIC (which omits IL-6). Ideal for clinical decision support systems, research pipelines, and EHR integrations where IL-6 is available and the original validated scoring table must be applied exactly. Not a substitute for clinical judgment or a medical device.

## Known failure modes

- Missing required query parameters (age, apache_ii, sofa, comorbidities, hospital_days_to_icu, il6_pg_ml) returns a 400 error
- Age outside 18–120 range may return a validation error
- IL-6 value above 100000 pg/mL may be rejected
- Non-integer APACHE II or SOFA values will fail schema validation
- Payment not provided or insufficient USDC via x402 returns 402

## How this service works

Heyland 2011 original 6-variable NUTRIC (Nutrition Risk in the Critically Ill) including IL-6, Table 4 overall: age 0-2, APACHE II 0-3 (28 scores 2), SOFA 0-2, comorbidities 0-1, hospital days to ICU 0-1, IL-6 pg/mL 0-1; max 10. high_risk true iff score ≥6. Caller supplies APACHE II and SOFA integers. Not a medical device, not a feeding order, not Rahman 2015 mNUTRIC.

## Output

Returns the total NUTRIC score (integer 0–10), a high_risk boolean (true if score ≥6), and per-variable subscores corresponding to each of the six Heyland 2011 Table 4 variables (age, APACHE II, SOFA, comorbidities, hospital days to ICU, IL-6).

## 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",
      "apache_ii",
      "sofa",
      "comorbidities",
      "hospital_days_to_icu",
      "il6_pg_ml"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Heyland 2011 Table 4 overall: <50 → 0; 50–<75 → 1; ≥75 → 2. Age 50 scores 1. Age 74 scores 1. Age 75 scores 2."
      },
      "sofa": {
       "type": "integer",
       "description": "Caller-supplied SOFA total (integer 0-24). Heyland 2011 Table 4 overall: <6 → 0; 6–<10 → 1; ≥10 → 2. magent does not compute SOFA."
      },
      "apache_ii": {
       "type": "integer",
       "description": "Caller-supplied APACHE II total (integer 0-71). Heyland 2011 Table 4 overall: <15 → 0; 15–<20 → 1; 20–28 inclusive → 2; ≥29 → 3. APACHE II 28 scores 2 (the 20–28 row, not the overlapping ≥28 row). magent does not compute APACHE II."
      },
      "il6_pg_ml": {
       "type": "number",
       "description": "Serum IL-6 in pg/mL (0-100000). Heyland 2011 Table 4 overall original 6-variable NUTRIC: 0–<400 → 0; ≥400 → 1. 399.9 scores 0. 400 scores 1. This is not Rahman 2015 mNUTRIC (IL-6 omitted)."
      },
      "comorbidities": {
       "type": "integer",
       "description": "Number of comorbidities (integer 0-20). Heyland 2011 Table 4 overall: 0–1 → 0; ≥2 → 1."
      },
      "hospital_days_to_icu": {
       "type": "number",
       "description": "Days from hospital admission to ICU admission (0-365). Heyland 2011 Table 4 overall: 0–<1 → 0; ≥1 → 1. 0.9 scores 0. 1.0 scores 1."
      }
     }
    }
   },
   "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/nutric-score-calculator-original-6-variable-heyland-2011-6a8fab92/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)
