{
  "x402Version": 2,
  "id": 39559,
  "slug": "39559",
  "resource": "https://api.magentlab.com/api/calc/montreal_ibd",
  "description": "Satsangi 2006 Montreal IBD phenotype (Vienna revision). Crohn: A1-A3, L1-L4, B1-B3, optional +L4 (not when isolated L4) and p. UC: E1-E3 plus S0-S3 as assigned. Compact string, no spaces. Not an activity index (not CDAI/Mayo), not Paris, not IBDU. magent does not perform endoscopy. Not a diagnosis. 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": [
              {
                "age_at_diagnosis": "A2",
                "behaviour": "B1",
                "disease": "crohn",
                "extent": "E1",
                "location": "L3",
                "perianal": false,
                "severity": "S0",
                "upper_gi": false
              },
              {
                "age_at_diagnosis": "A2",
                "behaviour": "B1",
                "disease": "crohn",
                "extent": "E1",
                "location": "L3",
                "perianal": false,
                "severity": "S0",
                "upper_gi": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Satsangi J, Silverberg MS, Vermeire S, Colombel JF",
                  "doi": "10.1136/gut.2005.082909",
                  "id": "satsangi-2006",
                  "pmid": "16698746",
                  "source": "Gut. 2006;55(6):749-753",
                  "title": "The Montreal classification of inflammatory bowel disease: controversies, consensus, and implications"
                },
                "criteria": [
                  {
                    "factor": "disease_crohn",
                    "met": true
                  },
                  {
                    "factor": "disease_uc",
                    "met": false
                  },
                  {
                    "factor": "A1",
                    "met": false
                  },
                  {
                    "factor": "A2",
                    "met": true
                  },
                  {
                    "factor": "A3",
                    "met": false
                  },
                  {
                    "factor": "L1",
                    "met": false
                  },
                  {
                    "factor": "L2",
                    "met": false
                  },
                  {
                    "factor": "L3",
                    "met": true
                  },
                  {
                    "factor": "L4",
                    "met": false
                  },
                  {
                    "factor": "upper_gi",
                    "met": false
                  },
                  {
                    "factor": "B1",
                    "met": true
                  },
                  {
                    "factor": "B2",
                    "met": false
                  },
                  {
                    "factor": "B3",
                    "met": false
                  },
                  {
                    "factor": "perianal",
                    "met": false
                  }
                ],
                "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.",
                "disease": "crohn",
                "formula": "montreal_ibd",
                "formula_expression": "Crohn phenotype = age_at_diagnosis (A1 ≤16 y, A2 17-40 y, A3 >40 y) + location (L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI) + optional +L4 when concomitant upper GI with L1-L3 (forbidden when location is isolated L4) + behaviour (B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating) + optional p when concomitant perianal disease; UC phenotype = extent (E1 ulcerative proctitis distal to the rectosigmoid junction, E2 left-sided distal to the splenic flexure, E3 extensive proximal to the splenic flexure) + severity (S0 clinical remission, S1 mild, S2 moderate, S3 severe as assigned) (Satsangi 2006 Montreal revision of Vienna). Compact string, no spaces. Not a disease-activity score. magent does not perform endoscopy. Not Paris pediatric classification.",
                "phenotype": "A2L3B1"
              },
              {
                "citation": {
                  "authors": "Satsangi J, Silverberg MS, Vermeire S, Colombel JF",
                  "doi": "10.1136/gut.2005.082909",
                  "id": "satsangi-2006",
                  "pmid": "16698746",
                  "source": "Gut. 2006;55(6):749-753",
                  "title": "The Montreal classification of inflammatory bowel disease: controversies, consensus, and implications"
                },
                "criteria": [
                  {
                    "factor": "disease_crohn",
                    "met": true
                  },
                  {
                    "factor": "disease_uc",
                    "met": false
                  },
                  {
                    "factor": "A1",
                    "met": false
                  },
                  {
                    "factor": "A2",
                    "met": true
                  },
                  {
                    "factor": "A3",
                    "met": false
                  },
                  {
                    "factor": "L1",
                    "met": false
                  },
                  {
                    "factor": "L2",
                    "met": false
                  },
                  {
                    "factor": "L3",
                    "met": true
                  },
                  {
                    "factor": "L4",
                    "met": false
                  },
                  {
                    "factor": "upper_gi",
                    "met": false
                  },
                  {
                    "factor": "B1",
                    "met": true
                  },
                  {
                    "factor": "B2",
                    "met": false
                  },
                  {
                    "factor": "B3",
                    "met": false
                  },
                  {
                    "factor": "perianal",
                    "met": false
                  }
                ],
                "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.",
                "disease": "crohn",
                "formula": "montreal_ibd",
                "formula_expression": "Crohn phenotype = age_at_diagnosis (A1 ≤16 y, A2 17-40 y, A3 >40 y) + location (L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI) + optional +L4 when concomitant upper GI with L1-L3 (forbidden when location is isolated L4) + behaviour (B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating) + optional p when concomitant perianal disease; UC phenotype = extent (E1 ulcerative proctitis distal to the rectosigmoid junction, E2 left-sided distal to the splenic flexure, E3 extensive proximal to the splenic flexure) + severity (S0 clinical remission, S1 mild, S2 moderate, S3 severe as assigned) (Satsangi 2006 Montreal revision of Vienna). Compact string, no spaces. Not a disease-activity score. magent does not perform endoscopy. Not Paris pediatric classification.",
                "phenotype": "A2L3B1"
              }
            ],
            "path": "/api/calc/montreal_ibd"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age_at_diagnosis": {
                          "description": "Montreal Crohn age at diagnosis as assigned (Satsangi 2006): A1 ≤16 years, A2 17-40 years, A3 >40 years. Required when disease=crohn. Omit when disease=uc. magent does not assign the A token from a chart.",
                          "enum": [
                            "A1",
                            "A2",
                            "A3"
                          ],
                          "type": "string"
                        },
                        "behaviour": {
                          "description": "Montreal Crohn behaviour as assigned (Satsangi 2006): B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                          "enum": [
                            "B1",
                            "B2",
                            "B3"
                          ],
                          "type": "string"
                        },
                        "disease": {
                          "description": "Satsangi 2006 Montreal disease as assigned: crohn or uc. IBDU and indeterminate colitis are not encoded. magent does not diagnose IBD.",
                          "enum": [
                            "crohn",
                            "uc"
                          ],
                          "type": "string"
                        },
                        "extent": {
                          "description": "Montreal UC extent as assigned (Satsangi 2006): E1 ulcerative proctitis (distal to the rectosigmoid junction), E2 left-sided (distal to the splenic flexure), E3 extensive (proximal to the splenic flexure). Required when disease=uc. Omit when disease=crohn. magent does not perform endoscopy.",
                          "enum": [
                            "E1",
                            "E2",
                            "E3"
                          ],
                          "type": "string"
                        },
                        "location": {
                          "description": "Montreal Crohn location as assigned (Satsangi 2006): L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                          "enum": [
                            "L1",
                            "L2",
                            "L3",
                            "L4"
                          ],
                          "type": "string"
                        },
                        "perianal": {
                          "description": "Concomitant perianal disease as assigned (Satsangi 2006 p modifier). true appends p after B1, B2, or B3. Required when disease=crohn. Omit when disease=uc. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "severity": {
                          "description": "Montreal UC severity as assigned (Satsangi 2006): S0 clinical remission; S1 mild (≤4 stools/day with or without blood, no systemic illness, normal ESR); S2 moderate (>4 stools/day, minimal systemic toxicity); S3 severe (≥6 bloody stools/day AND pulse ≥90 AND temperature ≥37.5°C AND haemoglobin <10.5 g/100 ml AND ESR ≥30 mm/h). The caller assigns the S token. Required when disease=uc. Omit when disease=crohn. magent does not take vitals.",
                          "enum": [
                            "S0",
                            "S1",
                            "S2",
                            "S3"
                          ],
                          "type": "string"
                        },
                        "upper_gi": {
                          "description": "Concomitant upper GI disease as assigned (Satsangi 2006 L4 modifier). true adds +L4 after L1, L2, or L3. Must be false when location is isolated L4. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "disease"
                      ],
                      "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": [
    "montreal-ibd",
    "crohn",
    "ulcerative-colitis",
    "gi",
    "phenotype",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T13:57:54.355Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T13:57:54.188Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_at_diagnosis": "A2",
                  "behaviour": "B1",
                  "disease": "crohn",
                  "extent": "E1",
                  "location": "L3",
                  "perianal": false,
                  "severity": "S0",
                  "upper_gi": false
                },
                {
                  "age_at_diagnosis": "A2",
                  "behaviour": "B1",
                  "disease": "crohn",
                  "extent": "E1",
                  "location": "L3",
                  "perianal": false,
                  "severity": "S0",
                  "upper_gi": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Satsangi J, Silverberg MS, Vermeire S, Colombel JF",
                    "doi": "10.1136/gut.2005.082909",
                    "id": "satsangi-2006",
                    "pmid": "16698746",
                    "source": "Gut. 2006;55(6):749-753",
                    "title": "The Montreal classification of inflammatory bowel disease: controversies, consensus, and implications"
                  },
                  "criteria": [
                    {
                      "factor": "disease_crohn",
                      "met": true
                    },
                    {
                      "factor": "disease_uc",
                      "met": false
                    },
                    {
                      "factor": "A1",
                      "met": false
                    },
                    {
                      "factor": "A2",
                      "met": true
                    },
                    {
                      "factor": "A3",
                      "met": false
                    },
                    {
                      "factor": "L1",
                      "met": false
                    },
                    {
                      "factor": "L2",
                      "met": false
                    },
                    {
                      "factor": "L3",
                      "met": true
                    },
                    {
                      "factor": "L4",
                      "met": false
                    },
                    {
                      "factor": "upper_gi",
                      "met": false
                    },
                    {
                      "factor": "B1",
                      "met": true
                    },
                    {
                      "factor": "B2",
                      "met": false
                    },
                    {
                      "factor": "B3",
                      "met": false
                    },
                    {
                      "factor": "perianal",
                      "met": false
                    }
                  ],
                  "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.",
                  "disease": "crohn",
                  "formula": "montreal_ibd",
                  "formula_expression": "Crohn phenotype = age_at_diagnosis (A1 ≤16 y, A2 17-40 y, A3 >40 y) + location (L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI) + optional +L4 when concomitant upper GI with L1-L3 (forbidden when location is isolated L4) + behaviour (B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating) + optional p when concomitant perianal disease; UC phenotype = extent (E1 ulcerative proctitis distal to the rectosigmoid junction, E2 left-sided distal to the splenic flexure, E3 extensive proximal to the splenic flexure) + severity (S0 clinical remission, S1 mild, S2 moderate, S3 severe as assigned) (Satsangi 2006 Montreal revision of Vienna). Compact string, no spaces. Not a disease-activity score. magent does not perform endoscopy. Not Paris pediatric classification.",
                  "phenotype": "A2L3B1"
                },
                {
                  "citation": {
                    "authors": "Satsangi J, Silverberg MS, Vermeire S, Colombel JF",
                    "doi": "10.1136/gut.2005.082909",
                    "id": "satsangi-2006",
                    "pmid": "16698746",
                    "source": "Gut. 2006;55(6):749-753",
                    "title": "The Montreal classification of inflammatory bowel disease: controversies, consensus, and implications"
                  },
                  "criteria": [
                    {
                      "factor": "disease_crohn",
                      "met": true
                    },
                    {
                      "factor": "disease_uc",
                      "met": false
                    },
                    {
                      "factor": "A1",
                      "met": false
                    },
                    {
                      "factor": "A2",
                      "met": true
                    },
                    {
                      "factor": "A3",
                      "met": false
                    },
                    {
                      "factor": "L1",
                      "met": false
                    },
                    {
                      "factor": "L2",
                      "met": false
                    },
                    {
                      "factor": "L3",
                      "met": true
                    },
                    {
                      "factor": "L4",
                      "met": false
                    },
                    {
                      "factor": "upper_gi",
                      "met": false
                    },
                    {
                      "factor": "B1",
                      "met": true
                    },
                    {
                      "factor": "B2",
                      "met": false
                    },
                    {
                      "factor": "B3",
                      "met": false
                    },
                    {
                      "factor": "perianal",
                      "met": false
                    }
                  ],
                  "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.",
                  "disease": "crohn",
                  "formula": "montreal_ibd",
                  "formula_expression": "Crohn phenotype = age_at_diagnosis (A1 ≤16 y, A2 17-40 y, A3 >40 y) + location (L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI) + optional +L4 when concomitant upper GI with L1-L3 (forbidden when location is isolated L4) + behaviour (B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating) + optional p when concomitant perianal disease; UC phenotype = extent (E1 ulcerative proctitis distal to the rectosigmoid junction, E2 left-sided distal to the splenic flexure, E3 extensive proximal to the splenic flexure) + severity (S0 clinical remission, S1 mild, S2 moderate, S3 severe as assigned) (Satsangi 2006 Montreal revision of Vienna). Compact string, no spaces. Not a disease-activity score. magent does not perform endoscopy. Not Paris pediatric classification.",
                  "phenotype": "A2L3B1"
                }
              ],
              "path": "/api/calc/montreal_ibd"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age_at_diagnosis": {
                            "description": "Montreal Crohn age at diagnosis as assigned (Satsangi 2006): A1 ≤16 years, A2 17-40 years, A3 >40 years. Required when disease=crohn. Omit when disease=uc. magent does not assign the A token from a chart.",
                            "enum": [
                              "A1",
                              "A2",
                              "A3"
                            ],
                            "type": "string"
                          },
                          "behaviour": {
                            "description": "Montreal Crohn behaviour as assigned (Satsangi 2006): B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                            "enum": [
                              "B1",
                              "B2",
                              "B3"
                            ],
                            "type": "string"
                          },
                          "disease": {
                            "description": "Satsangi 2006 Montreal disease as assigned: crohn or uc. IBDU and indeterminate colitis are not encoded. magent does not diagnose IBD.",
                            "enum": [
                              "crohn",
                              "uc"
                            ],
                            "type": "string"
                          },
                          "extent": {
                            "description": "Montreal UC extent as assigned (Satsangi 2006): E1 ulcerative proctitis (distal to the rectosigmoid junction), E2 left-sided (distal to the splenic flexure), E3 extensive (proximal to the splenic flexure). Required when disease=uc. Omit when disease=crohn. magent does not perform endoscopy.",
                            "enum": [
                              "E1",
                              "E2",
                              "E3"
                            ],
                            "type": "string"
                          },
                          "location": {
                            "description": "Montreal Crohn location as assigned (Satsangi 2006): L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                            "enum": [
                              "L1",
                              "L2",
                              "L3",
                              "L4"
                            ],
                            "type": "string"
                          },
                          "perianal": {
                            "description": "Concomitant perianal disease as assigned (Satsangi 2006 p modifier). true appends p after B1, B2, or B3. Required when disease=crohn. Omit when disease=uc. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "severity": {
                            "description": "Montreal UC severity as assigned (Satsangi 2006): S0 clinical remission; S1 mild (≤4 stools/day with or without blood, no systemic illness, normal ESR); S2 moderate (>4 stools/day, minimal systemic toxicity); S3 severe (≥6 bloody stools/day AND pulse ≥90 AND temperature ≥37.5°C AND haemoglobin <10.5 g/100 ml AND ESR ≥30 mm/h). The caller assigns the S token. Required when disease=uc. Omit when disease=crohn. magent does not take vitals.",
                            "enum": [
                              "S0",
                              "S1",
                              "S2",
                              "S3"
                            ],
                            "type": "string"
                          },
                          "upper_gi": {
                            "description": "Concomitant upper GI disease as assigned (Satsangi 2006 L4 modifier). true adds +L4 after L1, L2, or L3. Must be false when location is isolated L4. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "disease"
                        ],
                        "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"
  }
}