# Magent READMITS Score Calculator (Nguyen 2018 AMI 30-Day Readmission)

> Magent READMITS Score Calculator (Nguyen 2018 AMI 30-Day Readmission) 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-15).

Computes the Nguyen 2018 READMITS integer score predicting 30-day all-cause readmission risk after acute myocardial infarction, using seven first-day clinical variables.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/readmits
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-readmits-score-calculator-nguyen-2018-ami-30-day-readmission-ce1f87b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WPwHL3SUrn5AZBwkNjRRc

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 magent-readmits-score-calculator-nguyen-2018-ami-30-day-readmission-ce1f87b2
```

Example prompt: Calculate the READMITS readmission risk score for a 67-year-old male AMI patient who has diabetes, creatinine above 2 mg/dL, elevated BNP, systolic BP above 100, and did not receive PCI within 24 hours.

## When to prefer this

Choose this endpoint when you need a fast, validated integer readmission risk score for an AMI patient using the Nguyen 2018 READMITS model specifically — particularly when first-day clinical variables (BNP, creatinine, SBP, PCI status) have already been abstracted into boolean flags. Prefer over generic readmission models when the clinical context is acute MI. Not appropriate for heart failure readmission (use MAGGIC/ADHERE), pediatric patients, or when a full-stay (not first-day) model is needed.

## Known failure modes

- Missing required query parameters (age_years, sex, creatinine_gt_2, elevated_bnp, diabetes, pci_within_24h, sbp_lt_100) returns a 400 error
- Age outside the 18-100 integer range may return a validation error
- Invalid sex enum value (not 'female' or 'male') returns a 422 error
- Non-boolean values for flag parameters cause schema validation failure
- Payment failure or missing x402 payment header results in 402 response

## How this service works

Nguyen 2018 first-day AMI READMITS integer score for 30-day all-cause readmission: creatinine >2 mg/dL (6), elevated BNP >=50 or NT-proBNP >=125 pg/mL (8), 1 point per decade over 18, diabetes (4), female sex (2), no PCI within 24 hours (1), SBP <100 mm Hg (3). Table 4 quintiles with mean predicted risk. Not a medical device, not a PCI or discharge order, and not the full-stay model.

## Output

Returns the READMITS integer score computed from the seven Nguyen 2018 predictors, along with the Table 4 quintile classification and mean predicted 30-day all-cause readmission risk for that quintile.

## 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_years",
      "sex",
      "creatinine_gt_2",
      "elevated_bnp",
      "diabetes",
      "pci_within_24h",
      "sbp_lt_100"
     ],
     "properties": {
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male (Nguyen 2018 nonmale sex). Female scores 2. Male scores 0. A published sex item, not race."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes mellitus history (Nguyen 2018: 4 points). true or false."
      },
      "age_years": {
       "type": "integer",
       "description": "Age in years (18-100). Nguyen 2018: 1 point per decade over 18, floor((age_years-18)/10)."
      },
      "sbp_lt_100": {
       "type": "boolean",
       "description": "Whether systolic blood pressure was <100 mm Hg within the first 24 hours (Nguyen 2018: 3 points). Caller-assigned boolean; magent does not take an SBP number."
      },
      "elevated_bnp": {
       "type": "boolean",
       "description": "Whether BNP was >=50 pg/mL or NT-proBNP was >=125 pg/mL within the first 24 hours (Nguyen 2018: 8 points). Caller-assigned. magent does not assay natriuretic peptides."
      },
      "pci_within_24h": {
       "type": "boolean",
       "description": "Whether PCI occurred within the first 24 hours (Nguyen 2018: false scores 1; true scores 0). Caller-assigned. magent does not read timestamps or the angiogram."
      },
      "creatinine_gt_2": {
       "type": "boolean",
       "description": "Whether serum creatinine was >2 mg/dL within the first 24 hours (Nguyen 2018: 6 points). Caller-assigned. magent does not assay creatinine."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-readmits-score-calculator-nguyen-2018-ami-30-day-readmission-ce1f87b2/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)
