70trust / 100
Calc Priest
by magent in News & content
x402 APIPassing, checked 35 min ago
Goodacre 2021 PRIEST: NEWS2 Chart 1 Scale 1 vitals (RR, SpO2 Scale 1 only, oxygen +2, temperature, SBP, HR) + alertness (alert 0; confused_or_not_alert 3) + sex (male 1) + age (16–49→0, 50–65→2, 66–80→3, >80→4) + performance 0–4. Max 29. low_adverse_outcome_risk iff score ≤4. Not NEWS2, not 4C, not an admission order.
POST https://api.magentlab.com/api/calc/priest
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 160 ms typical, 335 ms slowest 5%
- Last check
- 35 min 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/priest" \
-H "content-type: application/json" \
-d '{"items":[{"age_years":70,"alertness":"alert","heart_rate_bpm":70,"performance_status":"unrestricted","respiratory_rate":16,"sex":"male","spo2_percent":98,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37},{"age_years":70,"alertness":"alert","heart_rate_bpm":70,"performance_status":"unrestricted","respiratory_rate":16,"sex":"male","spo2_percent":98,"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%2Fpriest
const res = await pay("https://api.magentlab.com/api/calc/priest", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"age_years":70,"alertness":"alert","heart_rate_bpm":70,"performance_status":"unrestricted","respiratory_rate":16,"sex":"male","spo2_percent":98,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37},{"age_years":70,"alertness":"alert","heart_rate_bpm":70,"performance_status":"unrestricted","respiratory_rate":16,"sex":"male","spo2_percent":98,"supplemental_oxygen":false,"systolic_mm_hg":120,"temperature_c":37}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"age_years": 70,
"alertness": "alert",
"heart_rate_bpm": 70,
"performance_status": "unrestricted",
"respiratory_rate": 16,
"sex": "male",
"spo2_percent": 98,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
},
{
"age_years": 70,
"alertness": "alert",
"heart_rate_bpm": 70,
"performance_status": "unrestricted",
"respiratory_rate": 16,
"sex": "male",
"spo2_percent": 98,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
}
]
}Example output
{
"count": 2,
"items": [
{
"age_years": 70,
"alertness": "alert",
"citation": {
"authors": "Goodacre S, Thomas B, Sutton L, et al.",
"doi": "10.1371/journal.pone.0245840",
"id": "goodacre-2021",
"pmid": "33481930",
"source": "PLoS One. 2021;16(1):e0245840",
"title": "Derivation and validation of a clinical severity score for acutely ill adults with suspected COVID-19: The PRIEST observational cohort study"
},
"components": [
{
"factor": "age_years",
"points": 3,
"present": true,
"value": 70
},
{
"factor": "sex",
"points": 1,
"present": true,
"value": "male"
},
{
"factor": "respiratory_rate",
"points": 0,
"present": false,
"value": 16
},
{
"factor": "spo2_percent",
"points": 0,
"present": false,
"value": 98
},
{
"factor": "heart_rate_bpm",
"points": 0,
"present": false,
"value": 70
},
{
"factor": "systolic_mm_hg",
"points": 0,
"present": false,
"value": 120
},
{
"factor": "temperature_c",
"points": 0,
"present": false,
"value": 37
},
{
"factor": "alertness",
"points": 0,
"present": false,
"value": "alert"
},
{
"factor": "supplemental_oxygen",
"points": 0,
"present": false,
"value": false
},
{
"factor": "performance_status",
"points": 0,
"present": false,
"value": "unrestricted"
}
],
"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": "priest",
"formula_expression": "PRIEST = rr_points + spo2_scale1_points + oxygen_points + temp_points + sbp_points + hr_points + alertness_points + sex_points + age_points + performance_points; NEWS2 Chart 1 Scale 1 vitals (not Scale 2) + age + sex + performance; Goodacre 2021 Fig 2; max 29; low_adverse_outcome_risk iff score ≤4",
"heart_rate_bpm": 70,
"low_adverse_outcome_risk": true,
"max_score": 29,
"performance_status": "unrestricted",
"respiratory_rate": 16,
"score": 4,
"sex": "male",
"spo2_percent": 98,
"supplemental_oxygen": false,
"systolic_mm_hg": 120,
"temperature_c": 37
},
{
"age_years": 70,
"alertness": "alert",
"citation": {
"authors": "Goodacre S, Thomas B, Sutton L, et al.",
"doi": "10.1371/journal.pone.0245840",
"id": "goodacre-2021",
"pmid": "33481930",
"sSecurity scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 35 min ago | Passed | 402 | 175 ms | $0.007 |
| 4 h ago | Passed | 402 | 145 ms | $0.007 |
| 7 h ago | Passed | 402 | 163 ms | $0.007 |
| 11 h ago | Passed | 402 | 148 ms | $0.007 |
| 20 h ago | Passed | 402 | 335 ms | $0.007 |
| 23 h ago | Passed | 402 | 165 ms | $0.007 |
| 28 h ago | Passed | 402 | 143 ms | $0.007 |
| 31 h ago | Passed | 402 | 309 ms | $0.007 |
| 35 h ago | Passed | 402 | 160 ms | $0.007 |
| 38 h ago | Passed | 402 | 144 ms | $0.007 |
| 42 h ago | Passed | 402 | 501 ms | $0.007 |
| 47 h ago | Passed | 402 | 135 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |