# Rome IV OIC Criteria Calculator (C6)

> Rome IV OIC Criteria Calculator (C6) 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-14).

Evaluates whether a patient meets the Rome IV C6 criteria for Opioid-Induced Constipation (OIC) based on eight caller-assigned boolean flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_oic
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rome-iv-oic-criteria-calculator-c6-dd6e2a14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XgZvMV5XG6Qjp-6PpHI8T

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-oic-criteria-calculator-c6-dd6e2a14
```

Example prompt: A patient started a new opioid and now reports straining more than 25% of the time, hard stools over 25% of defecations, and fewer than 3 spontaneous bowel movements per week; no loose stools without laxatives. The constipation is new since starting the opioid. Can you run the Rome IV OIC check — no incomplete evacuation, no anorectal obstruction, no manual maneuvers?

## When to prefer this

Use this endpoint when you need a fast, reproducible computation of the Rome IV C6 OIC criteria given pre-assessed symptom flags — ideal for clinical decision support tools, EHR integrations, or audit workflows where symptom data is already gathered. Prefer this over manual criteria application when consistency and documentation are required. Not suitable for replacing clinician judgment or diagnosing patients directly.

## Known failure modes

- Missing required query parameters returns an error — all eight boolean flags are required
- Passing non-boolean values for flag parameters causes a validation error
- Endpoint is not designed for pediatric patients or IBS — results may be clinically inappropriate if applied outside scope
- Caller must determine and assign all eight flags independently; the API cannot assess patient symptoms directly

## How this service works

Mearin 2016 Rome IV C6 OIC. rome_iv_oic is true iff new or worsening constipation when initiating, changing, or increasing opioid therapy, at least 2 of 6 symptoms (straining, lumpy/hard stools, incomplete evacuation, anorectal obstruction, manual maneuvers, fewer than 3 SBM/week), and loose stools rare without laxatives. symptom_count is 0-6. Caller assigns eight flags. magent does not examine the patient or prescribe opioids. Not a diagnosis, not functional constipation C2, not IBS, not child.

## Output

Returns a rome_iv_oic boolean (true if criteria are met) and a symptom_count integer (0–6) representing how many of the six C6 symptom items the caller flagged as true. Does not provide a diagnosis, does not examine the patient, and does not apply to children or IBS/functional constipation C2.

## 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": [
      "new_or_worsening_constipation_on_opioid_change",
      "straining_gt_25_percent",
      "lumpy_or_hard_stools_gt_25_percent",
      "incomplete_evacuation_gt_25_percent",
      "anorectal_obstruction_gt_25_percent",
      "manual_maneuvers_gt_25_percent",
      "fewer_than_3_sbm_per_week",
      "loose_stools_rare_without_laxatives"
     ],
     "properties": {
      "straining_gt_25_percent": {
       "type": "boolean",
       "description": "Straining during more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller. magent does not examine the patient."
      },
      "fewer_than_3_sbm_per_week": {
       "type": "boolean",
       "description": "Fewer than three spontaneous bowel movements per week (one of six C6 symptom items; at least two required). true or false as assigned by the caller."
      },
      "manual_maneuvers_gt_25_percent": {
       "type": "boolean",
       "description": "Manual maneuvers to facilitate more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller."
      },
      "lumpy_or_hard_stools_gt_25_percent": {
       "type": "boolean",
       "description": "Lumpy or hard stools (Bristol stool form types 1-2) more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller. magent does not inspect stool."
      },
      "anorectal_obstruction_gt_25_percent": {
       "type": "boolean",
       "description": "Sensation of anorectal obstruction/blockage more than 25% of defecations (one of six C6 symptom items; at least two required). true or false as assigned by the caller."
      },
      "incomplete_evacuation_gt_25_percent": {
       "type": "boolean",
       "description": "Sensation of incomplete evacuation more than 25% of defecations (one of six C6 symptom items; at lea
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-oic-criteria-calculator-c6-dd6e2a14/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)
