{
  "x402Version": 2,
  "id": 38773,
  "slug": "38773",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_belching",
  "description": "Stanghellini 2016 Rome IV belching disorders (B2). rome_iv_belching is true iff bothersome (severe enough to impact usual activities) belching from the esophagus or stomach more than 3 days a week, last-3-months criteria, 6-month onset, and belching_origin supragastric (B2a) or gastric (B2b). magent does not measure impedance or take a history. Not a diagnosis, not adult aerophagia, not child H1d aerophagia, not bloating, not FD.",
  "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": [
              {
                "belching_origin": "supragastric",
                "bothersome_belching_more_than_3_days_week": true,
                "fulfilled_last_3_months": true,
                "onset_at_least_6_months": true
              },
              {
                "belching_origin": "supragastric",
                "bothersome_belching_more_than_3_days_week": true,
                "fulfilled_last_3_months": true,
                "onset_at_least_6_months": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "belching_origin": "supragastric",
                "citation": {
                  "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                  "doi": "10.1053/j.gastro.2016.02.011",
                  "id": "stanghellini-2016",
                  "pmid": "27147122",
                  "source": "Gastroenterology. 2016;150(6):1380-1392",
                  "title": "Gastroduodenal Disorders"
                },
                "criteria": [
                  {
                    "factor": "bothersome_belching_more_than_3_days_week",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_months",
                    "met": true
                  },
                  {
                    "factor": "belching_origin",
                    "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_belching",
                "formula_expression": "rome_iv_belching iff bothersome_belching_more_than_3_days_week and fulfilled_last_3_months and onset_at_least_6_months and belching_origin in (supragastric, gastric) (Stanghellini 2016 Rome IV belching disorders)",
                "rome_iv_belching": true
              },
              {
                "belching_origin": "supragastric",
                "citation": {
                  "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                  "doi": "10.1053/j.gastro.2016.02.011",
                  "id": "stanghellini-2016",
                  "pmid": "27147122",
                  "source": "Gastroenterology. 2016;150(6):1380-1392",
                  "title": "Gastroduodenal Disorders"
                },
                "criteria": [
                  {
                    "factor": "bothersome_belching_more_than_3_days_week",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_months",
                    "met": true
                  },
                  {
                    "factor": "belching_origin",
                    "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_belching",
                "formula_expression": "rome_iv_belching iff bothersome_belching_more_than_3_days_week and fulfilled_last_3_months and onset_at_least_6_months and belching_origin in (supragastric, gastric) (Stanghellini 2016 Rome IV belching disorders)",
                "rome_iv_belching": true
              }
            ],
            "path": "/api/calc/rome_iv_belching"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "belching_origin": {
                          "description": "Caller-assigned origin of excessive belching: supragastric (B2a, from the esophagus) or gastric (B2b, from the stomach) (Stanghellini 2016). Objective impedance distinguishes them in the paper; magent does not measure impedance.",
                          "enum": [
                            "supragastric",
                            "gastric"
                          ],
                          "type": "string"
                        },
                        "bothersome_belching_more_than_3_days_week": {
                          "description": "Bothersome (severe enough to impact usual activities) belching from the esophagus or stomach more than 3 days a week (Stanghellini 2016 Rome IV B2). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "fulfilled_last_3_months": {
                          "description": "Criteria fulfilled for the last 3 months, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "onset_at_least_6_months": {
                          "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "bothersome_belching_more_than_3_days_week",
                        "fulfilled_last_3_months",
                        "onset_at_least_6_months",
                        "belching_origin"
                      ],
                      "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-belching",
    "belching",
    "gi",
    "gastroduodenal",
    "rome-iv",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:51:17.896Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T07:51:17.759Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "belching_origin": "supragastric",
                  "bothersome_belching_more_than_3_days_week": true,
                  "fulfilled_last_3_months": true,
                  "onset_at_least_6_months": true
                },
                {
                  "belching_origin": "supragastric",
                  "bothersome_belching_more_than_3_days_week": true,
                  "fulfilled_last_3_months": true,
                  "onset_at_least_6_months": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "belching_origin": "supragastric",
                  "citation": {
                    "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                    "doi": "10.1053/j.gastro.2016.02.011",
                    "id": "stanghellini-2016",
                    "pmid": "27147122",
                    "source": "Gastroenterology. 2016;150(6):1380-1392",
                    "title": "Gastroduodenal Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "bothersome_belching_more_than_3_days_week",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_months",
                      "met": true
                    },
                    {
                      "factor": "belching_origin",
                      "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_belching",
                  "formula_expression": "rome_iv_belching iff bothersome_belching_more_than_3_days_week and fulfilled_last_3_months and onset_at_least_6_months and belching_origin in (supragastric, gastric) (Stanghellini 2016 Rome IV belching disorders)",
                  "rome_iv_belching": true
                },
                {
                  "belching_origin": "supragastric",
                  "citation": {
                    "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                    "doi": "10.1053/j.gastro.2016.02.011",
                    "id": "stanghellini-2016",
                    "pmid": "27147122",
                    "source": "Gastroenterology. 2016;150(6):1380-1392",
                    "title": "Gastroduodenal Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "bothersome_belching_more_than_3_days_week",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_months",
                      "met": true
                    },
                    {
                      "factor": "belching_origin",
                      "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_belching",
                  "formula_expression": "rome_iv_belching iff bothersome_belching_more_than_3_days_week and fulfilled_last_3_months and onset_at_least_6_months and belching_origin in (supragastric, gastric) (Stanghellini 2016 Rome IV belching disorders)",
                  "rome_iv_belching": true
                }
              ],
              "path": "/api/calc/rome_iv_belching"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "belching_origin": {
                            "description": "Caller-assigned origin of excessive belching: supragastric (B2a, from the esophagus) or gastric (B2b, from the stomach) (Stanghellini 2016). Objective impedance distinguishes them in the paper; magent does not measure impedance.",
                            "enum": [
                              "supragastric",
                              "gastric"
                            ],
                            "type": "string"
                          },
                          "bothersome_belching_more_than_3_days_week": {
                            "description": "Bothersome (severe enough to impact usual activities) belching from the esophagus or stomach more than 3 days a week (Stanghellini 2016 Rome IV B2). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "fulfilled_last_3_months": {
                            "description": "Criteria fulfilled for the last 3 months, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "onset_at_least_6_months": {
                            "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "bothersome_belching_more_than_3_days_week",
                          "fulfilled_last_3_months",
                          "onset_at_least_6_months",
                          "belching_origin"
                        ],
                        "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"
  }
}