{
  "x402Version": 2,
  "id": 38846,
  "slug": "38846",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_child_fap_nos",
  "description": "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).",
  "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": [
              {
                "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": true,
                "fulfilled_at_least_2_months": true,
                "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": true,
                "not_explained_by_another_condition": true,
                "pain_at_least_4_times_per_month": true
              },
              {
                "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": true,
                "fulfilled_at_least_2_months": true,
                "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": true,
                "not_explained_by_another_condition": true,
                "pain_at_least_4_times_per_month": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Hyams JS, Di Lorenzo C, Saps M, Shulman RJ, Staiano A, van Tilburg M",
                  "doi": "10.1053/j.gastro.2016.02.015",
                  "id": "hyams-2016",
                  "pmid": "27144632",
                  "source": "Gastroenterology. 2016;150(6):1456-1468",
                  "title": "Childhood Functional Gastrointestinal Disorders: Child/Adolescent"
                },
                "criteria": [
                  {
                    "factor": "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events",
                    "met": true
                  },
                  {
                    "factor": "pain_at_least_4_times_per_month",
                    "met": true
                  },
                  {
                    "factor": "insufficient_criteria_for_ibs_fd_or_abdominal_migraine",
                    "met": true
                  },
                  {
                    "factor": "not_explained_by_another_condition",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_at_least_2_months",
                    "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_child_fap_nos",
                "formula_expression": "rome_iv_child_fap_nos iff episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events and pain_at_least_4_times_per_month and insufficient_criteria_for_ibs_fd_or_abdominal_migraine and not_explained_by_another_condition and fulfilled_at_least_2_months (Hyams 2016 Rome IV H2d Functional Abdominal Pain NOS)",
                "rome_iv_child_fap_nos": true
              },
              {
                "citation": {
                  "authors": "Hyams JS, Di Lorenzo C, Saps M, Shulman RJ, Staiano A, van Tilburg M",
                  "doi": "10.1053/j.gastro.2016.02.015",
                  "id": "hyams-2016",
                  "pmid": "27144632",
                  "source": "Gastroenterology. 2016;150(6):1456-1468",
                  "title": "Childhood Functional Gastrointestinal Disorders: Child/Adolescent"
                },
                "criteria": [
                  {
                    "factor": "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events",
                    "met": true
                  },
                  {
                    "factor": "pain_at_least_4_times_per_month",
                    "met": true
                  },
                  {
                    "factor": "insufficient_criteria_for_ibs_fd_or_abdominal_migraine",
                    "met": true
                  },
                  {
                    "factor": "not_explained_by_another_condition",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_at_least_2_months",
                    "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_child_fap_nos",
                "formula_expression": "rome_iv_child_fap_nos iff episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events and pain_at_least_4_times_per_month and insufficient_criteria_for_ibs_fd_or_abdominal_migraine and not_explained_by_another_condition and fulfilled_at_least_2_months (Hyams 2016 Rome IV H2d Functional Abdominal Pain NOS)",
                "rome_iv_child_fap_nos": true
              }
            ],
            "path": "/api/calc/rome_iv_child_fap_nos"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": {
                          "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.",
                          "type": "boolean"
                        },
                        "fulfilled_at_least_2_months": {
                          "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.",
                          "type": "boolean"
                        },
                        "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": {
                          "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.",
                          "type": "boolean"
                        },
                        "not_explained_by_another_condition": {
                          "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.",
                          "type": "boolean"
                        },
                        "pain_at_least_4_times_per_month": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "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"
                      ],
                      "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-child-fap-nos",
    "child-fap-nos",
    "gi",
    "rome-iv",
    "h2d",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T13:07:16.279Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T13:07:16.168Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": true,
                  "fulfilled_at_least_2_months": true,
                  "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": true,
                  "not_explained_by_another_condition": true,
                  "pain_at_least_4_times_per_month": true
                },
                {
                  "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": true,
                  "fulfilled_at_least_2_months": true,
                  "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": true,
                  "not_explained_by_another_condition": true,
                  "pain_at_least_4_times_per_month": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Hyams JS, Di Lorenzo C, Saps M, Shulman RJ, Staiano A, van Tilburg M",
                    "doi": "10.1053/j.gastro.2016.02.015",
                    "id": "hyams-2016",
                    "pmid": "27144632",
                    "source": "Gastroenterology. 2016;150(6):1456-1468",
                    "title": "Childhood Functional Gastrointestinal Disorders: Child/Adolescent"
                  },
                  "criteria": [
                    {
                      "factor": "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events",
                      "met": true
                    },
                    {
                      "factor": "pain_at_least_4_times_per_month",
                      "met": true
                    },
                    {
                      "factor": "insufficient_criteria_for_ibs_fd_or_abdominal_migraine",
                      "met": true
                    },
                    {
                      "factor": "not_explained_by_another_condition",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_at_least_2_months",
                      "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_child_fap_nos",
                  "formula_expression": "rome_iv_child_fap_nos iff episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events and pain_at_least_4_times_per_month and insufficient_criteria_for_ibs_fd_or_abdominal_migraine and not_explained_by_another_condition and fulfilled_at_least_2_months (Hyams 2016 Rome IV H2d Functional Abdominal Pain NOS)",
                  "rome_iv_child_fap_nos": true
                },
                {
                  "citation": {
                    "authors": "Hyams JS, Di Lorenzo C, Saps M, Shulman RJ, Staiano A, van Tilburg M",
                    "doi": "10.1053/j.gastro.2016.02.015",
                    "id": "hyams-2016",
                    "pmid": "27144632",
                    "source": "Gastroenterology. 2016;150(6):1456-1468",
                    "title": "Childhood Functional Gastrointestinal Disorders: Child/Adolescent"
                  },
                  "criteria": [
                    {
                      "factor": "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events",
                      "met": true
                    },
                    {
                      "factor": "pain_at_least_4_times_per_month",
                      "met": true
                    },
                    {
                      "factor": "insufficient_criteria_for_ibs_fd_or_abdominal_migraine",
                      "met": true
                    },
                    {
                      "factor": "not_explained_by_another_condition",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_at_least_2_months",
                      "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_child_fap_nos",
                  "formula_expression": "rome_iv_child_fap_nos iff episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events and pain_at_least_4_times_per_month and insufficient_criteria_for_ibs_fd_or_abdominal_migraine and not_explained_by_another_condition and fulfilled_at_least_2_months (Hyams 2016 Rome IV H2d Functional Abdominal Pain NOS)",
                  "rome_iv_child_fap_nos": true
                }
              ],
              "path": "/api/calc/rome_iv_child_fap_nos"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "episodic_or_continuous_abdominal_pain_not_solely_during_physiologic_events": {
                            "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.",
                            "type": "boolean"
                          },
                          "fulfilled_at_least_2_months": {
                            "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.",
                            "type": "boolean"
                          },
                          "insufficient_criteria_for_ibs_fd_or_abdominal_migraine": {
                            "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.",
                            "type": "boolean"
                          },
                          "not_explained_by_another_condition": {
                            "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.",
                            "type": "boolean"
                          },
                          "pain_at_least_4_times_per_month": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "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"
                        ],
                        "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"
  }
}