70trust / 100
Calc Newsom
by magent in News & content
x402 APIPassing, checked 1 h ago
Newsom 2014 modified Rothrock rule for chest radiography in nontraumatic emergency chest pain. CXR indicated if any of: age ≥65 years, history of congestive heart failure, history of alcohol abuse, decreased breath sounds, fever, or tachypnea. Does not include hypoxia, rales, hemoptysis, tuberculosis, or thromboembolic disease (removed in 2014). Not the 2018 prospective refinement. Caller assigns age and five flags. magent does not examine the patient or read a radiograph. Not a diagnosis.
POST https://api.magentlab.com/api/calc/newsom
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 150 ms typical, 241 ms slowest 5%
- Last check
- 1 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/newsom" \
-H "content-type: application/json" \
-d '{"items":[{"age":40,"alcohol_abuse":false,"chf":false,"decreased_breath_sounds":false,"fever":false,"tachypnea":false},{"age":40,"alcohol_abuse":false,"chf":false,"decreased_breath_sounds":false,"fever":false,"tachypnea":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%2Fnewsom
const res = await pay("https://api.magentlab.com/api/calc/newsom", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"age":40,"alcohol_abuse":false,"chf":false,"decreased_breath_sounds":false,"fever":false,"tachypnea":false},{"age":40,"alcohol_abuse":false,"chf":false,"decreased_breath_sounds":false,"fever":false,"tachypnea":false}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"age": 40,
"alcohol_abuse": false,
"chf": false,
"decreased_breath_sounds": false,
"fever": false,
"tachypnea": false
},
{
"age": 40,
"alcohol_abuse": false,
"chf": false,
"decreased_breath_sounds": false,
"fever": false,
"tachypnea": false
}
]
}Example output
{
"count": 2,
"items": [
{
"citation": {
"authors": "Newsom C, Jeanmonod R, Weller K, Boutros N, Reiter M, Jeanmonod D",
"doi": "10.1155/2014/241935",
"id": "newsom-2014",
"source": "Adv Emerg Med. 2014;2014:241935",
"title": "Validation of a Decision Rule and Derivation of a Modified Rule to Obtain Chest Radiograph in Patients with Nontraumatic Chest Pain in the Emergency Department"
},
"criteria": [
{
"factor": "age_ge_65",
"met": false,
"value": 40
},
{
"factor": "chf",
"met": false
},
{
"factor": "alcohol_abuse",
"met": false
},
{
"factor": "decreased_breath_sounds",
"met": false
},
{
"factor": "fever",
"met": false
},
{
"factor": "tachypnea",
"met": false
}
],
"cxr_indicated": 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": "newsom",
"formula_expression": "CXR indicated iff age >= 65 or congestive heart failure or alcohol abuse or decreased breath sounds or fever or tachypnea (Newsom 2014 modified Rothrock; not hypoxia, rales, hemoptysis, TB, or thromboembolic disease; not the 2018 Academic Emergency Medicine prospective refinement)"
},
{
"citation": {
"authors": "Newsom C, Jeanmonod R, Weller K, Boutros N, Reiter M, Jeanmonod D",
"doi": "10.1155/2014/241935",
"id": "newsom-2014",
"source": "Adv Emerg Med. 2014;2014:241935",
"title": "Validation of a Decision Rule and Derivation of a Modified Rule to Obtain Chest Radiograph in Patients with Nontraumatic Chest Pain in the Emergency Department"
},
"criteria": [
{
"factor": "age_ge_65",
"met": false,
"value": 40
},
{
"factor": "chf",
"met": false
},
{
"factor": "alcohol_abuse",
"met": false
},
{
"factor": "decreased_breath_sounds",
"met": false
},
{
"factor": "fever",
"met": false
},
{
"factor": "tachypnea",
"met": false
}
],
"cxr_indicated": 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": "newsom",
"formula_expression": "CXR indicated iff age >= 65 or congestive heart failure or alcohol abuse or decreased breath sounds or fever or tachypnea (Newsom 2014 modified Rothrock; not hypoxia, rales, hemoptysis, TB, or thromboembolicSecurity scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 139 ms | $0.007 |
| 5 h ago | Passed | 402 | 222 ms | $0.007 |
| 8 h ago | Passed | 402 | 241 ms | $0.007 |
| 12 h ago | Passed | 402 | 151 ms | $0.007 |
| 16 h ago | Passed | 402 | 229 ms | $0.007 |
| 19 h ago | Passed | 402 | 138 ms | $0.007 |
| 23 h ago | Passed | 402 | 150 ms | $0.007 |
| 27 h ago | Passed | 402 | 137 ms | $0.007 |
| 30 h ago | Passed | 402 | 150 ms | $0.007 |
| 34 h ago | Passed | 402 | 148 ms | $0.007 |
| 37 h ago | Passed | 402 | 136 ms | $0.007 |
| 41 h ago | Passed | 402 | 153 ms | $0.007 |
| 46 h ago | Passed | 402 | 242 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |