# HOPE Score Calculator (Pasquier 2018) for Hypothermic Cardiac Arrest

> HOPE Score Calculator (Pasquier 2018) for Hypothermic Cardiac Arrest 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 HOPE survival probability score for patients with hypothermic cardiac arrest undergoing ECLS, returning logit, estimated survival percent, and HOPE ≥10% flag per Pasquier 2018 Table 2.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/hope
- 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/hope-score-calculator-pasquier-2018-for-hypothermic-cardiac-arrest-b73fd44d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nUtt_UwvlhDY_DjVSLqFp

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 hope-score-calculator-pasquier-2018-for-hypothermic-cardiac-arrest-b73fd44d
```

Example prompt: Calculate the HOPE score using Pasquier 2018 for a 42-year-old male with no asphyxia, core temp 24.5°C, CPR duration 45 minutes, and potassium 6.2 mmol/L — give me the estimated survival percent and whether HOPE is ≥10%.

## When to prefer this

Use this endpoint when you need to apply the published Pasquier 2018 HOPE model exactly — including the correct sex coefficient, log2 transformations for CPR duration and potassium, and both linear and squared temperature terms — and need the raw logit alongside the survival percent and HOPE ≥10% flag. Prefer this over manual calculation or generic survival models when working with accidental hypothermic cardiac arrest patients being evaluated for ECLS candidacy.

## Known failure modes

- Missing required parameters (age, sex, asphyxia, cpr_duration_min, potassium_mmol_l, temperature_c) returns 400 validation error
- cpr_duration_min ≤ 0 is invalid (log2 undefined), returns error
- potassium_mmol_l ≤ 0 is invalid, returns error
- temperature_c outside 10-37°C range may produce out-of-range or error response
- Age outside 0-100 may be rejected
- Invalid sex enum value (not 'male' or 'female') returns validation error
- Payment failure (x402 unpaid) returns 402

## How this service works

Pasquier 2018 HOPE survival probability after ECLS for hypothermic cardiac arrest from sex (published male coefficient, not race), asphyxia, age, potassium, CPR duration, and temperature. Returns logit, estimated_survival_percent from the unrounded logit, and Table 2 HOPE >= 10% flag. Not an ECLS or rewarming order. magent does not cannulate.

## Output

Returns a JSON object containing the raw logit value derived from the Pasquier 2018 model, the estimated survival probability as a percentage (computed from the unrounded logit), and a boolean flag indicating whether HOPE ≥10% (Table 2 threshold). Does not issue clinical orders or cannulation instructions.

## 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",
      "sex",
      "asphyxia",
      "cpr_duration_min",
      "potassium_mmol_l",
      "temperature_c"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years, integer 0-100. Pasquier 2018 coefficient -0.0191 per year. magent does not read an identity document."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used as the published Pasquier 2018 male coefficient (male = 1, female = 0). Not race. magent does not examine the patient."
      },
      "asphyxia": {
       "type": "boolean",
       "description": "true if the caller assigns an asphyxia-related mechanism: head fully covered by water or snow AND cardiac arrest at extrication (Pasquier 2018). true scores 1 in the logit; false scores 0. magent does not classify the scene."
      },
      "temperature_c": {
       "type": "number",
       "description": "Core temperature in C (10-37). Linear and squared Pasquier 2018 terms. Caller-supplied; magent does not measure temperature or convert Fahrenheit."
      },
      "cpr_duration_min": {
       "type": "number",
       "description": "Duration of CPR in minutes from start of CPR to ECLS (1-480). Enters as log2. Must be greater than 0 (0 is invalid). Caller-supplied; magent does not time the arrest."
      },
      "potassium_mmol_l": {
       "type": "number",
       "description": "Serum potassium in mmol/L (0.5-20). Enters as log2. Must be greater than 0. Caller-supplied; magent does not assay potassium."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hope-score-calculator-pasquier-2018-for-hypothermic-cardiac-arrest-b73fd44d/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)
