{
  "x402Version": 2,
  "id": 39131,
  "slug": "39131",
  "resource": "https://api.magentlab.com/api/calc/gwtg_hf",
  "description": "Peterson 2010 GWTG-HF Figure 2 integer points for in-hospital mortality in hospitalized heart failure: age 0-28, systolic BP 0-28, BUN 0-28, sodium 0-4, heart rate 0-8, COPD +2, caller-assigned nonblack (black=false) +3. Total 0-100. magent does not assign race. Not a diagnosis.",
  "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,
                "black": true,
                "bun_mg_dl": 20,
                "copd": false,
                "heart_rate_bpm": 80,
                "sbp_mm_hg": 130,
                "sodium_mmol_l": 138
              },
              {
                "age": 70,
                "black": true,
                "bun_mg_dl": 20,
                "copd": false,
                "heart_rate_bpm": 80,
                "sbp_mm_hg": 130,
                "sodium_mmol_l": 138
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 70,
                "black": true,
                "bun_mg_dl": 20,
                "citation": {
                  "authors": "Peterson PN, Rumsfeld JS, Liang L, Albert NM, Hernandez AF, Peterson ED, Fonarow GC, Masoudi FA",
                  "doi": "10.1161/CIRCOUTCOMES.109.854877",
                  "id": "peterson-2010-gwtg-hf",
                  "pmid": "20123668",
                  "source": "Circ Cardiovasc Qual Outcomes. 2010;3(1):25-32",
                  "title": "A validated risk score for in-hospital mortality in patients with heart failure from the American Heart Association Get With the Guidelines Program"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 17,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "sbp_mm_hg",
                    "points": 13,
                    "present": true,
                    "value": 130
                  },
                  {
                    "factor": "bun_mg_dl",
                    "points": 4,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "sodium_mmol_l",
                    "points": 1,
                    "present": true,
                    "value": 138
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 1,
                    "present": true,
                    "value": 80
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nonblack",
                    "points": 0,
                    "present": false,
                    "value": true
                  }
                ],
                "copd": 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.",
                "formula": "gwtg_hf",
                "formula_expression": "GWTG-HF = age (<=19 0, 20-29 3, 30-39 6, 40-49 8, 50-59 11, 60-69 14, 70-79 17, 80-89 19, 90-99 22, 100-109 25, >=110 28) + sbp_mm_hg (50-59 28, 60-69 26, 70-79 24, 80-89 23, 90-99 21, 100-109 19, 110-119 17, 120-129 15, 130-139 13, 140-149 11, 150-159 9, 160-169 8, 170-179 6, 180-189 4, 190-199 2, >=200 0) + bun_mg_dl (<=9 0, 10-19 2, 20-29 4, 30-39 6, 40-49 8, 50-59 9, 60-69 11, 70-79 13, 80-89 15, 90-99 17, 100-109 19, 110-119 21, 120-129 23, 130-139 25, 140-149 27, >=150 28) + sodium_mmol_l (<=130 4, 131-133 3, 134-136 2, 137-138 1, >=139 0) + heart_rate_bpm (<=79 0, 80-84 1, 85-89 3, 90-94 4, 95-99 5, 100-104 6, >=105 8) + copd 2 + nonblack (black=false) 3; Peterson 2010 Figure 2 integer points; total clamped to 0-100",
                "heart_rate_bpm": 80,
                "max_score": 100,
                "sbp_mm_hg": 130,
                "score": 36,
                "sodium_mmol_l": 138
              },
              {
                "age": 70,
                "black": true,
                "bun_mg_dl": 20,
                "citation": {
                  "authors": "Peterson PN, Rumsfeld JS, Liang L, Albert NM, Hernandez AF, Peterson ED, Fonarow GC, Masoudi FA",
                  "doi": "10.1161/CIRCOUTCOMES.109.854877",
                  "id": "peterson-2010-gwtg-hf",
                  "pmid": "20123668",
                  "source": "Circ Cardiovasc Qual Outcomes. 2010;3(1):25-32",
                  "title": "A validated risk score for in-hospital mortality in patients with heart failure from the American Heart Association Get With the Guidelines Program"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 17,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "sbp_mm_hg",
                    "points": 13,
                    "present": true,
                    "value": 130
                  },
                  {
                    "factor": "bun_mg_dl",
                    "points": 4,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "sodium_mmol_l",
                    "points": 1,
                    "present": true,
                    "value": 138
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 1,
                    "present": true,
                    "value": 80
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nonblack",
                    "points": 0,
                    "present": false,
                    "value": true
                  }
                ],
                "copd": 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.",
                "formula": "gwtg_hf",
                "formula_expression": "GWTG-HF = age (<=19 0, 20-29 3, 30-39 6, 40-49 8, 50-59 11, 60-69 14, 70-79 17, 80-89 19, 90-99 22, 100-109 25, >=110 28) + sbp_mm_hg (50-59 28, 60-69 26, 70-79 24, 80-89 23, 90-99 21, 100-109 19, 110-119 17, 120-129 15, 130-139 13, 140-149 11, 150-159 9, 160-169 8, 170-179 6, 180-189 4, 190-199 2, >=200 0) + bun_mg_dl (<=9 0, 10-19 2, 20-29 4, 30-39 6, 40-49 8, 50-59 9, 60-69 11, 70-79 13, 80-89 15, 90-99 17, 100-109 19, 110-119 21, 120-129 23, 130-139 25, 140-149 27, >=150 28) + sodium_mmol_l (<=130 4, 131-133 3, 134-136 2, 137-138 1, >=139 0) + heart_rate_bpm (<=79 0, 80-84 1, 85-89 3, 90-94 4, 95-99 5, 100-104 6, >=105 8) + copd 2 + nonblack (black=false) 3; Peterson 2010 Figure 2 integer points; total clamped to 0-100",
                "heart_rate_bpm": 80,
                "max_score": 100,
                "sbp_mm_hg": 130,
                "score": 36,
                "sodium_mmol_l": 138
              }
            ],
            "path": "/api/calc/gwtg_hf"
          },
          "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-120). Peterson 2010 Figure 2: ≤19 scores 0; 20-29 scores 3; 30-39 scores 6; 40-49 scores 8; 50-59 scores 11; 60-69 scores 14; 70-79 scores 17; 80-89 scores 19; 90-99 scores 22; 100-109 scores 25; ≥110 scores 28.",
                          "type": "integer"
                        },
                        "black": {
                          "description": "Caller-assigned black as used in Peterson 2010; magent does not assign race. Nonblack race (false) scores 3. true or false.",
                          "type": "boolean"
                        },
                        "bun_mg_dl": {
                          "description": "Admission blood urea nitrogen in mg/dL (integer 1-200). Peterson 2010 Figure 2: ≤9 scores 0; ≥150 scores 28. magent does not assay BUN.",
                          "type": "integer"
                        },
                        "copd": {
                          "description": "History of chronic obstructive pulmonary disease as assigned by the caller (Peterson 2010 Figure 2). true scores 2. magent does not diagnose COPD.",
                          "type": "boolean"
                        },
                        "heart_rate_bpm": {
                          "description": "Admission heart rate in beats per minute (integer 30-220). Peterson 2010 Figure 2: ≤79 scores 0; 80-84 scores 1; 85-89 scores 3; 90-94 scores 4; 95-99 scores 5; 100-104 scores 6; ≥105 scores 8. magent does not measure heart rate.",
                          "type": "integer"
                        },
                        "sbp_mm_hg": {
                          "description": "Admission systolic blood pressure in mm Hg (integer 50-250). Peterson 2010 Figure 2: 50-59 scores 28, then lower points as SBP rises, to ≥200 scores 0. magent does not measure blood pressure.",
                          "type": "integer"
                        },
                        "sodium_mmol_l": {
                          "description": "Admission serum sodium in mmol/L (integer 110-160; numerically equal to mEq/L). Peterson 2010 Figure 2: ≤130 scores 4; 131-133 scores 3; 134-136 scores 2; 137-138 scores 1; ≥139 scores 0. magent does not assay sodium.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age",
                        "sbp_mm_hg",
                        "bun_mg_dl",
                        "sodium_mmol_l",
                        "heart_rate_bpm",
                        "copd",
                        "black"
                      ],
                      "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": [
    "gwtg-hf",
    "heart-failure",
    "mortality",
    "hemodynamics",
    "score",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:21:56.353Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:21:56.244Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "black": true,
                  "bun_mg_dl": 20,
                  "copd": false,
                  "heart_rate_bpm": 80,
                  "sbp_mm_hg": 130,
                  "sodium_mmol_l": 138
                },
                {
                  "age": 70,
                  "black": true,
                  "bun_mg_dl": 20,
                  "copd": false,
                  "heart_rate_bpm": 80,
                  "sbp_mm_hg": 130,
                  "sodium_mmol_l": 138
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 70,
                  "black": true,
                  "bun_mg_dl": 20,
                  "citation": {
                    "authors": "Peterson PN, Rumsfeld JS, Liang L, Albert NM, Hernandez AF, Peterson ED, Fonarow GC, Masoudi FA",
                    "doi": "10.1161/CIRCOUTCOMES.109.854877",
                    "id": "peterson-2010-gwtg-hf",
                    "pmid": "20123668",
                    "source": "Circ Cardiovasc Qual Outcomes. 2010;3(1):25-32",
                    "title": "A validated risk score for in-hospital mortality in patients with heart failure from the American Heart Association Get With the Guidelines Program"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 17,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "sbp_mm_hg",
                      "points": 13,
                      "present": true,
                      "value": 130
                    },
                    {
                      "factor": "bun_mg_dl",
                      "points": 4,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "sodium_mmol_l",
                      "points": 1,
                      "present": true,
                      "value": 138
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 1,
                      "present": true,
                      "value": 80
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nonblack",
                      "points": 0,
                      "present": false,
                      "value": true
                    }
                  ],
                  "copd": 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.",
                  "formula": "gwtg_hf",
                  "formula_expression": "GWTG-HF = age (<=19 0, 20-29 3, 30-39 6, 40-49 8, 50-59 11, 60-69 14, 70-79 17, 80-89 19, 90-99 22, 100-109 25, >=110 28) + sbp_mm_hg (50-59 28, 60-69 26, 70-79 24, 80-89 23, 90-99 21, 100-109 19, 110-119 17, 120-129 15, 130-139 13, 140-149 11, 150-159 9, 160-169 8, 170-179 6, 180-189 4, 190-199 2, >=200 0) + bun_mg_dl (<=9 0, 10-19 2, 20-29 4, 30-39 6, 40-49 8, 50-59 9, 60-69 11, 70-79 13, 80-89 15, 90-99 17, 100-109 19, 110-119 21, 120-129 23, 130-139 25, 140-149 27, >=150 28) + sodium_mmol_l (<=130 4, 131-133 3, 134-136 2, 137-138 1, >=139 0) + heart_rate_bpm (<=79 0, 80-84 1, 85-89 3, 90-94 4, 95-99 5, 100-104 6, >=105 8) + copd 2 + nonblack (black=false) 3; Peterson 2010 Figure 2 integer points; total clamped to 0-100",
                  "heart_rate_bpm": 80,
                  "max_score": 100,
                  "sbp_mm_hg": 130,
                  "score": 36,
                  "sodium_mmol_l": 138
                },
                {
                  "age": 70,
                  "black": true,
                  "bun_mg_dl": 20,
                  "citation": {
                    "authors": "Peterson PN, Rumsfeld JS, Liang L, Albert NM, Hernandez AF, Peterson ED, Fonarow GC, Masoudi FA",
                    "doi": "10.1161/CIRCOUTCOMES.109.854877",
                    "id": "peterson-2010-gwtg-hf",
                    "pmid": "20123668",
                    "source": "Circ Cardiovasc Qual Outcomes. 2010;3(1):25-32",
                    "title": "A validated risk score for in-hospital mortality in patients with heart failure from the American Heart Association Get With the Guidelines Program"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 17,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "sbp_mm_hg",
                      "points": 13,
                      "present": true,
                      "value": 130
                    },
                    {
                      "factor": "bun_mg_dl",
                      "points": 4,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "sodium_mmol_l",
                      "points": 1,
                      "present": true,
                      "value": 138
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 1,
                      "present": true,
                      "value": 80
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nonblack",
                      "points": 0,
                      "present": false,
                      "value": true
                    }
                  ],
                  "copd": 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.",
                  "formula": "gwtg_hf",
                  "formula_expression": "GWTG-HF = age (<=19 0, 20-29 3, 30-39 6, 40-49 8, 50-59 11, 60-69 14, 70-79 17, 80-89 19, 90-99 22, 100-109 25, >=110 28) + sbp_mm_hg (50-59 28, 60-69 26, 70-79 24, 80-89 23, 90-99 21, 100-109 19, 110-119 17, 120-129 15, 130-139 13, 140-149 11, 150-159 9, 160-169 8, 170-179 6, 180-189 4, 190-199 2, >=200 0) + bun_mg_dl (<=9 0, 10-19 2, 20-29 4, 30-39 6, 40-49 8, 50-59 9, 60-69 11, 70-79 13, 80-89 15, 90-99 17, 100-109 19, 110-119 21, 120-129 23, 130-139 25, 140-149 27, >=150 28) + sodium_mmol_l (<=130 4, 131-133 3, 134-136 2, 137-138 1, >=139 0) + heart_rate_bpm (<=79 0, 80-84 1, 85-89 3, 90-94 4, 95-99 5, 100-104 6, >=105 8) + copd 2 + nonblack (black=false) 3; Peterson 2010 Figure 2 integer points; total clamped to 0-100",
                  "heart_rate_bpm": 80,
                  "max_score": 100,
                  "sbp_mm_hg": 130,
                  "score": 36,
                  "sodium_mmol_l": 138
                }
              ],
              "path": "/api/calc/gwtg_hf"
            },
            "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-120). Peterson 2010 Figure 2: ≤19 scores 0; 20-29 scores 3; 30-39 scores 6; 40-49 scores 8; 50-59 scores 11; 60-69 scores 14; 70-79 scores 17; 80-89 scores 19; 90-99 scores 22; 100-109 scores 25; ≥110 scores 28.",
                            "type": "integer"
                          },
                          "black": {
                            "description": "Caller-assigned black as used in Peterson 2010; magent does not assign race. Nonblack race (false) scores 3. true or false.",
                            "type": "boolean"
                          },
                          "bun_mg_dl": {
                            "description": "Admission blood urea nitrogen in mg/dL (integer 1-200). Peterson 2010 Figure 2: ≤9 scores 0; ≥150 scores 28. magent does not assay BUN.",
                            "type": "integer"
                          },
                          "copd": {
                            "description": "History of chronic obstructive pulmonary disease as assigned by the caller (Peterson 2010 Figure 2). true scores 2. magent does not diagnose COPD.",
                            "type": "boolean"
                          },
                          "heart_rate_bpm": {
                            "description": "Admission heart rate in beats per minute (integer 30-220). Peterson 2010 Figure 2: ≤79 scores 0; 80-84 scores 1; 85-89 scores 3; 90-94 scores 4; 95-99 scores 5; 100-104 scores 6; ≥105 scores 8. magent does not measure heart rate.",
                            "type": "integer"
                          },
                          "sbp_mm_hg": {
                            "description": "Admission systolic blood pressure in mm Hg (integer 50-250). Peterson 2010 Figure 2: 50-59 scores 28, then lower points as SBP rises, to ≥200 scores 0. magent does not measure blood pressure.",
                            "type": "integer"
                          },
                          "sodium_mmol_l": {
                            "description": "Admission serum sodium in mmol/L (integer 110-160; numerically equal to mEq/L). Peterson 2010 Figure 2: ≤130 scores 4; 131-133 scores 3; 134-136 scores 2; 137-138 scores 1; ≥139 scores 0. magent does not assay sodium.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age",
                          "sbp_mm_hg",
                          "bun_mg_dl",
                          "sodium_mmol_l",
                          "heart_rate_bpm",
                          "copd",
                          "black"
                        ],
                        "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"
  }
}