{
  "x402Version": 2,
  "id": 39228,
  "slug": "39228",
  "resource": "https://api.magentlab.com/api/calc/cpes",
  "description": "Bangalore 2023 composite PE shock score for intermediate-risk PE. Six equally weighted caller-assigned flags (elevated troponin per local assay, elevated BNP, moderate or severe RV dysfunction, saddle PE, concomitant DVT, tachycardia ≥100 beats/min), 1 point each, max 6. Integer 0–6 score only; no named bands. magent does not invent biomarker cutoffs, read echo, or take raw heart rate. Not a shock diagnosis, not sPESI/Bova/PESI, not hypotensive PE, and not a medical device.",
  "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": [
              {
                "concomitant_dvt": false,
                "elevated_bnp": false,
                "elevated_troponin": false,
                "moderate_or_severe_rv_dysfunction": false,
                "saddle_pe": false,
                "tachycardia": false
              },
              {
                "concomitant_dvt": false,
                "elevated_bnp": false,
                "elevated_troponin": false,
                "moderate_or_severe_rv_dysfunction": false,
                "saddle_pe": false,
                "tachycardia": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Bangalore S, Horowitz JM, Beam D, Jaber WA, Khandhar S, Toma C, Weinberg MD, Mina B",
                  "doi": "10.1016/j.jcin.2023.02.004",
                  "id": "bangalore-2023",
                  "pmid": "37100559",
                  "source": "JACC Cardiovasc Interv. 2023;16(8):958-972",
                  "title": "Prevalence and Predictors of Cardiogenic Shock in Intermediate-Risk Pulmonary Embolism: Insights From the FLASH Registry"
                },
                "components": [
                  {
                    "factor": "elevated_troponin",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_bnp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "moderate_or_severe_rv_dysfunction",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "saddle_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "concomitant_dvt",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "tachycardia",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "cpes",
                "formula_expression": "CPES = elevated_troponin + elevated_bnp + moderate_or_severe_rv_dysfunction + saddle_pe + concomitant_dvt + tachycardia; each 1 if true; max 6 (Bangalore 2023)",
                "max_score": 6,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Bangalore S, Horowitz JM, Beam D, Jaber WA, Khandhar S, Toma C, Weinberg MD, Mina B",
                  "doi": "10.1016/j.jcin.2023.02.004",
                  "id": "bangalore-2023",
                  "pmid": "37100559",
                  "source": "JACC Cardiovasc Interv. 2023;16(8):958-972",
                  "title": "Prevalence and Predictors of Cardiogenic Shock in Intermediate-Risk Pulmonary Embolism: Insights From the FLASH Registry"
                },
                "components": [
                  {
                    "factor": "elevated_troponin",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_bnp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "moderate_or_severe_rv_dysfunction",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "saddle_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "concomitant_dvt",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "tachycardia",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "cpes",
                "formula_expression": "CPES = elevated_troponin + elevated_bnp + moderate_or_severe_rv_dysfunction + saddle_pe + concomitant_dvt + tachycardia; each 1 if true; max 6 (Bangalore 2023)",
                "max_score": 6,
                "score": 0
              }
            ],
            "path": "/api/calc/cpes"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "concomitant_dvt": {
                          "description": "Concomitant DVT, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not diagnose DVT.",
                          "type": "boolean"
                        },
                        "elevated_bnp": {
                          "description": "Elevated BNP, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay.",
                          "type": "boolean"
                        },
                        "elevated_troponin": {
                          "description": "Elevated troponin per local assay, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay.",
                          "type": "boolean"
                        },
                        "moderate_or_severe_rv_dysfunction": {
                          "description": "Moderately or severely reduced RV function, as assigned by the caller (Bangalore 2023). Normal or mild reduction is false. true scores 1; false scores 0. magent does not read echo.",
                          "type": "boolean"
                        },
                        "saddle_pe": {
                          "description": "Saddle PE or central thrombus burden, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not read imaging.",
                          "type": "boolean"
                        },
                        "tachycardia": {
                          "description": "Tachycardia ≥100 beats/min as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not take raw heart rate.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "elevated_troponin",
                        "elevated_bnp",
                        "moderate_or_severe_rv_dysfunction",
                        "saddle_pe",
                        "concomitant_dvt",
                        "tachycardia"
                      ],
                      "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": [
    "cpes",
    "pe",
    "vte",
    "shock",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:11:20.853Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:11:19.488Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "concomitant_dvt": false,
                  "elevated_bnp": false,
                  "elevated_troponin": false,
                  "moderate_or_severe_rv_dysfunction": false,
                  "saddle_pe": false,
                  "tachycardia": false
                },
                {
                  "concomitant_dvt": false,
                  "elevated_bnp": false,
                  "elevated_troponin": false,
                  "moderate_or_severe_rv_dysfunction": false,
                  "saddle_pe": false,
                  "tachycardia": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Bangalore S, Horowitz JM, Beam D, Jaber WA, Khandhar S, Toma C, Weinberg MD, Mina B",
                    "doi": "10.1016/j.jcin.2023.02.004",
                    "id": "bangalore-2023",
                    "pmid": "37100559",
                    "source": "JACC Cardiovasc Interv. 2023;16(8):958-972",
                    "title": "Prevalence and Predictors of Cardiogenic Shock in Intermediate-Risk Pulmonary Embolism: Insights From the FLASH Registry"
                  },
                  "components": [
                    {
                      "factor": "elevated_troponin",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_bnp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "moderate_or_severe_rv_dysfunction",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "saddle_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "concomitant_dvt",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "tachycardia",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "cpes",
                  "formula_expression": "CPES = elevated_troponin + elevated_bnp + moderate_or_severe_rv_dysfunction + saddle_pe + concomitant_dvt + tachycardia; each 1 if true; max 6 (Bangalore 2023)",
                  "max_score": 6,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Bangalore S, Horowitz JM, Beam D, Jaber WA, Khandhar S, Toma C, Weinberg MD, Mina B",
                    "doi": "10.1016/j.jcin.2023.02.004",
                    "id": "bangalore-2023",
                    "pmid": "37100559",
                    "source": "JACC Cardiovasc Interv. 2023;16(8):958-972",
                    "title": "Prevalence and Predictors of Cardiogenic Shock in Intermediate-Risk Pulmonary Embolism: Insights From the FLASH Registry"
                  },
                  "components": [
                    {
                      "factor": "elevated_troponin",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_bnp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "moderate_or_severe_rv_dysfunction",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "saddle_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "concomitant_dvt",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "tachycardia",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "cpes",
                  "formula_expression": "CPES = elevated_troponin + elevated_bnp + moderate_or_severe_rv_dysfunction + saddle_pe + concomitant_dvt + tachycardia; each 1 if true; max 6 (Bangalore 2023)",
                  "max_score": 6,
                  "score": 0
                }
              ],
              "path": "/api/calc/cpes"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "concomitant_dvt": {
                            "description": "Concomitant DVT, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not diagnose DVT.",
                            "type": "boolean"
                          },
                          "elevated_bnp": {
                            "description": "Elevated BNP, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay.",
                            "type": "boolean"
                          },
                          "elevated_troponin": {
                            "description": "Elevated troponin per local assay, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay.",
                            "type": "boolean"
                          },
                          "moderate_or_severe_rv_dysfunction": {
                            "description": "Moderately or severely reduced RV function, as assigned by the caller (Bangalore 2023). Normal or mild reduction is false. true scores 1; false scores 0. magent does not read echo.",
                            "type": "boolean"
                          },
                          "saddle_pe": {
                            "description": "Saddle PE or central thrombus burden, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not read imaging.",
                            "type": "boolean"
                          },
                          "tachycardia": {
                            "description": "Tachycardia ≥100 beats/min as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not take raw heart rate.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "elevated_troponin",
                          "elevated_bnp",
                          "moderate_or_severe_rv_dysfunction",
                          "saddle_pe",
                          "concomitant_dvt",
                          "tachycardia"
                        ],
                        "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"
  }
}