# Rome IV Child FAP-NOS Calculator (Hyams 2016 H2d)

> Rome IV Child FAP-NOS Calculator (Hyams 2016 H2d) 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 H2d criteria for Functional Abdominal Pain – Not Otherwise Specified (FAP-NOS) based on five caller-assigned boolean flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_child_fap_nos
- 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-child-fap-nos-calculator-hyams-2016-h2d-c34262ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vKqr1flQLuoVEeP-iX14g

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-child-fap-nos-calculator-hyams-2016-h2d-c34262ab
```

Example prompt: Check whether this child meets Rome IV H2d FAP-NOS criteria: abdominal pain is episodic and not tied to physiologic events (true), pain occurs at least 4 times per month (true), insufficient criteria for IBS, functional dyspepsia, or abdominal migraine (true), pain is not explained by another condition (true), and these criteria have been fulfilled for at least 2 months (true).

## When to prefer this

Use this endpoint when you have already determined (via separate clinical evaluation or other tools) each of the five Rome IV H2d boolean criteria for a pediatric patient and need to apply the FAP-NOS classification logic mechanically. This is not for adult CAPS/FAPS, is not a diagnostic substitute, and does not re-evaluate IBS, FD, or abdominal migraine criteria — those must be pre-assessed by the caller.

## Known failure modes

- Missing any of the five required boolean query parameters returns an error
- Passing non-boolean values for flags causes a validation error
- Endpoint does not validate clinical plausibility — incorrect caller-assigned flags will yield incorrect results
- Network or payment (x402) failures may prevent a response

## How this service works

Hyams 2016 Rome IV H2d child FAP-NOS. rome_iv_child_fap_nos is true iff episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events, pain_at_least_4_times_per_month, insufficient_criteria_for_ibs_fd_or_abdominal_migraine, not_explained_by_another_condition, and fulfilled_at_least_2_months. Caller assigns five flags including the IBS/FD/abdominal-migraine residual. magent does not re-run those tools. Not a diagnosis, not adult CAPS, not FAPS (dropped in Rome IV).

## Output

Returns a boolean rome_iv_child_fap_nos indicating whether all five Rome IV H2d criteria are simultaneously satisfied, yielding true only when every required flag is true. The endpoint performs no clinical assessment itself; it applies the Hyams 2016 logic mechanically to caller-supplied flags.

## 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": [
      "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events",
      "pain_at_least_4_times_per_month",
      "insufficient_criteria_for_ibs_fd_or_abdominal_migraine",
      "not_explained_by_another_condition",
      "fulfilled_at_least_2_months"
     ],
     "properties": {
      "fulfilled_at_least_2_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for at least 2 months, as assigned (Hyams 2016 Rome IV H2d). true or false as assigned by the caller. magent does not take a history."
      },
      "pain_at_least_4_times_per_month": {
       "type": "boolean",
       "description": "Abdominal pain at least 4 times per month, as assigned (Hyams 2016 Rome IV H2d). 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 abdominal pain cannot be fully explained by another medical condition, as assigned (Hyams 2016 Rome IV H2d). true or false as assigned by the caller. magent does not examine the patient."
      },
      "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": {
       "type": "boolean",
       "description": "Insufficient criteria for IBS, functional dyspepsia, or abdominal migraine, as assigned (Hyams 2016 Rome IV H2d). Residual flag: magent does not re-run those tools. true or false as assigned by the caller."
      },
      "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": {
       "type": "boolean",
       "description": "Episodic or continuous abdominal pain that does not occur solely during physiologic events (eating, menses), as assigned (Hyams 2016 Rome IV H2d). true or false as assigned by the caller. magent does not examine the patient."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-child-fap-nos-calculator-hyams-2016-h2d-c34262ab/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)
