{
  "x402Version": 2,
  "id": 38857,
  "slug": "38857",
  "resource": "https://api.magentlab.com/api/calc/riske",
  "description": "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.",
  "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": [
              {
                "acute_renal_failure": false,
                "age": 50,
                "cardiogenic_shock": false,
                "periannular_complications": false,
                "prosthetic_infection": false,
                "septic_shock": false,
                "staphylococcus_aureus_or_fungi": false,
                "thrombocytopenia": false
              },
              {
                "acute_renal_failure": false,
                "age": 50,
                "cardiogenic_shock": false,
                "periannular_complications": false,
                "prosthetic_infection": false,
                "septic_shock": false,
                "staphylococcus_aureus_or_fungi": false,
                "thrombocytopenia": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Olmos C, Vilacosta I, Fernández C, et al.",
                  "doi": "10.1136/heartjnl-2016-311093",
                  "id": "olmos-2017",
                  "pmid": "28432158",
                  "source": "Heart. 2017;103(18):1435-1442",
                  "title": "Risk score for cardiac surgery in active left-sided infective endocarditis"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "prosthetic_infection",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "periannular_complications",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "staphylococcus_aureus_or_fungi",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acute_renal_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "septic_shock",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cardiogenic_shock",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "thrombocytopenia",
                    "points": 0,
                    "present": 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": "riske",
                "formula_expression": "RISK-E = age (<=51: 0, 52-63: 9, 64-72: 13, >=73: 14) + prosthetic_infection 6 + periannular_complications 5 + staphylococcus_aureus_or_fungi 9 + acute_renal_failure 5 + septic_shock 7 + cardiogenic_shock 15 + thrombocytopenia 7; max 68. Score and max_score only; not a mortality percent. Olmos 2017 Table 2 and Table 3. Not Park 2016. Not Duke",
                "max_score": 68,
                "score": 0
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Olmos C, Vilacosta I, Fernández C, et al.",
                  "doi": "10.1136/heartjnl-2016-311093",
                  "id": "olmos-2017",
                  "pmid": "28432158",
                  "source": "Heart. 2017;103(18):1435-1442",
                  "title": "Risk score for cardiac surgery in active left-sided infective endocarditis"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "prosthetic_infection",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "periannular_complications",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "staphylococcus_aureus_or_fungi",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acute_renal_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "septic_shock",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cardiogenic_shock",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "thrombocytopenia",
                    "points": 0,
                    "present": 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": "riske",
                "formula_expression": "RISK-E = age (<=51: 0, 52-63: 9, 64-72: 13, >=73: 14) + prosthetic_infection 6 + periannular_complications 5 + staphylococcus_aureus_or_fungi 9 + acute_renal_failure 5 + septic_shock 7 + cardiogenic_shock 15 + thrombocytopenia 7; max 68. Score and max_score only; not a mortality percent. Olmos 2017 Table 2 and Table 3. Not Park 2016. Not Duke",
                "max_score": 68,
                "score": 0
              }
            ],
            "path": "/api/calc/riske"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "acute_renal_failure": {
                          "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.",
                          "type": "boolean"
                        },
                        "age": {
                          "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.",
                          "type": "integer"
                        },
                        "cardiogenic_shock": {
                          "description": "Cardiogenic shock as assigned by the caller (Olmos 2017). true or false. +15 if true. magent does not diagnose shock or decide surgery.",
                          "type": "boolean"
                        },
                        "periannular_complications": {
                          "description": "Periannular complications (abscess, pseudoaneurysm, fistula, or prosthetic dehiscence) as assigned by the caller (Olmos 2017). true or false. +5 if true. magent does not read echocardiography.",
                          "type": "boolean"
                        },
                        "prosthetic_infection": {
                          "description": "Prosthetic-valve infection as assigned by the caller (Olmos 2017). true or false. +6 if true. magent does not examine the valve.",
                          "type": "boolean"
                        },
                        "septic_shock": {
                          "description": "Septic shock as assigned by the caller (Olmos 2017). true or false. +7 if true. magent does not diagnose shock.",
                          "type": "boolean"
                        },
                        "staphylococcus_aureus_or_fungi": {
                          "description": "Staphylococcus aureus or fungi as assigned by the caller (Olmos 2017 virulent microorganism). true or false. +9 if true. magent does not interpret cultures.",
                          "type": "boolean"
                        },
                        "thrombocytopenia": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "prosthetic_infection",
                        "periannular_complications",
                        "staphylococcus_aureus_or_fungi",
                        "acute_renal_failure",
                        "septic_shock",
                        "cardiogenic_shock",
                        "thrombocytopenia"
                      ],
                      "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": [
    "riske",
    "endocarditis",
    "cardiac-surgery",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:42:11.708Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:42:11.585Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "acute_renal_failure": false,
                  "age": 50,
                  "cardiogenic_shock": false,
                  "periannular_complications": false,
                  "prosthetic_infection": false,
                  "septic_shock": false,
                  "staphylococcus_aureus_or_fungi": false,
                  "thrombocytopenia": false
                },
                {
                  "acute_renal_failure": false,
                  "age": 50,
                  "cardiogenic_shock": false,
                  "periannular_complications": false,
                  "prosthetic_infection": false,
                  "septic_shock": false,
                  "staphylococcus_aureus_or_fungi": false,
                  "thrombocytopenia": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Olmos C, Vilacosta I, Fernández C, et al.",
                    "doi": "10.1136/heartjnl-2016-311093",
                    "id": "olmos-2017",
                    "pmid": "28432158",
                    "source": "Heart. 2017;103(18):1435-1442",
                    "title": "Risk score for cardiac surgery in active left-sided infective endocarditis"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "prosthetic_infection",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "periannular_complications",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "staphylococcus_aureus_or_fungi",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acute_renal_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "septic_shock",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cardiogenic_shock",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "thrombocytopenia",
                      "points": 0,
                      "present": 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": "riske",
                  "formula_expression": "RISK-E = age (<=51: 0, 52-63: 9, 64-72: 13, >=73: 14) + prosthetic_infection 6 + periannular_complications 5 + staphylococcus_aureus_or_fungi 9 + acute_renal_failure 5 + septic_shock 7 + cardiogenic_shock 15 + thrombocytopenia 7; max 68. Score and max_score only; not a mortality percent. Olmos 2017 Table 2 and Table 3. Not Park 2016. Not Duke",
                  "max_score": 68,
                  "score": 0
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Olmos C, Vilacosta I, Fernández C, et al.",
                    "doi": "10.1136/heartjnl-2016-311093",
                    "id": "olmos-2017",
                    "pmid": "28432158",
                    "source": "Heart. 2017;103(18):1435-1442",
                    "title": "Risk score for cardiac surgery in active left-sided infective endocarditis"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "prosthetic_infection",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "periannular_complications",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "staphylococcus_aureus_or_fungi",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acute_renal_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "septic_shock",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cardiogenic_shock",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "thrombocytopenia",
                      "points": 0,
                      "present": 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": "riske",
                  "formula_expression": "RISK-E = age (<=51: 0, 52-63: 9, 64-72: 13, >=73: 14) + prosthetic_infection 6 + periannular_complications 5 + staphylococcus_aureus_or_fungi 9 + acute_renal_failure 5 + septic_shock 7 + cardiogenic_shock 15 + thrombocytopenia 7; max 68. Score and max_score only; not a mortality percent. Olmos 2017 Table 2 and Table 3. Not Park 2016. Not Duke",
                  "max_score": 68,
                  "score": 0
                }
              ],
              "path": "/api/calc/riske"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "acute_renal_failure": {
                            "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.",
                            "type": "boolean"
                          },
                          "age": {
                            "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.",
                            "type": "integer"
                          },
                          "cardiogenic_shock": {
                            "description": "Cardiogenic shock as assigned by the caller (Olmos 2017). true or false. +15 if true. magent does not diagnose shock or decide surgery.",
                            "type": "boolean"
                          },
                          "periannular_complications": {
                            "description": "Periannular complications (abscess, pseudoaneurysm, fistula, or prosthetic dehiscence) as assigned by the caller (Olmos 2017). true or false. +5 if true. magent does not read echocardiography.",
                            "type": "boolean"
                          },
                          "prosthetic_infection": {
                            "description": "Prosthetic-valve infection as assigned by the caller (Olmos 2017). true or false. +6 if true. magent does not examine the valve.",
                            "type": "boolean"
                          },
                          "septic_shock": {
                            "description": "Septic shock as assigned by the caller (Olmos 2017). true or false. +7 if true. magent does not diagnose shock.",
                            "type": "boolean"
                          },
                          "staphylococcus_aureus_or_fungi": {
                            "description": "Staphylococcus aureus or fungi as assigned by the caller (Olmos 2017 virulent microorganism). true or false. +9 if true. magent does not interpret cultures.",
                            "type": "boolean"
                          },
                          "thrombocytopenia": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "prosthetic_infection",
                          "periannular_complications",
                          "staphylococcus_aureus_or_fungi",
                          "acute_renal_failure",
                          "septic_shock",
                          "cardiogenic_shock",
                          "thrombocytopenia"
                        ],
                        "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"
  }
}