{
  "x402Version": 2,
  "id": 39380,
  "slug": "39380",
  "resource": "https://api.magentlab.com/api/calc/mme",
  "description": "CDC 2022 morphine milligram equivalents from a published opioid key and dose (mg/day, or mcg/hr for fentanyl_transdermal). Estimates only; do not use MME to convert one opioid to another. Not a taper protocol or OUD dosing tool.",
  "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": [
              {
                "dose": 20,
                "opioid": "hydrocodone"
              },
              {
                "dose": 20,
                "opioid": "hydrocodone"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Dowell D, Ragan KR, Jones CM, Baldwin GT, Chou R",
                  "doi": "10.15585/mmwr.rr7103a1",
                  "id": "cdc-mme-2022",
                  "source": "MMWR Recomm Rep. 2022;71(No. RR-3):1-95",
                  "title": "CDC Clinical Practice Guideline for Prescribing Opioids for Pain — United States, 2022"
                },
                "conversion_factor": 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.",
                "dose": 20,
                "dose_unit": "mg/day",
                "formula": "mme",
                "formula_expression": "mme = dose * conversion_factor (dose is mg/day except fentanyl_transdermal in mcg/hr)",
                "mme": 20,
                "opioid": "hydrocodone"
              },
              {
                "citation": {
                  "authors": "Dowell D, Ragan KR, Jones CM, Baldwin GT, Chou R",
                  "doi": "10.15585/mmwr.rr7103a1",
                  "id": "cdc-mme-2022",
                  "source": "MMWR Recomm Rep. 2022;71(No. RR-3):1-95",
                  "title": "CDC Clinical Practice Guideline for Prescribing Opioids for Pain — United States, 2022"
                },
                "conversion_factor": 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.",
                "dose": 20,
                "dose_unit": "mg/day",
                "formula": "mme",
                "formula_expression": "mme = dose * conversion_factor (dose is mg/day except fentanyl_transdermal in mcg/hr)",
                "mme": 20,
                "opioid": "hydrocodone"
              }
            ],
            "path": "/api/calc/mme"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "dose": {
                          "description": "Daily opioid dose in mg/day (0.1-5000), or fentanyl_transdermal patch rate in mcg/hr (12-300).",
                          "type": "number"
                        },
                        "opioid": {
                          "description": "CDC 2022 MME table key (case-insensitive exact match). Not a brand name or alias.",
                          "enum": [
                            "codeine",
                            "fentanyl_transdermal",
                            "hydrocodone",
                            "hydromorphone",
                            "methadone",
                            "morphine",
                            "oxycodone",
                            "oxymorphone",
                            "tapentadol",
                            "tramadol"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "opioid",
                        "dose"
                      ],
                      "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": [
    "mme",
    "opioid",
    "cdc",
    "morphine",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T15:02:12.038Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T15:02:11.914Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "dose": 20,
                  "opioid": "hydrocodone"
                },
                {
                  "dose": 20,
                  "opioid": "hydrocodone"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Dowell D, Ragan KR, Jones CM, Baldwin GT, Chou R",
                    "doi": "10.15585/mmwr.rr7103a1",
                    "id": "cdc-mme-2022",
                    "source": "MMWR Recomm Rep. 2022;71(No. RR-3):1-95",
                    "title": "CDC Clinical Practice Guideline for Prescribing Opioids for Pain — United States, 2022"
                  },
                  "conversion_factor": 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.",
                  "dose": 20,
                  "dose_unit": "mg/day",
                  "formula": "mme",
                  "formula_expression": "mme = dose * conversion_factor (dose is mg/day except fentanyl_transdermal in mcg/hr)",
                  "mme": 20,
                  "opioid": "hydrocodone"
                },
                {
                  "citation": {
                    "authors": "Dowell D, Ragan KR, Jones CM, Baldwin GT, Chou R",
                    "doi": "10.15585/mmwr.rr7103a1",
                    "id": "cdc-mme-2022",
                    "source": "MMWR Recomm Rep. 2022;71(No. RR-3):1-95",
                    "title": "CDC Clinical Practice Guideline for Prescribing Opioids for Pain — United States, 2022"
                  },
                  "conversion_factor": 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.",
                  "dose": 20,
                  "dose_unit": "mg/day",
                  "formula": "mme",
                  "formula_expression": "mme = dose * conversion_factor (dose is mg/day except fentanyl_transdermal in mcg/hr)",
                  "mme": 20,
                  "opioid": "hydrocodone"
                }
              ],
              "path": "/api/calc/mme"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "dose": {
                            "description": "Daily opioid dose in mg/day (0.1-5000), or fentanyl_transdermal patch rate in mcg/hr (12-300).",
                            "type": "number"
                          },
                          "opioid": {
                            "description": "CDC 2022 MME table key (case-insensitive exact match). Not a brand name or alias.",
                            "enum": [
                              "codeine",
                              "fentanyl_transdermal",
                              "hydrocodone",
                              "hydromorphone",
                              "methadone",
                              "morphine",
                              "oxycodone",
                              "oxymorphone",
                              "tapentadol",
                              "tramadol"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "opioid",
                          "dose"
                        ],
                        "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"
  }
}