{
  "x402Version": 2,
  "id": 39207,
  "slug": "39207",
  "resource": "https://api.magentlab.com/api/calc/dire",
  "description": "Belgrade 2006 DIRE score: Diagnosis, Intractability, and Efficacy each caller-assigned 1-3; Risk is the sum of Psychological, Chemical, Reliability, and Social support (each 1-3, so Risk 4-12). Total 7-21. Scores 14-21 are more suitable for long-term opioid maintenance; 7-13 less suitable. Caller assigns the integers. magent does not take a pain history or write an opioid prescription or taper. Not a medical device.",
  "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": [
              {
                "chemical": 1,
                "diagnosis": 1,
                "efficacy": 1,
                "intractability": 1,
                "psychological": 1,
                "reliability": 1,
                "social_support": 1
              },
              {
                "chemical": 1,
                "diagnosis": 1,
                "efficacy": 1,
                "intractability": 1,
                "psychological": 1,
                "reliability": 1,
                "social_support": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "chemical": 1,
                "citation": {
                  "authors": "Belgrade MJ, Schamber CD, Lindgren BR",
                  "doi": "10.1016/j.jpain.2006.03.001",
                  "id": "belgrade-2006",
                  "pmid": "16942953",
                  "source": "J Pain. 2006;7(9):671-681",
                  "title": "The DIRE score: predicting outcomes of opioid prescribing for chronic pain"
                },
                "components": [
                  {
                    "factor": "diagnosis",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "intractability",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "psychological",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "chemical",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "reliability",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "social_support",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "efficacy",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "diagnosis": 1,
                "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.",
                "efficacy": 1,
                "formula": "dire",
                "formula_expression": "DIRE = diagnosis + intractability + risk + efficacy; diagnosis, intractability, and efficacy each caller-assigned 1-3; risk = psychological + chemical + reliability + social_support (each 1-3, so risk 4-12); total 7-21; Belgrade 2006; score 14-21 more suitable for long-term opioid maintenance, 7-13 less suitable",
                "intractability": 1,
                "max_score": 21,
                "psychological": 1,
                "reliability": 1,
                "risk": 4,
                "score": 7,
                "social_support": 1,
                "suitable_candidate": false
              },
              {
                "chemical": 1,
                "citation": {
                  "authors": "Belgrade MJ, Schamber CD, Lindgren BR",
                  "doi": "10.1016/j.jpain.2006.03.001",
                  "id": "belgrade-2006",
                  "pmid": "16942953",
                  "source": "J Pain. 2006;7(9):671-681",
                  "title": "The DIRE score: predicting outcomes of opioid prescribing for chronic pain"
                },
                "components": [
                  {
                    "factor": "diagnosis",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "intractability",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "psychological",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "chemical",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "reliability",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "social_support",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "efficacy",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "diagnosis": 1,
                "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.",
                "efficacy": 1,
                "formula": "dire",
                "formula_expression": "DIRE = diagnosis + intractability + risk + efficacy; diagnosis, intractability, and efficacy each caller-assigned 1-3; risk = psychological + chemical + reliability + social_support (each 1-3, so risk 4-12); total 7-21; Belgrade 2006; score 14-21 more suitable for long-term opioid maintenance, 7-13 less suitable",
                "intractability": 1,
                "max_score": 21,
                "psychological": 1,
                "reliability": 1,
                "risk": 4,
                "score": 7,
                "social_support": 1,
                "suitable_candidate": false
              }
            ],
            "path": "/api/calc/dire"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "chemical": {
                          "description": "Caller-assigned Belgrade 2006 Risk subcategory Chemical (integer 1-3): 1 active or recent substance abuse; 2 chemical coper or history of chemical dependence in remission; 3 no chemical-dependence history. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                          "type": "integer"
                        },
                        "diagnosis": {
                          "description": "Caller-assigned Belgrade 2006 Diagnosis (integer 1-3): 1 benign chronic condition with minimal objective findings or no definite diagnosis; 2 slowly progressive condition concordant with moderate pain, or fixed deficit; 3 advanced condition concordant with severe pain with objective findings. magent does not take a pain history.",
                          "type": "integer"
                        },
                        "efficacy": {
                          "description": "Caller-assigned Belgrade 2006 Efficacy (integer 1-3): 1 poor function or minimal pain relief despite moderate-to-high doses; 2 moderate benefit with moderate function on moderate doses; 3 good function and pain relief on stable low-to-moderate doses. magent does not take a pain history or write an opioid prescription.",
                          "type": "integer"
                        },
                        "intractability": {
                          "description": "Caller-assigned Belgrade 2006 Intractability (integer 1-3): 1 few therapies tried and the patient is passively involved; 2 most appropriate treatments tried with inadequate response and the patient is reasonably involved; 3 patient fully engaged in appropriate treatments with inadequate response. magent does not take a pain history.",
                          "type": "integer"
                        },
                        "psychological": {
                          "description": "Caller-assigned Belgrade 2006 Risk subcategory Psychological (integer 1-3): 1 serious personality dysfunction or mental illness interfering with care; 2 personality or mental health interferes moderately; 3 good psychological functioning. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                          "type": "integer"
                        },
                        "reliability": {
                          "description": "Caller-assigned Belgrade 2006 Risk subcategory Reliability (integer 1-3): 1 many missed appointments, lacks insight, or poor observer of laws and rules; 2 generally reliable; 3 highly reliable. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                          "type": "integer"
                        },
                        "social_support": {
                          "description": "Caller-assigned Belgrade 2006 Risk subcategory Social support (integer 1-3): 1 life in chaos, few resources, close relationships dysfunctional; 2 relationships exist but are strained; 3 stable supportive relationships and sufficient resources. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "diagnosis",
                        "intractability",
                        "psychological",
                        "chemical",
                        "reliability",
                        "social_support",
                        "efficacy"
                      ],
                      "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": [
    "dire",
    "opioid",
    "chronic-pain",
    "pain",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:46:11.479Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:46:11.375Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "chemical": 1,
                  "diagnosis": 1,
                  "efficacy": 1,
                  "intractability": 1,
                  "psychological": 1,
                  "reliability": 1,
                  "social_support": 1
                },
                {
                  "chemical": 1,
                  "diagnosis": 1,
                  "efficacy": 1,
                  "intractability": 1,
                  "psychological": 1,
                  "reliability": 1,
                  "social_support": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "chemical": 1,
                  "citation": {
                    "authors": "Belgrade MJ, Schamber CD, Lindgren BR",
                    "doi": "10.1016/j.jpain.2006.03.001",
                    "id": "belgrade-2006",
                    "pmid": "16942953",
                    "source": "J Pain. 2006;7(9):671-681",
                    "title": "The DIRE score: predicting outcomes of opioid prescribing for chronic pain"
                  },
                  "components": [
                    {
                      "factor": "diagnosis",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "intractability",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "psychological",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "chemical",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "reliability",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "social_support",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "efficacy",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "diagnosis": 1,
                  "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.",
                  "efficacy": 1,
                  "formula": "dire",
                  "formula_expression": "DIRE = diagnosis + intractability + risk + efficacy; diagnosis, intractability, and efficacy each caller-assigned 1-3; risk = psychological + chemical + reliability + social_support (each 1-3, so risk 4-12); total 7-21; Belgrade 2006; score 14-21 more suitable for long-term opioid maintenance, 7-13 less suitable",
                  "intractability": 1,
                  "max_score": 21,
                  "psychological": 1,
                  "reliability": 1,
                  "risk": 4,
                  "score": 7,
                  "social_support": 1,
                  "suitable_candidate": false
                },
                {
                  "chemical": 1,
                  "citation": {
                    "authors": "Belgrade MJ, Schamber CD, Lindgren BR",
                    "doi": "10.1016/j.jpain.2006.03.001",
                    "id": "belgrade-2006",
                    "pmid": "16942953",
                    "source": "J Pain. 2006;7(9):671-681",
                    "title": "The DIRE score: predicting outcomes of opioid prescribing for chronic pain"
                  },
                  "components": [
                    {
                      "factor": "diagnosis",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "intractability",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "psychological",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "chemical",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "reliability",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "social_support",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "efficacy",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "diagnosis": 1,
                  "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.",
                  "efficacy": 1,
                  "formula": "dire",
                  "formula_expression": "DIRE = diagnosis + intractability + risk + efficacy; diagnosis, intractability, and efficacy each caller-assigned 1-3; risk = psychological + chemical + reliability + social_support (each 1-3, so risk 4-12); total 7-21; Belgrade 2006; score 14-21 more suitable for long-term opioid maintenance, 7-13 less suitable",
                  "intractability": 1,
                  "max_score": 21,
                  "psychological": 1,
                  "reliability": 1,
                  "risk": 4,
                  "score": 7,
                  "social_support": 1,
                  "suitable_candidate": false
                }
              ],
              "path": "/api/calc/dire"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "chemical": {
                            "description": "Caller-assigned Belgrade 2006 Risk subcategory Chemical (integer 1-3): 1 active or recent substance abuse; 2 chemical coper or history of chemical dependence in remission; 3 no chemical-dependence history. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                            "type": "integer"
                          },
                          "diagnosis": {
                            "description": "Caller-assigned Belgrade 2006 Diagnosis (integer 1-3): 1 benign chronic condition with minimal objective findings or no definite diagnosis; 2 slowly progressive condition concordant with moderate pain, or fixed deficit; 3 advanced condition concordant with severe pain with objective findings. magent does not take a pain history.",
                            "type": "integer"
                          },
                          "efficacy": {
                            "description": "Caller-assigned Belgrade 2006 Efficacy (integer 1-3): 1 poor function or minimal pain relief despite moderate-to-high doses; 2 moderate benefit with moderate function on moderate doses; 3 good function and pain relief on stable low-to-moderate doses. magent does not take a pain history or write an opioid prescription.",
                            "type": "integer"
                          },
                          "intractability": {
                            "description": "Caller-assigned Belgrade 2006 Intractability (integer 1-3): 1 few therapies tried and the patient is passively involved; 2 most appropriate treatments tried with inadequate response and the patient is reasonably involved; 3 patient fully engaged in appropriate treatments with inadequate response. magent does not take a pain history.",
                            "type": "integer"
                          },
                          "psychological": {
                            "description": "Caller-assigned Belgrade 2006 Risk subcategory Psychological (integer 1-3): 1 serious personality dysfunction or mental illness interfering with care; 2 personality or mental health interferes moderately; 3 good psychological functioning. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                            "type": "integer"
                          },
                          "reliability": {
                            "description": "Caller-assigned Belgrade 2006 Risk subcategory Reliability (integer 1-3): 1 many missed appointments, lacks insight, or poor observer of laws and rules; 2 generally reliable; 3 highly reliable. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                            "type": "integer"
                          },
                          "social_support": {
                            "description": "Caller-assigned Belgrade 2006 Risk subcategory Social support (integer 1-3): 1 life in chaos, few resources, close relationships dysfunctional; 2 relationships exist but are strained; 3 stable supportive relationships and sufficient resources. One of four Risk items (Risk 4-12). magent does not interview the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "diagnosis",
                          "intractability",
                          "psychological",
                          "chemical",
                          "reliability",
                          "social_support",
                          "efficacy"
                        ],
                        "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"
  }
}