{
  "x402Version": 2,
  "id": 38850,
  "slug": "38850",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_caps",
  "description": "Keefer 2016 Rome IV CAPS (formerly FAPS). rome_iv_caps is true iff continuous or nearly continuous abdominal pain, no or only occasional relationship with eating, defecation, or menses, pain limits daily functioning, pain is not feigned, not explained by another GI or medical condition, last-3-months criteria, and 6-month onset. Psychosocial comorbidity is copy-only. magent does not examine or judge feigning beyond the caller flag. Not a diagnosis, not IBS, not narcotic bowel syndrome.",
  "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": [
              {
                "continuous_or_nearly_continuous_abdominal_pain": true,
                "fulfilled_last_3_months": true,
                "no_or_only_occasional_relationship_with_physiological_events": true,
                "not_explained_by_another_gi_or_medical_condition": true,
                "onset_at_least_6_months": true,
                "pain_limits_daily_functioning": true,
                "pain_not_feigned": true
              },
              {
                "continuous_or_nearly_continuous_abdominal_pain": true,
                "fulfilled_last_3_months": true,
                "no_or_only_occasional_relationship_with_physiological_events": true,
                "not_explained_by_another_gi_or_medical_condition": true,
                "onset_at_least_6_months": true,
                "pain_limits_daily_functioning": true,
                "pain_not_feigned": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
                  "doi": "10.1053/j.gastro.2016.02.034",
                  "id": "keefer-2016",
                  "pmid": "27144628",
                  "source": "Gastroenterology. 2016;150(6):1408-1419",
                  "title": "Centrally Mediated Disorders of Gastrointestinal Pain"
                },
                "criteria": [
                  {
                    "factor": "continuous_or_nearly_continuous_abdominal_pain",
                    "met": true
                  },
                  {
                    "factor": "no_or_only_occasional_relationship_with_physiological_events",
                    "met": true
                  },
                  {
                    "factor": "pain_limits_daily_functioning",
                    "met": true
                  },
                  {
                    "factor": "pain_not_feigned",
                    "met": true
                  },
                  {
                    "factor": "not_explained_by_another_gi_or_medical_condition",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_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_caps",
                "formula_expression": "rome_iv_caps iff continuous_or_nearly_continuous_abdominal_pain and no_or_only_occasional_relationship_with_physiological_events and pain_limits_daily_functioning and pain_not_feigned and not_explained_by_another_gi_or_medical_condition and fulfilled_last_3_months and onset_at_least_6_months (Keefer 2016 Rome IV CAPS / D1)",
                "rome_iv_caps": true
              },
              {
                "citation": {
                  "authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
                  "doi": "10.1053/j.gastro.2016.02.034",
                  "id": "keefer-2016",
                  "pmid": "27144628",
                  "source": "Gastroenterology. 2016;150(6):1408-1419",
                  "title": "Centrally Mediated Disorders of Gastrointestinal Pain"
                },
                "criteria": [
                  {
                    "factor": "continuous_or_nearly_continuous_abdominal_pain",
                    "met": true
                  },
                  {
                    "factor": "no_or_only_occasional_relationship_with_physiological_events",
                    "met": true
                  },
                  {
                    "factor": "pain_limits_daily_functioning",
                    "met": true
                  },
                  {
                    "factor": "pain_not_feigned",
                    "met": true
                  },
                  {
                    "factor": "not_explained_by_another_gi_or_medical_condition",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_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_caps",
                "formula_expression": "rome_iv_caps iff continuous_or_nearly_continuous_abdominal_pain and no_or_only_occasional_relationship_with_physiological_events and pain_limits_daily_functioning and pain_not_feigned and not_explained_by_another_gi_or_medical_condition and fulfilled_last_3_months and onset_at_least_6_months (Keefer 2016 Rome IV CAPS / D1)",
                "rome_iv_caps": true
              }
            ],
            "path": "/api/calc/rome_iv_caps"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "continuous_or_nearly_continuous_abdominal_pain": {
                          "description": "Continuous or nearly continuous abdominal pain, as assigned (Keefer 2016 Rome IV CAPS / D1). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "fulfilled_last_3_months": {
                          "description": "Criteria fulfilled for the last 3 months, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "no_or_only_occasional_relationship_with_physiological_events": {
                          "description": "No or only occasional relationship of pain with physiological events (eating, defecation, or menses), as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "not_explained_by_another_gi_or_medical_condition": {
                          "description": "Pain is not explained by another structural or functional gastrointestinal disorder or other medical condition, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "onset_at_least_6_months": {
                          "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "pain_limits_daily_functioning": {
                          "description": "Pain limits some aspect of daily functioning, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "pain_not_feigned": {
                          "description": "The pain is not feigned, as assigned by the caller (Keefer 2016). true or false as assigned by the caller. magent does not judge feigning beyond this flag.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "continuous_or_nearly_continuous_abdominal_pain",
                        "no_or_only_occasional_relationship_with_physiological_events",
                        "pain_limits_daily_functioning",
                        "pain_not_feigned",
                        "not_explained_by_another_gi_or_medical_condition",
                        "fulfilled_last_3_months",
                        "onset_at_least_6_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-caps",
    "caps",
    "gi",
    "abdominal-pain",
    "rome-iv",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:56:54.431Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:56:54.288Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "continuous_or_nearly_continuous_abdominal_pain": true,
                  "fulfilled_last_3_months": true,
                  "no_or_only_occasional_relationship_with_physiological_events": true,
                  "not_explained_by_another_gi_or_medical_condition": true,
                  "onset_at_least_6_months": true,
                  "pain_limits_daily_functioning": true,
                  "pain_not_feigned": true
                },
                {
                  "continuous_or_nearly_continuous_abdominal_pain": true,
                  "fulfilled_last_3_months": true,
                  "no_or_only_occasional_relationship_with_physiological_events": true,
                  "not_explained_by_another_gi_or_medical_condition": true,
                  "onset_at_least_6_months": true,
                  "pain_limits_daily_functioning": true,
                  "pain_not_feigned": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
                    "doi": "10.1053/j.gastro.2016.02.034",
                    "id": "keefer-2016",
                    "pmid": "27144628",
                    "source": "Gastroenterology. 2016;150(6):1408-1419",
                    "title": "Centrally Mediated Disorders of Gastrointestinal Pain"
                  },
                  "criteria": [
                    {
                      "factor": "continuous_or_nearly_continuous_abdominal_pain",
                      "met": true
                    },
                    {
                      "factor": "no_or_only_occasional_relationship_with_physiological_events",
                      "met": true
                    },
                    {
                      "factor": "pain_limits_daily_functioning",
                      "met": true
                    },
                    {
                      "factor": "pain_not_feigned",
                      "met": true
                    },
                    {
                      "factor": "not_explained_by_another_gi_or_medical_condition",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_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_caps",
                  "formula_expression": "rome_iv_caps iff continuous_or_nearly_continuous_abdominal_pain and no_or_only_occasional_relationship_with_physiological_events and pain_limits_daily_functioning and pain_not_feigned and not_explained_by_another_gi_or_medical_condition and fulfilled_last_3_months and onset_at_least_6_months (Keefer 2016 Rome IV CAPS / D1)",
                  "rome_iv_caps": true
                },
                {
                  "citation": {
                    "authors": "Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ",
                    "doi": "10.1053/j.gastro.2016.02.034",
                    "id": "keefer-2016",
                    "pmid": "27144628",
                    "source": "Gastroenterology. 2016;150(6):1408-1419",
                    "title": "Centrally Mediated Disorders of Gastrointestinal Pain"
                  },
                  "criteria": [
                    {
                      "factor": "continuous_or_nearly_continuous_abdominal_pain",
                      "met": true
                    },
                    {
                      "factor": "no_or_only_occasional_relationship_with_physiological_events",
                      "met": true
                    },
                    {
                      "factor": "pain_limits_daily_functioning",
                      "met": true
                    },
                    {
                      "factor": "pain_not_feigned",
                      "met": true
                    },
                    {
                      "factor": "not_explained_by_another_gi_or_medical_condition",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_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_caps",
                  "formula_expression": "rome_iv_caps iff continuous_or_nearly_continuous_abdominal_pain and no_or_only_occasional_relationship_with_physiological_events and pain_limits_daily_functioning and pain_not_feigned and not_explained_by_another_gi_or_medical_condition and fulfilled_last_3_months and onset_at_least_6_months (Keefer 2016 Rome IV CAPS / D1)",
                  "rome_iv_caps": true
                }
              ],
              "path": "/api/calc/rome_iv_caps"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "continuous_or_nearly_continuous_abdominal_pain": {
                            "description": "Continuous or nearly continuous abdominal pain, as assigned (Keefer 2016 Rome IV CAPS / D1). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "fulfilled_last_3_months": {
                            "description": "Criteria fulfilled for the last 3 months, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "no_or_only_occasional_relationship_with_physiological_events": {
                            "description": "No or only occasional relationship of pain with physiological events (eating, defecation, or menses), as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "not_explained_by_another_gi_or_medical_condition": {
                            "description": "Pain is not explained by another structural or functional gastrointestinal disorder or other medical condition, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "onset_at_least_6_months": {
                            "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "pain_limits_daily_functioning": {
                            "description": "Pain limits some aspect of daily functioning, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "pain_not_feigned": {
                            "description": "The pain is not feigned, as assigned by the caller (Keefer 2016). true or false as assigned by the caller. magent does not judge feigning beyond this flag.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "continuous_or_nearly_continuous_abdominal_pain",
                          "no_or_only_occasional_relationship_with_physiological_events",
                          "pain_limits_daily_functioning",
                          "pain_not_feigned",
                          "not_explained_by_another_gi_or_medical_condition",
                          "fulfilled_last_3_months",
                          "onset_at_least_6_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"
  }
}