{
  "x402Version": 2,
  "id": 38925,
  "slug": "38925",
  "resource": "https://api.magentlab.com/api/calc/readmits",
  "description": "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.",
  "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_years": 58,
                "creatinine_gt_2": false,
                "diabetes": false,
                "elevated_bnp": false,
                "pci_within_24h": true,
                "sbp_lt_100": false,
                "sex": "male"
              },
              {
                "age_years": 58,
                "creatinine_gt_2": false,
                "diabetes": false,
                "elevated_bnp": false,
                "pci_within_24h": true,
                "sbp_lt_100": false,
                "sex": "male"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_decades": 4,
                "age_years": 58,
                "citation": {
                  "authors": "Nguyen OK, Makam AN, Clark C, et al.",
                  "doi": "10.1161/JAHA.118.008882",
                  "id": "nguyen-2018",
                  "pmid": "29666144",
                  "source": "J Am Heart Assoc. 2018;7(8):e008882",
                  "title": "Predicting 30-Day Hospital Readmissions in Acute Myocardial Infarction: The AMI \"READMITS\" (Renal Function, Elevated Brain Natriuretic Peptide, Age, Diabetes Mellitus, Nonmale Sex, Intervention with Timely Percutaneous Coronary Intervention, and Low Systolic Blood Pressure) Score"
                },
                "components": [
                  {
                    "factor": "creatinine_gt_2",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_bnp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_years",
                    "points": 4,
                    "present": true,
                    "value": 58
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "male"
                  },
                  {
                    "factor": "no_pci_within_24h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sbp_lt_100",
                    "points": 0,
                    "present": false
                  }
                ],
                "creatinine_gt_2": false,
                "diabetes": false,
                "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.",
                "elevated_bnp": false,
                "formula": "readmits",
                "formula_expression": "READMITS = creatinine_gt_2 (6) + elevated_bnp (8) + floor((age_years-18)/10) (1 per decade >18) + diabetes (4) + female (2) + no_pci_within_24h (1) + sbp_lt_100 (3); Nguyen 2018 first-day AMI READMITS Table 2; max 32 at age 100; Table 4 quintiles <=13 extremely_low 3%, 14-15 low 7%, 16-17 moderate 11%, 18-19 high 16%, >=20 extremely_high 35%",
                "max_score": 32,
                "pci_within_24h": true,
                "predicted_readmission_percent": 3,
                "quintile": "extremely_low",
                "sbp_lt_100": false,
                "score": 4,
                "sex": "male"
              },
              {
                "age_decades": 4,
                "age_years": 58,
                "citation": {
                  "authors": "Nguyen OK, Makam AN, Clark C, et al.",
                  "doi": "10.1161/JAHA.118.008882",
                  "id": "nguyen-2018",
                  "pmid": "29666144",
                  "source": "J Am Heart Assoc. 2018;7(8):e008882",
                  "title": "Predicting 30-Day Hospital Readmissions in Acute Myocardial Infarction: The AMI \"READMITS\" (Renal Function, Elevated Brain Natriuretic Peptide, Age, Diabetes Mellitus, Nonmale Sex, Intervention with Timely Percutaneous Coronary Intervention, and Low Systolic Blood Pressure) Score"
                },
                "components": [
                  {
                    "factor": "creatinine_gt_2",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_bnp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_years",
                    "points": 4,
                    "present": true,
                    "value": 58
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "male"
                  },
                  {
                    "factor": "no_pci_within_24h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sbp_lt_100",
                    "points": 0,
                    "present": false
                  }
                ],
                "creatinine_gt_2": false,
                "diabetes": false,
                "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.",
                "elevated_bnp": false,
                "formula": "readmits",
                "formula_expression": "READMITS = creatinine_gt_2 (6) + elevated_bnp (8) + floor((age_years-18)/10) (1 per decade >18) + diabetes (4) + female (2) + no_pci_within_24h (1) + sbp_lt_100 (3); Nguyen 2018 first-day AMI READMITS Table 2; max 32 at age 100; Table 4 quintiles <=13 extremely_low 3%, 14-15 low 7%, 16-17 moderate 11%, 18-19 high 16%, >=20 extremely_high 35%",
                "max_score": 32,
                "pci_within_24h": true,
                "predicted_readmission_percent": 3,
                "quintile": "extremely_low",
                "sbp_lt_100": false,
                "score": 4,
                "sex": "male"
              }
            ],
            "path": "/api/calc/readmits"
          },
          "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_years": {
                          "description": "Age in years (18-100). Nguyen 2018: 1 point per decade over 18, floor((age_years-18)/10).",
                          "type": "integer"
                        },
                        "creatinine_gt_2": {
                          "description": "Whether serum creatinine was >2 mg/dL within the first 24 hours (Nguyen 2018: 6 points). Caller-assigned. magent does not assay creatinine.",
                          "type": "boolean"
                        },
                        "diabetes": {
                          "description": "Diabetes mellitus history (Nguyen 2018: 4 points). true or false.",
                          "type": "boolean"
                        },
                        "elevated_bnp": {
                          "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.",
                          "type": "boolean"
                        },
                        "pci_within_24h": {
                          "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.",
                          "type": "boolean"
                        },
                        "sbp_lt_100": {
                          "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.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male (Nguyen 2018 nonmale sex). Female scores 2. Male scores 0. A published sex item, not race.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age_years",
                        "sex",
                        "creatinine_gt_2",
                        "elevated_bnp",
                        "diabetes",
                        "pci_within_24h",
                        "sbp_lt_100"
                      ],
                      "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": [
    "readmits",
    "ami",
    "acs",
    "readmission",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:06:49.471Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T12:06:49.309Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_years": 58,
                  "creatinine_gt_2": false,
                  "diabetes": false,
                  "elevated_bnp": false,
                  "pci_within_24h": true,
                  "sbp_lt_100": false,
                  "sex": "male"
                },
                {
                  "age_years": 58,
                  "creatinine_gt_2": false,
                  "diabetes": false,
                  "elevated_bnp": false,
                  "pci_within_24h": true,
                  "sbp_lt_100": false,
                  "sex": "male"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_decades": 4,
                  "age_years": 58,
                  "citation": {
                    "authors": "Nguyen OK, Makam AN, Clark C, et al.",
                    "doi": "10.1161/JAHA.118.008882",
                    "id": "nguyen-2018",
                    "pmid": "29666144",
                    "source": "J Am Heart Assoc. 2018;7(8):e008882",
                    "title": "Predicting 30-Day Hospital Readmissions in Acute Myocardial Infarction: The AMI \"READMITS\" (Renal Function, Elevated Brain Natriuretic Peptide, Age, Diabetes Mellitus, Nonmale Sex, Intervention with Timely Percutaneous Coronary Intervention, and Low Systolic Blood Pressure) Score"
                  },
                  "components": [
                    {
                      "factor": "creatinine_gt_2",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_bnp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_years",
                      "points": 4,
                      "present": true,
                      "value": 58
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "male"
                    },
                    {
                      "factor": "no_pci_within_24h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sbp_lt_100",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "creatinine_gt_2": false,
                  "diabetes": false,
                  "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.",
                  "elevated_bnp": false,
                  "formula": "readmits",
                  "formula_expression": "READMITS = creatinine_gt_2 (6) + elevated_bnp (8) + floor((age_years-18)/10) (1 per decade >18) + diabetes (4) + female (2) + no_pci_within_24h (1) + sbp_lt_100 (3); Nguyen 2018 first-day AMI READMITS Table 2; max 32 at age 100; Table 4 quintiles <=13 extremely_low 3%, 14-15 low 7%, 16-17 moderate 11%, 18-19 high 16%, >=20 extremely_high 35%",
                  "max_score": 32,
                  "pci_within_24h": true,
                  "predicted_readmission_percent": 3,
                  "quintile": "extremely_low",
                  "sbp_lt_100": false,
                  "score": 4,
                  "sex": "male"
                },
                {
                  "age_decades": 4,
                  "age_years": 58,
                  "citation": {
                    "authors": "Nguyen OK, Makam AN, Clark C, et al.",
                    "doi": "10.1161/JAHA.118.008882",
                    "id": "nguyen-2018",
                    "pmid": "29666144",
                    "source": "J Am Heart Assoc. 2018;7(8):e008882",
                    "title": "Predicting 30-Day Hospital Readmissions in Acute Myocardial Infarction: The AMI \"READMITS\" (Renal Function, Elevated Brain Natriuretic Peptide, Age, Diabetes Mellitus, Nonmale Sex, Intervention with Timely Percutaneous Coronary Intervention, and Low Systolic Blood Pressure) Score"
                  },
                  "components": [
                    {
                      "factor": "creatinine_gt_2",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_bnp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_years",
                      "points": 4,
                      "present": true,
                      "value": 58
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "male"
                    },
                    {
                      "factor": "no_pci_within_24h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sbp_lt_100",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "creatinine_gt_2": false,
                  "diabetes": false,
                  "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.",
                  "elevated_bnp": false,
                  "formula": "readmits",
                  "formula_expression": "READMITS = creatinine_gt_2 (6) + elevated_bnp (8) + floor((age_years-18)/10) (1 per decade >18) + diabetes (4) + female (2) + no_pci_within_24h (1) + sbp_lt_100 (3); Nguyen 2018 first-day AMI READMITS Table 2; max 32 at age 100; Table 4 quintiles <=13 extremely_low 3%, 14-15 low 7%, 16-17 moderate 11%, 18-19 high 16%, >=20 extremely_high 35%",
                  "max_score": 32,
                  "pci_within_24h": true,
                  "predicted_readmission_percent": 3,
                  "quintile": "extremely_low",
                  "sbp_lt_100": false,
                  "score": 4,
                  "sex": "male"
                }
              ],
              "path": "/api/calc/readmits"
            },
            "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_years": {
                            "description": "Age in years (18-100). Nguyen 2018: 1 point per decade over 18, floor((age_years-18)/10).",
                            "type": "integer"
                          },
                          "creatinine_gt_2": {
                            "description": "Whether serum creatinine was >2 mg/dL within the first 24 hours (Nguyen 2018: 6 points). Caller-assigned. magent does not assay creatinine.",
                            "type": "boolean"
                          },
                          "diabetes": {
                            "description": "Diabetes mellitus history (Nguyen 2018: 4 points). true or false.",
                            "type": "boolean"
                          },
                          "elevated_bnp": {
                            "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.",
                            "type": "boolean"
                          },
                          "pci_within_24h": {
                            "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.",
                            "type": "boolean"
                          },
                          "sbp_lt_100": {
                            "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.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male (Nguyen 2018 nonmale sex). Female scores 2. Male scores 0. A published sex item, not race.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age_years",
                          "sex",
                          "creatinine_gt_2",
                          "elevated_bnp",
                          "diabetes",
                          "pci_within_24h",
                          "sbp_lt_100"
                        ],
                        "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"
  }
}