{"uid":"cap_I2bzrc6ycCAasLHiDGLXY","slug":"magent-rome-iv-ibs-criteria-calculator-df420e09","name":"magent Rome IV IBS Criteria Calculator","description":"Mearin 2016 Rome IV IBS. rome_iv_ibs is true iff recurrent abdominal pain at least 1 day per week in the last 3 months, onset at least 6 months prior, and at least two of: related to defecation, change in stool frequency, and change in stool form. supporting_features_met is 0-3. Caller assigns five flags. magent does not examine the patient. Not a diagnosis, not Rome III, not IBS subtype.","url":"https://api.magentlab.com/api/calc/rome_iv_ibs","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":["pain_1_day_per_week_last_3_months","symptom_onset_at_least_6_months_prior","related_to_defecation","associated_change_stool_frequency","associated_change_stool_form"],"properties":{"related_to_defecation":{"type":"boolean","description":"Pain related to defecation (one of three supporting features; at least two required). true or false as assigned by the caller."},"associated_change_stool_form":{"type":"boolean","description":"Pain associated with a change in form (appearance) of stool (one of three supporting features; at least two required). true or false as assigned by the caller."},"associated_change_stool_frequency":{"type":"boolean","description":"Pain associated with a change in frequency of stool (one of three supporting features; at least two required). true or false as assigned by the caller."},"pain_1_day_per_week_last_3_months":{"type":"boolean","description":"Recurrent abdominal pain on average at least 1 day per week in the last 3 months (Mearin 2016). Pain only, not discomfort. true or false as assigned by the caller. magent does not examine the patient."},"symptom_onset_at_least_6_months_prior":{"type":"boolean","description":"Criteria fulfilled for the last 3 months with symptom onset at least 6 months before diagnosis, as assigned (Mearin 2016). true or false as assigned by the caller. magent does not take a history."}}}},"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_Na8i31V54_u6RWvidAaAM","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 Rome IV IBS diagnostic criteria (Mearin 2016) from five caller-supplied clinical flags and returns a boolean result plus count of supporting features met","exampleAgentPrompt":"Check whether this patient meets Rome IV IBS criteria: they have recurrent abdominal pain at least 1 day per week over the last 3 months, symptoms started more than 6 months ago, and the pain is related to defecation and accompanied by a change in stool frequency but not a change in stool form.","exampleUseCases":[{"title":"EHR-integrated IBS screening tool","prompt":"Run the Rome IV IBS check for this patient: weekly abdominal pain for the past 3 months, onset was 8 months ago, pain is related to defecation (true), associated with change in stool frequency (true), but no change in stool form (false). Does she meet the criteria?"},{"title":"Clinical research cohort eligibility check","prompt":"I'm building a cohort of Rome IV IBS-positive patients — for this subject, pain occurs at least once a week in the last 3 months (true), onset was 7 months ago (true), not related to defecation (false), no change in stool frequency (false), but there is a change in stool form (true). Does he qualify?"},{"title":"Gastroenterology triage decision support","prompt":"Does this patient satisfy Rome IV IBS criteria? He reports recurrent abdominal pain less than once a week in the last 3 months (false), with symptom onset only 4 months ago (false), pain related to defecation (true), change in stool frequency (true), and change in stool form (true)."}],"resultDescription":"Returns a JSON object indicating whether rome_iv_ibs is true or false (criteria met or not) and supporting_features_met as an integer 0–3 reflecting how many of the three supporting feature flags were true. Not a clinical diagnosis and does not classify IBS subtype.","failureModes":["Missing required query parameter causes validation error","Non-boolean value for a flag causes schema rejection","All five flags required; partial input returns error","Payment failure (x402) if USDC not provided","API returns result based solely on caller-supplied flags — incorrect flag assignment yields incorrect output"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, auditable computation of Rome IV IBS criteria (Mearin 2016) from already-assessed clinical flags. Prefer it over manual rule-checking when integrating IBS screening into EHR workflows, research pipelines, or clinical decision support tools. It is not a substitute for clinical examination and does not produce Rome III results or IBS subtype classification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:50:37.004Z","isFirstParty":false}