{
  "x402Version": 2,
  "id": 39192,
  "slug": "39192",
  "resource": "https://api.magentlab.com/api/calc/egus",
  "description": "Brindle 2021 Edinburgh gastric ulcer score (human gastric ulcer at index OGD): age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1. Total 0-6. higher_malignancy_risk iff score ≥ 3. Use only with macroscopically benign appearance and ≥6 negative biopsies. magent does not read endoscopy images. Not equine EGUS. 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": 50,
                "location": "antral",
                "ulcer_size_cm": 1
              },
              {
                "age": 50,
                "location": "antral",
                "ulcer_size_cm": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Brindle WM, Grant RK, Smith M, Suddaby M, Wallace A, Gillespie SL, Church NI, Noble CL, Penman ID, Plevris JN, Robertson AR, Watson EF, Selinger CP, Kalla R, Masterton GSM, EGAR (Edinburgh GI Audit and Research) Collaborative",
                  "doi": "10.1136/flgastro-2020-101759",
                  "id": "brindle-2021",
                  "pmid": "35295750",
                  "source": "Frontline Gastroenterol. 2021;13(2):111-118",
                  "title": "Risk stratifying gastric ulcers: development and validation of a scoring system"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "ulcer_size_cm",
                    "points": 0,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "location",
                    "points": 0,
                    "present": true,
                    "value": "antral"
                  }
                ],
                "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.",
                "formula": "egus",
                "formula_expression": "EGUS = age_points + ulcer_size_points + location_points; age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1; max 6; higher_malignancy_risk iff score ≥ 3 (Brindle 2021 Youden cut)",
                "higher_malignancy_risk": false,
                "max_score": 6,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Brindle WM, Grant RK, Smith M, Suddaby M, Wallace A, Gillespie SL, Church NI, Noble CL, Penman ID, Plevris JN, Robertson AR, Watson EF, Selinger CP, Kalla R, Masterton GSM, EGAR (Edinburgh GI Audit and Research) Collaborative",
                  "doi": "10.1136/flgastro-2020-101759",
                  "id": "brindle-2021",
                  "pmid": "35295750",
                  "source": "Frontline Gastroenterol. 2021;13(2):111-118",
                  "title": "Risk stratifying gastric ulcers: development and validation of a scoring system"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "ulcer_size_cm",
                    "points": 0,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "location",
                    "points": 0,
                    "present": true,
                    "value": "antral"
                  }
                ],
                "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.",
                "formula": "egus",
                "formula_expression": "EGUS = age_points + ulcer_size_points + location_points; age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1; max 6; higher_malignancy_risk iff score ≥ 3 (Brindle 2021 Youden cut)",
                "higher_malignancy_risk": false,
                "max_score": 6,
                "score": 0
              }
            ],
            "path": "/api/calc/egus"
          },
          "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": {
                          "description": "Age in years (18-120). Brindle 2021: <68 → 0; 68-79 → 1; ≥80 → 2.",
                          "type": "integer"
                        },
                        "location": {
                          "description": "Caller-assigned ulcer location (Brindle 2021). antral (antrum or pre-pylorus) scores 0; non-antral scores 1. Case-insensitive. magent does not read endoscopy images or assign location.",
                          "enum": [
                            "antral",
                            "non-antral"
                          ],
                          "type": "string"
                        },
                        "ulcer_size_cm": {
                          "description": "Endoscopist-estimated ulcer size in cm as assigned by the caller (Brindle 2021). <1.25 cm → 0; 1.25-2.99 cm → 2; ≥3.00 cm → 3. There is no 1-point size band. Magent clamp 0.1-40, not a published range. magent does not measure the ulcer.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "ulcer_size_cm",
                        "location"
                      ],
                      "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": [
    "egus",
    "gastric-ulcer",
    "ogd",
    "gi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T03:16:18.288Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T03:16:18.142Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "location": "antral",
                  "ulcer_size_cm": 1
                },
                {
                  "age": 50,
                  "location": "antral",
                  "ulcer_size_cm": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Brindle WM, Grant RK, Smith M, Suddaby M, Wallace A, Gillespie SL, Church NI, Noble CL, Penman ID, Plevris JN, Robertson AR, Watson EF, Selinger CP, Kalla R, Masterton GSM, EGAR (Edinburgh GI Audit and Research) Collaborative",
                    "doi": "10.1136/flgastro-2020-101759",
                    "id": "brindle-2021",
                    "pmid": "35295750",
                    "source": "Frontline Gastroenterol. 2021;13(2):111-118",
                    "title": "Risk stratifying gastric ulcers: development and validation of a scoring system"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "ulcer_size_cm",
                      "points": 0,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "location",
                      "points": 0,
                      "present": true,
                      "value": "antral"
                    }
                  ],
                  "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.",
                  "formula": "egus",
                  "formula_expression": "EGUS = age_points + ulcer_size_points + location_points; age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1; max 6; higher_malignancy_risk iff score ≥ 3 (Brindle 2021 Youden cut)",
                  "higher_malignancy_risk": false,
                  "max_score": 6,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Brindle WM, Grant RK, Smith M, Suddaby M, Wallace A, Gillespie SL, Church NI, Noble CL, Penman ID, Plevris JN, Robertson AR, Watson EF, Selinger CP, Kalla R, Masterton GSM, EGAR (Edinburgh GI Audit and Research) Collaborative",
                    "doi": "10.1136/flgastro-2020-101759",
                    "id": "brindle-2021",
                    "pmid": "35295750",
                    "source": "Frontline Gastroenterol. 2021;13(2):111-118",
                    "title": "Risk stratifying gastric ulcers: development and validation of a scoring system"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "ulcer_size_cm",
                      "points": 0,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "location",
                      "points": 0,
                      "present": true,
                      "value": "antral"
                    }
                  ],
                  "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.",
                  "formula": "egus",
                  "formula_expression": "EGUS = age_points + ulcer_size_points + location_points; age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1; max 6; higher_malignancy_risk iff score ≥ 3 (Brindle 2021 Youden cut)",
                  "higher_malignancy_risk": false,
                  "max_score": 6,
                  "score": 0
                }
              ],
              "path": "/api/calc/egus"
            },
            "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": {
                            "description": "Age in years (18-120). Brindle 2021: <68 → 0; 68-79 → 1; ≥80 → 2.",
                            "type": "integer"
                          },
                          "location": {
                            "description": "Caller-assigned ulcer location (Brindle 2021). antral (antrum or pre-pylorus) scores 0; non-antral scores 1. Case-insensitive. magent does not read endoscopy images or assign location.",
                            "enum": [
                              "antral",
                              "non-antral"
                            ],
                            "type": "string"
                          },
                          "ulcer_size_cm": {
                            "description": "Endoscopist-estimated ulcer size in cm as assigned by the caller (Brindle 2021). <1.25 cm → 0; 1.25-2.99 cm → 2; ≥3.00 cm → 3. There is no 1-point size band. Magent clamp 0.1-40, not a published range. magent does not measure the ulcer.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "ulcer_size_cm",
                          "location"
                        ],
                        "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"
  }
}