# RISK-E (Olmos 2017) In-Hospital Mortality Score for Active Left-Sided IE Cardiac Surgery

> RISK-E (Olmos 2017) In-Hospital Mortality Score for Active Left-Sided IE Cardiac Surgery 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 Olmos 2017 RISK-E score for predicted in-hospital mortality after cardiac surgery in active left-sided infective endocarditis, returning a numeric score out of 68.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/riske
- 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/risk-e-olmos-2017-in-hospital-mortality-score-for-active-left-sided-bdefc008
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IWO0xrY2u7VGLK-NHmtIW

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 risk-e-olmos-2017-in-hospital-mortality-score-for-active-left-sided-bdefc008
```

Example prompt: Calculate the RISK-E score for a 68-year-old patient with active left-sided infective endocarditis going to cardiac surgery — they have periannular complications and cardiogenic shock, no prosthetic valve infection, no Staph aureus or fungi, no acute renal failure, no septic shock, and no thrombocytopenia.

## When to prefer this

Use this endpoint when you need to programmatically compute the Olmos 2017 RISK-E score for in-hospital mortality after cardiac surgery in active left-sided IE, and you have already clinically assigned all seven binary flags and know the patient's age. Prefer this over manual calculation to avoid arithmetic errors in time-sensitive perioperative workflows. Do not use for diagnosis, surgical decision-making, or when echocardiographic interpretation is required — the endpoint performs only arithmetic on caller-supplied inputs.

## Known failure modes

- Missing required query parameter (age or any boolean flag) — likely returns a 400 error
- Age outside integer range 18-120 — may return validation error
- Non-boolean value passed for a flag parameter — schema validation failure
- Network or server error returns 5xx with no score
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Olmos 2017 RISK-E (Risk-Endocarditis) for in-hospital mortality after cardiac surgery in active left-sided IE. Age <=51: 0; 52-63: 9; 64-72: 13; >=73: 14. Flags: prosthetic_infection +6, periannular_complications +5, staphylococcus_aureus_or_fungi +9, acute_renal_failure +5, septic_shock +7, cardiogenic_shock +15, thrombocytopenia +7. Returns score and max_score 68 only. Not a diagnosis or surgery decision. magent does not examine the valve or read echo.

## Output

Returns a JSON object containing the computed RISK-E integer score (sum of age bracket points plus applicable flag points) and the maximum possible score of 68. Does not include diagnosis, surgical recommendation, or mortality percentage.

## 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",
      "prosthetic_infection",
      "periannular_complications",
      "staphylococcus_aureus_or_fungi",
      "acute_renal_failure",
      "septic_shock",
      "cardiogenic_shock",
      "thrombocytopenia"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Olmos 2017: <=51 scores 0; 52-63 scores 9; 64-72 scores 13; >=73 scores 14. Age 51 scores 0; 52 scores 9; 63 scores 9; 64 scores 13; 72 scores 13; 73 scores 14. magent does not examine the patient."
      },
      "septic_shock": {
       "type": "boolean",
       "description": "Septic shock as assigned by the caller (Olmos 2017). true or false. +7 if true. magent does not diagnose shock."
      },
      "thrombocytopenia": {
       "type": "boolean",
       "description": "Thrombocytopenia as assigned by the caller (Olmos 2017 thrombocytopaenia, <150000 platelets/mm3). true or false. +7 if true. magent does not interpret a platelet count."
      },
      "cardiogenic_shock": {
       "type": "boolean",
       "description": "Cardiogenic shock as assigned by the caller (Olmos 2017). true or false. +15 if true. magent does not diagnose shock or decide surgery."
      },
      "acute_renal_failure": {
       "type": "boolean",
       "description": "Acute renal failure as assigned by the caller (Olmos 2017; GFR <60 mL/min/1.73 m2 in the derivation). true or false. +5 if true. magent does not compute GFR."
      },
      "prosthetic_infection": {
       "type": "boolean",
       "description": "Prosthetic-valve infection as assigned by the caller (Olmos 2017). true or false. +6 if true. magent does not examine the valve."
      },
      "periannular_complications": {
       "type": "boolean",
       "description": "Periannular complications (abscess, pseudoaneurysm, fistula, or prosthetic dehiscence) as assigned by the caller (Olmos 2017). true or false. +5
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/risk-e-olmos-2017-in-hospital-mortality-score-for-active-left-sided-bdefc008/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)
