api.magentlab.com/api/calc/heart
HEART score for emergency chest pain from age and caller-assigned history, ECG,
POST
https://api.magentlab.com/api/calc/heartUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.magentlab.com/api/calc/heart", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"age":40,"ecg":0,"history":0,"risk_factors":0,"troponin":0}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"age": 40,
"ecg": 0,
"history": 0,
"risk_factors": 0,
"troponin": 0
}
]
}More from magentProvider status
- api.magentlab.com/api/calc/2helps2bStruck 2017 2HELPS2B: BIRDs 2 points; LPD or LRDA or BIPD, prior seizure, sporad0.005
- api.magentlab.com/api/calc/4at4AT (Bellelli 2014): alertness (normal 0, abnormal 4) + AMT4 mistake count 0/1/20.005
- api.magentlab.com/api/calc/4cKnight 2020 ISARIC 4C Mortality Score: age (<50→0, 50–59→2, 60–69→4, 70–79→6, ≥80.005
- api.magentlab.com/api/calc/4pepsRoy 2021 4PEPS Table 3: age <50 −2, 50–64 −1, ≥65 0; chronic respiratory disease0.005
- api.magentlab.com/api/calc/6mwdEnright 1998 predicted six-minute walk distance (meters) from sex, age 40-80, he0.005
- api.magentlab.com/api/calc/a1c-eagNathan/ADAG A1C to estimated average glucose conversion, or the reverse. Provide0.005
- api.magentlab.com/api/calc/aa-gradientReturns the alveolar–arterial O2 gradient from FiO2, PB, PaCO2, and PaO2.0.005
- api.magentlab.com/api/calc/aap-pediatric-bpAAP 2017 Flynn Table 3 pediatric BP category (normal, elevated, stage_1, stage_20.005
- api.magentlab.com/api/calc/aap-tsbAAP 2022 Kemper KAS 10 intensive phototherapy threshold from Supplemental Tables0.005
- api.magentlab.com/api/calc/abbeyAbbey 2004 observational pain scale from six caller-assigned 0-3 items (vocaliza0.005
- api.magentlab.com/api/calc/abc-scoreNunez 2009 ABC (assessment of blood consumption): penetrating mechanism, arrival0.005
- api.magentlab.com/api/calc/abc2Kothari 1996 ABC/2 ellipsoid ICH volume: (a_cm × b_cm × c_cm) / 2, rounded to on0.005
