{"api":"v1","generated_at":"2026-10-02T17:42:18.461Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-magentlab-com-api-calc-rome-iv-nbs-38949f","pinned_page":"https://tollindex.com/e/api-magentlab-com-api-calc-rome-iv-nbs-38949f/at/2026-10-02T12-31Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-10-02T12:31:46.748Z","snapshot_stamp":"2026-10-02T12-31Z","endpoint":{"slug":"api-magentlab-com-api-calc-rome-iv-nbs-38949f","canonical_url":"https://api.magentlab.com/api/calc/rome_iv_nbs","resource":"https://api.magentlab.com/api/calc/rome_iv_nbs","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"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.","service_name":"magent","declared_category":null,"declared_tags":["rome-iv-nbs","nbs","gi","narcotic-bowel","rome-iv"],"route_template":null,"registry_updated":"2026-09-28T14:12:15.432Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"calc rome iv nbs","category":"other","first_observed_by_toll":"2026-09-28T13:51:25.436Z","last_observed_by_toll":"2026-10-02T12:31:46.748Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-28T13:51:25.437Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.005 USDC","amount_units":0.005,"decimals_known":true,"pay_to":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact"}],"counters":{"observed_at":"2026-10-02T12:31:46.748Z","calls_30d":1,"unique_payers_30d":1,"last_called_at":"2026-09-28T14:12:15.296Z"},"validation":{"latest":{"observed_at":"2026-10-02T14:02:00.323Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-10-02"},"uptime":[{"days":7,"observed":6,"passed":6,"ratio":1},{"days":30,"observed":6,"passed":6,"ratio":1},{"days":90,"observed":6,"passed":6,"ratio":1}],"history_90d":[{"observed_at":"2026-10-02T14:02:00.323Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-02","state_changed":false},{"observed_at":"2026-10-01T07:07:13.105Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-01","state_changed":false},{"observed_at":"2026-09-30T06:24:35.199Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-30","state_changed":false},{"observed_at":"2026-09-29T18:44:41.914Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-29","state_changed":false},{"observed_at":"2026-09-28T16:54:37.087Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-28","state_changed":false},{"observed_at":"2026-09-28T16:40:36.892Z","state":"pass","failed_checks":[],"run_id":"new-after-daily-2026-09-28","state_changed":true}]},"seller":{"wallet":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","page":"https://tollindex.com/seller/0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","endpoints":844,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["rome-iv-nbs","nbs","gi","narcotic-bowel","rome-iv"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/rome_iv_nbs","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600}],"quality":{"lastCalledAt":"2026-09-28T14:12:15.296Z","l30DaysTotalCalls":1,"l30DaysUniquePayers":1},"resource":"https://api.magentlab.com/api/calc/rome_iv_nbs","extensions":{"bazaar":{"info":{"input":{"body":{"items":[{"fulfilled_last_3_months":true,"onset_at_least_6_months":true,"pain_not_explained_by_current_or_previous_gi_diagnosis":true,"chronic_or_frequently_recurring_abdominal_pain_on_narcotics":true,"progression_of_frequency_duration_intensity_of_pain_episodes":false,"marked_worsening_when_dose_wanes_improvement_when_reinstituted":true,"pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics":true},{"fulfilled_last_3_months":true,"onset_at_least_6_months":true,"pain_not_explained_by_current_or_previous_gi_diagnosis":true,"chronic_or_frequently_recurring_abdominal_pain_on_narcotics":true,"progression_of_frequency_duration_intensity_of_pain_episodes":false,"marked_worsening_when_dose_wanes_improvement_when_reinstituted":true,"pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics":true}]},"type":"http","method":"POST"},"output":{"type":"json","example":{"path":"/api/calc/rome_iv_nbs","count":2,"items":[{"formula":"rome_iv_nbs","citation":{"id":"keefer-2016","doi":"10.1053/j.gastro.2016.02.034","pmid":"27144628","title":"Centrally Mediated Disorders of Gastrointestinal Pain","source":"Gastroenterology. 2016;150(6):1408-1419","authors":"Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ"},"criteria":[{"met":true,"factor":"chronic_or_frequently_recurring_abdominal_pain_on_narcotics"},{"met":true,"factor":"pain_not_explained_by_current_or_previous_gi_diagnosis"},{"met":true,"factor":"pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics"},{"met":true,"factor":"marked_worsening_when_dose_wanes_improvement_when_reinstituted"},{"met":false,"factor":"progression_of_frequency_duration_intensity_of_pain_episodes"},{"met":true,"value":2,"factor":"nbs_features_ge_2"},{"met":true,"factor":"fulfilled_last_3_months"},{"met":true,"factor":"onset_at_least_6_months"}],"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.","rome_iv_nbs":true,"nbs_features_met":2,"formula_expression":"rome_iv_nbs iff chronic_or_frequently_recurring_abdominal_pain_on_narcotics and pain_not_explained_by_current_or_previous_gi_diagnosis and nbs_features_met >= 2 and fulfilled_last_3_months and onset_at_least_6_months; nbs_features_met counts pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics, marked_worsening_when_dose_wanes_improvement_when_reinstituted, and progression_of_frequency_duration_intensity_of_pain_episodes (Keefer 2016 Rome IV D2 Narcotic Bowel Syndrome / opioid-induced GI hyperalgesia)"},{"formula":"rome_iv_nbs","citation":{"id":"keefer-2016","doi":"10.1053/j.gastro.2016.02.034","pmid":"27144628","title":"Centrally Mediated Disorders of Gastrointestinal Pain","source":"Gastroenterology. 2016;150(6):1408-1419","authors":"Keefer L, Drossman DA, Guthrie E, Simrén M, Tillisch K, Olden K, Whorwell PJ"},"criteria":[{"met":true,"factor":"chronic_or_frequently_recurring_abdominal_pain_on_narcotics"},{"met":true,"factor":"pain_not_explained_by_current_or_previous_gi_diagnosis"},{"met":true,"factor":"pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics"},{"met":true,"factor":"marked_worsening_when_dose_wanes_improvement_when_reinstituted"},{"met":false,"factor":"progression_of_frequency_duration_intensity_of_pain_episodes"},{"met":true,"value":2,"factor":"nbs_features_ge_2"},{"met":true,"factor":"fulfilled_last_3_months"},{"met":true,"factor":"onset_at_least_6_months"}],"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.","rome_iv_nbs":true,"nbs_features_met":2,"formula_expression":"rome_iv_nbs iff chronic_or_frequently_recurring_abdominal_pain_on_narcotics and pain_not_explained_by_current_or_previous_gi_diagnosis and nbs_features_met >= 2 and fulfilled_last_3_months and onset_at_least_6_months; nbs_features_met counts pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics, marked_worsening_when_dose_wanes_improvement_when_reinstituted, and progression_of_frequency_duration_intensity_of_pain_episodes (Keefer 2016 Rome IV D2 Narcotic Bowel Syndrome / opioid-induced GI hyperalgesia)"}]}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","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"],"properties":{"fulfilled_last_3_months":{"type":"boolean","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."},"onset_at_least_6_months":{"type":"boolean","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."},"pain_not_explained_by_current_or_previous_gi_diagnosis":{"type":"boolean","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."},"chronic_or_frequently_recurring_abdominal_pain_on_narcotics":{"type":"boolean","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."},"progression_of_frequency_duration_intensity_of_pain_episodes":{"type":"boolean","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."},"marked_worsening_when_dose_wanes_improvement_when_reinstituted":{"type":"boolean","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."},"pain_worsens_or_incompletely_resolves_with_continued_or_escalating_narcotics":{"type":"boolean","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."}}},"maxItems":25,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"description":"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.","lastUpdated":"2026-09-28T14:12:15.432Z","serviceName":"magent","x402Version":2}]}}