{"uid":"cap_HGlZqiIgh29OSp5lHEn6b","slug":"rome-ii-ibs-calculator-thompson-1999-ec84c1ce","name":"Rome II IBS Calculator (Thompson 1999)","description":"Thompson 1999 Rome II IBS. rome_ii_ibs is true iff at least 12 weeks (need not be consecutive) in the preceding 12 months of abdominal discomfort or pain and at least two of: relieved with defecation, onset associated with a change in stool frequency, and onset associated with a change in stool form. supporting_features_met is 0-3. Caller assigns four flags. magent does not examine the patient. Not a diagnosis, not Rome III, not Rome IV, not Manning, not IBS subtype.","url":"https://api.magentlab.com/api/calc/rome_ii_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_12_weeks_of_12_months","relieved_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."},"relieved_with_defecation":{"type":"boolean","description":"Abdominal discomfort or pain relieved 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."},"pain_or_discomfort_12_weeks_of_12_months":{"type":"boolean","description":"At least 12 weeks (need not be consecutive) in the preceding 12 months of abdominal discomfort or pain (Thompson 1999). 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_UTzyICsnXLTf87SHhgT17","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":"Computes the Rome II criteria for irritable bowel syndrome given four caller-assigned boolean flags about abdominal symptoms over the past 12 months.","exampleAgentPrompt":"Check if this patient meets Rome II IBS criteria: they've had abdominal pain for at least 12 weeks in the past 12 months (true), relief with defecation (true), onset associated with change in stool frequency (false), and onset associated with change in stool form (true).","exampleUseCases":[{"title":"GI clinic IBS screening tool","prompt":"For my patient with abdominal discomfort, run the Rome II IBS criteria: they've had pain for at least 12 weeks in the last 12 months (true), it's relieved with defecation (true), associated with change in stool frequency (true), and onset associated with change in stool form (false). Do they meet the criteria?"},{"title":"EHR-integrated symptom checker","prompt":"Based on the chart notes, the patient has had abdominal pain for 12 weeks of the past year (true), the pain is not relieved by defecation (false), onset is tied to stool frequency change (true), and onset is tied to stool form change (true) — does this satisfy Rome II IBS?"},{"title":"Medical education case scoring","prompt":"For this teaching case, let's score the Rome II IBS criteria: 12 weeks of abdominal discomfort in 12 months is true, relieved with defecation is false, change in stool frequency at onset is false, change in stool form at onset is false — what does the Rome II calculator say?"}],"resultDescription":"Returns a rome_ii_ibs boolean (true if criteria met) and a supporting_features_met count (0–3) reflecting how many of the three IBS supporting features were flagged true by the caller.","failureModes":["Missing required boolean parameters returns a validation error","Non-boolean values for flags may cause a 400 bad request","If fewer than two supporting features are true, rome_ii_ibs is false even if the 12-week criterion is met","No patient examination is performed — accuracy depends entirely on caller-assigned flags"],"whenToPreferThis":"Use this endpoint when you need a fast, programmatic Rome II (Thompson 1999) IBS criterion check and already have the four boolean symptom flags from clinical observation or chart review. Prefer this over manual scoring when building clinical decision support tools, EHR integrations, or medical education apps. Do not use this for Rome III, Rome IV, Manning criteria, or IBS subtype classification — those require different endpoints or logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:08:20.845Z","isFirstParty":false}