{
  "x402Version": 2,
  "id": 39188,
  "slug": "39188",
  "resource": "https://api.magentlab.com/api/calc/epiphany",
  "description": "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.",
  "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": [
              {
                "ecog_ps_ge_2": false,
                "hestia_like_any": false,
                "oxygen_sat_lt_90": false,
                "pe_specific_symptoms": false,
                "primary_tumour_resected": true,
                "tumour_uncontrolled": false
              },
              {
                "ecog_ps_ge_2": false,
                "hestia_like_any": false,
                "oxygen_sat_lt_90": false,
                "pe_specific_symptoms": false,
                "primary_tumour_resected": true,
                "tumour_uncontrolled": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Carmona-Bayonas A, Jiménez-Fonseca P, Font C, Fenoy F, Otero R, Beato C, Plasencia JM, Biosca M, Sánchez M, Benegas M, Calvo-Temprano D, Varona D, Faez L, de la Haba I, Antonio M, Madridano O, Solis MP, Ramchandani A, Castañón E, Marchena PJ, Martín M, Ayala de la Peña F, Vicente V; Asociación de Investigación de la Enfermedad Tromboembólica de la Región de Murcia",
                  "doi": "10.1038/bjc.2017.48",
                  "id": "carmona-bayonas-2017",
                  "pmid": "28267709",
                  "source": "Br J Cancer. 2017;116:994-1001",
                  "title": "Predicting serious complications in patients with cancer and pulmonary embolism using decision tree modelling: the EPIPHANY Index"
                },
                "criteria": [
                  {
                    "factor": "hestia_like_any",
                    "met": false
                  },
                  {
                    "factor": "ecog_ps_ge_2",
                    "met": false
                  },
                  {
                    "factor": "oxygen_sat_lt_90",
                    "met": false
                  },
                  {
                    "factor": "pe_specific_symptoms",
                    "met": false
                  },
                  {
                    "factor": "tumour_uncontrolled",
                    "met": false
                  },
                  {
                    "factor": "primary_tumour_resected",
                    "met": true
                  }
                ],
                "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.",
                "ecog_ps_ge_2": false,
                "formula": "epiphany",
                "formula_expression": "root: hestia-like CDR any vs none (Carmona-Bayonas 2017 Figure 2). CDR any: ECOG-PS >=2 then SaO2 <90 vs >=90 (both high), else PE-specific symptoms yes (high) vs no (intermediate). CDR none: tumour progression/unknown/not evaluated vs others (CR/PR/SD/NED); if uncontrolled then primary tumour resection yes (low) vs no (intermediate); if others then low. Classes low/intermediate/high with 15-day serious complications 1.6/9.4/30.6% and 15-day mortality 0.3/6.1/17.1%",
                "hestia_like_any": false,
                "leaf": "low_controlled",
                "mortality_15d_percent": 0.3,
                "oxygen_sat_lt_90": false,
                "pe_specific_symptoms": false,
                "primary_tumour_resected": true,
                "risk_class": "low",
                "serious_complication_15d_percent": 1.6,
                "tumour_uncontrolled": false
              },
              {
                "citation": {
                  "authors": "Carmona-Bayonas A, Jiménez-Fonseca P, Font C, Fenoy F, Otero R, Beato C, Plasencia JM, Biosca M, Sánchez M, Benegas M, Calvo-Temprano D, Varona D, Faez L, de la Haba I, Antonio M, Madridano O, Solis MP, Ramchandani A, Castañón E, Marchena PJ, Martín M, Ayala de la Peña F, Vicente V; Asociación de Investigación de la Enfermedad Tromboembólica de la Región de Murcia",
                  "doi": "10.1038/bjc.2017.48",
                  "id": "carmona-bayonas-2017",
                  "pmid": "28267709",
                  "source": "Br J Cancer. 2017;116:994-1001",
                  "title": "Predicting serious complications in patients with cancer and pulmonary embolism using decision tree modelling: the EPIPHANY Index"
                },
                "criteria": [
                  {
                    "factor": "hestia_like_any",
                    "met": false
                  },
                  {
                    "factor": "ecog_ps_ge_2",
                    "met": false
                  },
                  {
                    "factor": "oxygen_sat_lt_90",
                    "met": false
                  },
                  {
                    "factor": "pe_specific_symptoms",
                    "met": false
                  },
                  {
                    "factor": "tumour_uncontrolled",
                    "met": false
                  },
                  {
                    "factor": "primary_tumour_resected",
                    "met": true
                  }
                ],
                "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.",
                "ecog_ps_ge_2": false,
                "formula": "epiphany",
                "formula_expression": "root: hestia-like CDR any vs none (Carmona-Bayonas 2017 Figure 2). CDR any: ECOG-PS >=2 then SaO2 <90 vs >=90 (both high), else PE-specific symptoms yes (high) vs no (intermediate). CDR none: tumour progression/unknown/not evaluated vs others (CR/PR/SD/NED); if uncontrolled then primary tumour resection yes (low) vs no (intermediate); if others then low. Classes low/intermediate/high with 15-day serious complications 1.6/9.4/30.6% and 15-day mortality 0.3/6.1/17.1%",
                "hestia_like_any": false,
                "leaf": "low_controlled",
                "mortality_15d_percent": 0.3,
                "oxygen_sat_lt_90": false,
                "pe_specific_symptoms": false,
                "primary_tumour_resected": true,
                "risk_class": "low",
                "serious_complication_15d_percent": 1.6,
                "tumour_uncontrolled": false
              }
            ],
            "path": "/api/calc/epiphany"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "ecog_ps_ge_2": {
                          "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.",
                          "type": "boolean"
                        },
                        "hestia_like_any": {
                          "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.",
                          "type": "boolean"
                        },
                        "oxygen_sat_lt_90": {
                          "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.",
                          "type": "boolean"
                        },
                        "pe_specific_symptoms": {
                          "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. Distinct from incidental vs symptomatic diagnosis and from the dyspnoea CDR item. magent does not take a history.",
                          "type": "boolean"
                        },
                        "primary_tumour_resected": {
                          "description": "Prior surgical resection of the primary tumour as assigned by the caller. true or false. Used when Hestia-like none and tumour_uncontrolled are both true. magent does not read an operative note.",
                          "type": "boolean"
                        },
                        "tumour_uncontrolled": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "hestia_like_any",
                        "ecog_ps_ge_2",
                        "oxygen_sat_lt_90",
                        "pe_specific_symptoms",
                        "tumour_uncontrolled",
                        "primary_tumour_resected"
                      ],
                      "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": [
    "epiphany",
    "pe",
    "cancer",
    "vte",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T03:21:43.137Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T03:21:42.93Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ecog_ps_ge_2": false,
                  "hestia_like_any": false,
                  "oxygen_sat_lt_90": false,
                  "pe_specific_symptoms": false,
                  "primary_tumour_resected": true,
                  "tumour_uncontrolled": false
                },
                {
                  "ecog_ps_ge_2": false,
                  "hestia_like_any": false,
                  "oxygen_sat_lt_90": false,
                  "pe_specific_symptoms": false,
                  "primary_tumour_resected": true,
                  "tumour_uncontrolled": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Carmona-Bayonas A, Jiménez-Fonseca P, Font C, Fenoy F, Otero R, Beato C, Plasencia JM, Biosca M, Sánchez M, Benegas M, Calvo-Temprano D, Varona D, Faez L, de la Haba I, Antonio M, Madridano O, Solis MP, Ramchandani A, Castañón E, Marchena PJ, Martín M, Ayala de la Peña F, Vicente V; Asociación de Investigación de la Enfermedad Tromboembólica de la Región de Murcia",
                    "doi": "10.1038/bjc.2017.48",
                    "id": "carmona-bayonas-2017",
                    "pmid": "28267709",
                    "source": "Br J Cancer. 2017;116:994-1001",
                    "title": "Predicting serious complications in patients with cancer and pulmonary embolism using decision tree modelling: the EPIPHANY Index"
                  },
                  "criteria": [
                    {
                      "factor": "hestia_like_any",
                      "met": false
                    },
                    {
                      "factor": "ecog_ps_ge_2",
                      "met": false
                    },
                    {
                      "factor": "oxygen_sat_lt_90",
                      "met": false
                    },
                    {
                      "factor": "pe_specific_symptoms",
                      "met": false
                    },
                    {
                      "factor": "tumour_uncontrolled",
                      "met": false
                    },
                    {
                      "factor": "primary_tumour_resected",
                      "met": true
                    }
                  ],
                  "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.",
                  "ecog_ps_ge_2": false,
                  "formula": "epiphany",
                  "formula_expression": "root: hestia-like CDR any vs none (Carmona-Bayonas 2017 Figure 2). CDR any: ECOG-PS >=2 then SaO2 <90 vs >=90 (both high), else PE-specific symptoms yes (high) vs no (intermediate). CDR none: tumour progression/unknown/not evaluated vs others (CR/PR/SD/NED); if uncontrolled then primary tumour resection yes (low) vs no (intermediate); if others then low. Classes low/intermediate/high with 15-day serious complications 1.6/9.4/30.6% and 15-day mortality 0.3/6.1/17.1%",
                  "hestia_like_any": false,
                  "leaf": "low_controlled",
                  "mortality_15d_percent": 0.3,
                  "oxygen_sat_lt_90": false,
                  "pe_specific_symptoms": false,
                  "primary_tumour_resected": true,
                  "risk_class": "low",
                  "serious_complication_15d_percent": 1.6,
                  "tumour_uncontrolled": false
                },
                {
                  "citation": {
                    "authors": "Carmona-Bayonas A, Jiménez-Fonseca P, Font C, Fenoy F, Otero R, Beato C, Plasencia JM, Biosca M, Sánchez M, Benegas M, Calvo-Temprano D, Varona D, Faez L, de la Haba I, Antonio M, Madridano O, Solis MP, Ramchandani A, Castañón E, Marchena PJ, Martín M, Ayala de la Peña F, Vicente V; Asociación de Investigación de la Enfermedad Tromboembólica de la Región de Murcia",
                    "doi": "10.1038/bjc.2017.48",
                    "id": "carmona-bayonas-2017",
                    "pmid": "28267709",
                    "source": "Br J Cancer. 2017;116:994-1001",
                    "title": "Predicting serious complications in patients with cancer and pulmonary embolism using decision tree modelling: the EPIPHANY Index"
                  },
                  "criteria": [
                    {
                      "factor": "hestia_like_any",
                      "met": false
                    },
                    {
                      "factor": "ecog_ps_ge_2",
                      "met": false
                    },
                    {
                      "factor": "oxygen_sat_lt_90",
                      "met": false
                    },
                    {
                      "factor": "pe_specific_symptoms",
                      "met": false
                    },
                    {
                      "factor": "tumour_uncontrolled",
                      "met": false
                    },
                    {
                      "factor": "primary_tumour_resected",
                      "met": true
                    }
                  ],
                  "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.",
                  "ecog_ps_ge_2": false,
                  "formula": "epiphany",
                  "formula_expression": "root: hestia-like CDR any vs none (Carmona-Bayonas 2017 Figure 2). CDR any: ECOG-PS >=2 then SaO2 <90 vs >=90 (both high), else PE-specific symptoms yes (high) vs no (intermediate). CDR none: tumour progression/unknown/not evaluated vs others (CR/PR/SD/NED); if uncontrolled then primary tumour resection yes (low) vs no (intermediate); if others then low. Classes low/intermediate/high with 15-day serious complications 1.6/9.4/30.6% and 15-day mortality 0.3/6.1/17.1%",
                  "hestia_like_any": false,
                  "leaf": "low_controlled",
                  "mortality_15d_percent": 0.3,
                  "oxygen_sat_lt_90": false,
                  "pe_specific_symptoms": false,
                  "primary_tumour_resected": true,
                  "risk_class": "low",
                  "serious_complication_15d_percent": 1.6,
                  "tumour_uncontrolled": false
                }
              ],
              "path": "/api/calc/epiphany"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "ecog_ps_ge_2": {
                            "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.",
                            "type": "boolean"
                          },
                          "hestia_like_any": {
                            "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.",
                            "type": "boolean"
                          },
                          "oxygen_sat_lt_90": {
                            "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.",
                            "type": "boolean"
                          },
                          "pe_specific_symptoms": {
                            "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. Distinct from incidental vs symptomatic diagnosis and from the dyspnoea CDR item. magent does not take a history.",
                            "type": "boolean"
                          },
                          "primary_tumour_resected": {
                            "description": "Prior surgical resection of the primary tumour as assigned by the caller. true or false. Used when Hestia-like none and tumour_uncontrolled are both true. magent does not read an operative note.",
                            "type": "boolean"
                          },
                          "tumour_uncontrolled": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "hestia_like_any",
                          "ecog_ps_ge_2",
                          "oxygen_sat_lt_90",
                          "pe_specific_symptoms",
                          "tumour_uncontrolled",
                          "primary_tumour_resected"
                        ],
                        "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"
  }
}