{
  "x402Version": 2,
  "id": 38998,
  "slug": "38998",
  "resource": "https://api.magentlab.com/api/calc/nutric",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 40,
                "apache_ii": 10,
                "comorbidities": 0,
                "hospital_days_to_icu": 0,
                "il6_pg_ml": 100,
                "sofa": 4
              },
              {
                "age": 40,
                "apache_ii": 10,
                "comorbidities": 0,
                "hospital_days_to_icu": 0,
                "il6_pg_ml": 100,
                "sofa": 4
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 40,
                "apache_ii": 10,
                "citation": {
                  "authors": "Heyland DK, Dhaliwal R, Jiang X, Day AG",
                  "doi": "10.1186/cc10546",
                  "id": "heyland-2011",
                  "pmid": "22085762",
                  "source": "Crit Care. 2011;15(6):R268",
                  "title": "Identifying critically ill patients who benefit the most from nutrition therapy: the development and initial validation of a novel risk assessment tool"
                },
                "comorbidities": 0,
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "apache_ii",
                    "points": 0,
                    "present": false,
                    "value": 10
                  },
                  {
                    "factor": "sofa",
                    "points": 0,
                    "present": false,
                    "value": 4
                  },
                  {
                    "factor": "comorbidities",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "hospital_days_to_icu",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "il6_pg_ml",
                    "points": 0,
                    "present": false,
                    "value": 100
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "nutric",
                "formula_expression": "NUTRIC = age (0–2) + apache_ii (0–3) + sofa (0–2) + comorbidities (0–1) + hospital_days_to_icu (0–1) + il6_pg_ml (0–1); Heyland 2011 Table 4 overall including IL-6; max 10; high_risk if score ≥ 6",
                "high_risk": false,
                "hospital_days_to_icu": 0,
                "il6_pg_ml": 100,
                "max_score": 10,
                "score": 0,
                "sofa": 4
              },
              {
                "age_years": 40,
                "apache_ii": 10,
                "citation": {
                  "authors": "Heyland DK, Dhaliwal R, Jiang X, Day AG",
                  "doi": "10.1186/cc10546",
                  "id": "heyland-2011",
                  "pmid": "22085762",
                  "source": "Crit Care. 2011;15(6):R268",
                  "title": "Identifying critically ill patients who benefit the most from nutrition therapy: the development and initial validation of a novel risk assessment tool"
                },
                "comorbidities": 0,
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "apache_ii",
                    "points": 0,
                    "present": false,
                    "value": 10
                  },
                  {
                    "factor": "sofa",
                    "points": 0,
                    "present": false,
                    "value": 4
                  },
                  {
                    "factor": "comorbidities",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "hospital_days_to_icu",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "il6_pg_ml",
                    "points": 0,
                    "present": false,
                    "value": 100
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "nutric",
                "formula_expression": "NUTRIC = age (0–2) + apache_ii (0–3) + sofa (0–2) + comorbidities (0–1) + hospital_days_to_icu (0–1) + il6_pg_ml (0–1); Heyland 2011 Table 4 overall including IL-6; max 10; high_risk if score ≥ 6",
                "high_risk": false,
                "hospital_days_to_icu": 0,
                "il6_pg_ml": 100,
                "max_score": 10,
                "score": 0,
                "sofa": 4
              }
            ],
            "path": "/api/calc/nutric"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "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.",
                          "type": "integer"
                        },
                        "apache_ii": {
                          "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.",
                          "type": "integer"
                        },
                        "comorbidities": {
                          "description": "Number of comorbidities (integer 0-20). Heyland 2011 Table 4 overall: 0–1 → 0; ≥2 → 1.",
                          "type": "integer"
                        },
                        "hospital_days_to_icu": {
                          "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.",
                          "type": "number"
                        },
                        "il6_pg_ml": {
                          "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).",
                          "type": "number"
                        },
                        "sofa": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age",
                        "apache_ii",
                        "sofa",
                        "comorbidities",
                        "hospital_days_to_icu",
                        "il6_pg_ml"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "nutric",
    "nutrition",
    "icu",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:01:10.043Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:01:09.919Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "apache_ii": 10,
                  "comorbidities": 0,
                  "hospital_days_to_icu": 0,
                  "il6_pg_ml": 100,
                  "sofa": 4
                },
                {
                  "age": 40,
                  "apache_ii": 10,
                  "comorbidities": 0,
                  "hospital_days_to_icu": 0,
                  "il6_pg_ml": 100,
                  "sofa": 4
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 40,
                  "apache_ii": 10,
                  "citation": {
                    "authors": "Heyland DK, Dhaliwal R, Jiang X, Day AG",
                    "doi": "10.1186/cc10546",
                    "id": "heyland-2011",
                    "pmid": "22085762",
                    "source": "Crit Care. 2011;15(6):R268",
                    "title": "Identifying critically ill patients who benefit the most from nutrition therapy: the development and initial validation of a novel risk assessment tool"
                  },
                  "comorbidities": 0,
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "apache_ii",
                      "points": 0,
                      "present": false,
                      "value": 10
                    },
                    {
                      "factor": "sofa",
                      "points": 0,
                      "present": false,
                      "value": 4
                    },
                    {
                      "factor": "comorbidities",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "hospital_days_to_icu",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "il6_pg_ml",
                      "points": 0,
                      "present": false,
                      "value": 100
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "nutric",
                  "formula_expression": "NUTRIC = age (0–2) + apache_ii (0–3) + sofa (0–2) + comorbidities (0–1) + hospital_days_to_icu (0–1) + il6_pg_ml (0–1); Heyland 2011 Table 4 overall including IL-6; max 10; high_risk if score ≥ 6",
                  "high_risk": false,
                  "hospital_days_to_icu": 0,
                  "il6_pg_ml": 100,
                  "max_score": 10,
                  "score": 0,
                  "sofa": 4
                },
                {
                  "age_years": 40,
                  "apache_ii": 10,
                  "citation": {
                    "authors": "Heyland DK, Dhaliwal R, Jiang X, Day AG",
                    "doi": "10.1186/cc10546",
                    "id": "heyland-2011",
                    "pmid": "22085762",
                    "source": "Crit Care. 2011;15(6):R268",
                    "title": "Identifying critically ill patients who benefit the most from nutrition therapy: the development and initial validation of a novel risk assessment tool"
                  },
                  "comorbidities": 0,
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "apache_ii",
                      "points": 0,
                      "present": false,
                      "value": 10
                    },
                    {
                      "factor": "sofa",
                      "points": 0,
                      "present": false,
                      "value": 4
                    },
                    {
                      "factor": "comorbidities",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "hospital_days_to_icu",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "il6_pg_ml",
                      "points": 0,
                      "present": false,
                      "value": 100
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "nutric",
                  "formula_expression": "NUTRIC = age (0–2) + apache_ii (0–3) + sofa (0–2) + comorbidities (0–1) + hospital_days_to_icu (0–1) + il6_pg_ml (0–1); Heyland 2011 Table 4 overall including IL-6; max 10; high_risk if score ≥ 6",
                  "high_risk": false,
                  "hospital_days_to_icu": 0,
                  "il6_pg_ml": 100,
                  "max_score": 10,
                  "score": 0,
                  "sofa": 4
                }
              ],
              "path": "/api/calc/nutric"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "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.",
                            "type": "integer"
                          },
                          "apache_ii": {
                            "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.",
                            "type": "integer"
                          },
                          "comorbidities": {
                            "description": "Number of comorbidities (integer 0-20). Heyland 2011 Table 4 overall: 0–1 → 0; ≥2 → 1.",
                            "type": "integer"
                          },
                          "hospital_days_to_icu": {
                            "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.",
                            "type": "number"
                          },
                          "il6_pg_ml": {
                            "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).",
                            "type": "number"
                          },
                          "sofa": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age",
                          "apache_ii",
                          "sofa",
                          "comorbidities",
                          "hospital_days_to_icu",
                          "il6_pg_ml"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}