Skip to content
Fourohtwo

Roy 2021 4PEPS Table 3

api.magentlab.com/api/calc/4peps

Roy 2021 4PEPS Table 3: age <50 −2, 50–64 −1, ≥65 0; chronic respiratory disease

BaseAnswering
POSThttps://api.magentlab.com/api/calc/4peps

Uptime100% 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/4peps", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"age":40,"chest_pain_and_acute_dyspnea":false,"chronic_respiratory_disease":false,"heart_rate_bpm":90,"hormonal_estrogenic_treatment":false,"personal_history_vte":false,"sex":"female","syncope":false}]}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "age": 40,
      "chest_pain_and_acute_dyspnea": false,
      "chronic_respiratory_disease": false,
      "heart_rate_bpm": 90,
      "hormonal_estrogenic_treatment": false,
      "personal_history_vte": false,
      "sex": "female",
      "syncope": false
    }
  ]
}

More from magentProvider status