{
  "x402Version": 2,
  "id": 39255,
  "slug": "39255",
  "resource": "https://api.magentlab.com/api/calc/cdai",
  "description": "Best 1976 Crohn's disease activity index (CDAI): eight weighted variables (7-day liquid stools *2, abdominal-pain sum *5, well-being sum *7, extra-intestinal count *20, antidiarrheal *30, abdominal mass 0/2/5 *10, hematocrit deficit *6, caller-assigned weight-percent deviation). magent returns the rounded integer index only and does not apply later trial activity bands. magent does not examine the patient. Not a Crohn's diagnosis and not the Harvey-Bradshaw one-day index.",
  "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": [
              {
                "abdominal_mass": 0,
                "abdominal_pain_sum_7d": 0,
                "extra_intestinal_count": 0,
                "hematocrit_percent": 47,
                "liquid_stool_count_7d": 0,
                "sex": "male",
                "taking_antidiarrheal": false,
                "weight_percent_deviation": 0,
                "wellbeing_sum_7d": 0
              },
              {
                "abdominal_mass": 0,
                "abdominal_pain_sum_7d": 0,
                "extra_intestinal_count": 0,
                "hematocrit_percent": 47,
                "liquid_stool_count_7d": 0,
                "sex": "male",
                "taking_antidiarrheal": false,
                "weight_percent_deviation": 0,
                "wellbeing_sum_7d": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "abdominal_mass": 0,
                "abdominal_pain_sum_7d": 0,
                "citation": {
                  "authors": "Best WR, Becktel JM, Singleton JW, Kern F Jr",
                  "doi": "10.1016/S0016-5085(76)80163-1",
                  "id": "best-1976",
                  "pmid": "1248701",
                  "source": "Gastroenterology. 1976;70(3):439-444",
                  "title": "Development of a Crohn's disease activity index. National Cooperative Crohn's Disease Study"
                },
                "components": [
                  {
                    "factor": "liquid_stool_count_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "abdominal_pain_sum_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "wellbeing_sum_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "extra_intestinal_count",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "taking_antidiarrheal",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "abdominal_mass",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "hematocrit_deficit",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "weight_percent_deviation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "extra_intestinal_count": 0,
                "formula": "cdai",
                "formula_expression": "CDAI = liquid_stool_count_7d*2 + abdominal_pain_sum_7d*5 + wellbeing_sum_7d*7 + extra_intestinal_count*20 + taking_antidiarrheal*30 + abdominal_mass*10 + hematocrit_deficit*6 + weight_percent_deviation; hematocrit_deficit = 47-hematocrit_percent (male) or 42-hematocrit_percent (female); Best 1976; score rounded after the weight term",
                "hematocrit_deficit": 0,
                "hematocrit_percent": 47,
                "liquid_stool_count_7d": 0,
                "score": 0,
                "sex": "male",
                "taking_antidiarrheal": false,
                "weight_percent_deviation": 0,
                "wellbeing_sum_7d": 0
              },
              {
                "abdominal_mass": 0,
                "abdominal_pain_sum_7d": 0,
                "citation": {
                  "authors": "Best WR, Becktel JM, Singleton JW, Kern F Jr",
                  "doi": "10.1016/S0016-5085(76)80163-1",
                  "id": "best-1976",
                  "pmid": "1248701",
                  "source": "Gastroenterology. 1976;70(3):439-444",
                  "title": "Development of a Crohn's disease activity index. National Cooperative Crohn's Disease Study"
                },
                "components": [
                  {
                    "factor": "liquid_stool_count_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "abdominal_pain_sum_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "wellbeing_sum_7d",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "extra_intestinal_count",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "taking_antidiarrheal",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "abdominal_mass",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "hematocrit_deficit",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "weight_percent_deviation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "extra_intestinal_count": 0,
                "formula": "cdai",
                "formula_expression": "CDAI = liquid_stool_count_7d*2 + abdominal_pain_sum_7d*5 + wellbeing_sum_7d*7 + extra_intestinal_count*20 + taking_antidiarrheal*30 + abdominal_mass*10 + hematocrit_deficit*6 + weight_percent_deviation; hematocrit_deficit = 47-hematocrit_percent (male) or 42-hematocrit_percent (female); Best 1976; score rounded after the weight term",
                "hematocrit_deficit": 0,
                "hematocrit_percent": 47,
                "liquid_stool_count_7d": 0,
                "score": 0,
                "sex": "male",
                "taking_antidiarrheal": false,
                "weight_percent_deviation": 0,
                "wellbeing_sum_7d": 0
              }
            ],
            "path": "/api/calc/cdai"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "abdominal_mass": {
                          "description": "Caller-assigned Best 1976 abdominal mass (exactly 0 none, 2 questionable, or 5 definite; ×10). Not 1, 3, or 4. magent does not examine the patient.",
                          "type": "integer"
                        },
                        "abdominal_pain_sum_7d": {
                          "description": "Sum of daily Best 1976 abdominal-pain ratings over 7 days (integer 0-21; each day 0 none, 1 mild, 2 moderate, 3 severe; ×5). magent does not examine the patient.",
                          "type": "integer"
                        },
                        "extra_intestinal_count": {
                          "description": "Caller-assigned count 0-6 of Best 1976 extra-intestinal findings (one each: arthritis/arthralgia; iritis/uveitis; erythema nodosum/pyoderma gangrenosum/aphthous ulcer; anal fissure/fistula/abscess; other fistula; fever >37.8 C in the past week; ×20). magent takes the integer count and does not enumerate those names as separate params.",
                          "type": "integer"
                        },
                        "hematocrit_percent": {
                          "description": "Hematocrit in percent (10-70). Best 1976 uses a whole-number hematocrit. Deficit is 47 minus this value (male) or 42 minus this value (female), then ×6; may be negative if above the sex standard. magent does not assay hematocrit.",
                          "type": "number"
                        },
                        "liquid_stool_count_7d": {
                          "description": "Sum of liquid or very soft stools over 7 days (Best 1976; ×2). Integer 0-70 is a magent clamp, not a published maximum. magent does not count stools.",
                          "type": "integer"
                        },
                        "sex": {
                          "description": "male or female. Best 1976 hematocrit standard is 47 (male) or 42 (female). magent does not examine the patient.",
                          "type": "string"
                        },
                        "taking_antidiarrheal": {
                          "description": "Taking diphenoxylate/atropine (Lomotil) or opiates for diarrhea as in Best 1976. true or false. true scores 30. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "weight_percent_deviation": {
                          "description": "Caller-assigned Best 1976 weight term 100*(1 - current/standard). May be negative if current is above standard. Magent clamp -50 to 80, not a published range. magent does not look up a standard weight.",
                          "type": "number"
                        },
                        "wellbeing_sum_7d": {
                          "description": "Sum of daily Best 1976 general well-being ratings over 7 days (integer 0-28; each day 0 generally well, 1 slightly below par, 2 poor, 3 very poor, 4 terrible; ×7). magent does not examine the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "sex",
                        "liquid_stool_count_7d",
                        "abdominal_pain_sum_7d",
                        "wellbeing_sum_7d",
                        "extra_intestinal_count",
                        "taking_antidiarrheal",
                        "abdominal_mass",
                        "hematocrit_percent",
                        "weight_percent_deviation"
                      ],
                      "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": [
    "cdai",
    "crohns",
    "gi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:21:08.074Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T01:21:07.906Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "abdominal_mass": 0,
                  "abdominal_pain_sum_7d": 0,
                  "extra_intestinal_count": 0,
                  "hematocrit_percent": 47,
                  "liquid_stool_count_7d": 0,
                  "sex": "male",
                  "taking_antidiarrheal": false,
                  "weight_percent_deviation": 0,
                  "wellbeing_sum_7d": 0
                },
                {
                  "abdominal_mass": 0,
                  "abdominal_pain_sum_7d": 0,
                  "extra_intestinal_count": 0,
                  "hematocrit_percent": 47,
                  "liquid_stool_count_7d": 0,
                  "sex": "male",
                  "taking_antidiarrheal": false,
                  "weight_percent_deviation": 0,
                  "wellbeing_sum_7d": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "abdominal_mass": 0,
                  "abdominal_pain_sum_7d": 0,
                  "citation": {
                    "authors": "Best WR, Becktel JM, Singleton JW, Kern F Jr",
                    "doi": "10.1016/S0016-5085(76)80163-1",
                    "id": "best-1976",
                    "pmid": "1248701",
                    "source": "Gastroenterology. 1976;70(3):439-444",
                    "title": "Development of a Crohn's disease activity index. National Cooperative Crohn's Disease Study"
                  },
                  "components": [
                    {
                      "factor": "liquid_stool_count_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "abdominal_pain_sum_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "wellbeing_sum_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "extra_intestinal_count",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "taking_antidiarrheal",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "abdominal_mass",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "hematocrit_deficit",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "weight_percent_deviation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "extra_intestinal_count": 0,
                  "formula": "cdai",
                  "formula_expression": "CDAI = liquid_stool_count_7d*2 + abdominal_pain_sum_7d*5 + wellbeing_sum_7d*7 + extra_intestinal_count*20 + taking_antidiarrheal*30 + abdominal_mass*10 + hematocrit_deficit*6 + weight_percent_deviation; hematocrit_deficit = 47-hematocrit_percent (male) or 42-hematocrit_percent (female); Best 1976; score rounded after the weight term",
                  "hematocrit_deficit": 0,
                  "hematocrit_percent": 47,
                  "liquid_stool_count_7d": 0,
                  "score": 0,
                  "sex": "male",
                  "taking_antidiarrheal": false,
                  "weight_percent_deviation": 0,
                  "wellbeing_sum_7d": 0
                },
                {
                  "abdominal_mass": 0,
                  "abdominal_pain_sum_7d": 0,
                  "citation": {
                    "authors": "Best WR, Becktel JM, Singleton JW, Kern F Jr",
                    "doi": "10.1016/S0016-5085(76)80163-1",
                    "id": "best-1976",
                    "pmid": "1248701",
                    "source": "Gastroenterology. 1976;70(3):439-444",
                    "title": "Development of a Crohn's disease activity index. National Cooperative Crohn's Disease Study"
                  },
                  "components": [
                    {
                      "factor": "liquid_stool_count_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "abdominal_pain_sum_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "wellbeing_sum_7d",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "extra_intestinal_count",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "taking_antidiarrheal",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "abdominal_mass",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "hematocrit_deficit",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "weight_percent_deviation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "extra_intestinal_count": 0,
                  "formula": "cdai",
                  "formula_expression": "CDAI = liquid_stool_count_7d*2 + abdominal_pain_sum_7d*5 + wellbeing_sum_7d*7 + extra_intestinal_count*20 + taking_antidiarrheal*30 + abdominal_mass*10 + hematocrit_deficit*6 + weight_percent_deviation; hematocrit_deficit = 47-hematocrit_percent (male) or 42-hematocrit_percent (female); Best 1976; score rounded after the weight term",
                  "hematocrit_deficit": 0,
                  "hematocrit_percent": 47,
                  "liquid_stool_count_7d": 0,
                  "score": 0,
                  "sex": "male",
                  "taking_antidiarrheal": false,
                  "weight_percent_deviation": 0,
                  "wellbeing_sum_7d": 0
                }
              ],
              "path": "/api/calc/cdai"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "abdominal_mass": {
                            "description": "Caller-assigned Best 1976 abdominal mass (exactly 0 none, 2 questionable, or 5 definite; ×10). Not 1, 3, or 4. magent does not examine the patient.",
                            "type": "integer"
                          },
                          "abdominal_pain_sum_7d": {
                            "description": "Sum of daily Best 1976 abdominal-pain ratings over 7 days (integer 0-21; each day 0 none, 1 mild, 2 moderate, 3 severe; ×5). magent does not examine the patient.",
                            "type": "integer"
                          },
                          "extra_intestinal_count": {
                            "description": "Caller-assigned count 0-6 of Best 1976 extra-intestinal findings (one each: arthritis/arthralgia; iritis/uveitis; erythema nodosum/pyoderma gangrenosum/aphthous ulcer; anal fissure/fistula/abscess; other fistula; fever >37.8 C in the past week; ×20). magent takes the integer count and does not enumerate those names as separate params.",
                            "type": "integer"
                          },
                          "hematocrit_percent": {
                            "description": "Hematocrit in percent (10-70). Best 1976 uses a whole-number hematocrit. Deficit is 47 minus this value (male) or 42 minus this value (female), then ×6; may be negative if above the sex standard. magent does not assay hematocrit.",
                            "type": "number"
                          },
                          "liquid_stool_count_7d": {
                            "description": "Sum of liquid or very soft stools over 7 days (Best 1976; ×2). Integer 0-70 is a magent clamp, not a published maximum. magent does not count stools.",
                            "type": "integer"
                          },
                          "sex": {
                            "description": "male or female. Best 1976 hematocrit standard is 47 (male) or 42 (female). magent does not examine the patient.",
                            "type": "string"
                          },
                          "taking_antidiarrheal": {
                            "description": "Taking diphenoxylate/atropine (Lomotil) or opiates for diarrhea as in Best 1976. true or false. true scores 30. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "weight_percent_deviation": {
                            "description": "Caller-assigned Best 1976 weight term 100*(1 - current/standard). May be negative if current is above standard. Magent clamp -50 to 80, not a published range. magent does not look up a standard weight.",
                            "type": "number"
                          },
                          "wellbeing_sum_7d": {
                            "description": "Sum of daily Best 1976 general well-being ratings over 7 days (integer 0-28; each day 0 generally well, 1 slightly below par, 2 poor, 3 very poor, 4 terrible; ×7). magent does not examine the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "sex",
                          "liquid_stool_count_7d",
                          "abdominal_pain_sum_7d",
                          "wellbeing_sum_7d",
                          "extra_intestinal_count",
                          "taking_antidiarrheal",
                          "abdominal_mass",
                          "hematocrit_percent",
                          "weight_percent_deviation"
                        ],
                        "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"
  }
}