{"uid":"cap_sNMJChy3aSxUrpUP6uST2","slug":"magent-rome-iv-c3-functional-diarrhea-calculator-e5c9cae1","name":"magent Rome IV C3 Functional Diarrhea Calculator","description":"Mearin 2016 Rome IV C3 functional diarrhea. rome_iv_diarrhea is true iff last-3-months criteria with 6-month onset, loose or watery stools without predominant abdominal pain or bothersome bloating in >25% of stools, and insufficient criteria for diarrhea-predominant IBS. Caller assigns three flags. magent does not examine the patient. Not a diagnosis. Adult C3 only. Not child G5, not IBS-D, not Rome IV IBS, not Manning, not functional constipation.","url":"https://api.magentlab.com/api/calc/rome_iv_diarrhea","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":["criteria_last_3_months_onset_6_months","loose_or_watery_stools_gt_25_percent_without_predominant_pain_or_bloating","insufficient_criteria_for_ibs_d"],"properties":{"insufficient_criteria_for_ibs_d":{"type":"boolean","description":"Insufficient criteria for diarrhea-predominant IBS, as assigned by the caller (Mearin 2016 C3 excludes patients who meet IBS-D). true or false. magent does not apply the IBS box."},"criteria_last_3_months_onset_6_months":{"type":"boolean","description":"Criteria fulfilled for the last 3 months with symptom onset at least 6 months prior to diagnosis, as assigned (Mearin 2016 C3). true or false as assigned by the caller. magent does not take a history."},"loose_or_watery_stools_gt_25_percent_without_predominant_pain_or_bloating":{"type":"boolean","description":"Loose or watery stools, without predominant abdominal pain or bothersome bloating, occurring in more than 25% of stools (Mearin 2016 C3). true or false as assigned by the caller. magent does not inspect stool."}}}},"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_Ttw1Cx8V7H1tetYSlPIrp","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 Rome IV C3 criteria for functional diarrhea based on three caller-assigned boolean flags","exampleAgentPrompt":"Check if this adult patient meets Rome IV C3 functional diarrhea criteria: the last-3-months with 6-month onset criteria is met (true), loose or watery stools without predominant pain or bloating in more than 25% of stools is true, and the patient does not meet IBS-D criteria (true).","exampleUseCases":[{"title":"Functional diarrhea screening in adult GI clinic","prompt":"I need to check if my adult GI patient meets Rome IV C3 functional diarrhea criteria — the 3-month/6-month onset flag is true, the loose watery stools without predominant pain or bloating in over 25% of stools flag is true, and they do not have sufficient criteria for IBS-D so that flag is also true."},{"title":"Ruling out IBS-D before functional diarrhea label","prompt":"My patient has watery stools but I've already ruled out IBS-D. The 3-month symptom duration with 6-month onset is confirmed, stool looseness without predominant abdominal pain or bloating over 25% is confirmed, and IBS-D criteria are insufficient — does this meet Rome IV C3 functional diarrhea?"},{"title":"EHR automation for Rome IV documentation","prompt":"For documentation purposes, evaluate Rome IV C3 functional diarrhea: onset criteria met is true, loose or watery stools criterion is true, but IBS-D exclusion has not been confirmed so set insufficient_criteria_for_ibs_d to false — does the patient qualify?"}],"resultDescription":"Returns a boolean (rome_iv_diarrhea) indicating whether all three Rome IV C3 criteria are simultaneously satisfied: (1) last-3-months symptom duration with 6-month onset, (2) loose or watery stools without predominant abdominal pain or bloating in >25% of stools, and (3) insufficient criteria for IBS-D. This is a classification aid, not a clinical diagnosis.","failureModes":["Missing any of the three required boolean query parameters returns a validation error","Non-boolean values for any flag cause a schema error","Endpoint is for adults only (C3); applying to pediatric patients (G5) is a misuse not caught by the API","If the caller has not properly excluded IBS-D before setting the flag, the output may be clinically misleading","Network or payment authorization failures (x402) return HTTP 402"],"whenToPreferThis":"Use this endpoint when you have already gathered the three Rome IV C3 boolean flags from a clinician or structured clinical data and need to programmatically determine whether the patient meets functional diarrhea criteria per Mearin 2016. Prefer this over manual logic when automating GI clinical documentation, decision support pipelines, or research data pipelines for adult patients. Do not use for pediatric patients (Rome IV G5), IBS-D classification, functional constipation, or Manning criteria.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:06.612Z","isFirstParty":false}