# CholeS Score Calculator (Bharamgoudar 2018)

> CholeS Score Calculator (Bharamgoudar 2018) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the Bharamgoudar 2018 CholeS Table 3 numeric score predicting elective laparoscopic cholecystectomy operative duration from 10 patient factors.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/choles_score
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/choles-score-calculator-bharamgoudar-2018-6e5c948a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eHukPWgs8n06jynH117sR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability choles-score-calculator-bharamgoudar-2018-6e5c948a
```

Example prompt: Calculate the CholeS score for a 55-year-old male with a BMI of 32, ASA class 2, indication of CBD stone, dilated common bile duct, thickened gallbladder wall, no pre-op CT, planned intraoperative cholangiogram, and 1 previous surgical admission.

## When to prefer this

Use this endpoint when you need the exact Bharamgoudar 2018 CholeS Table 3 numeric score specifically for elective laparoscopic cholecystectomy operative duration prediction. Prefer it over generic surgical risk tools (e.g. Nassar, Tokyo guidelines) when the clinical question is predicted operative time rather than complication risk or severity grading. It is not suitable for emergency cholecystectomy, open surgery, or acute cholecystitis severity staging.

## Known failure modes

- Missing required query parameter returns an error (all 10 fields are mandatory)
- Out-of-range age (below 18 or above 120) rejected
- BMI outside 10–80 range rejected
- Invalid enum value for sex, indication, cbd_diameter, gallbladder_wall, pre_operative_ct, planned_intraop_cholangiogram rejected
- ASA class outside 1–5 integer range rejected
- HTTP 402 if payment header is absent or insufficient (x402 payment required)

## How this service works

Bharamgoudar 2018 CholeS Table 3 score for elective laparoscopic cholecystectomy duration. Age, sex, indication, BMI, CBD diameter, gallbladder wall, pre-op CT, planned IOC, prior surgical admissions, ASA class. Max 20. Numeric total only; no duration bands. Not a booking, not Nassar, not Tokyo. magent does not image the gallbladder.

## Output

A single numeric CholeS score (integer or decimal, maximum 20) representing predicted operative complexity for elective laparoscopic cholecystectomy, derived by summing weighted points from all 10 input factors per Bharamgoudar 2018 Table 3. No duration bands or textual interpretation are returned — only the raw numeric total.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "age",
      "sex",
      "indication",
      "bmi_kg_m2",
      "cbd_diameter",
      "gallbladder_wall",
      "pre_operative_ct",
      "planned_intraop_cholangiogram",
      "previous_surgical_admissions",
      "asa_class"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Bharamgoudar 2018 Table 3: <40 scores 0; ≥40 scores 1.5. Age 39 scores 0; 40 scores 1.5."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male. Female scores 0; male scores 1 (Bharamgoudar 2018 Table 3)."
      },
      "asa_class": {
       "type": "integer",
       "description": "ASA physical status class, integer 1-5 (Bharamgoudar 2018 Table 3; Gupta 2011 1-5 range). 1 scores 0; 2 scores 1; 3-5 scores 2.5. magent does not assign ASA class."
      },
      "bmi_kg_m2": {
       "type": "number",
       "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Bharamgoudar 2018 Table 3: <25 scores 0; 25-35 inclusive scores 1; >35 scores 2. 25.0 and 35.0 score 1; 36 scores 2."
      },
      "indication": {
       "enum": [
        "pancreatitis",
        "colic_dyskinesia_polyp",
        "cbd_stone",
        "acalculous_cholecystitis"
       ],
       "type": "string",
       "description": "Caller-assigned indication for elective laparoscopic cholecystectomy (Bharamgoudar 2018 Table 3). pancreatitis scores 0. colic_dyskinesia_polyp (biliary colic, biliary dyskinesia, or gallbladder polyp) scores 0.5. cbd_stone scores 2. acalculous_cholecystitis scores 2.5. magent does not diagnose the indication."
      },
      "cbd_diameter": {
       "enum": [
        "normal",
        "dilated"
       ],
       "type": "string",
       "description": "Caller-assigned common bile duct diameter (Bhara
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/choles-score-calculator-bharamgoudar-2018-6e5c948a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
