{"uid":"cap_XgZvMV5XG6Qjp-6PpHI8T","slug":"rome-iv-oic-criteria-calculator-c6-dd6e2a14","name":"Rome IV OIC Criteria Calculator (C6)","description":"Mearin 2016 Rome IV C6 OIC. rome_iv_oic is true iff new or worsening constipation when initiating, changing, or increasing opioid therapy, at least 2 of 6 symptoms (straining, lumpy/hard stools, incomplete evacuation, anorectal obstruction, manual maneuvers, fewer than 3 SBM/week), and loose stools rare without laxatives. symptom_count is 0-6. Caller assigns eight flags. magent does not examine the patient or prescribe opioids. Not a diagnosis, not functional constipation C2, not IBS, not child.","url":"https://api.magentlab.com/api/calc/rome_iv_oic","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":["new_or_worsening_constipation_on_opioid_change","straining_gt_25_percent","lumpy_or_hard_stools_gt_25_percent","incomplete_evacuation_gt_25_percent","anorectal_obstruction_gt_25_percent","manual_maneuvers_gt_25_percent","fewer_than_3_sbm_per_week","loose_stools_rare_without_laxatives"],"properties":{"straining_gt_25_percent":{"type":"boolean","description":"Straining during more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller. magent does not examine the patient."},"fewer_than_3_sbm_per_week":{"type":"boolean","description":"Fewer than three spontaneous bowel movements per week (one of six C6 symptom items; at least two required). true or false as assigned by the caller."},"manual_maneuvers_gt_25_percent":{"type":"boolean","description":"Manual maneuvers to facilitate more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller."},"lumpy_or_hard_stools_gt_25_percent":{"type":"boolean","description":"Lumpy or hard stools (Bristol stool form types 1-2) more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller. magent does not inspect stool."},"anorectal_obstruction_gt_25_percent":{"type":"boolean","description":"Sensation of anorectal obstruction/blockage more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller."},"incomplete_evacuation_gt_25_percent":{"type":"boolean","description":"Sensation of incomplete evacuation more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller."},"loose_stools_rare_without_laxatives":{"type":"boolean","description":"Loose stools are rarely present without the use of laxatives, as assigned (Mearin 2016 C6). true or false as assigned by the caller. magent does not examine the patient."},"new_or_worsening_constipation_on_opioid_change":{"type":"boolean","description":"New or worsening constipation when initiating, changing, or increasing opioid therapy, as assigned (Mearin 2016 C6). true or false as assigned by the caller. magent does not take a history or prescribe opioids."}}}},"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_Hrc8yJQgiHUxDdk614rpw","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 IV C6 criteria for Opioid-Induced Constipation (OIC) based on eight caller-assigned boolean flags.","exampleAgentPrompt":"A patient started a new opioid and now reports straining more than 25% of the time, hard stools over 25% of defecations, and fewer than 3 spontaneous bowel movements per week; no loose stools without laxatives. The constipation is new since starting the opioid. Can you run the Rome IV OIC check — no incomplete evacuation, no anorectal obstruction, no manual maneuvers?","exampleUseCases":[{"title":"OIC screening during opioid initiation","prompt":"My patient just started opioids and is complaining of new constipation. They report straining over 25% of the time, hard stools over 25%, fewer than 3 bowel movements a week, and loose stools never happen without laxatives. No other symptoms. Does this meet Rome IV OIC criteria?"},{"title":"Distinguishing OIC from functional constipation","prompt":"I need to know if this patient's constipation is opioid-induced rather than functional. Their opioid dose was recently increased, and they now have incomplete evacuation more than 25% of the time and straining over 25%, but no hard stools, no anorectal obstruction, no manual maneuvers, no reduced SBM frequency, and loose stools are rare without laxatives. Run the Rome IV C6 OIC check."},{"title":"Clinical audit of opioid patients","prompt":"For this opioid patient in our audit: constipation is new since opioid start, straining yes, hard stools yes, incomplete evacuation yes, anorectal obstruction no, manual maneuvers no, fewer than 3 SBM per week yes, loose stools rare without laxatives yes. What's the Rome IV OIC result and symptom count?"}],"resultDescription":"Returns a rome_iv_oic boolean (true if criteria are met) and a symptom_count integer (0–6) representing how many of the six C6 symptom items the caller flagged as true. Does not provide a diagnosis, does not examine the patient, and does not apply to children or IBS/functional constipation C2.","failureModes":["Missing required query parameters returns an error — all eight boolean flags are required","Passing non-boolean values for flag parameters causes a validation error","Endpoint is not designed for pediatric patients or IBS — results may be clinically inappropriate if applied outside scope","Caller must determine and assign all eight flags independently; the API cannot assess patient symptoms directly"],"whenToPreferThis":"Use this endpoint when you need a fast, reproducible computation of the Rome IV C6 OIC criteria given pre-assessed symptom flags — ideal for clinical decision support tools, EHR integrations, or audit workflows where symptom data is already gathered. Prefer this over manual criteria application when consistency and documentation are required. Not suitable for replacing clinician judgment or diagnosing patients directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:05:11.820Z","isFirstParty":false}