# Mahler 2015 HEART Pathway Early Discharge Calculator

> Mahler 2015 HEART Pathway Early Discharge Calculator 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-16).

Applies the Mahler 2015 HEART Pathway protocol to determine whether an emergency chest pain patient is a candidate for early discharge based on a caller-assigned HEART score and serial troponin flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/heart_pathway
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mahler-2015-heart-pathway-early-discharge-calculator-5ec4732c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hy0cs5MOuRKUA5Ofct5OG

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 mahler-2015-heart-pathway-early-discharge-calculator-5ec4732c
```

Example prompt: My patient has a caller-assigned HEART score of 2, their 0-hour troponin is not elevated, and their 3-hour troponin is also not elevated — run the Mahler 2015 HEART Pathway and tell me if they're an early discharge candidate.

## When to prefer this

Use this endpoint when you need to apply the Mahler 2015 HEART Pathway protocol specifically — not just a generic HEART score calculator. It is ideal when the caller has already summed the HEART score and determined troponin elevation status and needs a protocol-compliant early discharge determination. Prefer this over manual logic to ensure consistent application of the 0–3 threshold and dual serial troponin rule.

## Known failure modes

- Missing required query parameters (heart_score, troponin_0_elevated, troponin_3h_elevated) result in a 400 error
- heart_score outside the valid 0–10 integer range may return an error or unexpected result
- Boolean flags passed as strings instead of booleans may be rejected
- Payment failure or insufficient USDC balance results in a 402 Payment Required response

## How this service works

Mahler 2015 HEART Pathway for emergency chest pain. early_discharge_candidate is true only when the caller-assigned HEART score is 0-3 and both 0-hour and 3-hour troponin flags are not elevated (above the 99th percentile). HEART items are not assigned here. magent does not read an ECG or assay a troponin. Does not order a stress test or angiogram. High-risk features do not mandate a test. Not a medical device and not a diagnosis.

## Output

Returns an early_discharge_candidate boolean: true only when the HEART score is 0–3 AND both the 0-hour and 3-hour troponin flags are false (not elevated). Any HEART score above 3 or any elevated troponin flag yields false. The endpoint does not assign HEART components, read ECGs, assay troponins, or order further testing.

## 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": [
      "heart_score",
      "troponin_0_elevated",
      "troponin_3h_elevated"
     ],
     "properties": {
      "heart_score": {
       "type": "integer",
       "description": "Caller-assigned HEART score integer 0-10 (Six 2008 components already summed by the caller). magent does not assign history, ECG, age, risk-factor, or troponin HEART items. Early discharge requires 0-3 when both serial troponin flags are false."
      },
      "troponin_0_elevated": {
       "type": "boolean",
       "description": "0-hour troponin above the 99th percentile threshold as assigned by the caller. true or false. true blocks early discharge. magent does not assay a troponin."
      },
      "troponin_3h_elevated": {
       "type": "boolean",
       "description": "3-hour troponin above the 99th percentile threshold as assigned by the caller. true or false. true blocks early discharge. magent does not assay a troponin."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mahler-2015-heart-pathway-early-discharge-calculator-5ec4732c/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)
