# Rome IV H2a Pediatric Functional Dyspepsia Calculator

> Rome IV H2a Pediatric Functional Dyspepsia 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-15).

Evaluates whether a child meets the Rome IV H2a criteria for functional dyspepsia (Hyams 2016) based on six caller-assigned clinical flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_child_dyspepsia
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rome-iv-h2a-pediatric-functional-dyspepsia-calculator-02e96e85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vidpSD6-e86jCwgBTkMTd

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-h2a-pediatric-functional-dyspepsia-calculator-02e96e85
```

Example prompt: Check if this child meets Rome IV H2a functional dyspepsia criteria: bothersome symptoms at least 4 days per month is true, postprandial fullness is true, early satiation is false, epigastric pain or burning not associated with defecation is false, symptoms are not explained by another condition is true, and criteria have been present for at least 2 months is true.

## When to prefer this

Use this endpoint when you need to programmatically apply the Hyams 2016 Rome IV H2a pediatric functional dyspepsia criteria to a set of caller-assigned clinical flags. Prefer this over manual calculation when building clinical decision support tools, research screening pipelines, or EHR integrations for pediatric GI patients. Do not use for adult patients (use adult Rome IV FD criteria instead) or when a clinical diagnosis rather than criteria-check is needed.

## Known failure modes

- Missing required query parameters returns a validation error
- All symptom flags false results in criteria not met (none of the three required symptoms present)
- Exclusion flag false (symptoms explained by another condition) causes criteria to fail regardless of other flags
- Duration flag false causes criteria to fail regardless of symptom presence
- Misapplying adult Rome IV FD criteria — this endpoint only implements pediatric Hyams 2016 H2a

## How this service works

Hyams 2016 Rome IV H2a. True iff bothersome ≥4 days/month, symptoms_met ≥1 of 3 (postprandial fullness, early satiation, epigastric pain or burning not associated with defecation), exclusion, and 2-month duration. Item 4 is the exclusion, not a fourth symptom. PDS and EPS supportive features are copy-only. Caller assigns six flags. magent does not examine the child or parse EGD. Not a diagnosis. Not adult Rome IV FD.

## Output

Returns a boolean indicating whether the Rome IV H2a criteria for pediatric functional dyspepsia are met, along with supportive feature classifications for postprandial distress syndrome (PDS) and epigastric pain syndrome (EPS) subtypes. Does not provide a diagnosis; caller is responsible for clinical interpretation.

## 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": [
      "bothersome_at_least_4_days_per_month",
      "postprandial_fullness",
      "early_satiation",
      "epigastric_pain_or_burning_not_associated_with_defecation",
      "not_explained_by_another_condition",
      "fulfilled_at_least_2_months"
     ],
     "properties": {
      "early_satiation": {
       "type": "boolean",
       "description": "Early satiation (one of three H2a symptoms; at least one required). true or false as assigned by the caller. magent does not examine the child."
      },
      "postprandial_fullness": {
       "type": "boolean",
       "description": "Postprandial fullness (one of three H2a symptoms; at least one required). true or false as assigned by the caller. magent does not examine the child."
      },
      "fulfilled_at_least_2_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for at least 2 months prior to diagnosis, as assigned (Hyams 2016 Rome IV H2a). true or false as assigned by the caller. magent does not take a history."
      },
      "not_explained_by_another_condition": {
       "type": "boolean",
       "description": "After appropriate evaluation, the symptoms cannot be fully explained by another medical condition, as assigned (Hyams 2016 Rome IV H2a item 4, the exclusion, not a fourth symptom). true or false as assigned by the caller. magent does not examine the child or parse EGD."
      },
      "bothersome_at_least_4_days_per_month": {
       "type": "boolean",
       "description": "Bothersome symptoms at least 4 days per month, as assigned (Hyams 2016 Rome IV H2a). true or false as assigned by the caller. magent does not examine the child."
      },
      "epigastric_pain_or_burning_not_associated_with_defecation": {
       "type": "boolean",
       "description": "Epigastric pain or burning not associated with defecation (one of three H2a symptoms; at least one required). true or false as assigned by the ca
… (truncated)
```

## More

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