{
  "x402Version": 2,
  "id": 38931,
  "slug": "38931",
  "resource": "https://api.magentlab.com/api/calc/ranson",
  "description": "Ranson 1974 pancreatitis score from eleven published signs (five at admission, six at 48 hours) as boolean flags. Returns points 0-11 and mortality band 0-2 / 3-4 / 5-6 / 7-11. Deterministic published arithmetic with citation; not an ICU order.",
  "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_gt_55": false,
                "ast_gt_250": false,
                "base_deficit_gt_4": false,
                "bun_rise_gt_5": false,
                "calcium_lt_8": false,
                "fluid_seq_gt_6l": false,
                "glucose_gt_200": false,
                "hct_drop_gt_10": false,
                "ldh_gt_350": false,
                "pao2_lt_60": false,
                "wbc_gt_16k": false
              },
              {
                "age_gt_55": false,
                "ast_gt_250": false,
                "base_deficit_gt_4": false,
                "bun_rise_gt_5": false,
                "calcium_lt_8": false,
                "fluid_seq_gt_6l": false,
                "glucose_gt_200": false,
                "hct_drop_gt_10": false,
                "ldh_gt_350": false,
                "pao2_lt_60": false,
                "wbc_gt_16k": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC",
                  "id": "ranson-1974",
                  "pmid": "4834279",
                  "source": "Surg Gynecol Obstet. 1974;139(1):69-81",
                  "title": "Prognostic signs and the role of operative management in acute pancreatitis"
                },
                "components": [
                  {
                    "factor": "age_gt_55",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "wbc_gt_16k",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "glucose_gt_200",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ldh_gt_350",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ast_gt_250",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hct_drop_gt_10",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bun_rise_gt_5",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "calcium_lt_8",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pao2_lt_60",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "base_deficit_gt_4",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "fluid_seq_gt_6l",
                    "points": 0,
                    "present": 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.",
                "formula": "ranson",
                "formula_expression": "Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11",
                "max_score": 11,
                "mortality_band": "0-2",
                "score": 0
              },
              {
                "citation": {
                  "authors": "Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC",
                  "id": "ranson-1974",
                  "pmid": "4834279",
                  "source": "Surg Gynecol Obstet. 1974;139(1):69-81",
                  "title": "Prognostic signs and the role of operative management in acute pancreatitis"
                },
                "components": [
                  {
                    "factor": "age_gt_55",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "wbc_gt_16k",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "glucose_gt_200",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ldh_gt_350",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ast_gt_250",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hct_drop_gt_10",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bun_rise_gt_5",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "calcium_lt_8",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pao2_lt_60",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "base_deficit_gt_4",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "fluid_seq_gt_6l",
                    "points": 0,
                    "present": 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.",
                "formula": "ranson",
                "formula_expression": "Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11",
                "max_score": 11,
                "mortality_band": "0-2",
                "score": 0
              }
            ],
            "path": "/api/calc/ranson"
          },
          "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_gt_55": {
                          "description": "Admission: age >55 years (Ranson 1974). true or false.",
                          "type": "boolean"
                        },
                        "ast_gt_250": {
                          "description": "Admission: AST >250 U/L. true or false.",
                          "type": "boolean"
                        },
                        "base_deficit_gt_4": {
                          "description": "First 48 h: base deficit >4 mEq/L. true or false.",
                          "type": "boolean"
                        },
                        "bun_rise_gt_5": {
                          "description": "First 48 h: BUN rise >5 mg/dL. true or false.",
                          "type": "boolean"
                        },
                        "calcium_lt_8": {
                          "description": "First 48 h: serum calcium <8 mg/dL. true or false.",
                          "type": "boolean"
                        },
                        "fluid_seq_gt_6l": {
                          "description": "First 48 h: estimated fluid sequestration >6 L. true or false.",
                          "type": "boolean"
                        },
                        "glucose_gt_200": {
                          "description": "Admission: blood glucose >200 mg/dL. true or false.",
                          "type": "boolean"
                        },
                        "hct_drop_gt_10": {
                          "description": "First 48 h: hematocrit fall >10 percentage points. true or false.",
                          "type": "boolean"
                        },
                        "ldh_gt_350": {
                          "description": "Admission: LDH >350 IU/L. true or false.",
                          "type": "boolean"
                        },
                        "pao2_lt_60": {
                          "description": "First 48 h: arterial PaO2 <60 mm Hg. true or false.",
                          "type": "boolean"
                        },
                        "wbc_gt_16k": {
                          "description": "Admission: WBC >16 000/mm^3. true or false.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age_gt_55",
                        "wbc_gt_16k",
                        "glucose_gt_200",
                        "ldh_gt_350",
                        "ast_gt_250",
                        "hct_drop_gt_10",
                        "bun_rise_gt_5",
                        "calcium_lt_8",
                        "pao2_lt_60",
                        "base_deficit_gt_4",
                        "fluid_seq_gt_6l"
                      ],
                      "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": [
    "ranson",
    "pancreatitis",
    "gi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:56:47.386Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:56:47.284Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_gt_55": false,
                  "ast_gt_250": false,
                  "base_deficit_gt_4": false,
                  "bun_rise_gt_5": false,
                  "calcium_lt_8": false,
                  "fluid_seq_gt_6l": false,
                  "glucose_gt_200": false,
                  "hct_drop_gt_10": false,
                  "ldh_gt_350": false,
                  "pao2_lt_60": false,
                  "wbc_gt_16k": false
                },
                {
                  "age_gt_55": false,
                  "ast_gt_250": false,
                  "base_deficit_gt_4": false,
                  "bun_rise_gt_5": false,
                  "calcium_lt_8": false,
                  "fluid_seq_gt_6l": false,
                  "glucose_gt_200": false,
                  "hct_drop_gt_10": false,
                  "ldh_gt_350": false,
                  "pao2_lt_60": false,
                  "wbc_gt_16k": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC",
                    "id": "ranson-1974",
                    "pmid": "4834279",
                    "source": "Surg Gynecol Obstet. 1974;139(1):69-81",
                    "title": "Prognostic signs and the role of operative management in acute pancreatitis"
                  },
                  "components": [
                    {
                      "factor": "age_gt_55",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "wbc_gt_16k",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "glucose_gt_200",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ldh_gt_350",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ast_gt_250",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hct_drop_gt_10",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bun_rise_gt_5",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "calcium_lt_8",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pao2_lt_60",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "base_deficit_gt_4",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "fluid_seq_gt_6l",
                      "points": 0,
                      "present": 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.",
                  "formula": "ranson",
                  "formula_expression": "Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11",
                  "max_score": 11,
                  "mortality_band": "0-2",
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC",
                    "id": "ranson-1974",
                    "pmid": "4834279",
                    "source": "Surg Gynecol Obstet. 1974;139(1):69-81",
                    "title": "Prognostic signs and the role of operative management in acute pancreatitis"
                  },
                  "components": [
                    {
                      "factor": "age_gt_55",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "wbc_gt_16k",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "glucose_gt_200",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ldh_gt_350",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ast_gt_250",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hct_drop_gt_10",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bun_rise_gt_5",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "calcium_lt_8",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pao2_lt_60",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "base_deficit_gt_4",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "fluid_seq_gt_6l",
                      "points": 0,
                      "present": 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.",
                  "formula": "ranson",
                  "formula_expression": "Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11",
                  "max_score": 11,
                  "mortality_band": "0-2",
                  "score": 0
                }
              ],
              "path": "/api/calc/ranson"
            },
            "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_gt_55": {
                            "description": "Admission: age >55 years (Ranson 1974). true or false.",
                            "type": "boolean"
                          },
                          "ast_gt_250": {
                            "description": "Admission: AST >250 U/L. true or false.",
                            "type": "boolean"
                          },
                          "base_deficit_gt_4": {
                            "description": "First 48 h: base deficit >4 mEq/L. true or false.",
                            "type": "boolean"
                          },
                          "bun_rise_gt_5": {
                            "description": "First 48 h: BUN rise >5 mg/dL. true or false.",
                            "type": "boolean"
                          },
                          "calcium_lt_8": {
                            "description": "First 48 h: serum calcium <8 mg/dL. true or false.",
                            "type": "boolean"
                          },
                          "fluid_seq_gt_6l": {
                            "description": "First 48 h: estimated fluid sequestration >6 L. true or false.",
                            "type": "boolean"
                          },
                          "glucose_gt_200": {
                            "description": "Admission: blood glucose >200 mg/dL. true or false.",
                            "type": "boolean"
                          },
                          "hct_drop_gt_10": {
                            "description": "First 48 h: hematocrit fall >10 percentage points. true or false.",
                            "type": "boolean"
                          },
                          "ldh_gt_350": {
                            "description": "Admission: LDH >350 IU/L. true or false.",
                            "type": "boolean"
                          },
                          "pao2_lt_60": {
                            "description": "First 48 h: arterial PaO2 <60 mm Hg. true or false.",
                            "type": "boolean"
                          },
                          "wbc_gt_16k": {
                            "description": "Admission: WBC >16 000/mm^3. true or false.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age_gt_55",
                          "wbc_gt_16k",
                          "glucose_gt_200",
                          "ldh_gt_350",
                          "ast_gt_250",
                          "hct_drop_gt_10",
                          "bun_rise_gt_5",
                          "calcium_lt_8",
                          "pao2_lt_60",
                          "base_deficit_gt_4",
                          "fluid_seq_gt_6l"
                        ],
                        "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"
  }
}