{
  "x402Version": 2,
  "id": 39347,
  "slug": "39347",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_infant_constipation",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "duration_at_least_1_month": true,
                "history_of_excessive_stool_retention": false,
                "history_of_large_diameter_stools": false,
                "history_of_painful_or_hard_bowel_movements": true,
                "incontinence_after_toileting_at_least_weekly": false,
                "large_diameter_stools_that_may_obstruct_toilet": false,
                "large_fecal_mass_in_rectum": false,
                "toilet_trained": false,
                "two_or_fewer_defecations_per_week": true
              },
              {
                "duration_at_least_1_month": true,
                "history_of_excessive_stool_retention": false,
                "history_of_large_diameter_stools": false,
                "history_of_painful_or_hard_bowel_movements": true,
                "incontinence_after_toileting_at_least_weekly": false,
                "large_diameter_stools_that_may_obstruct_toilet": false,
                "large_fecal_mass_in_rectum": false,
                "toilet_trained": false,
                "two_or_fewer_defecations_per_week": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Benninga MA, Faure C, Hyman PE, St James Roberts I, Schechter NL, Nurko S",
                  "doi": "10.1053/j.gastro.2016.02.016",
                  "id": "benninga-2016",
                  "pmid": "27144631",
                  "source": "Gastroenterology. 2016;150(6):1443-1455",
                  "title": "Childhood Functional Gastrointestinal Disorders: Neonate/Toddler"
                },
                "criteria": [
                  {
                    "factor": "toilet_trained",
                    "met": false
                  },
                  {
                    "factor": "two_or_fewer_defecations_per_week",
                    "met": true
                  },
                  {
                    "factor": "history_of_excessive_stool_retention",
                    "met": false
                  },
                  {
                    "factor": "history_of_painful_or_hard_bowel_movements",
                    "met": true
                  },
                  {
                    "factor": "history_of_large_diameter_stools",
                    "met": false
                  },
                  {
                    "factor": "large_fecal_mass_in_rectum",
                    "met": false
                  },
                  {
                    "factor": "incontinence_after_toileting_at_least_weekly",
                    "met": false
                  },
                  {
                    "factor": "large_diameter_stools_that_may_obstruct_toilet",
                    "met": false
                  },
                  {
                    "factor": "duration_at_least_1_month",
                    "met": true
                  },
                  {
                    "factor": "features_ge_2",
                    "met": true,
                    "value": 2
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "features_met": 2,
                "formula": "rome_iv_infant_constipation",
                "formula_expression": "rome_iv_infant_constipation iff duration_at_least_1_month and features_met >= 2; features_met always counts two_or_fewer_defecations_per_week, history_of_excessive_stool_retention, history_of_painful_or_hard_bowel_movements, history_of_large_diameter_stools, and large_fecal_mass_in_rectum; if toilet_trained also counts incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet (Benninga 2016 Rome IV G7 Functional Constipation)",
                "rome_iv_infant_constipation": true
              },
              {
                "citation": {
                  "authors": "Benninga MA, Faure C, Hyman PE, St James Roberts I, Schechter NL, Nurko S",
                  "doi": "10.1053/j.gastro.2016.02.016",
                  "id": "benninga-2016",
                  "pmid": "27144631",
                  "source": "Gastroenterology. 2016;150(6):1443-1455",
                  "title": "Childhood Functional Gastrointestinal Disorders: Neonate/Toddler"
                },
                "criteria": [
                  {
                    "factor": "toilet_trained",
                    "met": false
                  },
                  {
                    "factor": "two_or_fewer_defecations_per_week",
                    "met": true
                  },
                  {
                    "factor": "history_of_excessive_stool_retention",
                    "met": false
                  },
                  {
                    "factor": "history_of_painful_or_hard_bowel_movements",
                    "met": true
                  },
                  {
                    "factor": "history_of_large_diameter_stools",
                    "met": false
                  },
                  {
                    "factor": "large_fecal_mass_in_rectum",
                    "met": false
                  },
                  {
                    "factor": "incontinence_after_toileting_at_least_weekly",
                    "met": false
                  },
                  {
                    "factor": "large_diameter_stools_that_may_obstruct_toilet",
                    "met": false
                  },
                  {
                    "factor": "duration_at_least_1_month",
                    "met": true
                  },
                  {
                    "factor": "features_ge_2",
                    "met": true,
                    "value": 2
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "features_met": 2,
                "formula": "rome_iv_infant_constipation",
                "formula_expression": "rome_iv_infant_constipation iff duration_at_least_1_month and features_met >= 2; features_met always counts two_or_fewer_defecations_per_week, history_of_excessive_stool_retention, history_of_painful_or_hard_bowel_movements, history_of_large_diameter_stools, and large_fecal_mass_in_rectum; if toilet_trained also counts incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet (Benninga 2016 Rome IV G7 Functional Constipation)",
                "rome_iv_infant_constipation": true
              }
            ],
            "path": "/api/calc/rome_iv_infant_constipation"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "duration_at_least_1_month": {
                          "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.",
                          "type": "boolean"
                        },
                        "history_of_excessive_stool_retention": {
                          "description": "History of excessive stool retention, 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.",
                          "type": "boolean"
                        },
                        "history_of_large_diameter_stools": {
                          "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.",
                          "type": "boolean"
                        },
                        "history_of_painful_or_hard_bowel_movements": {
                          "description": "History of painful or hard bowel movements, 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.",
                          "type": "boolean"
                        },
                        "incontinence_after_toileting_at_least_weekly": {
                          "description": "At least one episode per week of incontinence after the acquisition of toileting skills, as assigned (Benninga 2016 Rome IV G7 extra; counted only when toilet_trained is true). true or false as assigned by the caller. magent does not examine the infant.",
                          "type": "boolean"
                        },
                        "large_diameter_stools_that_may_obstruct_toilet": {
                          "description": "History of large-diameter stools that may obstruct the toilet, as assigned (Benninga 2016 Rome IV G7 extra; counted only when toilet_trained is true). true or false as assigned by the caller. magent does not examine the infant.",
                          "type": "boolean"
                        },
                        "large_fecal_mass_in_rectum": {
                          "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.",
                          "type": "boolean"
                        },
                        "toilet_trained": {
                          "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.",
                          "type": "boolean"
                        },
                        "two_or_fewer_defecations_per_week": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "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"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "rome-iv-infant-constipation",
    "infant-constipation",
    "gi",
    "rome-iv",
    "neonate-toddler",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T13:26:45.545Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T13:26:45.438Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "duration_at_least_1_month": true,
                  "history_of_excessive_stool_retention": false,
                  "history_of_large_diameter_stools": false,
                  "history_of_painful_or_hard_bowel_movements": true,
                  "incontinence_after_toileting_at_least_weekly": false,
                  "large_diameter_stools_that_may_obstruct_toilet": false,
                  "large_fecal_mass_in_rectum": false,
                  "toilet_trained": false,
                  "two_or_fewer_defecations_per_week": true
                },
                {
                  "duration_at_least_1_month": true,
                  "history_of_excessive_stool_retention": false,
                  "history_of_large_diameter_stools": false,
                  "history_of_painful_or_hard_bowel_movements": true,
                  "incontinence_after_toileting_at_least_weekly": false,
                  "large_diameter_stools_that_may_obstruct_toilet": false,
                  "large_fecal_mass_in_rectum": false,
                  "toilet_trained": false,
                  "two_or_fewer_defecations_per_week": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Benninga MA, Faure C, Hyman PE, St James Roberts I, Schechter NL, Nurko S",
                    "doi": "10.1053/j.gastro.2016.02.016",
                    "id": "benninga-2016",
                    "pmid": "27144631",
                    "source": "Gastroenterology. 2016;150(6):1443-1455",
                    "title": "Childhood Functional Gastrointestinal Disorders: Neonate/Toddler"
                  },
                  "criteria": [
                    {
                      "factor": "toilet_trained",
                      "met": false
                    },
                    {
                      "factor": "two_or_fewer_defecations_per_week",
                      "met": true
                    },
                    {
                      "factor": "history_of_excessive_stool_retention",
                      "met": false
                    },
                    {
                      "factor": "history_of_painful_or_hard_bowel_movements",
                      "met": true
                    },
                    {
                      "factor": "history_of_large_diameter_stools",
                      "met": false
                    },
                    {
                      "factor": "large_fecal_mass_in_rectum",
                      "met": false
                    },
                    {
                      "factor": "incontinence_after_toileting_at_least_weekly",
                      "met": false
                    },
                    {
                      "factor": "large_diameter_stools_that_may_obstruct_toilet",
                      "met": false
                    },
                    {
                      "factor": "duration_at_least_1_month",
                      "met": true
                    },
                    {
                      "factor": "features_ge_2",
                      "met": true,
                      "value": 2
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "features_met": 2,
                  "formula": "rome_iv_infant_constipation",
                  "formula_expression": "rome_iv_infant_constipation iff duration_at_least_1_month and features_met >= 2; features_met always counts two_or_fewer_defecations_per_week, history_of_excessive_stool_retention, history_of_painful_or_hard_bowel_movements, history_of_large_diameter_stools, and large_fecal_mass_in_rectum; if toilet_trained also counts incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet (Benninga 2016 Rome IV G7 Functional Constipation)",
                  "rome_iv_infant_constipation": true
                },
                {
                  "citation": {
                    "authors": "Benninga MA, Faure C, Hyman PE, St James Roberts I, Schechter NL, Nurko S",
                    "doi": "10.1053/j.gastro.2016.02.016",
                    "id": "benninga-2016",
                    "pmid": "27144631",
                    "source": "Gastroenterology. 2016;150(6):1443-1455",
                    "title": "Childhood Functional Gastrointestinal Disorders: Neonate/Toddler"
                  },
                  "criteria": [
                    {
                      "factor": "toilet_trained",
                      "met": false
                    },
                    {
                      "factor": "two_or_fewer_defecations_per_week",
                      "met": true
                    },
                    {
                      "factor": "history_of_excessive_stool_retention",
                      "met": false
                    },
                    {
                      "factor": "history_of_painful_or_hard_bowel_movements",
                      "met": true
                    },
                    {
                      "factor": "history_of_large_diameter_stools",
                      "met": false
                    },
                    {
                      "factor": "large_fecal_mass_in_rectum",
                      "met": false
                    },
                    {
                      "factor": "incontinence_after_toileting_at_least_weekly",
                      "met": false
                    },
                    {
                      "factor": "large_diameter_stools_that_may_obstruct_toilet",
                      "met": false
                    },
                    {
                      "factor": "duration_at_least_1_month",
                      "met": true
                    },
                    {
                      "factor": "features_ge_2",
                      "met": true,
                      "value": 2
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "features_met": 2,
                  "formula": "rome_iv_infant_constipation",
                  "formula_expression": "rome_iv_infant_constipation iff duration_at_least_1_month and features_met >= 2; features_met always counts two_or_fewer_defecations_per_week, history_of_excessive_stool_retention, history_of_painful_or_hard_bowel_movements, history_of_large_diameter_stools, and large_fecal_mass_in_rectum; if toilet_trained also counts incontinence_after_toileting_at_least_weekly and large_diameter_stools_that_may_obstruct_toilet (Benninga 2016 Rome IV G7 Functional Constipation)",
                  "rome_iv_infant_constipation": true
                }
              ],
              "path": "/api/calc/rome_iv_infant_constipation"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "duration_at_least_1_month": {
                            "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.",
                            "type": "boolean"
                          },
                          "history_of_excessive_stool_retention": {
                            "description": "History of excessive stool retention, 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.",
                            "type": "boolean"
                          },
                          "history_of_large_diameter_stools": {
                            "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.",
                            "type": "boolean"
                          },
                          "history_of_painful_or_hard_bowel_movements": {
                            "description": "History of painful or hard bowel movements, 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.",
                            "type": "boolean"
                          },
                          "incontinence_after_toileting_at_least_weekly": {
                            "description": "At least one episode per week of incontinence after the acquisition of toileting skills, as assigned (Benninga 2016 Rome IV G7 extra; counted only when toilet_trained is true). true or false as assigned by the caller. magent does not examine the infant.",
                            "type": "boolean"
                          },
                          "large_diameter_stools_that_may_obstruct_toilet": {
                            "description": "History of large-diameter stools that may obstruct the toilet, as assigned (Benninga 2016 Rome IV G7 extra; counted only when toilet_trained is true). true or false as assigned by the caller. magent does not examine the infant.",
                            "type": "boolean"
                          },
                          "large_fecal_mass_in_rectum": {
                            "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.",
                            "type": "boolean"
                          },
                          "toilet_trained": {
                            "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.",
                            "type": "boolean"
                          },
                          "two_or_fewer_defecations_per_week": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "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"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}