70trust / 100
Calc Brescia Covid
by magent in News & content
x402 APIPassing, checked 5 min ago
Duca 2020 Brescia-COVID Respiratory Severity Scale testing-criteria count: four caller-assigned binaries (wheezing or inability to speak in full sentences at rest or with minimal effort; respiratory rate >22; PaO2 <65 mmHg or SpO2 <90%; significant worsening on chest radiograph). bcrss is the count of positives (0–4). magent does not examine the patient or read imaging. Not a COVID-19 diagnosis, ventilator order, or medical device. Not the 0–8 NIV/intubation/proning ladder.
POST https://api.magentlab.com/api/calc/brescia_covid
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 149 ms typical, 541 ms slowest 5%
- Last check
- 5 min ago
- Next check
- in 26 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/brescia_covid" \
-H "content-type: application/json" \
-d '{"items":[{"chest_radiograph_worsening":false,"pao2_lt_65_or_spo2_lt_90":false,"respiratory_rate_gt_22":false,"wheezing_or_unable_full_sentences":false},{"chest_radiograph_worsening":false,"pao2_lt_65_or_spo2_lt_90":false,"respiratory_rate_gt_22":false,"wheezing_or_unable_full_sentences":false}]}'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%2Fbrescia_covid
const res = await pay("https://api.magentlab.com/api/calc/brescia_covid", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"chest_radiograph_worsening":false,"pao2_lt_65_or_spo2_lt_90":false,"respiratory_rate_gt_22":false,"wheezing_or_unable_full_sentences":false},{"chest_radiograph_worsening":false,"pao2_lt_65_or_spo2_lt_90":false,"respiratory_rate_gt_22":false,"wheezing_or_unable_full_sentences":false}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"chest_radiograph_worsening": false,
"pao2_lt_65_or_spo2_lt_90": false,
"respiratory_rate_gt_22": false,
"wheezing_or_unable_full_sentences": false
},
{
"chest_radiograph_worsening": false,
"pao2_lt_65_or_spo2_lt_90": false,
"respiratory_rate_gt_22": false,
"wheezing_or_unable_full_sentences": false
}
]
}Example output
{
"count": 2,
"items": [
{
"bcrss": 0,
"citation": {
"authors": "Duca A, Piva S, Focà E, Latronico N, Rizzi M",
"id": "duca-2020",
"pmid": "32297727",
"source": "Emerg Med Pract. 2020 Apr 16;22(5 Suppl):CD1-CD2",
"title": "Calculated Decisions: Brescia-COVID Respiratory Severity Scale (BCRSS)/Algorithm"
},
"criteria": [
{
"factor": "wheezing_or_unable_full_sentences",
"met": false
},
{
"factor": "respiratory_rate_gt_22",
"met": false
},
{
"factor": "pao2_lt_65_or_spo2_lt_90",
"met": false
},
{
"factor": "chest_radiograph_worsening",
"met": false
}
],
"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": "brescia_covid",
"formula_expression": "bcrss = wheezing_or_unable_full_sentences + respiratory_rate_gt_22 + pao2_lt_65_or_spo2_lt_90 + chest_radiograph_worsening; each 1 if true; Duca 2020 BCRSS testing criteria; max 4",
"max_score": 4
},
{
"bcrss": 0,
"citation": {
"authors": "Duca A, Piva S, Focà E, Latronico N, Rizzi M",
"id": "duca-2020",
"pmid": "32297727",
"source": "Emerg Med Pract. 2020 Apr 16;22(5 Suppl):CD1-CD2",
"title": "Calculated Decisions: Brescia-COVID Respiratory Severity Scale (BCRSS)/Algorithm"
},
"criteria": [
{
"factor": "wheezing_or_unable_full_sentences",
"met": false
},
{
"factor": "respiratory_rate_gt_22",
"met": false
},
{
"factor": "pao2_lt_65_or_spo2_lt_90",
"met": false
},
{
"factor": "chest_radiograph_worsening",
"met": false
}
],
"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": "brescia_covid",
"formula_expression": "bcrss = wheezing_or_unable_full_sentences + respiratory_rate_gt_22 + pao2_lt_65_or_spo2_lt_90 + chest_radiograph_worsening; each 1 if true; Duca 2020 BCRSS testing criteria; max 4",
"max_score": 4
}
],
"path": "/api/calc/brescia_covid"
}Security scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 min ago | Passed | 402 | 295 ms | $0.007 |
| 3 h ago | Passed | 402 | 160 ms | $0.007 |
| 7 h ago | Passed | 402 | 148 ms | $0.007 |
| 11 h ago | Passed | 402 | 685 ms | $0.007 |
| 20 h ago | Passed | 402 | 147 ms | $0.007 |
| 23 h ago | Passed | 402 | 214 ms | $0.007 |
| 27 h ago | Passed | 402 | 162 ms | $0.007 |
| 30 h ago | Passed | 402 | 149 ms | $0.007 |
| 35 h ago | Passed | 402 | 135 ms | $0.007 |
| 38 h ago | Passed | 402 | 148 ms | $0.007 |
| 41 h ago | Passed | 402 | 148 ms | $0.007 |
| 47 h ago | Passed | 402 | 541 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |