# Rome IV C4 Functional Bloating/Distension Criteria Calculator

> Rome IV C4 Functional Bloating/Distension Criteria Calculator 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 (Mearin 2016) C4 criteria for functional bloating or distension in adults, returning a boolean result based on three caller-assigned flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_bloating
- 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-c4-functional-bloating-distension-criteria-calculator-b6c8f1bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0EUqNj3-JCsMixxYV6qmA

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-c4-functional-bloating-distension-criteria-calculator-b6c8f1bc
```

Example prompt: Check if this patient meets Rome IV C4 functional bloating criteria: symptoms have been present for the last 3 months with onset at least 6 months ago (true), recurrent bloating or visible distension at least 1 day per week that predominates over other bowel symptoms (true), and they don't meet criteria for IBS, functional constipation, functional diarrhea, or PDS (true).

## When to prefer this

Use this endpoint when you need a fast, deterministic computation of Rome IV C4 functional bloating/distension criteria for adults based on pre-assigned clinical flags. Prefer this when you have already evaluated the patient for IBS, functional constipation, functional diarrhea, and PDS and need a consistent, reference-based boolean result. Not suitable for pediatric patients, IBS evaluation, or scenarios where the caller cannot pre-assign the three required criteria flags.

## Known failure modes

- Missing required query parameters — returns an error if any of the three boolean flags are omitted
- Invalid parameter types — non-boolean values cause a validation error
- Network or server error returning unexpected response
- Payment failure via x402 protocol preventing API access

## How this service works

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.

## Output

Returns a JSON object containing a rome_iv_bloating boolean field: true if all three Rome IV C4 criteria flags are met (3-month duration with 6-month onset, predominant weekly bloating/distension, and insufficient criteria for IBS/FC/functional diarrhea/PDS), false otherwise. This is a computational result, not a clinical diagnosis.

## 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": [
      "criteria_last_3_months_onset_6_months",
      "recurrent_bloating_or_distension_ge_1_day_week_predominant",
      "insufficient_criteria_for_ibs_fc_diarrhea_pds"
     ],
     "properties": {
      "criteria_last_3_months_onset_6_months": {
       "type": "boolean",
       "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."
      },
      "insufficient_criteria_for_ibs_fc_diarrhea_pds": {
       "type": "boolean",
       "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."
      },
      "recurrent_bloating_or_distension_ge_1_day_week_predominant": {
       "type": "boolean",
       "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."
      }
     }
    }
   },
   "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-c4-functional-bloating-distension-criteria-calculator-b6c8f1bc/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)
