{"uid":"cap_hru5DUEQYDUe0i2Ob9yn3","slug":"magent-rome-iv-child-ibs-calculator-h2b-d35bb436","name":"magent Rome IV Child IBS Calculator (H2b)","description":"Hyams 2016 Rome IV H2b. rome_iv_child_ibs is true iff pain at least 4 days per month, stool_features_met >= 1, pain_does_not_resolve_with_constipation_treatment, not another condition, and 2-month duration. stool_features_met (0-3) counts related_to_defecation, change_in_stool_frequency, and change_in_stool_form. Caller assigns seven flags. magent does not examine the patient. Not a diagnosis. Not adult Rome IV IBS, not child functional constipation, not IBS-C/D/M/U subtype.","url":"https://api.magentlab.com/api/calc/rome_iv_child_ibs","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":["abdominal_pain_at_least_4_days_per_month","related_to_defecation","change_in_stool_frequency","change_in_stool_form","pain_does_not_resolve_with_constipation_treatment","not_explained_by_another_condition","fulfilled_at_least_2_months"],"properties":{"change_in_stool_form":{"type":"boolean","description":"Pain associated with a change in form (appearance) of stool (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."},"related_to_defecation":{"type":"boolean","description":"Pain related to defecation (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."},"change_in_stool_frequency":{"type":"boolean","description":"Pain associated with a change in frequency of stool (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."},"fulfilled_at_least_2_months":{"type":"boolean","description":"Criteria fulfilled for at least 2 months, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magent does not take a history."},"not_explained_by_another_condition":{"type":"boolean","description":"After appropriate evaluation, the symptoms cannot be fully explained by another medical condition, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magent does not examine the patient."},"abdominal_pain_at_least_4_days_per_month":{"type":"boolean","description":"Abdominal pain at least 4 days per month, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magent does not examine the patient."},"pain_does_not_resolve_with_constipation_treatment":{"type":"boolean","description":"Pain does not resolve with resolution of the constipation, as assigned (Hyams 2016 Rome IV H2b item 2). Assign true if there is no constipation, or if pain persists after treating constipation. true or false as assigned by the caller. magent does not treat constipation or examine the patient."}}}},"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_Ro2Hb0n-JAr8aSijo_wpI","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 Hyams 2016 Rome IV H2b criteria for childhood irritable bowel syndrome using seven caller-assigned boolean flags","exampleAgentPrompt":"Check the Rome IV H2b criteria for a child who has abdominal pain at least 4 days per month, pain related to defecation, a change in stool frequency, no change in stool form, pain that does not resolve with constipation treatment, symptoms not explained by another condition, and criteria met for at least 2 months — does this child meet Rome IV IBS?","exampleUseCases":[{"title":"Pediatric GI clinic IBS screening","prompt":"I'm reviewing a 10-year-old with recurrent abdominal pain — they have pain at least 4 days per month, it's related to defecation, there's a change in stool form but no change in frequency, it doesn't resolve with constipation treatment, no other condition explains it, and it's been going on for 2 months. Does this child meet Rome IV H2b IBS criteria?"},{"title":"EHR automation for Rome IV documentation","prompt":"For this pediatric patient chart, flag whether Rome IV childhood IBS is met: abdominal pain ≥4 days/month is true, related to defecation is true, change in stool frequency is false, change in stool form is false, pain not resolving with constipation treatment is true, not explained by another condition is true, and fulfilled at least 2 months is false."},{"title":"Clinical research eligibility screening","prompt":"We're enrolling children in a study requiring Rome IV H2b IBS — the child has pain ≥4 days/month, pain is related to defecation, has change in stool frequency and stool form, pain does not resolve with constipation treatment, symptoms aren't explained by another condition, and criteria have been present for at least 2 months. Do they qualify?"}],"resultDescription":"Returns a boolean rome_iv_child_ibs indicating whether all Rome IV H2b criteria for childhood IBS are met, plus stool_features_met (integer 0–3) counting how many of the three stool-feature flags (related_to_defecation, change_in_stool_frequency, change_in_stool_form) are true. The result is not a diagnosis and does not imply medical evaluation by the API.","failureModes":["Missing required boolean flags return a validation error","Non-boolean values for flag parameters cause schema rejection","All seven required queryParams must be present; partial submission fails","Network or payment authorization failures return 402 or 5xx errors"],"whenToPreferThis":"Use this endpoint when you need to programmatically apply the Hyams 2016 Rome IV H2b criteria for pediatric IBS specifically — not adult Rome IV IBS, not child functional constipation, and not IBS subtype (C/D/M/U) classification. It is the right choice when a caller has already clinically assessed all seven criteria flags and needs arithmetic validation of the Rome IV algorithm. Prefer this over manual calculation to ensure consistent, reproducible scoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:05:30.846Z","isFirstParty":false}