{"uid":"cap_lQGvbZP1c3pc9B4NtWaPd","slug":"rome-iv-functional-defecation-disorder-calculator-rao-2016-97ded389","name":"Rome IV Functional Defecation Disorder Calculator (Rao 2016)","description":"Rao 2016 Rome IV F3. rome_iv_functional_defecation is true iff FC and/or IBS-C, at least two of three evacuation tests (balloon expulsion, manometry or anal surface EMG, imaging), last-3-months criteria, and 6-month onset. evacuation_tests_met is 0-3. magent does not perform those tests. Not a diagnosis. Not F3a or F3b as separate diagnoses.","url":"https://api.magentlab.com/api/calc/rome_iv_functional_defecation","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":["satisfies_fc_and_or_ibs_with_constipation","abnormal_balloon_expulsion","abnormal_anorectal_evacuation_pattern_manometry_or_emg","impaired_rectal_evacuation_by_imaging","fulfilled_last_3_months","onset_at_least_6_months"],"properties":{"fulfilled_last_3_months":{"type":"boolean","description":"Criteria fulfilled for the last 3 months, as assigned (Rao 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 (Rao 2016). true or false as assigned by the caller. magent does not take a history."},"abnormal_balloon_expulsion":{"type":"boolean","description":"Abnormal balloon expulsion test (one of three evacuation tests; at least two required). true or false as assigned by the caller. magent does not perform balloon expulsion."},"impaired_rectal_evacuation_by_imaging":{"type":"boolean","description":"Impaired rectal evacuation by imaging (one of three evacuation tests; at least two required). true or false as assigned by the caller. magent does not perform imaging."},"satisfies_fc_and_or_ibs_with_constipation":{"type":"boolean","description":"The patient already satisfies diagnostic criteria for functional constipation and/or IBS with constipation, as assigned (Rao 2016 F3). true or false as assigned by the caller. magent does not re-run those tools."},"abnormal_anorectal_evacuation_pattern_manometry_or_emg":{"type":"boolean","description":"Abnormal anorectal evacuation pattern with manometry or anal surface EMG (one of three evacuation tests; at least two required). true or false as assigned by the caller. magent does not perform manometry or EMG."}}}},"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_RjVQ-6sKVJHwYdqQJ9IkU","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 criteria for Functional Defecation Disorder (F3) based on caller-supplied test results and history flags, returning a boolean diagnosis indicator and count of met evacuation tests.","exampleAgentPrompt":"Does this patient meet Rome IV criteria for functional defecation disorder? They already satisfy functional constipation criteria, have an abnormal balloon expulsion test and abnormal manometry, normal imaging, symptoms have been present for the last 3 months, and onset was over 6 months ago.","exampleUseCases":[{"title":"GI clinic post-anorectal workup triage","prompt":"My patient with confirmed functional constipation just completed their anorectal workup: balloon expulsion is abnormal, manometry shows abnormal pattern, imaging is normal. Symptoms have been going on for at least 6 months and meet the last-3-months threshold. Do they meet Rome IV F3 criteria?"},{"title":"IBS-C patient defecation disorder screen","prompt":"This IBS with constipation patient had a normal balloon expulsion, abnormal surface EMG, and normal imaging. Criteria were met in the last 3 months and onset was more than 6 months ago. Does their profile satisfy Rome IV functional defecation disorder?"},{"title":"Teaching case Rome IV F3 rule check","prompt":"For a teaching scenario: patient satisfies IBS-C criteria, balloon expulsion is abnormal, imaging shows impaired rectal evacuation, manometry is normal, last-3-months criteria met, onset at least 6 months ago — how many evacuation tests are positive and does the Rome IV F3 rule trigger?"}],"resultDescription":"Returns rome_iv_functional_defecation (true/false) indicating whether the patient meets Rome IV Functional Defecation Disorder criteria, and evacuation_tests_met (integer 0-3) counting how many of the three evacuation tests were flagged as abnormal. Does not perform tests or take history — all inputs are caller-assigned.","failureModes":["Missing any of the six required boolean query parameters returns a validation error","Non-boolean values for flag parameters cause a schema rejection","Network or payment errors (402 if payment not provided) prevent the call from completing","Caller miscoding test results (e.g. inverting a result) will yield a logically valid but clinically incorrect output"],"whenToPreferThis":"Use this endpoint when you have already assembled caller-coded results from balloon expulsion, manometry/EMG, and imaging tests, along with a prior determination of functional constipation or IBS-C, and need a deterministic Rome IV F3 criterion check. Prefer this over manual Rome IV lookup when integrating into a clinical documentation or decision-support pipeline that already encodes anorectal test results as booleans.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:04:35.743Z","isFirstParty":false}