{
  "x402Version": 2,
  "id": 39537,
  "slug": "39537",
  "resource": "https://api.magentlab.com/api/calc/nri",
  "description": "VA TPN 1991 Nutritional Risk Index (NEJM): NRI = 1.519*albumin_g_l + 41.7*(current/usual weight). Malnourished if NRI <= 100. Strata: not_malnourished if NRI > 100; borderline_malnourished if 97.5 < NRI <= 100; mildly_malnourished if 83.5 <= NRI <= 97.5; severely_malnourished if NRI < 83.5. Does not cap current/usual at 1. Not a malnutrition diagnosis or TPN order. magent does not assay albumin or weigh the patient. Not GNRI or PNI.",
  "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": [
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "current_weight_kg": 70,
                "usual_weight_kg": 70
              },
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "current_weight_kg": 70,
                "usual_weight_kg": 70
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "albumin_g_l": 40,
                "citation": {
                  "authors": "The Veterans Affairs Total Parenteral Nutrition Cooperative Study Group",
                  "doi": "10.1056/NEJM199108223250801",
                  "id": "va-tpn-1991",
                  "pmid": "1906163",
                  "source": "N Engl J Med. 1991;325(8):525-532",
                  "title": "Perioperative total parenteral nutrition in surgical patients"
                },
                "current_weight_kg": 70,
                "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": "nri",
                "formula_expression": "NRI = 1.519 × albumin_g_l + 0.417 × (current_weight_kg / usual_weight_kg) × 100",
                "nri": 102.5,
                "screening": "not_malnourished",
                "stratification": "not_malnourished",
                "usual_weight_kg": 70
              },
              {
                "albumin_g_l": 40,
                "citation": {
                  "authors": "The Veterans Affairs Total Parenteral Nutrition Cooperative Study Group",
                  "doi": "10.1056/NEJM199108223250801",
                  "id": "va-tpn-1991",
                  "pmid": "1906163",
                  "source": "N Engl J Med. 1991;325(8):525-532",
                  "title": "Perioperative total parenteral nutrition in surgical patients"
                },
                "current_weight_kg": 70,
                "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": "nri",
                "formula_expression": "NRI = 1.519 × albumin_g_l + 0.417 × (current_weight_kg / usual_weight_kg) × 100",
                "nri": 102.5,
                "screening": "not_malnourished",
                "stratification": "not_malnourished",
                "usual_weight_kg": 70
              }
            ],
            "path": "/api/calc/nri"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "albumin_g_dl": {
                          "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. VA TPN 1991 NRI uses g/L. magent does not assay albumin.",
                          "type": "number"
                        },
                        "current_weight_kg": {
                          "description": "Current weight in kg (1-500). Not capped at usual weight. magent does not weigh the patient.",
                          "type": "number"
                        },
                        "usual_weight_kg": {
                          "description": "Usual weight in kg (1-500). Must be greater than 0. magent does not weigh the patient.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "current_weight_kg",
                        "usual_weight_kg"
                      ],
                      "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": [
    "nri",
    "nutrition",
    "emergency",
    "albumin",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:26:24.806Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:26:24.681Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "current_weight_kg": 70,
                  "usual_weight_kg": 70
                },
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "current_weight_kg": 70,
                  "usual_weight_kg": 70
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "albumin_g_l": 40,
                  "citation": {
                    "authors": "The Veterans Affairs Total Parenteral Nutrition Cooperative Study Group",
                    "doi": "10.1056/NEJM199108223250801",
                    "id": "va-tpn-1991",
                    "pmid": "1906163",
                    "source": "N Engl J Med. 1991;325(8):525-532",
                    "title": "Perioperative total parenteral nutrition in surgical patients"
                  },
                  "current_weight_kg": 70,
                  "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": "nri",
                  "formula_expression": "NRI = 1.519 × albumin_g_l + 0.417 × (current_weight_kg / usual_weight_kg) × 100",
                  "nri": 102.5,
                  "screening": "not_malnourished",
                  "stratification": "not_malnourished",
                  "usual_weight_kg": 70
                },
                {
                  "albumin_g_l": 40,
                  "citation": {
                    "authors": "The Veterans Affairs Total Parenteral Nutrition Cooperative Study Group",
                    "doi": "10.1056/NEJM199108223250801",
                    "id": "va-tpn-1991",
                    "pmid": "1906163",
                    "source": "N Engl J Med. 1991;325(8):525-532",
                    "title": "Perioperative total parenteral nutrition in surgical patients"
                  },
                  "current_weight_kg": 70,
                  "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": "nri",
                  "formula_expression": "NRI = 1.519 × albumin_g_l + 0.417 × (current_weight_kg / usual_weight_kg) × 100",
                  "nri": 102.5,
                  "screening": "not_malnourished",
                  "stratification": "not_malnourished",
                  "usual_weight_kg": 70
                }
              ],
              "path": "/api/calc/nri"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "albumin_g_dl": {
                            "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. VA TPN 1991 NRI uses g/L. magent does not assay albumin.",
                            "type": "number"
                          },
                          "current_weight_kg": {
                            "description": "Current weight in kg (1-500). Not capped at usual weight. magent does not weigh the patient.",
                            "type": "number"
                          },
                          "usual_weight_kg": {
                            "description": "Usual weight in kg (1-500). Must be greater than 0. magent does not weigh the patient.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "current_weight_kg",
                          "usual_weight_kg"
                        ],
                        "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"
  }
}