{"uid":"cap_nUtt_UwvlhDY_DjVSLqFp","slug":"hope-score-calculator-pasquier-2018-for-hypothermic-cardiac-arrest-b73fd44d","name":"HOPE Score Calculator (Pasquier 2018) for Hypothermic Cardiac Arrest","description":"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.","url":"https://api.magentlab.com/api/calc/hope","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3yHUo-WREo6yphhdAcSEX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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%.","exampleUseCases":[{"title":"ECLS candidacy triage in the ED","prompt":"I have a 35-year-old female hypothermic arrest patient — non-asphyxia mechanism, core temp 19°C, potassium 5.8 mmol/L, and she's been on CPR for 60 minutes. Run the HOPE score and tell me if her estimated survival is at or above 10%."},{"title":"Post-resuscitation outcome documentation","prompt":"For our case report, calculate the Pasquier 2018 HOPE logit and survival probability for a 58-year-old male, asphyxia present (head submerged with arrest at extrication), temperature 22°C, potassium 8.1 mmol/L, CPR for 90 minutes."},{"title":"Comparing scenarios with different potassium levels","prompt":"Run the HOPE score twice for a 50-year-old male, no asphyxia, 30°C core temp, 30 minutes CPR — first with potassium 4.0 mmol/L and then with potassium 9.5 mmol/L, so I can see how potassium shifts the estimated survival percent."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:00:52.881Z","isFirstParty":false}