# EPIPHANY CHAID Risk Stratifier for Cancer-Associated PE

> EPIPHANY CHAID Risk Stratifier for Cancer-Associated PE 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).

Applies the Carmona-Bayonas 2017 EPIPHANY CHAID decision tree to stratify cancer-associated pulmonary embolism into low, intermediate, or high risk categories with associated 15-day complication and mortality rates.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/epiphany
- 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/epiphany-chaid-risk-stratifier-for-cancer-associated-pe-f98ec3cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WrUQ6RIY_os7RpPHaAqOq

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 epiphany-chaid-risk-stratifier-for-cancer-associated-pe-f98ec3cd
```

Example prompt: My patient has cancer-associated PE — no Hestia-like red flags, ECOG-PS is 0, oxygen sat is 95%, has PE-specific symptoms, tumour is stable disease so not uncontrolled, and the primary tumour was resected. Run the EPIPHANY CHAID tree and tell me whether they're low, intermediate, or high risk and what the 15-day mortality and complication rates are.

## When to prefer this

Use this endpoint when you need to apply the validated Carmona-Bayonas 2017 EPIPHANY CHAID model specifically for cancer-associated pulmonary embolism risk stratification. Prefer this over generic PE risk tools (e.g. PESI, sPESI) when the patient has active malignancy and you need the oncology-specific six-variable decision tree with published 15-day outcome rates. The caller must pre-assign all six clinical covariates; this endpoint does not examine the patient or apply RECIST criteria.

## Known failure modes

- Missing required boolean query parameters (hestia_like_any, ecog_ps_ge_2, oxygen_sat_lt_90, pe_specific_symptoms, tumour_uncontrolled, primary_tumour_resected) return validation errors
- Non-boolean values for any parameter may result in rejection or incorrect tree traversal
- Endpoint returns risk class only — caller must interpret clinical context; result is not a treatment order
- Payment failure (x402) if USDC payment of $0.005 is not included in the request

## How this service works

Carmona-Bayonas 2017 EPIPHANY CHAID tree for cancer-associated PE. Hestia-like CDR any vs none, then ECOG-PS, SaO2, PE symptoms, tumour response, and primary resection as in Figure 2. Returns low, intermediate, or high with 15-day complication rates 1.6/9.4/30.6% and mortality 0.3/6.1/17.1%. Caller assigns the six covariates. Not a diagnosis or anticoagulation order. magent does not examine the patient.

## Output

Returns a risk class of low, intermediate, or high based on the EPIPHANY CHAID decision tree, along with the corresponding published 15-day complication rates (1.6%, 9.4%, or 30.6%) and 15-day mortality rates (0.3%, 6.1%, or 17.1%) from Carmona-Bayonas 2017. Does not provide diagnosis or anticoagulation recommendations.

## 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": [
      "hestia_like_any",
      "ecog_ps_ge_2",
      "oxygen_sat_lt_90",
      "pe_specific_symptoms",
      "tumour_uncontrolled",
      "primary_tumour_resected"
     ],
     "properties": {
      "ecog_ps_ge_2": {
       "type": "boolean",
       "description": "ECOG-PS >=2 as assigned by the caller (Carmona-Bayonas 2017: <2 vs >=2). true or false. Used on the Hestia-like-any branch. magent does not assign performance status."
      },
      "hestia_like_any": {
       "type": "boolean",
       "description": "true if any Carmona-Bayonas 2017 Hestia-like clinical decision rule item is present: SBP <100 mm Hg, arterial oxygen saturation <90%, respiratory rate >=30 breaths/min, pulse >=110 beats/min, sudden or progressive dyspnoea, or clinically relevant haemorrhage / high bleeding risk / platelets <50 000 mm^-3 (Figure 2). false if none. Caller-assigned; magent does not measure vitals or score the 11-item Zondag Hestia checklist."
      },
      "oxygen_sat_lt_90": {
       "type": "boolean",
       "description": "Arterial oxygen saturation <90% as assigned by the caller (Figure 2: <90 vs >=90%). true or false. Used when Hestia-like any is present and ECOG-PS >=2; both sat leaves are high class. Distinct from the same cutoff inside the Hestia-like CDR. magent does not measure saturation."
      },
      "tumour_uncontrolled": {
       "type": "boolean",
       "description": "true if tumour response is progression, unknown, or not evaluated; false for others (complete or partial response, stable disease, or no evidence of disease) per Carmona-Bayonas 2017 Table 1 / Figure 2. Used on the Hestia-like-none branch. magent does not apply RECIST."
      },
      "pe_specific_symptoms": {
       "type": "boolean",
       "description": "PE-specific symptoms present as assigned by the caller (Carmona-Bayonas 2017 Figure 2). true or false. Used when Hestia-like any is present and ECOG-PS <2. Distinc
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/epiphany-chaid-risk-stratifier-for-cancer-associated-pe-f98ec3cd/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)
