{
  "x402Version": 2,
  "id": 38770,
  "slug": "38770",
  "resource": "https://api.magentlab.com/api/calc/rome_iv_chs",
  "description": "Stanghellini 2016 Rome IV CHS. rome_iv_chs is true iff stereotypical episodic vomiting resembling CVS, presentation after prolonged excessive cannabis use, relief with sustained cannabis cessation, criteria fulfilled for the last 3 months, and onset at least 6 months prior. pathologic_bathing is supportive and not required. Caller assigns six flags. magent does not take a cannabis history. Not a diagnosis, not cyclic vomiting 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": [
              {
                "after_prolonged_excessive_cannabis": true,
                "fulfilled_last_3_months": true,
                "onset_at_least_6_months": true,
                "pathologic_bathing": true,
                "relief_with_sustained_cessation": true,
                "stereotypical_episodic_vomiting": true
              },
              {
                "after_prolonged_excessive_cannabis": true,
                "fulfilled_last_3_months": true,
                "onset_at_least_6_months": true,
                "pathologic_bathing": true,
                "relief_with_sustained_cessation": true,
                "stereotypical_episodic_vomiting": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                  "doi": "10.1053/j.gastro.2016.02.011",
                  "id": "stanghellini-2016",
                  "pmid": "27147122",
                  "source": "Gastroenterology. 2016;150(6):1380-1392",
                  "title": "Gastroduodenal Disorders"
                },
                "criteria": [
                  {
                    "factor": "stereotypical_episodic_vomiting",
                    "met": true
                  },
                  {
                    "factor": "after_prolonged_excessive_cannabis",
                    "met": true
                  },
                  {
                    "factor": "relief_with_sustained_cessation",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_months",
                    "met": true
                  },
                  {
                    "factor": "pathologic_bathing",
                    "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_chs",
                "formula_expression": "rome_iv_chs iff stereotypical_episodic_vomiting and after_prolonged_excessive_cannabis and relief_with_sustained_cessation and fulfilled_last_3_months and onset_at_least_6_months; pathologic_bathing is supportive and not required (Stanghellini 2016 Rome IV cannabinoid hyperemesis syndrome)",
                "pathologic_bathing": true,
                "rome_iv_chs": true
              },
              {
                "citation": {
                  "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                  "doi": "10.1053/j.gastro.2016.02.011",
                  "id": "stanghellini-2016",
                  "pmid": "27147122",
                  "source": "Gastroenterology. 2016;150(6):1380-1392",
                  "title": "Gastroduodenal Disorders"
                },
                "criteria": [
                  {
                    "factor": "stereotypical_episodic_vomiting",
                    "met": true
                  },
                  {
                    "factor": "after_prolonged_excessive_cannabis",
                    "met": true
                  },
                  {
                    "factor": "relief_with_sustained_cessation",
                    "met": true
                  },
                  {
                    "factor": "fulfilled_last_3_months",
                    "met": true
                  },
                  {
                    "factor": "onset_at_least_6_months",
                    "met": true
                  },
                  {
                    "factor": "pathologic_bathing",
                    "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_chs",
                "formula_expression": "rome_iv_chs iff stereotypical_episodic_vomiting and after_prolonged_excessive_cannabis and relief_with_sustained_cessation and fulfilled_last_3_months and onset_at_least_6_months; pathologic_bathing is supportive and not required (Stanghellini 2016 Rome IV cannabinoid hyperemesis syndrome)",
                "pathologic_bathing": true,
                "rome_iv_chs": true
              }
            ],
            "path": "/api/calc/rome_iv_chs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "after_prolonged_excessive_cannabis": {
                          "description": "Presentation after prolonged excessive cannabis use, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a cannabis history.",
                          "type": "boolean"
                        },
                        "fulfilled_last_3_months": {
                          "description": "Criteria fulfilled for the last 3 months, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "onset_at_least_6_months": {
                          "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "pathologic_bathing": {
                          "description": "Pathologic bathing behavior (prolonged hot baths or showers), a supportive criterion that is not required for rome_iv_chs (Stanghellini 2016). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "relief_with_sustained_cessation": {
                          "description": "Relief of vomiting episodes by sustained cessation of cannabis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a cannabis history.",
                          "type": "boolean"
                        },
                        "stereotypical_episodic_vomiting": {
                          "description": "Stereotypical episodic vomiting resembling cyclic vomiting syndrome (CVS) in onset, duration, and frequency (Stanghellini 2016). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "stereotypical_episodic_vomiting",
                        "after_prolonged_excessive_cannabis",
                        "relief_with_sustained_cessation",
                        "fulfilled_last_3_months",
                        "onset_at_least_6_months",
                        "pathologic_bathing"
                      ],
                      "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-chs",
    "chs",
    "gi",
    "hyperemesis",
    "cannabinoid",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:56:22.661Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T07:56:22.472Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "after_prolonged_excessive_cannabis": true,
                  "fulfilled_last_3_months": true,
                  "onset_at_least_6_months": true,
                  "pathologic_bathing": true,
                  "relief_with_sustained_cessation": true,
                  "stereotypical_episodic_vomiting": true
                },
                {
                  "after_prolonged_excessive_cannabis": true,
                  "fulfilled_last_3_months": true,
                  "onset_at_least_6_months": true,
                  "pathologic_bathing": true,
                  "relief_with_sustained_cessation": true,
                  "stereotypical_episodic_vomiting": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                    "doi": "10.1053/j.gastro.2016.02.011",
                    "id": "stanghellini-2016",
                    "pmid": "27147122",
                    "source": "Gastroenterology. 2016;150(6):1380-1392",
                    "title": "Gastroduodenal Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "stereotypical_episodic_vomiting",
                      "met": true
                    },
                    {
                      "factor": "after_prolonged_excessive_cannabis",
                      "met": true
                    },
                    {
                      "factor": "relief_with_sustained_cessation",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_months",
                      "met": true
                    },
                    {
                      "factor": "pathologic_bathing",
                      "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_chs",
                  "formula_expression": "rome_iv_chs iff stereotypical_episodic_vomiting and after_prolonged_excessive_cannabis and relief_with_sustained_cessation and fulfilled_last_3_months and onset_at_least_6_months; pathologic_bathing is supportive and not required (Stanghellini 2016 Rome IV cannabinoid hyperemesis syndrome)",
                  "pathologic_bathing": true,
                  "rome_iv_chs": true
                },
                {
                  "citation": {
                    "authors": "Stanghellini V, Chan FKL, Hasler WL, Malagelada JR, Suzuki H, Tack J, Talley NJ",
                    "doi": "10.1053/j.gastro.2016.02.011",
                    "id": "stanghellini-2016",
                    "pmid": "27147122",
                    "source": "Gastroenterology. 2016;150(6):1380-1392",
                    "title": "Gastroduodenal Disorders"
                  },
                  "criteria": [
                    {
                      "factor": "stereotypical_episodic_vomiting",
                      "met": true
                    },
                    {
                      "factor": "after_prolonged_excessive_cannabis",
                      "met": true
                    },
                    {
                      "factor": "relief_with_sustained_cessation",
                      "met": true
                    },
                    {
                      "factor": "fulfilled_last_3_months",
                      "met": true
                    },
                    {
                      "factor": "onset_at_least_6_months",
                      "met": true
                    },
                    {
                      "factor": "pathologic_bathing",
                      "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_chs",
                  "formula_expression": "rome_iv_chs iff stereotypical_episodic_vomiting and after_prolonged_excessive_cannabis and relief_with_sustained_cessation and fulfilled_last_3_months and onset_at_least_6_months; pathologic_bathing is supportive and not required (Stanghellini 2016 Rome IV cannabinoid hyperemesis syndrome)",
                  "pathologic_bathing": true,
                  "rome_iv_chs": true
                }
              ],
              "path": "/api/calc/rome_iv_chs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "after_prolonged_excessive_cannabis": {
                            "description": "Presentation after prolonged excessive cannabis use, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a cannabis history.",
                            "type": "boolean"
                          },
                          "fulfilled_last_3_months": {
                            "description": "Criteria fulfilled for the last 3 months, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "onset_at_least_6_months": {
                            "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "pathologic_bathing": {
                            "description": "Pathologic bathing behavior (prolonged hot baths or showers), a supportive criterion that is not required for rome_iv_chs (Stanghellini 2016). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "relief_with_sustained_cessation": {
                            "description": "Relief of vomiting episodes by sustained cessation of cannabis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a cannabis history.",
                            "type": "boolean"
                          },
                          "stereotypical_episodic_vomiting": {
                            "description": "Stereotypical episodic vomiting resembling cyclic vomiting syndrome (CVS) in onset, duration, and frequency (Stanghellini 2016). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "stereotypical_episodic_vomiting",
                          "after_prolonged_excessive_cannabis",
                          "relief_with_sustained_cessation",
                          "fulfilled_last_3_months",
                          "onset_at_least_6_months",
                          "pathologic_bathing"
                        ],
                        "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"
  }
}