# Mumtaz readmission score

Mumtaz

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/mumtaz`
HTML: https://magentlab.com/docs/mumtaz
Markdown: https://magentlab.com/docs/mumtaz.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Sum Mumtaz 2019 index-admission integer points and return the published predicted 30-day all-cause readmission percent and low/medium/high band.

## When to use

When an agent has already assigned Mumtaz 2019 index-admission variables (including a caller-assigned Elixhauser ≥3 flag) and needs the published integer score and 30-day readmission band, not a discharge order, Child-Pugh class, or MELD.

## When not to use

- Not a medical device and not a discharge, transfer, home-health, or against-medical-advice order.
- elixhauser_ge_3 is caller-assigned. magent does not compute the Elixhauser comorbidity index.
- Integer points and predicted 30-day all-cause readmission percents follow Mumtaz 2019. Bands are low <20% (score -11 to 6), medium 20-30% (score 7 to 17), and high >30% (score 18 to 49). Not a clinical-severity class.
- This is not Child-Pugh and not MELD. There are no laboratories in this score.
- Derived on the Nationwide Readmission Database (administrative codes) for decompensated cirrhosis at index discharge. Do not use for age <18, mechanical ventilation, palliative care, prior liver transplant, or elective admission (derivation exclusions).

## Formula

```
Mumtaz = age_points + primary_payer_points + elixhauser_ge_3(2) + non_alcoholic_etiology(2) + ascites(5) + hepatic_encephalopathy(4) + variceal_bleeding(-7) + hepatocellular_carcinoma(3) + paracentesis(4) + hemodialysis(7) + disposition_points; Mumtaz 2019; age 18-39 7, 40-64 4, >=65 0; medicare 4, medicaid 5, private 0, self_pay -3, other -1; disposition routine 0, transfer -1, home_health 1, ama 10; range -11 to 49; estimated_readmission_percent is the published score-to-probability mapping; readmission_band low <20% (score -11 to 6), medium 20-30% (7 to 17), high >30% (18 to 49)
```

## Citation

[Validation of Risk Score in Predicting Early Readmissions in Decompensated Cirrhotic Patients: A Model Based on the Administrative Database](https://doi.org/10.1002/hep.30274)
Mumtaz K, Issak A, Porter K, et al.
Hepatology. 2019;70(2):630-639
DOI: [10.1002/hep.30274](https://doi.org/10.1002/hep.30274)

## Worked example

### Age 70, private payer, no flags, routine discharge

Given: `age=70, ascites=false, disposition=routine, elixhauser_ge_3=false, hemodialysis=false, hepatic_encephalopathy=false, hepatocellular_carcinoma=false, non_alcoholic_etiology=false, paracentesis=false, primary_payer=private, variceal_bleeding=false`

1. age ≥65 → 0; private → 0; all flags false → 0; routine → 0
2. score = 0 (range -11 to 49)
3. estimated_readmission_percent = 15.1; readmission_band low (<20%)


### Age 30, Medicaid, ascites, encephalopathy, paracentesis

Given: `age=30, ascites=true, disposition=routine, elixhauser_ge_3=false, hemodialysis=false, hepatic_encephalopathy=true, hepatocellular_carcinoma=false, non_alcoholic_etiology=false, paracentesis=true, primary_payer=medicaid, variceal_bleeding=false`

1. age 18-39 → +7; medicaid → +5; ascites → +5; hepatic_encephalopathy → +4; paracentesis → +4
2. score = 25
3. estimated_readmission_percent = 38.3; readmission_band high (>30%)


## Also searched as

- Mumtaz readmission risk score
- Mumtaz 2019 cirrhosis readmission
- decompensated cirrhosis 30-day readmission
- NRD cirrhosis readmission score
- cirrhosis early readmission score
- administrative cirrhosis readmission model

## Parameters

- `age` (integer, required): Age in years (18-120). Mumtaz 2019: 18-39 → +7; 40-64 → +4; ≥65 → 0. Adult derivation.
- `primary_payer` (string, required): Primary payer (Mumtaz 2019). medicare → +4; medicaid → +5; private → 0; self_pay → -3; other → -1. Caller-assigned; magent does not read insurance.
- `elixhauser_ge_3` (boolean, required): Caller-assigned Elixhauser comorbidity index ≥3 (Mumtaz 2019). true → +2; false → 0. magent does not compute Elixhauser.
- `non_alcoholic_etiology` (boolean, required): Caller-assigned nonalcoholic etiology of cirrhosis (Mumtaz 2019). true → +2; false → 0. magent does not assign etiology.
- `ascites` (boolean, required): Caller-assigned ascites on the index admission (Mumtaz 2019). true → +5; false → 0. magent does not examine the patient.
- `hepatic_encephalopathy` (boolean, required): Caller-assigned hepatic encephalopathy on the index admission (Mumtaz 2019). true → +4; false → 0. magent does not grade encephalopathy.
- `variceal_bleeding` (boolean, required): Caller-assigned variceal bleeding on the index admission (Mumtaz 2019). true → -7; false → 0. magent does not diagnose bleeding.
- `hepatocellular_carcinoma` (boolean, required): Caller-assigned hepatocellular carcinoma (Mumtaz 2019). true → +3; false → 0. magent does not read imaging.
- `paracentesis` (boolean, required): Caller-assigned paracentesis during the index admission (Mumtaz 2019). true → +4; false → 0. magent does not record procedures.
- `hemodialysis` (boolean, required): Caller-assigned hemodialysis during the index admission (Mumtaz 2019). true → +7; false → 0. magent does not order dialysis.
- `disposition` (string, required): Discharge disposition (Mumtaz 2019). routine → 0; transfer → -1; home_health → +1; ama → +10. Caller-assigned; not a discharge order.

## Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/mumtaz`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request:

```json
{
  "items": [
    {
      "age": "70",
      "ascites": "false",
      "disposition": "routine",
      "elixhauser_ge_3": "false",
      "hemodialysis": "false",
      "hepatic_encephalopathy": "false",
      "hepatocellular_carcinoma": "false",
      "non_alcoholic_etiology": "false",
      "paracentesis": "false",
      "primary_payer": "private",
      "variceal_bleeding": "false"
    },
    {
      "age": "70",
      "ascites": "false",
      "disposition": "routine",
      "elixhauser_ge_3": "false",
      "hemodialysis": "false",
      "hepatic_encephalopathy": "false",
      "hepatocellular_carcinoma": "false",
      "non_alcoholic_etiology": "false",
      "paracentesis": "false",
      "primary_payer": "private",
      "variceal_bleeding": "false"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/mumtaz

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/mumtaz",
  "items": [
    {
      "components": [
        {
          "value": 70,
          "factor": "age",
          "points": 0,
          "present": true
        },
        {
          "value": "private",
          "factor": "primary_payer",
          "points": 0,
          "present": true
        },
        {
          "factor": "elixhauser_ge_3",
          "points": 0,
          "present": false
        },
        {
          "factor": "non_alcoholic_etiology",
          "points": 0,
          "present": false
        },
        {
          "factor": "ascites",
          "points": 0,
          "present": false
        },
        {
          "factor": "hepatic_encephalopathy",
          "points": 0,
          "present": false
        },
        {
          "factor": "variceal_bleeding",
          "points": 0,
          "present": false
        },
        {
          "factor": "hepatocellular_carcinoma",
          "points": 0,
          "present": false
        },
        {
          "factor": "paracentesis",
          "points": 0,
          "present": false
        },
        {
          "factor": "hemodialysis",
          "points": 0,
          "present": false
        },
        {
          "value": "routine",
          "factor": "disposition",
          "points": 0,
          "present": true
        }
      ],
      "disposition": "routine",
      "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.",
      "citation": {
        "authors": "Mumtaz K, Issak A, Porter K, et al.",
        "doi": "10.1002/hep.30274",
        "id": "mumtaz-2019",
        "pmid": "30218583",
        "source": "Hepatology. 2019;70(2):630-639",
        "title": "Validation of Risk Score in Predicting Early Readmissions in Decompensated Cirrhotic Patients: A Model Based on the Administrative Database"
      },
      "formula": "mumtaz",
      "formula_expression": "Mumtaz = age_points + primary_payer_points + elixhauser_ge_3(2) + non_alcoholic_etiology(2) + ascites(5) + hepatic_encephalopathy(4) + variceal_bleeding(-7) + hepatocellular_carcinoma(3) + paracentesis(4) + hemodialysis(7) + disposition_points; Mumtaz 2019; age 18-39 7, 40-64 4, >=65 0; medicare 4, medicaid 5, private 0, self_pay -3, other -1; disposition routine 0, transfer -1, home_health 1, ama 10; range -11 to 49; estimated_readmission_percent is the published score-to-probability mapping; readmission_band low <20% (score -11 to 6), medium 20-30% (7 to 17), high >30% (18 to 49)",
      "age_years": 70,
      "max_score": 49,
      "score": 0,
      "min_score": -11,
      "estimated_readmission_percent": 15.1,
      "primary_payer": "private",
      "readmission_band": "low"
    },
    {
      "components": [
        {
          "value": 70,
          "factor": "age",
          "points": 0,
          "present": true
        },
        {
          "value": "private",
          "factor": "primary_payer",
          "points": 0,
          "present": true
        },
        {
          "factor": "elixhauser_ge_3",
          "points": 0,
          "present": false
        },
        {
          "factor": "non_alcoholic_etiology",
          "points": 0,
          "present": false
        },
        {
          "factor": "ascites",
          "points": 0,
          "present": false
        },
        {
          "factor": "hepatic_encephalopathy",
          "points": 0,
          "present": false
        },
        {
          "factor": "variceal_bleeding",
          "points": 0,
          "present": false
        },
        {
          "factor": "hepatocellular_carcinoma",
          "points": 0,
          "present": false
        },
        {
          "factor": "paracentesis",
          "points": 0,
          "present": false
        },
        {
          "factor": "hemodialysis",
          "points": 0,
          "present": false
        },
        {
          "value": "routine",
          "factor": "disposition",
          "points": 0,
          "present": true
        }
      ],
      "disposition": "routine",
      "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.",
      "citation": {
        "authors": "Mumtaz K, Issak A, Porter K, et al.",
        "doi": "10.1002/hep.30274",
        "id": "mumtaz-2019",
        "pmid": "30218583",
        "source": "Hepatology. 2019;70(2):630-639",
        "title": "Validation of Risk Score in Predicting Early Readmissions in Decompensated Cirrhotic Patients: A Model Based on the Administrative Database"
      },
      "formula": "mumtaz",
      "formula_expression": "Mumtaz = age_points + primary_payer_points + elixhauser_ge_3(2) + non_alcoholic_etiology(2) + ascites(5) + hepatic_encephalopathy(4) + variceal_bleeding(-7) + hepatocellular_carcinoma(3) + paracentesis(4) + hemodialysis(7) + disposition_points; Mumtaz 2019; age 18-39 7, 40-64 4, >=65 0; medicare 4, medicaid 5, private 0, self_pay -3, other -1; disposition routine 0, transfer -1, home_health 1, ama 10; range -11 to 49; estimated_readmission_percent is the published score-to-probability mapping; readmission_band low <20% (score -11 to 6), medium 20-30% (7 to 17), high >30% (18 to 49)",
      "age_years": 70,
      "max_score": 49,
      "score": 0,
      "min_score": -11,
      "estimated_readmission_percent": 15.1,
      "primary_payer": "private",
      "readmission_band": "low"
    }
  ]
}
```

## Response fields

- `formula` (string): mumtaz
- `formula_expression` (string): Exact expression used
- `score` (integer): Mumtaz 2019 integer points. Published range -11 to 49.
- `min_score` (integer): -11
- `max_score` (integer): 49
- `age_years` (integer): Age in years used for age points
- `primary_payer` (string): medicare, medicaid, private, self_pay, or other
- `disposition` (string): routine, transfer, home_health, or ama
- `estimated_readmission_percent` (number): Published predicted 30-day all-cause readmission percent for this integer score. A population probability, not an individual outcome.
- `readmission_band` (string): Mumtaz 2019 predicted 30-day readmission strata: low <20%, medium 20-30%, high >30%. Not a discharge order.
- `components` (array): Per-factor points
- `citation` (object): Mumtaz et al. Hepatology 2019 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 70,
      "factor": "age",
      "points": 0,
      "present": true
    },
    {
      "value": "private",
      "factor": "primary_payer",
      "points": 0,
      "present": true
    },
    {
      "factor": "elixhauser_ge_3",
      "points": 0,
      "present": false
    },
    {
      "factor": "non_alcoholic_etiology",
      "points": 0,
      "present": false
    },
    {
      "factor": "ascites",
      "points": 0,
      "present": false
    },
    {
      "factor": "hepatic_encephalopathy",
      "points": 0,
      "present": false
    },
    {
      "factor": "variceal_bleeding",
      "points": 0,
      "present": false
    },
    {
      "factor": "hepatocellular_carcinoma",
      "points": 0,
      "present": false
    },
    {
      "factor": "paracentesis",
      "points": 0,
      "present": false
    },
    {
      "factor": "hemodialysis",
      "points": 0,
      "present": false
    },
    {
      "value": "routine",
      "factor": "disposition",
      "points": 0,
      "present": true
    }
  ],
  "disposition": "routine",
  "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.",
  "citation": {
    "authors": "Mumtaz K, Issak A, Porter K, et al.",
    "doi": "10.1002/hep.30274",
    "id": "mumtaz-2019",
    "pmid": "30218583",
    "source": "Hepatology. 2019;70(2):630-639",
    "title": "Validation of Risk Score in Predicting Early Readmissions in Decompensated Cirrhotic Patients: A Model Based on the Administrative Database"
  },
  "formula": "mumtaz",
  "formula_expression": "Mumtaz = age_points + primary_payer_points + elixhauser_ge_3(2) + non_alcoholic_etiology(2) + ascites(5) + hepatic_encephalopathy(4) + variceal_bleeding(-7) + hepatocellular_carcinoma(3) + paracentesis(4) + hemodialysis(7) + disposition_points; Mumtaz 2019; age 18-39 7, 40-64 4, >=65 0; medicare 4, medicaid 5, private 0, self_pay -3, other -1; disposition routine 0, transfer -1, home_health 1, ama 10; range -11 to 49; estimated_readmission_percent is the published score-to-probability mapping; readmission_band low <20% (score -11 to 6), medium 20-30% (7 to 17), high >30% (18 to 49)",
  "age_years": 70,
  "max_score": 49,
  "score": 0,
  "min_score": -11,
  "estimated_readmission_percent": 15.1,
  "primary_payer": "private",
  "readmission_band": "low"
}
```

## Errors

- HTTP 400 `invalid_age`: age must be an integer from 18 to 120 Returned before settlement; you are not charged.
- HTTP 400 `invalid_mumtaz_payer`: primary_payer must be medicare, medicaid, private, self_pay, or other (Mumtaz 2019). Returned before settlement; you are not charged.
- HTTP 400 `invalid_mumtaz_disposition`: disposition must be routine, transfer, home_health, or ama (Mumtaz 2019). Returned before settlement; you are not charged.
- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [Child–Pugh](https://magentlab.com/docs/child-pugh) — Compute the Child–Turcotte–Pugh cirrhosis severity score from bilirubin, albumin, INR, encephalopathy, and ascites.
- [MELD](https://magentlab.com/docs/meld) — Compute the Kamath 2001 model for end-stage liver disease (MELD) integer from creatinine, bilirubin, INR, and cholestatic or alcoholic etiology.
- [LACE](https://magentlab.com/docs/lace) — Sum van Walraven 2010 Table 3 LACE points from length of stay, acute (emergent) admission, a caller-supplied Charlson integer, and ED visits in the previous 6 months.

## Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/docs/mcp

## Guarantees

- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.
