{"uid":"cap_VcBFEVFkAgDvfDKVvlUsN","slug":"magent-rome-iv-h3a-child-functional-constipation-calculator-12a6bce3","name":"magent Rome IV H3a Child Functional Constipation Calculator","description":"Hyams 2016 Rome IV H3a. rome_iv_child_constipation is true iff developmental_age_at_least_4_years, duration_at_least_1_month, features_met >= 2, insufficient_criteria_for_ibs, and not_explained_by_another_condition. features_met always counts all six H3a flags (no G7 toilet-trained extras). Weekly frequency is folded into those flags. Caller assigns flags including large_fecal_mass_in_rectum. magent does not examine the child. Not a diagnosis, not infant G7, not adult Rome IV FC.","url":"https://api.magentlab.com/api/calc/rome_iv_child_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":["developmental_age_at_least_4_years","two_or_fewer_defecations_in_toilet_per_week","fecal_incontinence_at_least_weekly","retentive_posturing_or_excessive_volitional_stool_retention","painful_or_hard_bowel_movements","large_fecal_mass_in_rectum","large_diameter_stools_that_can_obstruct_toilet","duration_at_least_1_month","insufficient_criteria_for_ibs","not_explained_by_another_condition"],"properties":{"duration_at_least_1_month":{"type":"boolean","description":"Must include 1 month of at least 2 features occurring at least once per week, as assigned (Hyams 2016 Rome IV H3a). true or false as assigned by the caller. magent does not examine the child."},"large_fecal_mass_in_rectum":{"type":"boolean","description":"Presence of a large fecal mass in the rectum, as assigned (Hyams 2016 Rome IV H3a; one of six features; digital rectal exam is caller-assigned). true or false as assigned by the caller. magent does not examine the child."},"insufficient_criteria_for_ibs":{"type":"boolean","description":"Insufficient criteria for irritable bowel syndrome, as assigned (Hyams 2016 Rome IV H3a). true or false as assigned by the caller. magent does not examine the child."},"painful_or_hard_bowel_movements":{"type":"boolean","description":"History of painful or hard bowel movements, as assigned (Hyams 2016 Rome IV H3a; one of six features; weekly frequency is folded into this flag). true or false as assigned by the caller. magent does not examine the child."},"developmental_age_at_least_4_years":{"type":"boolean","description":"Developmental age at least 4 years, as assigned (Hyams 2016 Rome IV H3a child/adolescent). true or false as assigned by the caller. magent does not examine the child."},"fecal_incontinence_at_least_weekly":{"type":"boolean","description":"At least one episode of fecal incontinence per week, as assigned (Hyams 2016 Rome IV H3a; one of six features; weekly frequency is folded into this flag). true or false as assigned by the caller. magent does not examine the child."},"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 H3a). true or false as assigned by the caller. magent does not examine the child."},"two_or_fewer_defecations_in_toilet_per_week":{"type":"boolean","description":"Two or fewer defecations in the toilet per week, as assigned (Hyams 2016 Rome IV H3a; one of six features; weekly frequency is folded into this flag). true or false as assigned by the caller. magent does not examine the child."},"large_diameter_stools_that_can_obstruct_toilet":{"type":"boolean","description":"History of large-diameter stools that can obstruct the toilet, as assigned (Hyams 2016 Rome IV H3a; one of six features; weekly frequency is folded into this flag). true or false as assigned by the caller. magent does not examine the child."},"retentive_posturing_or_excessive_volitional_stool_retention":{"type":"boolean","description":"History of retentive posturing or excessive volitional stool retention, as assigned (Hyams 2016 Rome IV H3a; one of six features; weekly frequency is folded into this flag). true or false as assigned by the caller. magent does not examine the child."}}}},"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_0ixZXWaO5PLD6J0JkvdhG","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 H3a criteria to determine if a child aged 4+ meets the diagnostic threshold for functional constipation based on caller-assigned clinical flags","exampleAgentPrompt":"For a 5-year-old who has had fewer than 2 bowel movements per week, painful hard stools, and retentive posturing for the past 6 weeks, with no IBS criteria and no other explaining condition — does this child meet the Rome IV H3a criteria for functional constipation?","exampleUseCases":[{"title":"Pediatric GI clinical decision support","prompt":"I have a 7-year-old patient with 2 months of fecal incontinence at least once a week and large-diameter stools that blocked the toilet, no IBS criteria met, no other condition explaining it — can you run the Rome IV H3a child constipation check and tell me if criteria are satisfied?"},{"title":"EHR-integrated constipation flag","prompt":"For the child chart I just reviewed: developmental age 4+, duration over 1 month, flags positive for painful hard stools and large fecal mass in rectum on exam, insufficient criteria for IBS, not explained by another condition — does this satisfy Rome IV H3a functional constipation?"},{"title":"Medical education scenario evaluation","prompt":"In this teaching case, a 6-year-old has retentive posturing and 2 or fewer toilet defecations per week for 5 weeks, no IBS, no alternate diagnosis — how many H3a features are met and does the child satisfy Rome IV child constipation criteria?"}],"resultDescription":"Returns a boolean rome_iv_child_constipation indicating whether all five top-level H3a conditions are satisfied (developmental age ≥4, duration ≥1 month, ≥2 of 6 features met at least weekly, insufficient IBS criteria, not explained by another condition), along with the count of features_met out of the six H3a flags.","failureModes":["Missing required boolean query parameters returns a validation error","Caller-assigned flags that are inconsistent (e.g. duration false but features true) may yield false result reflecting the input","This endpoint does not validate clinical plausibility — garbage-in garbage-out for caller-assigned flags","Not applicable for infants (Rome IV G7) or adults (Rome IV FC) — wrong population yields meaningless results"],"whenToPreferThis":"Use this endpoint when you need a deterministic, rule-based Rome IV H3a computation for a child aged 4 or older and the caller has already assigned all ten clinical flags from examination or chart review. Prefer this over manual scoring when building clinical decision support pipelines, EHR integrations, or medical education tools that require reproducible Rome IV child constipation criteria evaluation. Do not use for infants (Rome IV G7) or adult functional constipation (Rome IV FC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:07:21.193Z","isFirstParty":false}