71trust / 100
Calc Rome Iv Caps
by magent in News & content
x402 APIPassing, checked 3 h ago
Keefer 2016 Rome IV CAPS (formerly FAPS). rome_iv_caps is true iff continuous or nearly continuous abdominal pain, no or only occasional relationship with eating, defecation, or menses, pain limits daily functioning, pain is not feigned, not explained by another GI or medical condition, last-3-months criteria, and 6-month onset. Psychosocial comorbidity is copy-only. magent does not examine or judge feigning beyond the caller flag. Not a diagnosis, not IBS, not narcotic bowel syndrome.
POST https://api.magentlab.com/api/calc/rome_iv_caps
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 161 ms typical, 241 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/rome_iv_caps" \
-H "content-type: application/json" \
-d '{"items":[{"continuous_or_nearly_continuous_abdominal_pain":true,"fulfilled_last_3_months":true,"no_or_only_occasional_relationship_with_physiological_events":true,"not_explained_by_another_gi_or_medical_condition":true,"onset_at_least_6_months":true,"pain_limits_daily_functioning":true,"pain_not_feigned":true},{"continuous_or_nearly_continuous_abdominal_pain":true,"fulfilled_last_3_months":true,"no_or_only_occasional_relationship_with_physiological_events":true,"not_explained_by_another_gi_or_medical_condition":true,"onset_at_least_6_months":true,"pain_limits_daily_functioning":true,"pain_not_feigned":true}]}'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%2Frome_iv_caps
const res = await pay("https://api.magentlab.com/api/calc/rome_iv_caps", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"continuous_or_nearly_continuous_abdominal_pain":true,"fulfilled_last_3_months":true,"no_or_only_occasional_relationship_with_physiological_events":true,"not_explained_by_another_gi_or_medical_condition":true,"onset_at_least_6_months":true,"pain_limits_daily_functioning":true,"pain_not_feigned":true},{"continuous_or_nearly_continuous_abdominal_pain":true,"fulfilled_last_3_months":true,"no_or_only_occasional_relationship_with_physiological_events":true,"not_explained_by_another_gi_or_medical_condition":true,"onset_at_least_6_months":true,"pain_limits_daily_functioning":true,"pain_not_feigned":true}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"continuous_or_nearly_continuous_abdominal_pain": true,
"fulfilled_last_3_months": true,
"no_or_only_occasional_relationship_with_physiological_events": true,
"not_explained_by_another_gi_or_medical_condition": true,
"onset_at_least_6_months": true,
"pain_limits_daily_functioning": true,
"pain_not_feigned": true
},
{
"continuous_or_nearly_continuous_abdominal_pain": true,
"fulfilled_last_3_months": true,
"no_or_only_occasional_relationship_with_physiological_events": true,
"not_explained_by_another_gi_or_medical_condition": true,
"onset_at_least_6_months": true,
"pain_limits_daily_functioning": true,
"pain_not_feigned": true
}
]
}Example output
{
"count": 2,
"items": [
{
"citation": {
"authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
"doi": "10.1053/j.gastro.2016.02.034",
"id": "keefer-2016",
"pmid": "27144628",
"source": "Gastroenterology. 2016;150(6):1408-1419",
"title": "Centrally Mediated Disorders of Gastrointestinal Pain"
},
"criteria": [
{
"factor": "continuous_or_nearly_continuous_abdominal_pain",
"met": true
},
{
"factor": "no_or_only_occasional_relationship_with_physiological_events",
"met": true
},
{
"factor": "pain_limits_daily_functioning",
"met": true
},
{
"factor": "pain_not_feigned",
"met": true
},
{
"factor": "not_explained_by_another_gi_or_medical_condition",
"met": true
},
{
"factor": "fulfilled_last_3_months",
"met": true
},
{
"factor": "onset_at_least_6_months",
"met": true
}
],
"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": "rome_iv_caps",
"formula_expression": "rome_iv_caps iff continuous_or_nearly_continuous_abdominal_pain and no_or_only_occasional_relationship_with_physiological_events and pain_limits_daily_functioning and pain_not_feigned and not_explained_by_another_gi_or_medical_condition and fulfilled_last_3_months and onset_at_least_6_months (Keefer 2016 Rome IV CAPS / D1)",
"rome_iv_caps": true
},
{
"citation": {
"authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
"doi": "10.1053/j.gastro.2016.02.034",
"id": "keefer-2016",
"pmid": "27144628",
"source": "Gastroenterology. 2016;150(6):1408-1419",
"title": "Centrally Mediated Disorders of Gastrointestinal Pain"
},
"criteria": [
{
"factor": "continuous_or_nearly_continuous_abdominal_pain",
"met": true
},
{
"factor": "no_or_only_occasional_relationship_with_physiological_events",
"met": true
},
{
"factor": "pain_limits_daily_functioning",
"met": true
},
{
"factor": "pain_not_feigned",
"met": true
},
{
"factor": "not_explained_by_another_gi_or_medical_condition",
"met": true
},
{
"factor": "fulfilled_last_3_months",
"met": true
},
{
"factor": "onset_at_least_6_months",
"met": true
}
],
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomoSecurity 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 | 145 ms | $0.007 |
| 6 h ago | Passed | 402 | 241 ms | $0.007 |
| 10 h ago | Passed | 402 | 296 ms | $0.007 |
| 19 h ago | Passed | 402 | 162 ms | $0.007 |
| 22 h ago | Passed | 402 | 166 ms | $0.007 |
| 26 h ago | Passed | 402 | 147 ms | $0.007 |
| 30 h ago | Passed | 402 | 161 ms | $0.007 |
| 34 h ago | Passed | 402 | 149 ms | $0.007 |
| 37 h ago | Passed | 402 | 205 ms | $0.007 |
| 40 h ago | Passed | 402 | 158 ms | $0.007 |
| 45 h ago | Passed | 402 | 149 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |