70trust / 100
Calc News2
by magent in News & content
x402 APIPassing, checked 3 h ago
NEWS2 from RCP 2017 Chart 1: respiratory rate, SpO2 on caller-assigned Scale 1 or Scale 2, supplemental oxygen, temperature (C), systolic BP, heart rate, and caller-assigned ACVPU (alert 0; confusion, voice, pain, or unresponsive 3 each) summed to 0-20. Returns Chart 2 clinical_risk (low / low-medium / medium / high) and red_score. Not NEWS 2012; not an ICU-admission order.
POST https://api.magentlab.com/api/calc/news2
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 155 ms typical, 572 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/news2" \
-H "content-type: application/json" \
-d '{"items":[{"acvpu":"alert","heart_rate_bpm":70,"respiratory_rate":16,"spo2_percent":98,"spo2_scale":1,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37},{"acvpu":"alert","heart_rate_bpm":70,"respiratory_rate":16,"spo2_percent":98,"spo2_scale":1,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37}]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fnews2
const res = await pay("https://api.magentlab.com/api/calc/news2", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"acvpu":"alert","heart_rate_bpm":70,"respiratory_rate":16,"spo2_percent":98,"spo2_scale":1,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37},{"acvpu":"alert","heart_rate_bpm":70,"respiratory_rate":16,"spo2_percent":98,"spo2_scale":1,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"acvpu": "alert",
"heart_rate_bpm": 70,
"respiratory_rate": 16,
"spo2_percent": 98,
"spo2_scale": 1,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
},
{
"acvpu": "alert",
"heart_rate_bpm": 70,
"respiratory_rate": 16,
"spo2_percent": 98,
"spo2_scale": 1,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
}
]
}Example output
{
"count": 2,
"items": [
{
"acvpu": "alert",
"citation": {
"authors": "Royal College of Physicians",
"id": "rcp-news2-2017",
"source": "London: RCP; 2017. ISBN 978-1-86016-682-2",
"title": "National Early Warning Score (NEWS) 2: Standardising the assessment of acute-illness severity in the NHS. Updated report of a working party"
},
"clinical_risk": "low",
"components": [
{
"factor": "respiratory_rate",
"points": 0,
"present": false,
"value": 16
},
{
"factor": "spo2_percent",
"points": 0,
"present": false,
"value": 98
},
{
"factor": "supplemental_oxygen",
"points": 0,
"present": false,
"value": false
},
{
"factor": "temperature_c",
"points": 0,
"present": false,
"value": 37
},
{
"factor": "systolic_mm_hg",
"points": 0,
"present": false,
"value": 120
},
{
"factor": "heart_rate_bpm",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "acvpu",
"points": 0,
"present": false,
"value": "alert"
}
],
"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": "news2",
"formula_expression": "NEWS2 = rr_points + spo2_points + oxygen_points + temp_points + sbp_points + hr_points + acvpu_points; RCP NEWS2 2017 Chart 1 (Scale 1 or Scale 2); max 20",
"heart_rate_bpm": 70,
"max_score": 20,
"red_score": false,
"respiratory_rate": 16,
"score": 0,
"spo2_percent": 98,
"spo2_scale": 1,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
},
{
"acvpu": "alert",
"citation": {
"authors": "Royal College of Physicians",
"id": "rcp-news2-2017",
"source": "London: RCP; 2017. ISBN 978-1-86016-682-2",
"title": "National Early Warning Score (NEWS) 2: Standardising the assessment of acute-illness severity in the NHS. Updated report of a working party"
},
"clinical_risk": "low",
"components": [
{
"factor": "respiratory_rate",
"points": 0,
"present": false,
"value": 16
},
{
"factor": "spo2_percent",
"points": 0,
"present": false,
"value": 98
},
{
"factor": "supplemental_oxygen",
"points": 0,
"present": false,
"value": false
},
{
"factor": "temperature_c",
"points": 0,
"present": false,
"Security scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 142 ms | $0.007 |
| 6 h ago | Passed | 402 | 153 ms | $0.007 |
| 10 h ago | Passed | 402 | 572 ms | $0.007 |
| 19 h ago | Passed | 402 | 288 ms | $0.007 |
| 23 h ago | Passed | 402 | 141 ms | $0.007 |
| 27 h ago | Passed | 402 | 142 ms | $0.007 |
| 30 h ago | Passed | 402 | 155 ms | $0.007 |
| 34 h ago | Passed | 402 | 160 ms | $0.007 |
| 37 h ago | Passed | 402 | 1.3 s | $0.007 |
| 41 h ago | Passed | 402 | 138 ms | $0.007 |
| 46 h ago | Passed | 402 | 241 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |