{
  "x402Version": 2,
  "id": 39119,
  "slug": "39119",
  "resource": "https://api.magentlab.com/api/calc/hear",
  "description": "HEAR score for emergency chest pain from age and caller-assigned history, ECG, and risk factors (each 0-2, max 8). No troponin. Smith 2020 very-low-risk group is scores 0 and 1 (MACE ~0.9% in that paper). Deterministic published score with citation; not a diagnosis or discharge protocol. magent does not interpret history, count risk factors, or read an ECG.",
  "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": 40,
                "ecg": 0,
                "history": 0,
                "risk_factors": 0
              },
              {
                "age": 40,
                "ecg": 0,
                "history": 0,
                "risk_factors": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 40,
                "citation": {
                  "authors": "Smith LM, Ashburn NP, Snavely AC, Mahler SA",
                  "doi": "10.1136/emermed-2020-209698",
                  "id": "smith-2020",
                  "pmid": "32753395",
                  "source": "Emerg Med J. 2020;37(11):690-695",
                  "title": "Identification of very low-risk acute chest pain patients without troponin testing"
                },
                "components": [
                  {
                    "factor": "history",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "ecg",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "risk_factors",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "hear",
                "formula_expression": "HEAR = history + ECG + age_points + risk_factors; each 0-2; age <45 0, 45-64 1, >=65 2; very_low_risk iff score 0 or 1 (Smith 2020); max 8",
                "max_score": 8,
                "score": 0,
                "very_low_risk": true
              },
              {
                "age_years": 40,
                "citation": {
                  "authors": "Smith LM, Ashburn NP, Snavely AC, Mahler SA",
                  "doi": "10.1136/emermed-2020-209698",
                  "id": "smith-2020",
                  "pmid": "32753395",
                  "source": "Emerg Med J. 2020;37(11):690-695",
                  "title": "Identification of very low-risk acute chest pain patients without troponin testing"
                },
                "components": [
                  {
                    "factor": "history",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "ecg",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "risk_factors",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "hear",
                "formula_expression": "HEAR = history + ECG + age_points + risk_factors; each 0-2; age <45 0, 45-64 1, >=65 2; very_low_risk iff score 0 or 1 (Smith 2020); max 8",
                "max_score": 8,
                "score": 0,
                "very_low_risk": true
              }
            ],
            "path": "/api/calc/hear"
          },
          "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 (18-120). Younger than 45 scores 0; 45-64 scores 1; 65 or older scores 2 (same cuts as Six 2008 HEART).",
                          "type": "integer"
                        },
                        "ecg": {
                          "description": "Caller-assigned ECG. 0 normal; 1 repolarization without significant ST depression (including BBB, LVH, digoxin, or known unchanged); 2 significant ST depression or elevation without those confounders. magent does not read an ECG.",
                          "type": "integer"
                        },
                        "history": {
                          "description": "Caller-assigned history. 0 nonspecific, 1 moderately suspicious, 2 highly suspicious. magent does not interpret the history.",
                          "type": "integer"
                        },
                        "risk_factors": {
                          "description": "Caller-assigned risk-factor points. 0 none, 1 = 1-2 risk factors, 2 = ≥3 or atherosclerotic disease. magent does not count diabetes, smoking, or other factors.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age",
                        "history",
                        "ecg",
                        "risk_factors"
                      ],
                      "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": [
    "hear",
    "acs",
    "chest-pain",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:41:27.371Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:41:27.224Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "ecg": 0,
                  "history": 0,
                  "risk_factors": 0
                },
                {
                  "age": 40,
                  "ecg": 0,
                  "history": 0,
                  "risk_factors": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 40,
                  "citation": {
                    "authors": "Smith LM, Ashburn NP, Snavely AC, Mahler SA",
                    "doi": "10.1136/emermed-2020-209698",
                    "id": "smith-2020",
                    "pmid": "32753395",
                    "source": "Emerg Med J. 2020;37(11):690-695",
                    "title": "Identification of very low-risk acute chest pain patients without troponin testing"
                  },
                  "components": [
                    {
                      "factor": "history",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "ecg",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "risk_factors",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "hear",
                  "formula_expression": "HEAR = history + ECG + age_points + risk_factors; each 0-2; age <45 0, 45-64 1, >=65 2; very_low_risk iff score 0 or 1 (Smith 2020); max 8",
                  "max_score": 8,
                  "score": 0,
                  "very_low_risk": true
                },
                {
                  "age_years": 40,
                  "citation": {
                    "authors": "Smith LM, Ashburn NP, Snavely AC, Mahler SA",
                    "doi": "10.1136/emermed-2020-209698",
                    "id": "smith-2020",
                    "pmid": "32753395",
                    "source": "Emerg Med J. 2020;37(11):690-695",
                    "title": "Identification of very low-risk acute chest pain patients without troponin testing"
                  },
                  "components": [
                    {
                      "factor": "history",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "ecg",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "risk_factors",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "hear",
                  "formula_expression": "HEAR = history + ECG + age_points + risk_factors; each 0-2; age <45 0, 45-64 1, >=65 2; very_low_risk iff score 0 or 1 (Smith 2020); max 8",
                  "max_score": 8,
                  "score": 0,
                  "very_low_risk": true
                }
              ],
              "path": "/api/calc/hear"
            },
            "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 (18-120). Younger than 45 scores 0; 45-64 scores 1; 65 or older scores 2 (same cuts as Six 2008 HEART).",
                            "type": "integer"
                          },
                          "ecg": {
                            "description": "Caller-assigned ECG. 0 normal; 1 repolarization without significant ST depression (including BBB, LVH, digoxin, or known unchanged); 2 significant ST depression or elevation without those confounders. magent does not read an ECG.",
                            "type": "integer"
                          },
                          "history": {
                            "description": "Caller-assigned history. 0 nonspecific, 1 moderately suspicious, 2 highly suspicious. magent does not interpret the history.",
                            "type": "integer"
                          },
                          "risk_factors": {
                            "description": "Caller-assigned risk-factor points. 0 none, 1 = 1-2 risk factors, 2 = ≥3 or atherosclerotic disease. magent does not count diabetes, smoking, or other factors.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age",
                          "history",
                          "ecg",
                          "risk_factors"
                        ],
                        "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"
  }
}