# Rome IV Functional Dyspepsia (FD) Criteria Calculator

> Rome IV Functional Dyspepsia (FD) 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 six caller-assigned clinical flags to determine whether a patient meets Rome IV B1 criteria for Functional Dyspepsia (FD), including PDS and EPS subtypes

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_fd
- 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-functional-dyspepsia-fd-criteria-calculator-b2864038
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N4j9SvRHlFEC27UstbamJ

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-functional-dyspepsia-fd-criteria-calculator-b2864038
```

Example prompt: Check Rome IV functional dyspepsia criteria for a patient: symptoms have been present for the last 3 months with onset at least 6 months ago, no structural disease was found, the patient has bothersome postprandial fullness 3+ days per week, no early satiation, no epigastric pain, and no epigastric burning — does this patient meet FD criteria and which subtype?

## When to prefer this

Use this endpoint when you need a fast, rule-based Rome IV B1 Functional Dyspepsia classification from pre-assessed clinical flags. It implements the exact Stanghellini 2016 criteria and distinguishes PDS from EPS subtypes, which Rome III did not. Prefer this over manual lookup when embedding clinical scoring into a workflow, EHR pipeline, or research screening tool. Not suitable for diagnosing patients directly — a clinician must assign the input flags.

## Known failure modes

- Missing any of the six required boolean query parameters returns a validation error
- Non-boolean values for any flag result in a schema error
- Network or server errors return standard HTTP error codes
- Caller misassignment of flags will produce clinically incorrect results — the API trusts caller input without validation

## How this service works

Stanghellini 2016 Rome IV B1 FD. rome_iv_fd is true iff last-3-months criteria with 6-month onset, no structural disease likely to explain symptoms, and PDS (B1a) and/or EPS (B1b). pds iff fullness and/or early satiation >=3 days/week. eps iff epigastric pain and/or burning >=1 day/week. Overlap allowed. Caller assigns six flags. magent does not examine the patient. Not a diagnosis, not Rome III dyspepsia, not Rome IV IBS.

## Output

Returns boolean flags indicating whether the patient meets overall Rome IV FD criteria (rome_iv_fd), and whether they qualify for the PDS subtype (postprandial distress syndrome based on fullness and/or early satiation ≥3 days/week) and/or EPS subtype (epigastric pain syndrome based on pain and/or burning ≥1 day/week). Overlap between subtypes is permitted per Rome IV.

## 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",
      "no_structural_disease",
      "bothersome_postprandial_fullness_ge_3_days_week",
      "bothersome_early_satiation_ge_3_days_week",
      "bothersome_epigastric_pain_ge_1_day_week",
      "bothersome_epigastric_burning_ge_1_day_week"
     ],
     "properties": {
      "no_structural_disease": {
       "type": "boolean",
       "description": "No evidence of structural disease (including at upper endoscopy) likely to explain the symptoms, as assigned by the caller (Stanghellini 2016 B1). true or false. magent does not examine the patient or interpret endoscopy."
      },
      "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 (Stanghellini 2016 B1). true or false as assigned by the caller. magent does not take a history."
      },
      "bothersome_epigastric_pain_ge_1_day_week": {
       "type": "boolean",
       "description": "Bothersome epigastric pain at least 1 day per week (B1b EPS item; one or both EPS items required for EPS). true or false as assigned by the caller. magent does not examine the patient."
      },
      "bothersome_early_satiation_ge_3_days_week": {
       "type": "boolean",
       "description": "Bothersome early satiation at least 3 days per week (B1a PDS item; one or both PDS items required for PDS). true or false as assigned by the caller. magent does not examine the patient."
      },
      "bothersome_epigastric_burning_ge_1_day_week": {
       "type": "boolean",
       "description": "Bothersome epigastric burning at least 1 day per week (B1b EPS item; one or both EPS items required for EPS). true or false as assigned by the caller. magent does not examine the patient."
      },
      "bothersome_postprandial_fullness_ge_3_days_week": {
       "type": "boolean",
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-functional-dyspepsia-fd-criteria-calculator-b2864038/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)
