{
  "x402Version": 2,
  "id": 39123,
  "slug": "39123",
  "resource": "https://api.magentlab.com/api/calc/hcc_ld",
  "description": "Citterio 2016 JAMA Surgery hierarchic classes for liver decompensation after HCC resection from caller-assigned portal_hypertension, major_hepatectomy, and meld (integer 6-40). High if PHT and major (LD 60.0%, liver-related mortality 25.0%). Low if no PHT, minor, and MELD ≤ 9 (LD 4.9%, mortality 4.4%). Else intermediate (LD 28.6%, mortality 9.0%). magent does not compute MELD or HVPG. Not a surgical indication, transplant listing, or 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": [
              {
                "major_hepatectomy": false,
                "meld": 8,
                "portal_hypertension": false
              },
              {
                "major_hepatectomy": false,
                "meld": 8,
                "portal_hypertension": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Citterio D, Facciorusso A, Sposito C, Rota R, Bhoori S, Mazzaferro V",
                  "doi": "10.1001/jamasurg.2016.1121",
                  "id": "citterio-2016",
                  "pmid": "27248425",
                  "source": "JAMA Surg. 2016;151(9):846-853",
                  "title": "Hierarchic Interaction of Factors Associated With Liver Decompensation After Resection for Hepatocellular Carcinoma"
                },
                "criteria": [
                  {
                    "factor": "portal_hypertension",
                    "met": false
                  },
                  {
                    "factor": "major_hepatectomy",
                    "met": false
                  },
                  {
                    "factor": "meld_le_9",
                    "met": true,
                    "value": 8
                  },
                  {
                    "factor": "low",
                    "met": true
                  },
                  {
                    "factor": "intermediate",
                    "met": false
                  },
                  {
                    "factor": "high",
                    "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.",
                "formula": "hcc_ld",
                "formula_expression": "Citterio 2016 JAMA Surgery: high if portal_hypertension and major_hepatectomy; low if not portal_hypertension and not major_hepatectomy and meld ≤ 9; else intermediate. Published LD 4.9 / 28.6 / 60.0 and liver-related mortality 4.4 / 9.0 / 25.0. Caller-assigned PHT, planned extent, and MELD. magent does not compute MELD or HVPG.",
                "ld_rate_percent": 4.9,
                "liver_related_mortality_percent": 4.4,
                "major_hepatectomy": false,
                "meld": 8,
                "portal_hypertension": false,
                "risk": "low"
              },
              {
                "citation": {
                  "authors": "Citterio D, Facciorusso A, Sposito C, Rota R, Bhoori S, Mazzaferro V",
                  "doi": "10.1001/jamasurg.2016.1121",
                  "id": "citterio-2016",
                  "pmid": "27248425",
                  "source": "JAMA Surg. 2016;151(9):846-853",
                  "title": "Hierarchic Interaction of Factors Associated With Liver Decompensation After Resection for Hepatocellular Carcinoma"
                },
                "criteria": [
                  {
                    "factor": "portal_hypertension",
                    "met": false
                  },
                  {
                    "factor": "major_hepatectomy",
                    "met": false
                  },
                  {
                    "factor": "meld_le_9",
                    "met": true,
                    "value": 8
                  },
                  {
                    "factor": "low",
                    "met": true
                  },
                  {
                    "factor": "intermediate",
                    "met": false
                  },
                  {
                    "factor": "high",
                    "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.",
                "formula": "hcc_ld",
                "formula_expression": "Citterio 2016 JAMA Surgery: high if portal_hypertension and major_hepatectomy; low if not portal_hypertension and not major_hepatectomy and meld ≤ 9; else intermediate. Published LD 4.9 / 28.6 / 60.0 and liver-related mortality 4.4 / 9.0 / 25.0. Caller-assigned PHT, planned extent, and MELD. magent does not compute MELD or HVPG.",
                "ld_rate_percent": 4.9,
                "liver_related_mortality_percent": 4.4,
                "major_hepatectomy": false,
                "meld": 8,
                "portal_hypertension": false,
                "risk": "low"
              }
            ],
            "path": "/api/calc/hcc_ld"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "major_hepatectomy": {
                          "description": "Planned major hepatectomy as assigned by the caller (Citterio 2016). true or false. magent does not choose extent of resection.",
                          "type": "boolean"
                        },
                        "meld": {
                          "description": "Caller-assigned MELD integer 6-40 (Citterio 2016). Low requires meld ≤ 9 when portal hypertension and major hepatectomy are both false. magent does not compute MELD.",
                          "type": "integer"
                        },
                        "portal_hypertension": {
                          "description": "Clinically significant portal hypertension as assigned by the caller (Citterio 2016). true or false. magent does not measure HVPG or assign portal hypertension.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "portal_hypertension",
                        "major_hepatectomy",
                        "meld"
                      ],
                      "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": [
    "citterio",
    "hcc",
    "liver",
    "resection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:36:23.997Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:36:23.882Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "major_hepatectomy": false,
                  "meld": 8,
                  "portal_hypertension": false
                },
                {
                  "major_hepatectomy": false,
                  "meld": 8,
                  "portal_hypertension": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Citterio D, Facciorusso A, Sposito C, Rota R, Bhoori S, Mazzaferro V",
                    "doi": "10.1001/jamasurg.2016.1121",
                    "id": "citterio-2016",
                    "pmid": "27248425",
                    "source": "JAMA Surg. 2016;151(9):846-853",
                    "title": "Hierarchic Interaction of Factors Associated With Liver Decompensation After Resection for Hepatocellular Carcinoma"
                  },
                  "criteria": [
                    {
                      "factor": "portal_hypertension",
                      "met": false
                    },
                    {
                      "factor": "major_hepatectomy",
                      "met": false
                    },
                    {
                      "factor": "meld_le_9",
                      "met": true,
                      "value": 8
                    },
                    {
                      "factor": "low",
                      "met": true
                    },
                    {
                      "factor": "intermediate",
                      "met": false
                    },
                    {
                      "factor": "high",
                      "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.",
                  "formula": "hcc_ld",
                  "formula_expression": "Citterio 2016 JAMA Surgery: high if portal_hypertension and major_hepatectomy; low if not portal_hypertension and not major_hepatectomy and meld ≤ 9; else intermediate. Published LD 4.9 / 28.6 / 60.0 and liver-related mortality 4.4 / 9.0 / 25.0. Caller-assigned PHT, planned extent, and MELD. magent does not compute MELD or HVPG.",
                  "ld_rate_percent": 4.9,
                  "liver_related_mortality_percent": 4.4,
                  "major_hepatectomy": false,
                  "meld": 8,
                  "portal_hypertension": false,
                  "risk": "low"
                },
                {
                  "citation": {
                    "authors": "Citterio D, Facciorusso A, Sposito C, Rota R, Bhoori S, Mazzaferro V",
                    "doi": "10.1001/jamasurg.2016.1121",
                    "id": "citterio-2016",
                    "pmid": "27248425",
                    "source": "JAMA Surg. 2016;151(9):846-853",
                    "title": "Hierarchic Interaction of Factors Associated With Liver Decompensation After Resection for Hepatocellular Carcinoma"
                  },
                  "criteria": [
                    {
                      "factor": "portal_hypertension",
                      "met": false
                    },
                    {
                      "factor": "major_hepatectomy",
                      "met": false
                    },
                    {
                      "factor": "meld_le_9",
                      "met": true,
                      "value": 8
                    },
                    {
                      "factor": "low",
                      "met": true
                    },
                    {
                      "factor": "intermediate",
                      "met": false
                    },
                    {
                      "factor": "high",
                      "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.",
                  "formula": "hcc_ld",
                  "formula_expression": "Citterio 2016 JAMA Surgery: high if portal_hypertension and major_hepatectomy; low if not portal_hypertension and not major_hepatectomy and meld ≤ 9; else intermediate. Published LD 4.9 / 28.6 / 60.0 and liver-related mortality 4.4 / 9.0 / 25.0. Caller-assigned PHT, planned extent, and MELD. magent does not compute MELD or HVPG.",
                  "ld_rate_percent": 4.9,
                  "liver_related_mortality_percent": 4.4,
                  "major_hepatectomy": false,
                  "meld": 8,
                  "portal_hypertension": false,
                  "risk": "low"
                }
              ],
              "path": "/api/calc/hcc_ld"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "major_hepatectomy": {
                            "description": "Planned major hepatectomy as assigned by the caller (Citterio 2016). true or false. magent does not choose extent of resection.",
                            "type": "boolean"
                          },
                          "meld": {
                            "description": "Caller-assigned MELD integer 6-40 (Citterio 2016). Low requires meld ≤ 9 when portal hypertension and major hepatectomy are both false. magent does not compute MELD.",
                            "type": "integer"
                          },
                          "portal_hypertension": {
                            "description": "Clinically significant portal hypertension as assigned by the caller (Citterio 2016). true or false. magent does not measure HVPG or assign portal hypertension.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "portal_hypertension",
                          "major_hepatectomy",
                          "meld"
                        ],
                        "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"
  }
}