{
  "x402Version": 2,
  "id": 38765,
  "slug": "38765",
  "resource": "https://api.magentlab.com/api/calc/steinhart",
  "description": "Steinhart 2009 Equation 1 probability of acute heart failure from caller-assigned age, clinician pretest probability (fraction 0-1 or 0-100 percent), and NT-proBNP in pg/mL. Returns estimated_probability_percent from the unrounded probability plus published ≤0.20 rule-out and ≥0.80 rule-in flags. Not a diagnosis, diuretic, or admission order. magent does not assay NT-proBNP.",
  "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": 70,
                "nt_probnp_pg_ml": 1000,
                "pretest_probability": 0.5
              },
              {
                "age": 70,
                "nt_probnp_pg_ml": 1000,
                "pretest_probability": 0.5
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 70,
                "ahf_ge_0_80": true,
                "ahf_le_0_20": false,
                "citation": {
                  "authors": "Steinhart B, Thorpe KE, Bayoumi AM, Moe G, Januzzi JL Jr, Mazer CD",
                  "doi": "10.1016/j.jacc.2009.05.065",
                  "id": "steinhart-2009",
                  "pmid": "19815125",
                  "source": "J Am Coll Cardiol. 2009;54(16):1515-1521",
                  "title": "Improving the Diagnosis of Acute Heart Failure Using a Validated Prediction Model"
                },
                "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.",
                "estimated_probability_percent": 98.78,
                "formula": "steinhart",
                "formula_expression": "Pr(AHF) = 1 / (1 + exp(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml))); pretest is clinician pretest probability as a fraction 0-1 (0-100 percent is divided by 100); NT-proBNP is pg/mL; logit = -(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml)), 2 decimals; estimated_probability_percent = 100 * Pr(AHF) from the unrounded probability, 2 decimals; ahf_le_0_20 is true when Pr(AHF) <= 0.20; ahf_ge_0_80 is true when Pr(AHF) >= 0.80 (Steinhart 2009)",
                "logit": 4.39,
                "nt_probnp_pg_ml": 1000,
                "pretest_probability": 0.5
              },
              {
                "age_years": 70,
                "ahf_ge_0_80": true,
                "ahf_le_0_20": false,
                "citation": {
                  "authors": "Steinhart B, Thorpe KE, Bayoumi AM, Moe G, Januzzi JL Jr, Mazer CD",
                  "doi": "10.1016/j.jacc.2009.05.065",
                  "id": "steinhart-2009",
                  "pmid": "19815125",
                  "source": "J Am Coll Cardiol. 2009;54(16):1515-1521",
                  "title": "Improving the Diagnosis of Acute Heart Failure Using a Validated Prediction Model"
                },
                "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.",
                "estimated_probability_percent": 98.78,
                "formula": "steinhart",
                "formula_expression": "Pr(AHF) = 1 / (1 + exp(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml))); pretest is clinician pretest probability as a fraction 0-1 (0-100 percent is divided by 100); NT-proBNP is pg/mL; logit = -(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml)), 2 decimals; estimated_probability_percent = 100 * Pr(AHF) from the unrounded probability, 2 decimals; ahf_le_0_20 is true when Pr(AHF) <= 0.20; ahf_ge_0_80 is true when Pr(AHF) >= 0.80 (Steinhart 2009)",
                "logit": 4.39,
                "nt_probnp_pg_ml": 1000,
                "pretest_probability": 0.5
              }
            ],
            "path": "/api/calc/steinhart"
          },
          "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, integer 18-100. Steinhart 2009 Equation 1 coefficient -0.011 per year. magent does not read an identity document.",
                          "type": "integer"
                        },
                        "nt_probnp_pg_ml": {
                          "description": "NT-proBNP in pg/mL (5-35000). Enters as log10. Not pmol/L; magent does not convert units or assay NT-proBNP.",
                          "type": "number"
                        },
                        "pretest_probability": {
                          "description": "Caller-assigned clinician pretest probability of acute heart failure before NT-proBNP. Fraction 0-1, or 0-100 percent (values above 1 are divided by 100). 1 means certainty, not 1 percent. Steinhart 2009 coefficient -5.914 on the fraction. magent does not assign pretest probability or examine the patient.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "pretest_probability",
                        "nt_probnp_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": [
    "steinhart",
    "ahf",
    "nt-probnp",
    "dyspnea",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:36:13.46Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T08:36:13.354Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "nt_probnp_pg_ml": 1000,
                  "pretest_probability": 0.5
                },
                {
                  "age": 70,
                  "nt_probnp_pg_ml": 1000,
                  "pretest_probability": 0.5
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 70,
                  "ahf_ge_0_80": true,
                  "ahf_le_0_20": false,
                  "citation": {
                    "authors": "Steinhart B, Thorpe KE, Bayoumi AM, Moe G, Januzzi JL Jr, Mazer CD",
                    "doi": "10.1016/j.jacc.2009.05.065",
                    "id": "steinhart-2009",
                    "pmid": "19815125",
                    "source": "J Am Coll Cardiol. 2009;54(16):1515-1521",
                    "title": "Improving the Diagnosis of Acute Heart Failure Using a Validated Prediction Model"
                  },
                  "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.",
                  "estimated_probability_percent": 98.78,
                  "formula": "steinhart",
                  "formula_expression": "Pr(AHF) = 1 / (1 + exp(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml))); pretest is clinician pretest probability as a fraction 0-1 (0-100 percent is divided by 100); NT-proBNP is pg/mL; logit = -(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml)), 2 decimals; estimated_probability_percent = 100 * Pr(AHF) from the unrounded probability, 2 decimals; ahf_le_0_20 is true when Pr(AHF) <= 0.20; ahf_ge_0_80 is true when Pr(AHF) >= 0.80 (Steinhart 2009)",
                  "logit": 4.39,
                  "nt_probnp_pg_ml": 1000,
                  "pretest_probability": 0.5
                },
                {
                  "age_years": 70,
                  "ahf_ge_0_80": true,
                  "ahf_le_0_20": false,
                  "citation": {
                    "authors": "Steinhart B, Thorpe KE, Bayoumi AM, Moe G, Januzzi JL Jr, Mazer CD",
                    "doi": "10.1016/j.jacc.2009.05.065",
                    "id": "steinhart-2009",
                    "pmid": "19815125",
                    "source": "J Am Coll Cardiol. 2009;54(16):1515-1521",
                    "title": "Improving the Diagnosis of Acute Heart Failure Using a Validated Prediction Model"
                  },
                  "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.",
                  "estimated_probability_percent": 98.78,
                  "formula": "steinhart",
                  "formula_expression": "Pr(AHF) = 1 / (1 + exp(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml))); pretest is clinician pretest probability as a fraction 0-1 (0-100 percent is divided by 100); NT-proBNP is pg/mL; logit = -(1.801 - 0.011*age - 5.914*pretest - 0.822*log10(nt_probnp_pg_ml)), 2 decimals; estimated_probability_percent = 100 * Pr(AHF) from the unrounded probability, 2 decimals; ahf_le_0_20 is true when Pr(AHF) <= 0.20; ahf_ge_0_80 is true when Pr(AHF) >= 0.80 (Steinhart 2009)",
                  "logit": 4.39,
                  "nt_probnp_pg_ml": 1000,
                  "pretest_probability": 0.5
                }
              ],
              "path": "/api/calc/steinhart"
            },
            "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, integer 18-100. Steinhart 2009 Equation 1 coefficient -0.011 per year. magent does not read an identity document.",
                            "type": "integer"
                          },
                          "nt_probnp_pg_ml": {
                            "description": "NT-proBNP in pg/mL (5-35000). Enters as log10. Not pmol/L; magent does not convert units or assay NT-proBNP.",
                            "type": "number"
                          },
                          "pretest_probability": {
                            "description": "Caller-assigned clinician pretest probability of acute heart failure before NT-proBNP. Fraction 0-1, or 0-100 percent (values above 1 are divided by 100). 1 means certainty, not 1 percent. Steinhart 2009 coefficient -5.914 on the fraction. magent does not assign pretest probability or examine the patient.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "pretest_probability",
                          "nt_probnp_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"
  }
}