{
  "x402Version": 2,
  "id": 38922,
  "slug": "38922",
  "resource": "https://api.magentlab.com/api/calc/rescue_ihca",
  "description": "Tonna 2022 RESCUE-IHCA Table 2 integer score for in-hospital death after adult ECPR. Age 2 + 2 per 10 years after 20. Renal +8. Time: day 0, evening +4, night +13. Illness: medical noncardiac 0, medical cardiac -2, surgical noncardiac -6, surgical cardiac -11. Rhythm: asystole 0, PEA -1, pVT -5, VF -8, palpable pulse -5. Duration +2 per 10 min. Table 2 min -17. Integer score only. Not an ECPR order.",
  "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": [
              {
                "age": 20,
                "duration_min": 0,
                "illness_category": "surgical_cardiac",
                "preexisting_renal_insufficiency": false,
                "presenting_rhythm": "vf",
                "time_of_day": "day_0700_1459"
              },
              {
                "age": 20,
                "duration_min": 0,
                "illness_category": "surgical_cardiac",
                "preexisting_renal_insufficiency": false,
                "presenting_rhythm": "vf",
                "time_of_day": "day_0700_1459"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Tonna JE, Selzman CH, Girotra S, et al.",
                  "doi": "10.1016/j.jcin.2021.09.032",
                  "id": "tonna-2022",
                  "pmid": "35033471",
                  "source": "JACC Cardiovasc Interv. 2022;15(3):237-247",
                  "title": "Resuscitation Using ECPR During In-Hospital Cardiac Arrest (RESCUE-IHCA) Mortality Prediction Score and External Validation"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "preexisting_renal_insufficiency",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "time_of_day",
                    "points": 0,
                    "present": false,
                    "value": "day_0700_1459"
                  },
                  {
                    "factor": "illness_category",
                    "points": -11,
                    "present": true,
                    "value": "surgical_cardiac"
                  },
                  {
                    "factor": "presenting_rhythm",
                    "points": -8,
                    "present": true,
                    "value": "vf"
                  },
                  {
                    "factor": "duration_min",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "rescue_ihca",
                "formula_expression": "RESCUE-IHCA = age(2 + 2 * max(0, floor((age-20)/10))) + preexisting_renal_insufficiency(yes 8) + time_of_day(day_0700_1459 0, evening_1500_2259 4, night_2300_0659 13) + illness_category(medical_noncardiac 0, medical_cardiac -2, surgical_noncardiac -6, surgical_cardiac -11) + presenting_rhythm(asystole 0, pea -1, pvt -5, vf -8, palpable_pulse_initially -5) + duration_min(2 * floor(duration_min/10)); Tonna 2022 Table 2; theoretical min -17; paper text about -15 to >40; higher score → higher probability of in-hospital death (Figure 3 curve 0.22-0.99); integer score only",
                "min_score": -17,
                "score": -17
              },
              {
                "citation": {
                  "authors": "Tonna JE, Selzman CH, Girotra S, et al.",
                  "doi": "10.1016/j.jcin.2021.09.032",
                  "id": "tonna-2022",
                  "pmid": "35033471",
                  "source": "JACC Cardiovasc Interv. 2022;15(3):237-247",
                  "title": "Resuscitation Using ECPR During In-Hospital Cardiac Arrest (RESCUE-IHCA) Mortality Prediction Score and External Validation"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "preexisting_renal_insufficiency",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "time_of_day",
                    "points": 0,
                    "present": false,
                    "value": "day_0700_1459"
                  },
                  {
                    "factor": "illness_category",
                    "points": -11,
                    "present": true,
                    "value": "surgical_cardiac"
                  },
                  {
                    "factor": "presenting_rhythm",
                    "points": -8,
                    "present": true,
                    "value": "vf"
                  },
                  {
                    "factor": "duration_min",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "rescue_ihca",
                "formula_expression": "RESCUE-IHCA = age(2 + 2 * max(0, floor((age-20)/10))) + preexisting_renal_insufficiency(yes 8) + time_of_day(day_0700_1459 0, evening_1500_2259 4, night_2300_0659 13) + illness_category(medical_noncardiac 0, medical_cardiac -2, surgical_noncardiac -6, surgical_cardiac -11) + presenting_rhythm(asystole 0, pea -1, pvt -5, vf -8, palpable_pulse_initially -5) + duration_min(2 * floor(duration_min/10)); Tonna 2022 Table 2; theoretical min -17; paper text about -15 to >40; higher score → higher probability of in-hospital death (Figure 3 curve 0.22-0.99); integer score only",
                "min_score": -17,
                "score": -17
              }
            ],
            "path": "/api/calc/rescue_ihca"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120). Tonna 2022 Table 2: ≤20 → 2; each additional 10 years → +2, implemented as 2 + 2 * max(0, floor((age-20)/10)) so 20 → 2, 29 → 2, 30 → 4, 40 → 6. Adult derivation (excluded age <18). Caller-supplied; magent does not examine the patient.",
                          "type": "integer"
                        },
                        "duration_min": {
                          "description": "Duration of cardiac arrest in integer minutes (0-180). Tonna 2022 Table 2: +2 per complete 10 minutes (2 * floor(duration_min/10)). 0-9 → 0; 10-19 → +2; 20-29 → +4. Caller-supplied; magent does not time the arrest.",
                          "type": "integer"
                        },
                        "illness_category": {
                          "description": "Illness category (Tonna 2022 Table 2). medical_noncardiac (reference) → 0; medical_cardiac → -2; surgical_noncardiac → -6; surgical_cardiac → -11. Caller-assigned; magent does not classify the admission.",
                          "type": "string"
                        },
                        "preexisting_renal_insufficiency": {
                          "description": "Preexisting renal insufficiency as assigned by the caller (Tonna 2022 Table 2). true → +8. false → 0. magent does not grade creatinine.",
                          "type": "boolean"
                        },
                        "presenting_rhythm": {
                          "description": "Presenting rhythm (Tonna 2022 Table 2). asystole (reference) → 0; pea → -1; pvt → -5; vf → -8; palpable_pulse_initially → -5. Caller-assigned; magent does not interpret a monitor.",
                          "type": "string"
                        },
                        "time_of_day": {
                          "description": "Time of day of arrest (Tonna 2022 Table 2). day_0700_1459 (07:00-14:59, reference) → 0; evening_1500_2259 (15:00-22:59) → +4; night_2300_0659 (23:00-06:59) → +13. Caller-assigned; magent does not read a clock.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "preexisting_renal_insufficiency",
                        "time_of_day",
                        "illness_category",
                        "presenting_rhythm",
                        "duration_min"
                      ],
                      "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": [
    "rescue-ihca",
    "ecpr",
    "ihca",
    "mortality",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:16:35.732Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T12:16:35.535Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 20,
                  "duration_min": 0,
                  "illness_category": "surgical_cardiac",
                  "preexisting_renal_insufficiency": false,
                  "presenting_rhythm": "vf",
                  "time_of_day": "day_0700_1459"
                },
                {
                  "age": 20,
                  "duration_min": 0,
                  "illness_category": "surgical_cardiac",
                  "preexisting_renal_insufficiency": false,
                  "presenting_rhythm": "vf",
                  "time_of_day": "day_0700_1459"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Tonna JE, Selzman CH, Girotra S, et al.",
                    "doi": "10.1016/j.jcin.2021.09.032",
                    "id": "tonna-2022",
                    "pmid": "35033471",
                    "source": "JACC Cardiovasc Interv. 2022;15(3):237-247",
                    "title": "Resuscitation Using ECPR During In-Hospital Cardiac Arrest (RESCUE-IHCA) Mortality Prediction Score and External Validation"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "preexisting_renal_insufficiency",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "time_of_day",
                      "points": 0,
                      "present": false,
                      "value": "day_0700_1459"
                    },
                    {
                      "factor": "illness_category",
                      "points": -11,
                      "present": true,
                      "value": "surgical_cardiac"
                    },
                    {
                      "factor": "presenting_rhythm",
                      "points": -8,
                      "present": true,
                      "value": "vf"
                    },
                    {
                      "factor": "duration_min",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "rescue_ihca",
                  "formula_expression": "RESCUE-IHCA = age(2 + 2 * max(0, floor((age-20)/10))) + preexisting_renal_insufficiency(yes 8) + time_of_day(day_0700_1459 0, evening_1500_2259 4, night_2300_0659 13) + illness_category(medical_noncardiac 0, medical_cardiac -2, surgical_noncardiac -6, surgical_cardiac -11) + presenting_rhythm(asystole 0, pea -1, pvt -5, vf -8, palpable_pulse_initially -5) + duration_min(2 * floor(duration_min/10)); Tonna 2022 Table 2; theoretical min -17; paper text about -15 to >40; higher score → higher probability of in-hospital death (Figure 3 curve 0.22-0.99); integer score only",
                  "min_score": -17,
                  "score": -17
                },
                {
                  "citation": {
                    "authors": "Tonna JE, Selzman CH, Girotra S, et al.",
                    "doi": "10.1016/j.jcin.2021.09.032",
                    "id": "tonna-2022",
                    "pmid": "35033471",
                    "source": "JACC Cardiovasc Interv. 2022;15(3):237-247",
                    "title": "Resuscitation Using ECPR During In-Hospital Cardiac Arrest (RESCUE-IHCA) Mortality Prediction Score and External Validation"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "preexisting_renal_insufficiency",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "time_of_day",
                      "points": 0,
                      "present": false,
                      "value": "day_0700_1459"
                    },
                    {
                      "factor": "illness_category",
                      "points": -11,
                      "present": true,
                      "value": "surgical_cardiac"
                    },
                    {
                      "factor": "presenting_rhythm",
                      "points": -8,
                      "present": true,
                      "value": "vf"
                    },
                    {
                      "factor": "duration_min",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "rescue_ihca",
                  "formula_expression": "RESCUE-IHCA = age(2 + 2 * max(0, floor((age-20)/10))) + preexisting_renal_insufficiency(yes 8) + time_of_day(day_0700_1459 0, evening_1500_2259 4, night_2300_0659 13) + illness_category(medical_noncardiac 0, medical_cardiac -2, surgical_noncardiac -6, surgical_cardiac -11) + presenting_rhythm(asystole 0, pea -1, pvt -5, vf -8, palpable_pulse_initially -5) + duration_min(2 * floor(duration_min/10)); Tonna 2022 Table 2; theoretical min -17; paper text about -15 to >40; higher score → higher probability of in-hospital death (Figure 3 curve 0.22-0.99); integer score only",
                  "min_score": -17,
                  "score": -17
                }
              ],
              "path": "/api/calc/rescue_ihca"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120). Tonna 2022 Table 2: ≤20 → 2; each additional 10 years → +2, implemented as 2 + 2 * max(0, floor((age-20)/10)) so 20 → 2, 29 → 2, 30 → 4, 40 → 6. Adult derivation (excluded age <18). Caller-supplied; magent does not examine the patient.",
                            "type": "integer"
                          },
                          "duration_min": {
                            "description": "Duration of cardiac arrest in integer minutes (0-180). Tonna 2022 Table 2: +2 per complete 10 minutes (2 * floor(duration_min/10)). 0-9 → 0; 10-19 → +2; 20-29 → +4. Caller-supplied; magent does not time the arrest.",
                            "type": "integer"
                          },
                          "illness_category": {
                            "description": "Illness category (Tonna 2022 Table 2). medical_noncardiac (reference) → 0; medical_cardiac → -2; surgical_noncardiac → -6; surgical_cardiac → -11. Caller-assigned; magent does not classify the admission.",
                            "type": "string"
                          },
                          "preexisting_renal_insufficiency": {
                            "description": "Preexisting renal insufficiency as assigned by the caller (Tonna 2022 Table 2). true → +8. false → 0. magent does not grade creatinine.",
                            "type": "boolean"
                          },
                          "presenting_rhythm": {
                            "description": "Presenting rhythm (Tonna 2022 Table 2). asystole (reference) → 0; pea → -1; pvt → -5; vf → -8; palpable_pulse_initially → -5. Caller-assigned; magent does not interpret a monitor.",
                            "type": "string"
                          },
                          "time_of_day": {
                            "description": "Time of day of arrest (Tonna 2022 Table 2). day_0700_1459 (07:00-14:59, reference) → 0; evening_1500_2259 (15:00-22:59) → +4; night_2300_0659 (23:00-06:59) → +13. Caller-assigned; magent does not read a clock.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "preexisting_renal_insufficiency",
                          "time_of_day",
                          "illness_category",
                          "presenting_rhythm",
                          "duration_min"
                        ],
                        "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"
  }
}