{
  "x402Version": 2,
  "id": 38772,
  "slug": "38772",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_bloating",
  "description": "Mearin 2016 Rome IV C4 bloating/distension. rome_iv_bloating is true iff last-3-months criteria with 6-month onset, recurrent bloating or distension ≥1 day/week that predominates, and insufficient criteria for IBS, functional constipation, functional diarrhea, or PDS. Caller assigns three flags. magent does not examine the patient. Not a diagnosis. Adult C4 only. Not child, not IBS, not functional constipation, not functional diarrhea, not PDS or functional dyspepsia.",
  "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": [
              {
                "criteria_last_3_months_onset_6_months": true,
                "insufficient_criteria_for_ibs_fc_diarrhea_pds": true,
                "recurrent_bloating_or_distension_ge_1_day_week_predominant": true
              },
              {
                "criteria_last_3_months_onset_6_months": true,
                "insufficient_criteria_for_ibs_fc_diarrhea_pds": true,
                "recurrent_bloating_or_distension_ge_1_day_week_predominant": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Mearin F, Lacy BE, Chang L, Chey WD, Lembo AJ, Simren M, Spiller RC",
                  "doi": "10.1053/j.gastro.2016.02.031",
                  "id": "mearin-2016",
                  "pmid": "27144627",
                  "source": "Gastroenterology. 2016;150(6):1393-1407",
                  "title": "Bowel Disorders"
                },
                "criteria": [
                  {
                    "factor": "criteria_last_3_months_onset_6_months",
                    "met": true
                  },
                  {
                    "factor": "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                    "met": true
                  },
                  {
                    "factor": "insufficient_criteria_for_ibs_fc_diarrhea_pds",
                    "met": true
                  }
                ],
                "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.",
                "formula": "rome_iv_bloating",
                "formula_expression": "rome_iv_bloating iff criteria_last_3_months_onset_6_months and recurrent_bloating_or_distension_ge_1_day_week_predominant and insufficient_criteria_for_ibs_fc_diarrhea_pds (Mearin 2016 Rome IV C4 functional abdominal bloating/distension)",
                "rome_iv_bloating": true
              },
              {
                "citation": {
                  "authors": "Mearin F, Lacy BE, Chang L, Chey WD, Lembo AJ, Simren M, Spiller RC",
                  "doi": "10.1053/j.gastro.2016.02.031",
                  "id": "mearin-2016",
                  "pmid": "27144627",
                  "source": "Gastroenterology. 2016;150(6):1393-1407",
                  "title": "Bowel Disorders"
                },
                "criteria": [
                  {
                    "factor": "criteria_last_3_months_onset_6_months",
                    "met": true
                  },
                  {
                    "factor": "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                    "met": true
                  },
                  {
                    "factor": "insufficient_criteria_for_ibs_fc_diarrhea_pds",
                    "met": true
                  }
                ],
                "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.",
                "formula": "rome_iv_bloating",
                "formula_expression": "rome_iv_bloating iff criteria_last_3_months_onset_6_months and recurrent_bloating_or_distension_ge_1_day_week_predominant and insufficient_criteria_for_ibs_fc_diarrhea_pds (Mearin 2016 Rome IV C4 functional abdominal bloating/distension)",
                "rome_iv_bloating": true
              }
            ],
            "path": "/api/calc/rome_iv_bloating"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "criteria_last_3_months_onset_6_months": {
                          "description": "Criteria fulfilled for the last 3 months with symptom onset at least 6 months prior to diagnosis, as assigned (Mearin 2016 C4). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "insufficient_criteria_for_ibs_fc_diarrhea_pds": {
                          "description": "Insufficient criteria for IBS, functional constipation, functional diarrhea, or postprandial distress syndrome, as assigned by the caller (Mearin 2016 C4). true or false. magent does not apply those other boxes.",
                          "type": "boolean"
                        },
                        "recurrent_bloating_or_distension_ge_1_day_week_predominant": {
                          "description": "Recurrent bloating or visible distension, on average at least 1 day per week, that predominates over other bowel symptoms (Mearin 2016 C4). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "criteria_last_3_months_onset_6_months",
                        "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                        "insufficient_criteria_for_ibs_fc_diarrhea_pds"
                      ],
                      "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-bloating",
    "functional-bloating",
    "gi",
    "distension",
    "rome-iv",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:51:18.781Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T07:51:18.66Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "criteria_last_3_months_onset_6_months": true,
                  "insufficient_criteria_for_ibs_fc_diarrhea_pds": true,
                  "recurrent_bloating_or_distension_ge_1_day_week_predominant": true
                },
                {
                  "criteria_last_3_months_onset_6_months": true,
                  "insufficient_criteria_for_ibs_fc_diarrhea_pds": true,
                  "recurrent_bloating_or_distension_ge_1_day_week_predominant": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Mearin F, Lacy BE, Chang L, Chey WD, Lembo AJ, Simren M, Spiller RC",
                    "doi": "10.1053/j.gastro.2016.02.031",
                    "id": "mearin-2016",
                    "pmid": "27144627",
                    "source": "Gastroenterology. 2016;150(6):1393-1407",
                    "title": "Bowel Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "criteria_last_3_months_onset_6_months",
                      "met": true
                    },
                    {
                      "factor": "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                      "met": true
                    },
                    {
                      "factor": "insufficient_criteria_for_ibs_fc_diarrhea_pds",
                      "met": true
                    }
                  ],
                  "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.",
                  "formula": "rome_iv_bloating",
                  "formula_expression": "rome_iv_bloating iff criteria_last_3_months_onset_6_months and recurrent_bloating_or_distension_ge_1_day_week_predominant and insufficient_criteria_for_ibs_fc_diarrhea_pds (Mearin 2016 Rome IV C4 functional abdominal bloating/distension)",
                  "rome_iv_bloating": true
                },
                {
                  "citation": {
                    "authors": "Mearin F, Lacy BE, Chang L, Chey WD, Lembo AJ, Simren M, Spiller RC",
                    "doi": "10.1053/j.gastro.2016.02.031",
                    "id": "mearin-2016",
                    "pmid": "27144627",
                    "source": "Gastroenterology. 2016;150(6):1393-1407",
                    "title": "Bowel Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "criteria_last_3_months_onset_6_months",
                      "met": true
                    },
                    {
                      "factor": "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                      "met": true
                    },
                    {
                      "factor": "insufficient_criteria_for_ibs_fc_diarrhea_pds",
                      "met": true
                    }
                  ],
                  "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.",
                  "formula": "rome_iv_bloating",
                  "formula_expression": "rome_iv_bloating iff criteria_last_3_months_onset_6_months and recurrent_bloating_or_distension_ge_1_day_week_predominant and insufficient_criteria_for_ibs_fc_diarrhea_pds (Mearin 2016 Rome IV C4 functional abdominal bloating/distension)",
                  "rome_iv_bloating": true
                }
              ],
              "path": "/api/calc/rome_iv_bloating"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "criteria_last_3_months_onset_6_months": {
                            "description": "Criteria fulfilled for the last 3 months with symptom onset at least 6 months prior to diagnosis, as assigned (Mearin 2016 C4). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "insufficient_criteria_for_ibs_fc_diarrhea_pds": {
                            "description": "Insufficient criteria for IBS, functional constipation, functional diarrhea, or postprandial distress syndrome, as assigned by the caller (Mearin 2016 C4). true or false. magent does not apply those other boxes.",
                            "type": "boolean"
                          },
                          "recurrent_bloating_or_distension_ge_1_day_week_predominant": {
                            "description": "Recurrent bloating or visible distension, on average at least 1 day per week, that predominates over other bowel symptoms (Mearin 2016 C4). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "criteria_last_3_months_onset_6_months",
                          "recurrent_bloating_or_distension_ge_1_day_week_predominant",
                          "insufficient_criteria_for_ibs_fc_diarrhea_pds"
                        ],
                        "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"
  }
}