{
  "x402Version": 2,
  "id": 38952,
  "slug": "38952",
  "resource": "https://api.magentlab.com/api/calc/pompe_c",
  "description": "Kline 2012 POMPE-C 30-day mortality probability for active cancer plus acute PE. Logistic from DNR, respiratory distress, unilateral limb swelling, altered mental status, heart rate >99, respiratory rate, room-air SpO2, and weight in pounds (intercept 3.718). Bands: low <=5%, high >50%, else intermediate. Not a PE or cancer diagnosis, not integer points, not a dose.",
  "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": [
              {
                "altered_mental_status": false,
                "dnr": false,
                "heart_rate_gt_99": false,
                "respiratory_distress": false,
                "respiratory_rate": 18,
                "spo2_percent": 97,
                "unilateral_leg_swelling": false,
                "weight_lb": 170
              },
              {
                "altered_mental_status": false,
                "dnr": false,
                "heart_rate_gt_99": false,
                "respiratory_distress": false,
                "respiratory_rate": 18,
                "spo2_percent": 97,
                "unilateral_leg_swelling": false,
                "weight_lb": 170
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "altered_mental_status": false,
                "citation": {
                  "authors": "Kline JA, Roy PM, Than MP, Hernandez J, Courtney DM, Jones AE, Penaloza A, Pollack CV Jr",
                  "doi": "10.1016/j.thromres.2012.03.015",
                  "id": "kline-2012",
                  "pmid": "22475313",
                  "source": "Thromb Res. 2012;129(5):e194-e199",
                  "title": "Derivation and validation of a multivariate model to predict mortality from pulmonary embolism with cancer: The POMPE-C tool"
                },
                "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.",
                "dnr": false,
                "formula": "pompe_c",
                "formula_expression": "mortality_pct = 100 * (1 - 1 / (1 + exp(3.718 + 1.551*dnr + 0.800*respiratory_distress + 0.734*unilateral_leg_swelling + 1.473*altered_mental_status + 1.027*heart_rate_gt_99 + 0.044*respiratory_rate + (-0.063)*spo2_percent + (-0.012)*weight_lb))); Kline 2012 web-prototype logistic (intercept 3.718); heart_rate_gt_99 coefficient 1.027 from Table 2 (OR 2.8) because the manuscript prototype line-wraps as + HR; flags 1 if true else 0; low if mortality_pct <= 5, high if > 50, else intermediate; 30-day all-cause mortality probability for active cancer + acute PE; not integer points",
                "heart_rate_gt_99": false,
                "logit": -3.641,
                "mortality_pct": 2.6,
                "respiratory_distress": false,
                "respiratory_rate": 18,
                "risk_band": "low",
                "spo2_percent": 97,
                "unilateral_leg_swelling": false,
                "weight_lb": 170
              },
              {
                "altered_mental_status": false,
                "citation": {
                  "authors": "Kline JA, Roy PM, Than MP, Hernandez J, Courtney DM, Jones AE, Penaloza A, Pollack CV Jr",
                  "doi": "10.1016/j.thromres.2012.03.015",
                  "id": "kline-2012",
                  "pmid": "22475313",
                  "source": "Thromb Res. 2012;129(5):e194-e199",
                  "title": "Derivation and validation of a multivariate model to predict mortality from pulmonary embolism with cancer: The POMPE-C tool"
                },
                "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.",
                "dnr": false,
                "formula": "pompe_c",
                "formula_expression": "mortality_pct = 100 * (1 - 1 / (1 + exp(3.718 + 1.551*dnr + 0.800*respiratory_distress + 0.734*unilateral_leg_swelling + 1.473*altered_mental_status + 1.027*heart_rate_gt_99 + 0.044*respiratory_rate + (-0.063)*spo2_percent + (-0.012)*weight_lb))); Kline 2012 web-prototype logistic (intercept 3.718); heart_rate_gt_99 coefficient 1.027 from Table 2 (OR 2.8) because the manuscript prototype line-wraps as + HR; flags 1 if true else 0; low if mortality_pct <= 5, high if > 50, else intermediate; 30-day all-cause mortality probability for active cancer + acute PE; not integer points",
                "heart_rate_gt_99": false,
                "logit": -3.641,
                "mortality_pct": 2.6,
                "respiratory_distress": false,
                "respiratory_rate": 18,
                "risk_band": "low",
                "spo2_percent": 97,
                "unilateral_leg_swelling": false,
                "weight_lb": 170
              }
            ],
            "path": "/api/calc/pompe_c"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "altered_mental_status": {
                          "description": "Altered mental status as assigned by the caller (Kline 2012: acute impairment in consciousness, new disorientation, delirium, or confusion). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "dnr": {
                          "description": "Do-not-resuscitate status as assigned by the caller (Kline 2012: new or existing verbal or written desire not to be resuscitated). true or false. magent does not read an advance directive.",
                          "type": "boolean"
                        },
                        "heart_rate_gt_99": {
                          "description": "Heart rate documented over 99 beats/min in the previous six hours, as assigned by the caller. true or false. magent does not take a pulse.",
                          "type": "boolean"
                        },
                        "respiratory_distress": {
                          "description": "Respiratory distress as assigned by the caller (Kline 2012: obvious anxiety from dyspnea or increased work of breathing). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "respiratory_rate": {
                          "description": "Highest documented respiratory rate in breaths/min within the previous six hours (integer 4-80). Continuous predictor in the Kline 2012 prototype logistic.",
                          "type": "integer"
                        },
                        "spo2_percent": {
                          "description": "Most recent pulse oximetry on room air, percent (50-100). Continuous predictor in the Kline 2012 prototype logistic. magent does not measure saturation.",
                          "type": "number"
                        },
                        "unilateral_leg_swelling": {
                          "description": "Unilateral limb swelling as assigned by the caller (Kline 2012: new noticeable arm or leg asymmetry). true or false. magent does not examine the limbs.",
                          "type": "boolean"
                        },
                        "weight_lb": {
                          "description": "Body weight in pounds (2-1100), measured or by patient estimate as in Kline 2012. Pounds enter the logistic directly. magent does not convert from kilograms.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "dnr",
                        "respiratory_distress",
                        "unilateral_leg_swelling",
                        "altered_mental_status",
                        "heart_rate_gt_99",
                        "respiratory_rate",
                        "spo2_percent",
                        "weight_lb"
                      ],
                      "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": [
    "pompe-c",
    "pe",
    "cancer",
    "vte",
    "mortality",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:22:00.359Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:22:00.239Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "altered_mental_status": false,
                  "dnr": false,
                  "heart_rate_gt_99": false,
                  "respiratory_distress": false,
                  "respiratory_rate": 18,
                  "spo2_percent": 97,
                  "unilateral_leg_swelling": false,
                  "weight_lb": 170
                },
                {
                  "altered_mental_status": false,
                  "dnr": false,
                  "heart_rate_gt_99": false,
                  "respiratory_distress": false,
                  "respiratory_rate": 18,
                  "spo2_percent": 97,
                  "unilateral_leg_swelling": false,
                  "weight_lb": 170
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "altered_mental_status": false,
                  "citation": {
                    "authors": "Kline JA, Roy PM, Than MP, Hernandez J, Courtney DM, Jones AE, Penaloza A, Pollack CV Jr",
                    "doi": "10.1016/j.thromres.2012.03.015",
                    "id": "kline-2012",
                    "pmid": "22475313",
                    "source": "Thromb Res. 2012;129(5):e194-e199",
                    "title": "Derivation and validation of a multivariate model to predict mortality from pulmonary embolism with cancer: The POMPE-C tool"
                  },
                  "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.",
                  "dnr": false,
                  "formula": "pompe_c",
                  "formula_expression": "mortality_pct = 100 * (1 - 1 / (1 + exp(3.718 + 1.551*dnr + 0.800*respiratory_distress + 0.734*unilateral_leg_swelling + 1.473*altered_mental_status + 1.027*heart_rate_gt_99 + 0.044*respiratory_rate + (-0.063)*spo2_percent + (-0.012)*weight_lb))); Kline 2012 web-prototype logistic (intercept 3.718); heart_rate_gt_99 coefficient 1.027 from Table 2 (OR 2.8) because the manuscript prototype line-wraps as + HR; flags 1 if true else 0; low if mortality_pct <= 5, high if > 50, else intermediate; 30-day all-cause mortality probability for active cancer + acute PE; not integer points",
                  "heart_rate_gt_99": false,
                  "logit": -3.641,
                  "mortality_pct": 2.6,
                  "respiratory_distress": false,
                  "respiratory_rate": 18,
                  "risk_band": "low",
                  "spo2_percent": 97,
                  "unilateral_leg_swelling": false,
                  "weight_lb": 170
                },
                {
                  "altered_mental_status": false,
                  "citation": {
                    "authors": "Kline JA, Roy PM, Than MP, Hernandez J, Courtney DM, Jones AE, Penaloza A, Pollack CV Jr",
                    "doi": "10.1016/j.thromres.2012.03.015",
                    "id": "kline-2012",
                    "pmid": "22475313",
                    "source": "Thromb Res. 2012;129(5):e194-e199",
                    "title": "Derivation and validation of a multivariate model to predict mortality from pulmonary embolism with cancer: The POMPE-C tool"
                  },
                  "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.",
                  "dnr": false,
                  "formula": "pompe_c",
                  "formula_expression": "mortality_pct = 100 * (1 - 1 / (1 + exp(3.718 + 1.551*dnr + 0.800*respiratory_distress + 0.734*unilateral_leg_swelling + 1.473*altered_mental_status + 1.027*heart_rate_gt_99 + 0.044*respiratory_rate + (-0.063)*spo2_percent + (-0.012)*weight_lb))); Kline 2012 web-prototype logistic (intercept 3.718); heart_rate_gt_99 coefficient 1.027 from Table 2 (OR 2.8) because the manuscript prototype line-wraps as + HR; flags 1 if true else 0; low if mortality_pct <= 5, high if > 50, else intermediate; 30-day all-cause mortality probability for active cancer + acute PE; not integer points",
                  "heart_rate_gt_99": false,
                  "logit": -3.641,
                  "mortality_pct": 2.6,
                  "respiratory_distress": false,
                  "respiratory_rate": 18,
                  "risk_band": "low",
                  "spo2_percent": 97,
                  "unilateral_leg_swelling": false,
                  "weight_lb": 170
                }
              ],
              "path": "/api/calc/pompe_c"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "altered_mental_status": {
                            "description": "Altered mental status as assigned by the caller (Kline 2012: acute impairment in consciousness, new disorientation, delirium, or confusion). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "dnr": {
                            "description": "Do-not-resuscitate status as assigned by the caller (Kline 2012: new or existing verbal or written desire not to be resuscitated). true or false. magent does not read an advance directive.",
                            "type": "boolean"
                          },
                          "heart_rate_gt_99": {
                            "description": "Heart rate documented over 99 beats/min in the previous six hours, as assigned by the caller. true or false. magent does not take a pulse.",
                            "type": "boolean"
                          },
                          "respiratory_distress": {
                            "description": "Respiratory distress as assigned by the caller (Kline 2012: obvious anxiety from dyspnea or increased work of breathing). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "respiratory_rate": {
                            "description": "Highest documented respiratory rate in breaths/min within the previous six hours (integer 4-80). Continuous predictor in the Kline 2012 prototype logistic.",
                            "type": "integer"
                          },
                          "spo2_percent": {
                            "description": "Most recent pulse oximetry on room air, percent (50-100). Continuous predictor in the Kline 2012 prototype logistic. magent does not measure saturation.",
                            "type": "number"
                          },
                          "unilateral_leg_swelling": {
                            "description": "Unilateral limb swelling as assigned by the caller (Kline 2012: new noticeable arm or leg asymmetry). true or false. magent does not examine the limbs.",
                            "type": "boolean"
                          },
                          "weight_lb": {
                            "description": "Body weight in pounds (2-1100), measured or by patient estimate as in Kline 2012. Pounds enter the logistic directly. magent does not convert from kilograms.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "dnr",
                          "respiratory_distress",
                          "unilateral_leg_swelling",
                          "altered_mental_status",
                          "heart_rate_gt_99",
                          "respiratory_rate",
                          "spo2_percent",
                          "weight_lb"
                        ],
                        "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"
  }
}