{"uid":"cap_Y-2946B3bhmsreOE9BPJE","slug":"rome-iv-proctalgia-fugax-calculator-magent-4c226463","name":"Rome IV Proctalgia Fugax Calculator (magent)","description":"Rao 2016 Rome IV proctalgia fugax (F2c). rome_iv_proctalgia_fugax is true iff recurrent rectal pain unrelated to defecation, episodes seconds to minutes (max 30 min), no anorectal pain between episodes, other causes excluded, last-3-months criteria, and 6-month onset. magent does not examine the rectum. Not a diagnosis, not levator ani, not unspecified functional anorectal pain.","url":"https://api.magentlab.com/api/calc/rome_iv_proctalgia_fugax","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":["recurrent_rectal_pain_unrelated_to_defecation","episodes_seconds_to_minutes_max_30_minutes","no_anorectal_pain_between_episodes","other_causes_of_rectal_pain_excluded","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."},"no_anorectal_pain_between_episodes":{"type":"boolean","description":"Absence of anorectal pain between episodes, as assigned (Rao 2016). true or false as assigned by the caller. magent does not examine the rectum."},"other_causes_of_rectal_pain_excluded":{"type":"boolean","description":"Other causes of rectal pain excluded as assigned: inflammatory bowel disease, intramuscular abscess, anal fissure, thrombosed hemorrhoids, prostatitis, coccygodynia, and major structural alterations of the pelvic floor (Rao 2016). true or false as assigned by the caller. magent does not examine the rectum."},"episodes_seconds_to_minutes_max_30_minutes":{"type":"boolean","description":"Episodes last from seconds to minutes, with a maximum duration of 30 minutes, as assigned (Rao 2016 F2c). Distinguishes proctalgia fugax from levator ani syndrome (pain lasting 30 minutes or longer). true or false as assigned by the caller. magent does not examine the rectum."},"recurrent_rectal_pain_unrelated_to_defecation":{"type":"boolean","description":"Recurrent episodes of rectal pain unrelated to defecation, as assigned (Rao 2016 Rome IV proctalgia fugax F2c). true or false as assigned by the caller. magent does not examine the rectum."}}}},"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_PAFAGfQfXgua2vEu_TrM0","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 (Rao 2016) diagnostic criteria for proctalgia fugax (F2c) based on six caller-assigned boolean inputs.","exampleAgentPrompt":"Check if this patient meets the Rome IV proctalgia fugax criteria: they have recurrent rectal pain unrelated to defecation, episodes lasting seconds to a couple of minutes (well under 30 minutes), no anorectal pain between episodes, other causes of rectal pain have been excluded, criteria have been present for the last 3 months, and symptoms started at least 6 months ago.","exampleUseCases":[{"title":"Ruling in proctalgia fugax in clinic","prompt":"My patient has brief rectal pain spasms unrelated to defecation, episodes last under a minute, no pain between episodes, IBD and fissures have been ruled out, this has been going on for over 6 months and meets the last-3-month window — does this satisfy Rome IV proctalgia fugax criteria?"},{"title":"Differentiating from levator ani syndrome","prompt":"A patient reports rectal pain that comes and goes in very short bursts — under 30 minutes each — with nothing in between. Other causes excluded, pattern established over 6 months and active in the last 3 months. Can you confirm this fits proctalgia fugax and not levator ani syndrome by Rome IV?"},{"title":"Automated chart review for functional GI coding","prompt":"For this patient's chart: recurrent rectal pain unrelated to defecation is yes, episodes are seconds to minutes, no inter-episode pain, other causes excluded, fulfilled last 3 months, onset over 6 months ago — run the Rome IV proctalgia fugax check and tell me if criteria are met."}],"resultDescription":"Returns a boolean field (rome_iv_proctalgia_fugax) indicating whether all six Rome IV F2c criteria for proctalgia fugax are satisfied based on the caller-supplied inputs. No physical examination or history-taking is performed by the service.","failureModes":["Missing any of the six required boolean query parameters returns an error","Passing non-boolean values for boolean fields causes a validation error","Misclassifying episode duration (e.g. episodes >30 min) will return false, distinguishing from levator ani syndrome","Service does not validate clinical accuracy of caller-assigned inputs — garbage in, garbage out"],"whenToPreferThis":"Use this endpoint when you need a fast, structured Rome IV F2c proctalgia fugax determination and have already gathered the six required clinical criteria from a clinician or structured record. Prefer this over manual lookup when building clinical decision support workflows, automated chart coding, or gastroenterology triage tools. Not appropriate for diagnosing levator ani syndrome (episodes ≥30 min) or unspecified functional anorectal pain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:10:19.248Z","isFirstParty":false}