# Rome IV Infant Functional Diarrhea Calculator (Benninga 2016 G5)

> Rome IV Infant Functional Diarrhea Calculator (Benninga 2016 G5) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Evaluates four Rome IV G5 criteria flags to determine whether an infant meets the diagnostic criteria for functional diarrhea (Benninga 2016).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_infant_diarrhea
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rome-iv-infant-functional-diarrhea-calculator-benninga-2016-g5-dc42456d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_92DQSp1gBawLRcK-wdqzM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rome-iv-infant-functional-diarrhea-calculator-benninga-2016-g5-dc42456d
```

Example prompt: Check Rome IV G5 infant functional diarrhea for a patient: they do have daily painless recurrent 4 or more large unformed stools, symptoms have lasted more than 4 weeks, onset was between 6 and 60 months of age, and there is no failure to thrive given adequate caloric intake.

## When to prefer this

Use this endpoint when you need a fast, deterministic Rome IV G5 functional diarrhea criteria check for infants, specifically per the Benninga 2016 framework with the 4-stool threshold. Prefer this over manual lookup when building clinical decision-support tools, EHR integrations, or pediatric gastroenterology screening workflows. Do not use for adult Rome IV IBS/diarrhea criteria (a separate endpoint exists), malabsorption workup, or when a clinical examination is required.

## Known failure modes

- Missing any of the four required boolean query parameters returns a validation error
- Passing non-boolean values for flags causes a schema error
- Caller misinterprets result as a clinical diagnosis rather than a criteria-matching flag
- Applying to patients outside the 6–60 month age window (onset flag must be set by caller — endpoint does not verify age independently)
- Confusion with Rome III 3-stool threshold may cause incorrect flag assignment by caller

## How this service works

Benninga 2016 Rome IV G5 Functional Diarrhea. rome_iv_infant_diarrhea is true iff daily_painless_recurrent_4_or_more_large_unformed_stools, symptoms_last_more_than_4_weeks, onset_between_6_and_60_months, and no_failure_to_thrive_if_caloric_intake_adequate. Rome IV is 4 or more stools (not Rome III's 3). Sleep-stool criterion was dropped and is not a flag. Caller assigns four flags. magent does not examine the child. Not a diagnosis, not adult Rome IV diarrhea, not a malabsorption workup.

## Output

Returns a boolean field rome_iv_infant_diarrhea indicating true if all four Rome IV G5 criteria are met (daily painless recurrent ≥4 large unformed stools, symptoms >4 weeks, onset 6–60 months, no failure to thrive given adequate caloric intake), and false otherwise. No diagnosis is issued; the result is a rule-based flag.

## Request schema (JSON Schema)

```json
{
 "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": [
      "daily_painless_recurrent_4_or_more_large_unformed_stools",
      "symptoms_last_more_than_4_weeks",
      "onset_between_6_and_60_months",
      "no_failure_to_thrive_if_caloric_intake_adequate"
     ],
     "properties": {
      "onset_between_6_and_60_months": {
       "type": "boolean",
       "description": "Onset between 6 and 60 months of age, as assigned (Benninga 2016 Rome IV G5). true or false as assigned by the caller. magent does not examine the child."
      },
      "symptoms_last_more_than_4_weeks": {
       "type": "boolean",
       "description": "Symptoms last more than 4 weeks, as assigned (Benninga 2016 Rome IV G5). true or false as assigned by the caller. magent does not examine the child."
      },
      "no_failure_to_thrive_if_caloric_intake_adequate": {
       "type": "boolean",
       "description": "No failure to thrive if caloric intake is adequate, as assigned (Benninga 2016 Rome IV G5). true or false as assigned by the caller. magent does not examine the child."
      },
      "daily_painless_recurrent_4_or_more_large_unformed_stools": {
       "type": "boolean",
       "description": "Daily, painless, recurrent passage of 4 or more large, unformed stools, as assigned (Benninga 2016 Rome IV G5; Rome IV is 4 or more, not Rome III's 3). 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-infant-functional-diarrhea-calculator-benninga-2016-g5-dc42456d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
