{"uid":"cap_FukqYbVOhCLqb-WGqN-Rd","slug":"rome-iii-ibs-criteria-calculator-longstreth-2006-4c4ce058","name":"Rome III IBS Criteria Calculator (Longstreth 2006)","description":"Longstreth 2006 Rome III IBS. rome_iii_ibs is true iff pain or discomfort at least 3 days per month in the last 3 months, onset at least 6 months prior, and at least two of: improvement with 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 IV, not IBS subtype.","url":"https://api.magentlab.com/api/calc/rome_iii_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_or_discomfort_3_days_per_month_last_3_months","symptom_onset_at_least_6_months_prior","improvement_with_defecation","onset_change_stool_frequency","onset_change_stool_form"],"properties":{"onset_change_stool_form":{"type":"boolean","description":"Onset 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."},"improvement_with_defecation":{"type":"boolean","description":"Improvement with defecation (one of three supporting features; at least two required). true or false as assigned by the caller."},"onset_change_stool_frequency":{"type":"boolean","description":"Onset 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."},"symptom_onset_at_least_6_months_prior":{"type":"boolean","description":"Symptom onset at least 6 months prior to diagnosis, as assigned (Longstreth 2006). true or false as assigned by the caller. magent does not take a history."},"pain_or_discomfort_3_days_per_month_last_3_months":{"type":"boolean","description":"Recurrent abdominal pain or discomfort at least 3 days per month in the last 3 months (Longstreth 2006). 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_KWwnvG3GHVeV8-r1UrQYs","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 Rome III criteria for irritable bowel syndrome (IBS) based on five caller-assigned boolean flags","exampleAgentPrompt":"Check if this patient meets Rome III IBS criteria: they have had recurrent abdominal pain or discomfort at least 3 days per month for the past 3 months, symptoms started more than 6 months ago, pain improves with defecation, and they have noticed a change in stool frequency but no change in stool form.","exampleUseCases":[{"title":"GI clinic symptom screening tool","prompt":"I have a patient with chronic abdominal pain 3 or more days per month for the last 3 months, onset 8 months ago, whose pain improves with defecation and who has noticed a change in stool frequency — does this meet Rome III IBS criteria?"},{"title":"EHR-integrated IBS flagging","prompt":"For this chart: pain or discomfort 3+ days per month in the last 3 months — yes; onset at least 6 months ago — yes; improvement with defecation — no; change in stool frequency — yes; change in stool form — yes. Does the patient satisfy Rome III IBS?"},{"title":"Clinical research eligibility check","prompt":"I need to screen a study participant for Rome III IBS: they meet the 3-days-per-month pain criterion and the 6-month onset criterion, but the only supporting feature they have is change in stool form — do they qualify?"}],"resultDescription":"Returns a boolean rome_iii_ibs indicating whether all Rome III criteria are satisfied, and an integer supporting_features_met (0–3) counting how many of the three supporting features (improvement with defecation, change in stool frequency, change in stool form) were flagged true. Does not return an IBS subtype and is not a Rome IV evaluation.","failureModes":["Missing required boolean flags returns a validation error","Invalid parameter types (non-boolean) cause a 400 Bad Request","All five flags must be provided; partial input is rejected","Payment not attached or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a programmatic, rule-based check of the Longstreth 2006 Rome III IBS definition and you have already obtained the five required clinical boolean flags from a clinician or structured EHR data. Prefer this over manual lookup when building clinical decision support tools, research screening pipelines, or EHR automation that must apply the Rome III standard consistently. Note: this does not apply Rome IV criteria and does not determine IBS subtype — if either of those is needed, a different endpoint or tool is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:04:53.723Z","isFirstParty":false}