# Simplified AIH Score Calculator (Hennes 2008)

> Simplified AIH Score Calculator (Hennes 2008) 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 Hennes 2008 simplified autoimmune hepatitis (AIH) score from caller-assigned autoantibody, IgG, histology, and viral hepatitis absence inputs, returning a total score and classification (not_aih / probable / definite).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/simplified_aih
- 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/simplified-aih-score-calculator-hennes-2008-bc593e03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_odsdZokOX6GTDeIXbKCqa

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 simplified-aih-score-calculator-hennes-2008-bc593e03
```

Example prompt: Calculate the simplified AIH score for a patient with autoantibody points of 2 (ANA ≥1:80), IgG points of 2 (IgG >1.10× ULN), typical liver histology, and viral hepatitis confirmed absent — what's the total score and classification?

## When to prefer this

Use this endpoint when an agent or workflow has already obtained and interpreted the four Hennes 2008 Table 2 criteria — autoantibody titer class, IgG-vs-ULN class, histology reading, and viral hepatitis serology result — and needs to convert them into a standardized total score and probable/definite/not_aih classification. Do not use if raw lab values (IgG concentration, antibody titers, histology slides, or viral serology) need to be interpreted; those steps must be done upstream. This is specifically the 2008 simplified score, not the original 1999 IAHG scoring system.

## Known failure modes

- Missing required query parameters (autoantibody_points, igg_points, histology, viral_hepatitis_absent) returns a validation error
- Out-of-range integer values for autoantibody_points or igg_points (outside 0-2) are rejected
- Invalid histology enum value (must be 'none', 'compatible', or 'typical') returns an error
- Non-boolean value for viral_hepatitis_absent causes a schema validation failure
- Score does not constitute a clinical diagnosis; misuse of output without physician interpretation is a user-side failure

## How this service works

Hennes 2008 simplified AIH (Table 2): caller-assigned autoantibody points 0-2 (max 2 across ANA/SMA/LKM/SLA), IgG points 0-2 (≤ULN / >ULN / >1.10×ULN), histology none 0 / compatible 1 / typical 2, viral hepatitis absent true 2. Max 8. Score <6 not_aih, 6 probable, ≥7 definite. Not a diagnosis and not the original 1999 IAHG score. magent does not titer autoantibodies, assay IgG vs ULN, or read liver histology.

## Output

Returns the total simplified AIH score (integer 0–8) and a classification string: 'not_aih' for scores below 6, 'probable' for a score of 6, or 'definite' for scores of 7 or 8. Does not perform any laboratory interpretation itself — all four component point values must be pre-assigned by the caller.

## 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": [
      "autoantibody_points",
      "igg_points",
      "histology",
      "viral_hepatitis_absent"
     ],
     "properties": {
      "histology": {
       "enum": [
        "none",
        "compatible",
        "typical"
       ],
       "type": "string",
       "description": "Caller-assigned Hennes 2008 Table 2 liver histology. none scores 0 (hepatitis is required for histology points). compatible scores 1. typical scores 2. magent does not read liver histology."
      },
      "igg_points": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Hennes 2008 Table 2 IgG points (0, 1, or 2). 0: IgG ≤ULN. 1: IgG >ULN. 2: IgG >1.10×ULN. magent does not assay IgG vs ULN."
      },
      "autoantibody_points": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Hennes 2008 Table 2 autoantibody points (0, 1, or 2; max 2 across ANA/SMA/LKM/SLA). 0: not scoring. 1: ANA or SMA ≥1:40. 2: ANA or SMA ≥1:80 or LKM ≥1:40 or SLA positive. magent does not titer autoantibodies."
      },
      "viral_hepatitis_absent": {
       "type": "boolean",
       "description": "Caller-assigned Hennes 2008 Table 2 viral hepatitis absence. true scores 2; false scores 0. magent does not interpret viral serology."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/simplified_aih",
  "count": 2,
  "items": [
   {
    "score": 8,
    "formula": "simplified_aih",
    "aih_band": "definite",
    "citation": {
     "id": "hennes-2008",
     "doi": "10.1002/hep.22322",
     "pmid": "18537184",
     "title": "Simplified criteria for the diagnosis of autoimmune hepatitis",
     "source": "Hepatology. 2008;48(1):169-176",
     "authors": "Hennes EM, Zeniya M, Czaja AJ, Parés A, Dalekos GN, Krawitt EL, Bittencourt PL, Porta G, Boberg KM, Hofer H, Francesconi F, Dufour JF, Vergani D, Lohse AW; International Autoimmune Hepatitis Group"
    },
    "max_score": 8,
    "components": [
     {
      "value": 2,
      "factor": "autoantibody_points",
      "points": 2,
      "present": true
     },
     {
      "value": 2,
      "factor": "igg_points",
      "points": 2,
      "present": true
     },
     {
      "value": "typical",
      "factor": "histology",
      "points": 2,
      "present": true
     },
     {
      "factor": "viral_hepatitis_absent",
      "points": 2,
      "present": true
     }
    ],
    "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_expression": "simplified AIH = autoantibody_points (0-2) + igg_points (0-2) + histology (none 0, compatible 1, typical 2) + viral_hepatitis_absent (true 2); Hennes 2008 Table 2; max 8; <6 not_aih, 6 probable, ≥7 definite"
   },
   {
    "score": 8,
    "formula": "simplified_aih",
    "aih_band": "definite",
    "citation": {
     "id": "hennes-2008",
     "doi": "10.1002/hep.22322",
     "pmid": "18537184",
     "title": "Simplified criteria for the diagnosis of autoimmune hepatitis",
     "source": "Hepatology. 2008;48(1):169-176",
     "authors": "Hennes EM, Zeniya M, Czaja AJ, Parés A, Dalekos GN, Krawitt EL, Bittencourt PL, Porta G, Boberg KM, Hofer H, Francesconi F, Dufour JF, Vergani D, Lohse AW; International Autoimmune Hepatitis Group"
    },
    "max_score": 8,
    "components": [
     {
      "value": 2,
      "factor": "autoantibody_points",
      "points": 2,
      "present": true
     },
     {
      "value": 2,
      "factor": "igg_points",
      "points": 2,
      "present": true
     },
     {
      "value": "typical",
      "factor": "histology",
      "points": 2,
      "present": true
     },
     {
      "factor": "viral_hepatitis_absent"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/simplified-aih-score-calculator-hennes-2008-bc593e03/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)
