{
  "x402Version": 2,
  "id": 38908,
  "slug": "38908",
  "resource": "https://api.magentlab.com/api/calc/wells_pe",
  "description": "Wells pulmonary-embolism probability from discrete clinical flags. Returns three-tier and two-tier bands. Deterministic published score with citation; not a diagnosis.",
  "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": [
              {
                "hemoptysis": false,
                "hr_gt_100": false,
                "immobilization_or_surgery": false,
                "malignancy": false,
                "pe_number_one": true,
                "previous_dvt_pe": false,
                "signs_dvt": true
              },
              {
                "hemoptysis": false,
                "hr_gt_100": false,
                "immobilization_or_surgery": false,
                "malignancy": false,
                "pe_number_one": true,
                "previous_dvt_pe": false,
                "signs_dvt": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Wells PS, Anderson DR, Rodger M, et al.",
                  "doi": "10.7326/0003-4819-135-2-200107170-00010",
                  "id": "wells-pe-2001",
                  "source": "Ann Intern Med. 2001;135(2):98-107",
                  "title": "Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer"
                },
                "components": [
                  {
                    "factor": "signs_dvt",
                    "points": 3,
                    "present": true
                  },
                  {
                    "factor": "pe_number_one",
                    "points": 3,
                    "present": true
                  },
                  {
                    "factor": "hr_gt_100",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobilization_or_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "previous_dvt_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoptysis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "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": "wells_pe",
                "formula_expression": "Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy",
                "max_score": 12.5,
                "score": 6,
                "three_tier": "moderate",
                "two_tier": "likely"
              },
              {
                "citation": {
                  "authors": "Wells PS, Anderson DR, Rodger M, et al.",
                  "doi": "10.7326/0003-4819-135-2-200107170-00010",
                  "id": "wells-pe-2001",
                  "source": "Ann Intern Med. 2001;135(2):98-107",
                  "title": "Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer"
                },
                "components": [
                  {
                    "factor": "signs_dvt",
                    "points": 3,
                    "present": true
                  },
                  {
                    "factor": "pe_number_one",
                    "points": 3,
                    "present": true
                  },
                  {
                    "factor": "hr_gt_100",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobilization_or_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "previous_dvt_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoptysis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "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": "wells_pe",
                "formula_expression": "Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy",
                "max_score": 12.5,
                "score": 6,
                "three_tier": "moderate",
                "two_tier": "likely"
              }
            ],
            "path": "/api/calc/wells_pe"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "hemoptysis": {
                          "description": "Hemoptysis (1 point).",
                          "type": "boolean"
                        },
                        "hr_gt_100": {
                          "description": "Heart rate >100 (1.5 points).",
                          "type": "boolean"
                        },
                        "immobilization_or_surgery": {
                          "description": "Immobilization ≥3 days or surgery in previous 4 weeks (1.5 points).",
                          "type": "boolean"
                        },
                        "malignancy": {
                          "description": "Malignancy with treatment in last 6 months or palliative (1 point).",
                          "type": "boolean"
                        },
                        "pe_number_one": {
                          "description": "PE is the number-one diagnosis or equally likely (3 points).",
                          "type": "boolean"
                        },
                        "previous_dvt_pe": {
                          "description": "Previous DVT or PE (1.5 points).",
                          "type": "boolean"
                        },
                        "signs_dvt": {
                          "description": "Clinical signs and symptoms of DVT (3 points).",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "signs_dvt",
                        "pe_number_one",
                        "hr_gt_100",
                        "immobilization_or_surgery",
                        "previous_dvt_pe",
                        "hemoptysis",
                        "malignancy"
                      ],
                      "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": [
    "wells",
    "pe",
    "vte",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T16:22:16.713Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T16:22:16.587Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "hemoptysis": false,
                  "hr_gt_100": false,
                  "immobilization_or_surgery": false,
                  "malignancy": false,
                  "pe_number_one": true,
                  "previous_dvt_pe": false,
                  "signs_dvt": true
                },
                {
                  "hemoptysis": false,
                  "hr_gt_100": false,
                  "immobilization_or_surgery": false,
                  "malignancy": false,
                  "pe_number_one": true,
                  "previous_dvt_pe": false,
                  "signs_dvt": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Wells PS, Anderson DR, Rodger M, et al.",
                    "doi": "10.7326/0003-4819-135-2-200107170-00010",
                    "id": "wells-pe-2001",
                    "source": "Ann Intern Med. 2001;135(2):98-107",
                    "title": "Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer"
                  },
                  "components": [
                    {
                      "factor": "signs_dvt",
                      "points": 3,
                      "present": true
                    },
                    {
                      "factor": "pe_number_one",
                      "points": 3,
                      "present": true
                    },
                    {
                      "factor": "hr_gt_100",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobilization_or_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "previous_dvt_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoptysis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "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": "wells_pe",
                  "formula_expression": "Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy",
                  "max_score": 12.5,
                  "score": 6,
                  "three_tier": "moderate",
                  "two_tier": "likely"
                },
                {
                  "citation": {
                    "authors": "Wells PS, Anderson DR, Rodger M, et al.",
                    "doi": "10.7326/0003-4819-135-2-200107170-00010",
                    "id": "wells-pe-2001",
                    "source": "Ann Intern Med. 2001;135(2):98-107",
                    "title": "Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer"
                  },
                  "components": [
                    {
                      "factor": "signs_dvt",
                      "points": 3,
                      "present": true
                    },
                    {
                      "factor": "pe_number_one",
                      "points": 3,
                      "present": true
                    },
                    {
                      "factor": "hr_gt_100",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobilization_or_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "previous_dvt_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoptysis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "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": "wells_pe",
                  "formula_expression": "Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy",
                  "max_score": 12.5,
                  "score": 6,
                  "three_tier": "moderate",
                  "two_tier": "likely"
                }
              ],
              "path": "/api/calc/wells_pe"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "hemoptysis": {
                            "description": "Hemoptysis (1 point).",
                            "type": "boolean"
                          },
                          "hr_gt_100": {
                            "description": "Heart rate >100 (1.5 points).",
                            "type": "boolean"
                          },
                          "immobilization_or_surgery": {
                            "description": "Immobilization ≥3 days or surgery in previous 4 weeks (1.5 points).",
                            "type": "boolean"
                          },
                          "malignancy": {
                            "description": "Malignancy with treatment in last 6 months or palliative (1 point).",
                            "type": "boolean"
                          },
                          "pe_number_one": {
                            "description": "PE is the number-one diagnosis or equally likely (3 points).",
                            "type": "boolean"
                          },
                          "previous_dvt_pe": {
                            "description": "Previous DVT or PE (1.5 points).",
                            "type": "boolean"
                          },
                          "signs_dvt": {
                            "description": "Clinical signs and symptoms of DVT (3 points).",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "signs_dvt",
                          "pe_number_one",
                          "hr_gt_100",
                          "immobilization_or_surgery",
                          "previous_dvt_pe",
                          "hemoptysis",
                          "malignancy"
                        ],
                        "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"
  }
}