# Rome IV Infant Constipation Calculator (Benninga 2016 G7)

> Rome IV Infant Constipation Calculator (Benninga 2016 G7) 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 Rome IV criteria for functional constipation in infants (G7) based on caller-assigned clinical flags, returning a boolean result and feature count.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_infant_constipation
- 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-constipation-calculator-benninga-2016-g7-c117ba5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__f4XannOiMp4B65mhJJNA

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-constipation-calculator-benninga-2016-g7-c117ba5d
```

Example prompt: Check if this infant meets Rome IV G7 functional constipation criteria: the infant is not yet toilet trained, has had 2 or fewer defecations per week for over a month, has a history of painful bowel movements and excessive stool retention, history of large-diameter stools, and a large fecal mass was found in the rectum.

## When to prefer this

Choose this endpoint when you need to apply the Benninga 2016 Rome IV G7 criteria specifically for infants (not children or adults), and the caller has already assigned all required clinical flags from physical examination or history. Use this instead of manual scoring to ensure correct feature-count logic, particularly the conditional inclusion of toilet-trained features. Do not use for adult Rome IV FC, child H3a, or when clinical flags have not yet been assessed.

## Known failure modes

- Missing required query parameters returns a 4xx error
- Boolean parameters passed as non-boolean strings may cause validation failure
- Misclassification risk if caller assigns clinical flags incorrectly — the API does not examine the patient
- Toilet-trained-specific features are silently ignored in the feature count when toilet_trained is false
- Not applicable for adult Rome IV functional constipation or child H3a criteria — wrong criteria will be returned without warning

## How this service works

Benninga 2016 Rome IV G7. rome_iv_infant_constipation is true iff duration_at_least_1_month and features_met >= 2. features_met always counts five core flags; if toilet_trained also counts incontinence after toileting and stools that may obstruct the toilet. Caller assigns flags including large_fecal_mass_in_rectum. magent does not examine the infant. Not a diagnosis, not adult Rome IV FC, not child H3a.

## Output

Returns a boolean rome_iv_infant_constipation (true if duration_at_least_1_month AND features_met >= 2), an integer features_met count (always counting the five core flags; if toilet_trained is true also counts incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet), and component flag values as submitted.

## 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": [
      "toilet_trained",
      "two_or_fewer_defecations_per_week",
      "history_of_excessive_stool_retention",
      "history_of_painful_or_hard_bowel_movements",
      "history_of_large_diameter_stools",
      "large_fecal_mass_in_rectum",
      "incontinence_after_toileting_at_least_weekly",
      "large_diameter_stools_that_may_obstruct_toilet",
      "duration_at_least_1_month"
     ],
     "properties": {
      "toilet_trained": {
       "type": "boolean",
       "description": "Toilet-trained as assigned (Benninga 2016 Rome IV G7). When true, incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet count toward features_met. true or false as assigned by the caller. magent does not examine the infant."
      },
      "duration_at_least_1_month": {
       "type": "boolean",
       "description": "Must include 1 month of at least 2 features, as assigned (Benninga 2016 Rome IV G7). true or false as assigned by the caller. magent does not examine the infant."
      },
      "large_fecal_mass_in_rectum": {
       "type": "boolean",
       "description": "Large fecal mass in the rectum, as assigned (Benninga 2016 Rome IV G7; one of five core features). Digital rectal exam is caller-assigned. true or false as assigned by the caller. magent does not examine the infant."
      },
      "history_of_large_diameter_stools": {
       "type": "boolean",
       "description": "History of large-diameter stools, as assigned (Benninga 2016 Rome IV G7; one of five core features). true or false as assigned by the caller. magent does not examine the infant."
      },
      "two_or_fewer_defecations_per_week": {
       "type": "boolean",
       "description": "Two or fewer defecations per week, as assigned (Benninga 2016 Rome IV G7; one of five core features). true or false as assigned by the caller. magent does not examine the infant."
      },
      "history_of_excess
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-infant-constipation-calculator-benninga-2016-g7-c117ba5d/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)
