{"uid":"cap_H-mnPIhOGx_kUKQNHY6Xd","slug":"rome-iv-caps-centrally-mediated-abdominal-pain-syndrome-calculator-450371fd","name":"Rome IV CAPS (Centrally Mediated Abdominal Pain Syndrome) Calculator","description":"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.","url":"https://api.magentlab.com/api/calc/rome_iv_caps","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["continuous_or_nearly_continuous_abdominal_pain","no_or_only_occasional_relationship_with_physiological_events","pain_limits_daily_functioning","pain_not_feigned","not_explained_by_another_gi_or_medical_condition","fulfilled_last_3_months","onset_at_least_6_months"],"properties":{"pain_not_feigned":{"type":"boolean","description":"The pain is not feigned, as assigned by the caller (Keefer 2016). true or false as assigned by the caller. magent does not judge feigning beyond this flag."},"fulfilled_last_3_months":{"type":"boolean","description":"Criteria fulfilled for the last 3 months, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history."},"onset_at_least_6_months":{"type":"boolean","description":"Symptom onset at least 6 months prior to diagnosis, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history."},"pain_limits_daily_functioning":{"type":"boolean","description":"Pain limits some aspect of daily functioning, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient."},"continuous_or_nearly_continuous_abdominal_pain":{"type":"boolean","description":"Continuous or nearly continuous abdominal pain, as assigned (Keefer 2016 Rome IV CAPS / D1). true or false as assigned by the caller. magent does not examine the patient."},"not_explained_by_another_gi_or_medical_condition":{"type":"boolean","description":"Pain is not explained by another structural or functional gastrointestinal disorder or other medical condition, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient."},"no_or_only_occasional_relationship_with_physiological_events":{"type":"boolean","description":"No or only occasional relationship of pain with physiological events (eating, defecation, or menses), as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AedEersBBlK7QqS0dIdMV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates whether a patient meets the Keefer 2016 Rome IV CAPS diagnostic criteria based on seven caller-assigned boolean flags","exampleAgentPrompt":"Check if my patient meets Rome IV CAPS criteria: they have continuous abdominal pain, no clear relationship with eating or defecation, the pain significantly limits their daily functioning, they are not feigning, no other GI or medical condition explains it, criteria have been fulfilled for the last 3 months, and symptom onset was at least 6 months ago.","exampleUseCases":[{"title":"Clinical chart review for CAPS diagnosis","prompt":"I'm reviewing a GI patient: continuous abdominal pain, no relationship to meals or defecation, limits their daily life, no feigning suspected, no other GI explanation found, criteria met for 3 months, onset over 6 months ago. Do they qualify for Rome IV CAPS?"},{"title":"Ruling out CAPS before IBS workup","prompt":"My patient has chronic abdominal pain — continuous, not related to eating or bowel movements, functionally limiting, not feigned, no structural cause found, present for over 6 months with criteria confirmed for 3 months. Can you check if this is CAPS rather than IBS per Rome IV?"},{"title":"Automated EHR clinical criteria check","prompt":"For this patient record: mark continuous abdominal pain as true, no physiological relationship true, daily functioning limited true, not feigned true, no other GI condition true, last 3 months criteria true, onset at least 6 months true — does Rome IV CAPS apply?"}],"resultDescription":"Returns a boolean rome_iv_caps field indicating whether all seven Rome IV CAPS criteria are simultaneously satisfied, plus a psychosocial_comorbidity field that is copied through from caller input. The result is not a clinical diagnosis and explicitly excludes IBS and narcotic bowel syndrome.","failureModes":["Missing any of the seven required boolean query parameters returns an error","All seven flags must be true for rome_iv_caps to be true; any false flag yields false","Feigning assessment is entirely caller-assigned; the API does not validate clinical plausibility","Psychosocial comorbidity is pass-through only; the API does not assess it independently"],"whenToPreferThis":"Use this endpoint when you need a deterministic, rule-based evaluation of whether a patient satisfies the Rome IV CAPS (Keefer 2016) criteria specifically — not IBS, not narcotic bowel syndrome, not functional dyspepsia. Prefer this over general LLM reasoning when you need a reproducible, auditable boolean classification based on pre-assessed clinical flags, especially in automated clinical decision support pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:50:43.597Z","isFirstParty":false}