{
  "x402Version": 2,
  "id": 38999,
  "slug": "38999",
  "resource": "https://api.magentlab.com/api/calc/nrs_2002",
  "description": "Kondrup 2003 NRS-2002: nutrition_status (0-3) + disease_severity (0-3) + 1 if age ≥70 (70 scores); max 7. at_risk true iff score ≥3. Caller assigns published grades (highest undernutrition indicator). Hospitalized adults. Not a medical device, not a diet order, not NRI. magent does not weigh the patient.",
  "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": 50,
                "disease_severity": 0,
                "nutrition_status": 0
              },
              {
                "age": 50,
                "disease_severity": 0,
                "nutrition_status": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "at_risk": false,
                "citation": {
                  "authors": "Kondrup J, Rasmussen HH, Hamberg O, Stanga Z, Ad Hoc ESPEN Working Group",
                  "doi": "10.1016/s0261-5614(02)00214-5",
                  "id": "kondrup-2003",
                  "pmid": "12765680",
                  "source": "Clin Nutr. 2003;22(3):321-336",
                  "title": "Nutritional risk screening (NRS 2002): a new method based on an analysis of controlled clinical trials"
                },
                "components": [
                  {
                    "factor": "nutrition_status",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "disease_severity",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age_ge_70",
                    "points": 0,
                    "present": false,
                    "value": 50
                  }
                ],
                "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.",
                "disease_severity": 0,
                "formula": "nrs_2002",
                "formula_expression": "NRS-2002 = nutrition_status (0–3) + disease_severity (0–3) + 1 if age ≥ 70; max 7; at_risk if score ≥ 3",
                "max_score": 7,
                "nutrition_status": 0,
                "score": 0
              },
              {
                "age_years": 50,
                "at_risk": false,
                "citation": {
                  "authors": "Kondrup J, Rasmussen HH, Hamberg O, Stanga Z, Ad Hoc ESPEN Working Group",
                  "doi": "10.1016/s0261-5614(02)00214-5",
                  "id": "kondrup-2003",
                  "pmid": "12765680",
                  "source": "Clin Nutr. 2003;22(3):321-336",
                  "title": "Nutritional risk screening (NRS 2002): a new method based on an analysis of controlled clinical trials"
                },
                "components": [
                  {
                    "factor": "nutrition_status",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "disease_severity",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age_ge_70",
                    "points": 0,
                    "present": false,
                    "value": 50
                  }
                ],
                "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.",
                "disease_severity": 0,
                "formula": "nrs_2002",
                "formula_expression": "NRS-2002 = nutrition_status (0–3) + disease_severity (0–3) + 1 if age ≥ 70; max 7; at_risk if score ≥ 3",
                "max_score": 7,
                "nutrition_status": 0,
                "score": 0
              }
            ],
            "path": "/api/calc/nrs_2002"
          },
          "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). Kondrup 2003: add 1 point when age ≥70. Age 70 scores. Age 69 does not.",
                          "type": "integer"
                        },
                        "disease_severity": {
                          "description": "Caller-assigned Kondrup 2003 disease severity 0-3. 0 absent (normal requirements). 1 mild (e.g. hip fracture; chronic illness with complications: cirrhosis, COPD, chronic hemodialysis, diabetes, oncology). 2 moderate (e.g. major abdominal surgery, stroke, severe pneumonia, hematologic malignancy). 3 severe (e.g. head injury, bone marrow transplant, ICU APACHE >10). magent does not assign the diagnosis.",
                          "enum": [
                            0,
                            1,
                            2,
                            3
                          ],
                          "type": "integer"
                        },
                        "nutrition_status": {
                          "description": "Caller-assigned Kondrup 2003 impaired nutritional status 0-3. If BMI, intake, and weight-loss grades differ, use the highest. 0 absent. 1 mild (weight loss >5% in 3 months or food intake 50-75% of requirement last week). 2 moderate (weight loss >5% in 2 months or BMI 18.5-20.5 plus impaired general condition or intake 25-60%). 3 severe (weight loss >5% in 1 month / >15% in 3 months or BMI <18.5 plus impaired general condition or intake 0-25%). magent does not weigh the patient or compute BMI, weight-loss, or intake.",
                          "enum": [
                            0,
                            1,
                            2,
                            3
                          ],
                          "type": "integer"
                        }
                      },
                      "required": [
                        "nutrition_status",
                        "disease_severity",
                        "age"
                      ],
                      "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": [
    "nrs-2002",
    "nutrition",
    "emergency",
    "screening",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:01:09.329Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:01:09.162Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "disease_severity": 0,
                  "nutrition_status": 0
                },
                {
                  "age": 50,
                  "disease_severity": 0,
                  "nutrition_status": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "at_risk": false,
                  "citation": {
                    "authors": "Kondrup J, Rasmussen HH, Hamberg O, Stanga Z, Ad Hoc ESPEN Working Group",
                    "doi": "10.1016/s0261-5614(02)00214-5",
                    "id": "kondrup-2003",
                    "pmid": "12765680",
                    "source": "Clin Nutr. 2003;22(3):321-336",
                    "title": "Nutritional risk screening (NRS 2002): a new method based on an analysis of controlled clinical trials"
                  },
                  "components": [
                    {
                      "factor": "nutrition_status",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "disease_severity",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age_ge_70",
                      "points": 0,
                      "present": false,
                      "value": 50
                    }
                  ],
                  "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.",
                  "disease_severity": 0,
                  "formula": "nrs_2002",
                  "formula_expression": "NRS-2002 = nutrition_status (0–3) + disease_severity (0–3) + 1 if age ≥ 70; max 7; at_risk if score ≥ 3",
                  "max_score": 7,
                  "nutrition_status": 0,
                  "score": 0
                },
                {
                  "age_years": 50,
                  "at_risk": false,
                  "citation": {
                    "authors": "Kondrup J, Rasmussen HH, Hamberg O, Stanga Z, Ad Hoc ESPEN Working Group",
                    "doi": "10.1016/s0261-5614(02)00214-5",
                    "id": "kondrup-2003",
                    "pmid": "12765680",
                    "source": "Clin Nutr. 2003;22(3):321-336",
                    "title": "Nutritional risk screening (NRS 2002): a new method based on an analysis of controlled clinical trials"
                  },
                  "components": [
                    {
                      "factor": "nutrition_status",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "disease_severity",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age_ge_70",
                      "points": 0,
                      "present": false,
                      "value": 50
                    }
                  ],
                  "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.",
                  "disease_severity": 0,
                  "formula": "nrs_2002",
                  "formula_expression": "NRS-2002 = nutrition_status (0–3) + disease_severity (0–3) + 1 if age ≥ 70; max 7; at_risk if score ≥ 3",
                  "max_score": 7,
                  "nutrition_status": 0,
                  "score": 0
                }
              ],
              "path": "/api/calc/nrs_2002"
            },
            "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). Kondrup 2003: add 1 point when age ≥70. Age 70 scores. Age 69 does not.",
                            "type": "integer"
                          },
                          "disease_severity": {
                            "description": "Caller-assigned Kondrup 2003 disease severity 0-3. 0 absent (normal requirements). 1 mild (e.g. hip fracture; chronic illness with complications: cirrhosis, COPD, chronic hemodialysis, diabetes, oncology). 2 moderate (e.g. major abdominal surgery, stroke, severe pneumonia, hematologic malignancy). 3 severe (e.g. head injury, bone marrow transplant, ICU APACHE >10). magent does not assign the diagnosis.",
                            "enum": [
                              0,
                              1,
                              2,
                              3
                            ],
                            "type": "integer"
                          },
                          "nutrition_status": {
                            "description": "Caller-assigned Kondrup 2003 impaired nutritional status 0-3. If BMI, intake, and weight-loss grades differ, use the highest. 0 absent. 1 mild (weight loss >5% in 3 months or food intake 50-75% of requirement last week). 2 moderate (weight loss >5% in 2 months or BMI 18.5-20.5 plus impaired general condition or intake 25-60%). 3 severe (weight loss >5% in 1 month / >15% in 3 months or BMI <18.5 plus impaired general condition or intake 0-25%). magent does not weigh the patient or compute BMI, weight-loss, or intake.",
                            "enum": [
                              0,
                              1,
                              2,
                              3
                            ],
                            "type": "integer"
                          }
                        },
                        "required": [
                          "nutrition_status",
                          "disease_severity",
                          "age"
                        ],
                        "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"
  }
}