# ICE Score — Infective Endocarditis 6-Month In-Hospital Mortality Calculator (Park 2016)

> ICE Score — Infective Endocarditis 6-Month In-Hospital Mortality Calculator (Park 2016) 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 Park 2016 ICE Table 5 simplified score and corresponding quadratic 6-month in-hospital mortality estimate for infective endocarditis, plus a flag indicating high-risk (score ≥ 8).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ie_mortality
- 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/ice-score-infective-endocarditis-6-month-in-hospital-mortality-5961b7ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yatmbmqdMRVMfkpkjnRia

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 ice-score-infective-endocarditis-6-month-in-hospital-mortality-5961b7ff
```

Example prompt: Calculate the Park 2016 ICE mortality score for a 68-year-old patient with infective endocarditis who is on dialysis, has nosocomial acquisition, an aortic vegetation, persistent bacteremia, NYHA class 3, and a stroke, but no prosthetic valve, no S. aureus, no viridans strep, no mitral vegetation, no paravalvular complication, symptoms less than 1 month, and no surgical treatment planned.

## When to prefer this

Use this endpoint when you need a fast, structured, reproducible computation of the Park 2016 ICE simplified 6-month mortality score with explicit flag inputs already determined by the clinical caller. Prefer it over manual lookup when building clinical dashboards, audit trails, or agent workflows where the IE risk tier and mortality percentage must be recorded programmatically. It does not perform diagnosis, echocardiogram interpretation, or surgical decision-making.

## Known failure modes

- Missing required query parameters (age or any boolean flag) returns a 400/422 validation error
- Age value outside 18–120 integer range may be rejected or scored unexpectedly
- Non-boolean values for flag parameters cause schema validation failure
- Payment failure or missing x402 header prevents the call from completing
- Network timeout or 5xx from the upstream service

## How this service works

Park 2016 ICE Table 5 simplified 6-month IE mortality score: constant 4, age bands (<=45: 0; 46-60: 2; 61-70: 3; >70: 4), and caller-assigned flags (dialysis +3, nosocomial +2, prosthetic +1, symptoms >1 month -1, S. aureus +1, viridans -2, aortic/mitral vegetation +1 each, NYHA 3-4 +3, stroke +2, paravalvular +2, persistent bacteremia +2, surgery -2). Returns score, quadratic mortality percent, and score >= 8. Not a diagnosis. magent does not examine the patient or decide surgery.

## Output

Returns an integer ICE score, the corresponding quadratic 6-month in-hospital mortality percentage derived from Park 2016 Table 5, and a boolean indicating whether the score is 8 or higher (high-risk threshold). Does not include a diagnosis or surgical recommendation.

## 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",
      "dialysis",
      "nosocomial_ie",
      "prosthetic_ie",
      "symptoms_gt_1_month",
      "staphylococcus_aureus",
      "viridans_group_streptococci",
      "aortic_vegetation",
      "mitral_vegetation",
      "nyha_class_3_or_4",
      "stroke",
      "paravalvular_complication",
      "persistent_bacteremia",
      "surgical_treatment"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Park 2016 Table 5: <=45 scores 0; 46-60 scores 2; 61-70 scores 3; >70 scores 4. Age 45 scores 0; 46 scores 2; 70 scores 3; 71 scores 4. magent does not examine the patient."
      },
      "stroke": {
       "type": "boolean",
       "description": "Stroke as assigned by the caller (Park 2016 Table 5). true or false. +2 if true. magent does not diagnose stroke."
      },
      "dialysis": {
       "type": "boolean",
       "description": "History of dialysis as assigned by the caller (Park 2016 Table 5). true or false. +3 if true. magent does not review dialysis records."
      },
      "nosocomial_ie": {
       "type": "boolean",
       "description": "Nosocomial infective endocarditis as assigned by the caller (Park 2016 Table 5). true or false. +2 if true. magent does not classify acquisition."
      },
      "prosthetic_ie": {
       "type": "boolean",
       "description": "Prosthetic-valve infective endocarditis as assigned by the caller (Park 2016 Table 5). true or false. +1 if true. magent does not examine the valve."
      },
      "aortic_vegetation": {
       "type": "boolean",
       "description": "Aortic vegetation as assigned by the caller (Park 2016 Table 5). true or false. +1 if true. Independent of mitral_vegetation. magent does not read an echocardiogram."
      },
      "mitral_vegetation": {
       "type": "boolean",
       "description": "Mitral vegetation as assigned by the caller (Park 2016 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ice-score-infective-endocarditis-6-month-in-hospital-mortality-5961b7ff/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)
