ToolAssay

Keefer 2016 Rome IV NBS (D2)

Keefer 2016 Rome IV NBS (D2). rome_iv_nbs is true iff chronic or frequently recurring abdominal pain on narcotics, pain not explained by a GI diagnosis, at least two of three NBS features, last-3-months criteria, and 6-month onset. nbs_features_met is 0-3. Caller assigns seven flags. ~75 mg oral morphine equivalent is copy-only. magent does not examine the patient or judge opioid dose. Not a diagnosis, not CAPS, not opioid-induced constipation.

Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
307 msmedian answer time
$0.005listed price per call
$0.007price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://api.magentlab.com/api/calc/rome_iv_nbs

CategoryEverything else
Provider hostapi.magentlab.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days0 from 0 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-28 valid payment request 402$0.007 307 ms

Example input (from the provider)

{
  "body": {
    "items": [
      {
        "chronic_or_frequently_recurring_abdominal_pain_on_narcotics": true,
        "fulfilled_last_3_months": true,
        "marked_worsening_when_dose_wanes_improvement_when_reinstituted": true,
        "onset_at_least_6_months": true,
        "pain_not_explained_by_current_or_previous_gi_diagnosis": true,
        "pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics": true,
        "progression_of_frequency_duration_intensity_of_pain_episodes": false
      },
      {
        "chronic_or_frequently_recurring_abdominal_pain_on_narcotics": true,
        "fulfilled_last_3_months": true,
        "marked_worsening_when_dose_wanes_improvement_when_reinstituted": true,
        "onset_at_least_6_months": true,
        "pain_not_explained_by_current_or_previous_gi_diagnosis": true,
        "pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics": true,
        "progression_of_frequency_duration_intensity_of_pain_episodes": false
      }
    ]
  },
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "items": {
              "items": {
                "properties": {
                  "chronic_or_frequently_recurring_abdominal_pain_on_narcotics": {
                    "description": "Chronic or frequently recurring abdominal pain treated with acute high-dose or chronic narcotics; pain must occur most days, as assigned (Keefer 2016 Rome IV NBS / D2). Patients often take about 75 mg oral morphine equivalent; no particular time frame or dosage is required. true or false as assigned by the caller. magent does not examine the patient or judge opioid dose.",
                    "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"
                  },
                  "marked_worsening_when_dose_wanes_improvement_when_reinstituted": {
                    "description": "Marked worsening of pain when the narcotic dose wanes and improvement when narcotics are re-instituted (soar and crash; one of three NBS features; at least two required). true or false as assigned by the caller.",
                    "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_not_explained_by_current_or_previous_gi_diagnosis": {
                    "description": "The nature and intensity of the pain is not explained by a current or previous GI diagnosis (a structural diagnosis may exist but is not sufficient to explain the pain), as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient.",
                    "type": "boolean"
                  },
                  "pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics": {
                    "description": "Pain worsens or incompletely resolves with continued or escalating dosages of narcotics (one of three NBS features; at least two required). true or false as assigned by the caller.",
                    "type": "boolean"
                  },
                  "progression_of_frequency_duration_intensity_of_pain_episodes": {
                    "description": "Progression of the frequency, duration, and intensity of pain episodes (one of three NBS features; at least two required). true or false as assigned by the caller.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "chronic_or_frequently_recurring_abdominal_pain_on_narcotics",
                  "pain_not_explained_by_current_or_previous_gi_diagnosis",
                  "pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics",
                  "marked_worsening_when_dose_wanes_improvement_when_reinstituted",
                  "progression_of_frequency_duration_intensity_of_pain_episodes",
                  "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"
}

This page as JSON