{"uid":"cap_q4nVKqz88qTqXT_od8URi","slug":"wexner-constipation-score-agachan-1996-76606a44","name":"Wexner Constipation Score (Agachan 1996)","description":"Agachan 1996 constipation scoring system from eight caller-assigned table bands (frequency, painful evacuation, incomplete evacuation, abdominal pain, time per attempt, assistance 0-2, unsuccessful attempts per 24 hours, duration). Total 0-30. constipation true iff score > 15. magent does not take a bowel history. Not a medical device, not a laxative order, not Jorge 1993 fecal incontinence scoring.","url":"https://api.magentlab.com/api/calc/wexner_constipation","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":["frequency","painful_evacuation","incomplete_evacuation","abdominal_pain","time_per_attempt","assistance","unsuccessful_attempts","duration"],"properties":{"duration":{"enum":["0","1_5","5_10","10_20","more_than_20"],"type":"string","description":"Caller-assigned Agachan 1996 duration of constipation in years. 0 scores 0; 1_5 scores 1; 5_10 scores 2; 10_20 scores 3; more_than_20 scores 4. Adjacent printed ranges overlap; the caller assigns the published band. magent does not take a bowel history."},"frequency":{"enum":["1_2_times_per_1_2_days","2_times_per_week","once_per_week","less_than_once_per_week","less_than_once_per_month"],"type":"string","description":"Caller-assigned Agachan 1996 frequency of bowel movements. 1_2_times_per_1_2_days (1-2 times per 1-2 days) scores 0; 2_times_per_week scores 1; once_per_week scores 2; less_than_once_per_week scores 3; less_than_once_per_month scores 4. magent does not take a bowel history."},"assistance":{"enum":["without_assistance","stimulative_laxatives","digital_assistance_or_enema"],"type":"string","description":"Caller-assigned Agachan 1996 type of assistance. without_assistance scores 0; stimulative_laxatives scores 1; digital_assistance_or_enema scores 2. This item is 0-2 in that table, not 0-4. magent does not order laxatives, enemas, or digital assistance."},"abdominal_pain":{"enum":["never","rarely","sometimes","usually","always"],"type":"string","description":"Caller-assigned Agachan 1996 abdominal pain. never scores 0; rarely 1; sometimes 2; usually 3; always 4. magent does not take a bowel history."},"time_per_attempt":{"enum":["less_than_5","5_10","10_20","20_30","more_than_30"],"type":"string","description":"Caller-assigned Agachan 1996 minutes in lavatory per attempt. less_than_5 scores 0; 5_10 scores 1; 10_20 scores 2; 20_30 scores 3; more_than_30 scores 4. magent does not time the attempt."},"painful_evacuation":{"enum":["never","rarely","sometimes","usually","always"],"type":"string","description":"Caller-assigned Agachan 1996 painful evacuation effort. never scores 0; rarely 1; sometimes 2; usually 3; always 4. magent does not take a bowel history."},"incomplete_evacuation":{"enum":["never","rarely","sometimes","usually","always"],"type":"string","description":"Caller-assigned Agachan 1996 feeling of incomplete evacuation. never scores 0; rarely 1; sometimes 2; usually 3; always 4. magent does not take a bowel history."},"unsuccessful_attempts":{"enum":["never","1_3","3_6","6_9","more_than_9"],"type":"string","description":"Caller-assigned Agachan 1996 unsuccessful attempts for evacuation per 24 hours. never scores 0; 1_3 scores 1; 3_6 scores 2; 6_9 scores 3; more_than_9 scores 4. Adjacent printed ranges overlap; the caller assigns the published band. magent does not take a bowel history."}}}},"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_x_-YOMpJMFxVrGVhRBPVt","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 Agachan 1996 Wexner constipation score (0–30) from eight caller-assigned symptom bands and returns whether constipation is present (score > 15).","exampleAgentPrompt":"Calculate the Wexner constipation score for a patient who has bowel movements once per week, sometimes has painful evacuation, usually has incomplete evacuation, rarely has abdominal pain, spends 10–20 minutes per attempt, uses stimulative laxatives for assistance, has 1–3 unsuccessful attempts per 24 hours, and has had constipation symptoms for 5–10 years.","exampleUseCases":[{"title":"Pre-consultation constipation triage","prompt":"Score this patient for constipation before their GI appointment: bowel movements less than once per week, always painful evacuation, sometimes incomplete evacuation, usually abdominal pain, more than 30 minutes per attempt, needs digital assistance or enema, 3–6 unsuccessful attempts per 24 hours, and symptoms lasting more than 20 years — tell me the Wexner score and whether they meet the constipation threshold."},{"title":"Clinical research data pipeline","prompt":"I'm processing a dataset of patient symptom bands and need to run the Agachan 1996 Wexner constipation calculator for a patient with 2 bowel movements per week, rarely painful evacuation, never incomplete evacuation, never abdominal pain, under 5 minutes per attempt, no assistance needed, no unsuccessful attempts, and constipation duration under 1 year — what's the score and constipation status?"},{"title":"Remote care symptom check","prompt":"A patient filled out their symptom questionnaire: once per week bowel movements, sometimes painful, sometimes incomplete evacuation, sometimes abdominal pain, 5–10 minutes per attempt, stimulative laxatives for help, 1–3 unsuccessful attempts daily, and symptoms for 1–5 years — run the Wexner constipation score and let me know if it comes back positive."}],"resultDescription":"Returns the total Wexner constipation score (integer, 0–30) computed by summing the eight Agachan 1996 band scores, plus a boolean 'constipation' field that is true when the total exceeds 15. Does not include diagnostic advice, laxative orders, or medical recommendations.","failureModes":["Missing required query parameters (frequency, painful_evacuation, incomplete_evacuation, abdominal_pain, time_per_attempt, assistance, unsuccessful_attempts, duration) returns a validation error","Invalid enum value for any parameter returns a 400-level error","Payment not provided or insufficient USDC balance returns a 402 Payment Required response","Network or server timeout returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need to programmatically apply the Agachan 1996 Wexner constipation scoring system to pre-classified symptom bands, such as in clinical decision support pipelines, research data processing, or telehealth intake workflows. Prefer this over general LLM reasoning when reproducibility and exact fidelity to the published scoring table are required. Do not use for fecal incontinence scoring (Jorge 1993) or for ordering treatments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:18:09.401Z","isFirstParty":false}