{
  "x402Version": 2,
  "id": 38963,
  "slug": "38963",
  "resource": "https://api.magentlab.com/api/calc/perc_altitude",
  "description": "Altitude-adjusted PERC (Madsen 2019). Same eight Kline factors as sea-level PERC except hypoxia is O2 sat <90% at ~4980 ft, not <95%. PERC-negative only when all eight hold: age <50, pulse <100, SaO2 ≥90%, and no unilateral leg swelling, hemoptysis, recent trauma or surgery, prior PE or DVT, or hormone use. Caller must already have low pretest probability as in Kline. Not a PE diagnosis, not sea-level PERC, 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": [
              {
                "age": 40,
                "estrogen_use": false,
                "heart_rate_bpm": 80,
                "hemoptysis": false,
                "prior_vte": false,
                "recent_surgery_or_trauma": false,
                "spo2_percent": 90,
                "unilateral_leg_swelling": false
              },
              {
                "age": 40,
                "estrogen_use": false,
                "heart_rate_bpm": 80,
                "hemoptysis": false,
                "prior_vte": false,
                "recent_surgery_or_trauma": false,
                "spo2_percent": 90,
                "unilateral_leg_swelling": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Madsen T, Jedick R, Teeples T, Carlson M, Steenblik J",
                  "doi": "10.1016/j.ajem.2018.05.050",
                  "id": "madsen-2019",
                  "pmid": "29848460",
                  "source": "Am J Emerg Med. 2019;37(2):281-285 (Epub 2018 May 24)",
                  "title": "Impact of altitude-adjusted hypoxia on the Pulmonary Embolism Rule-out Criteria."
                },
                "criteria": [
                  {
                    "factor": "age_lt_50",
                    "met": true,
                    "value": 40
                  },
                  {
                    "factor": "pulse_lt_100",
                    "met": true,
                    "value": 80
                  },
                  {
                    "factor": "sao2_ge_90",
                    "met": true,
                    "value": 90
                  },
                  {
                    "factor": "no_unilateral_leg_swelling",
                    "met": true
                  },
                  {
                    "factor": "no_hemoptysis",
                    "met": true
                  },
                  {
                    "factor": "no_recent_surgery_or_trauma",
                    "met": true
                  },
                  {
                    "factor": "no_prior_vte",
                    "met": true
                  },
                  {
                    "factor": "no_estrogen_use",
                    "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.",
                "formula": "perc_altitude",
                "formula_expression": "PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 ≥ 90% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use",
                "perc_negative": true
              },
              {
                "citation": {
                  "authors": "Madsen T, Jedick R, Teeples T, Carlson M, Steenblik J",
                  "doi": "10.1016/j.ajem.2018.05.050",
                  "id": "madsen-2019",
                  "pmid": "29848460",
                  "source": "Am J Emerg Med. 2019;37(2):281-285 (Epub 2018 May 24)",
                  "title": "Impact of altitude-adjusted hypoxia on the Pulmonary Embolism Rule-out Criteria."
                },
                "criteria": [
                  {
                    "factor": "age_lt_50",
                    "met": true,
                    "value": 40
                  },
                  {
                    "factor": "pulse_lt_100",
                    "met": true,
                    "value": 80
                  },
                  {
                    "factor": "sao2_ge_90",
                    "met": true,
                    "value": 90
                  },
                  {
                    "factor": "no_unilateral_leg_swelling",
                    "met": true
                  },
                  {
                    "factor": "no_hemoptysis",
                    "met": true
                  },
                  {
                    "factor": "no_recent_surgery_or_trauma",
                    "met": true
                  },
                  {
                    "factor": "no_prior_vte",
                    "met": true
                  },
                  {
                    "factor": "no_estrogen_use",
                    "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.",
                "formula": "perc_altitude",
                "formula_expression": "PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 ≥ 90% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use",
                "perc_negative": true
              }
            ],
            "path": "/api/calc/perc_altitude"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120). Criterion met when age < 50; 50 does not meet.",
                          "type": "integer"
                        },
                        "estrogen_use": {
                          "description": "Hormone or exogenous estrogen use. true or false as assigned by the caller. Criterion met when false.",
                          "type": "boolean"
                        },
                        "heart_rate_bpm": {
                          "description": "Pulse in beats per minute (integer 30-220). Criterion met when pulse < 100; 100 does not meet.",
                          "type": "integer"
                        },
                        "hemoptysis": {
                          "description": "Hemoptysis. true or false as assigned by the caller. Criterion met when false.",
                          "type": "boolean"
                        },
                        "prior_vte": {
                          "description": "Prior PE or DVT. true or false as assigned by the caller. Criterion met when false.",
                          "type": "boolean"
                        },
                        "recent_surgery_or_trauma": {
                          "description": "Recent trauma or surgery. true or false as assigned by the caller. Criterion met when false.",
                          "type": "boolean"
                        },
                        "spo2_percent": {
                          "description": "Oxygen saturation percent (50-100). Criterion met when SaO2 ≥ 90; 89.9 does not meet. Madsen 2019 altitude adjustment, not sea-level PERC >94.",
                          "type": "number"
                        },
                        "unilateral_leg_swelling": {
                          "description": "Unilateral leg swelling. true or false as assigned by the caller. Criterion met when false.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "heart_rate_bpm",
                        "spo2_percent",
                        "unilateral_leg_swelling",
                        "hemoptysis",
                        "recent_surgery_or_trauma",
                        "prior_vte",
                        "estrogen_use"
                      ],
                      "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": [
    "perc",
    "altitude",
    "pe",
    "vte",
    "rule-out",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:06:34.331Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:06:34.2Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "estrogen_use": false,
                  "heart_rate_bpm": 80,
                  "hemoptysis": false,
                  "prior_vte": false,
                  "recent_surgery_or_trauma": false,
                  "spo2_percent": 90,
                  "unilateral_leg_swelling": false
                },
                {
                  "age": 40,
                  "estrogen_use": false,
                  "heart_rate_bpm": 80,
                  "hemoptysis": false,
                  "prior_vte": false,
                  "recent_surgery_or_trauma": false,
                  "spo2_percent": 90,
                  "unilateral_leg_swelling": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Madsen T, Jedick R, Teeples T, Carlson M, Steenblik J",
                    "doi": "10.1016/j.ajem.2018.05.050",
                    "id": "madsen-2019",
                    "pmid": "29848460",
                    "source": "Am J Emerg Med. 2019;37(2):281-285 (Epub 2018 May 24)",
                    "title": "Impact of altitude-adjusted hypoxia on the Pulmonary Embolism Rule-out Criteria."
                  },
                  "criteria": [
                    {
                      "factor": "age_lt_50",
                      "met": true,
                      "value": 40
                    },
                    {
                      "factor": "pulse_lt_100",
                      "met": true,
                      "value": 80
                    },
                    {
                      "factor": "sao2_ge_90",
                      "met": true,
                      "value": 90
                    },
                    {
                      "factor": "no_unilateral_leg_swelling",
                      "met": true
                    },
                    {
                      "factor": "no_hemoptysis",
                      "met": true
                    },
                    {
                      "factor": "no_recent_surgery_or_trauma",
                      "met": true
                    },
                    {
                      "factor": "no_prior_vte",
                      "met": true
                    },
                    {
                      "factor": "no_estrogen_use",
                      "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.",
                  "formula": "perc_altitude",
                  "formula_expression": "PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 ≥ 90% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use",
                  "perc_negative": true
                },
                {
                  "citation": {
                    "authors": "Madsen T, Jedick R, Teeples T, Carlson M, Steenblik J",
                    "doi": "10.1016/j.ajem.2018.05.050",
                    "id": "madsen-2019",
                    "pmid": "29848460",
                    "source": "Am J Emerg Med. 2019;37(2):281-285 (Epub 2018 May 24)",
                    "title": "Impact of altitude-adjusted hypoxia on the Pulmonary Embolism Rule-out Criteria."
                  },
                  "criteria": [
                    {
                      "factor": "age_lt_50",
                      "met": true,
                      "value": 40
                    },
                    {
                      "factor": "pulse_lt_100",
                      "met": true,
                      "value": 80
                    },
                    {
                      "factor": "sao2_ge_90",
                      "met": true,
                      "value": 90
                    },
                    {
                      "factor": "no_unilateral_leg_swelling",
                      "met": true
                    },
                    {
                      "factor": "no_hemoptysis",
                      "met": true
                    },
                    {
                      "factor": "no_recent_surgery_or_trauma",
                      "met": true
                    },
                    {
                      "factor": "no_prior_vte",
                      "met": true
                    },
                    {
                      "factor": "no_estrogen_use",
                      "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.",
                  "formula": "perc_altitude",
                  "formula_expression": "PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 ≥ 90% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use",
                  "perc_negative": true
                }
              ],
              "path": "/api/calc/perc_altitude"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120). Criterion met when age < 50; 50 does not meet.",
                            "type": "integer"
                          },
                          "estrogen_use": {
                            "description": "Hormone or exogenous estrogen use. true or false as assigned by the caller. Criterion met when false.",
                            "type": "boolean"
                          },
                          "heart_rate_bpm": {
                            "description": "Pulse in beats per minute (integer 30-220). Criterion met when pulse < 100; 100 does not meet.",
                            "type": "integer"
                          },
                          "hemoptysis": {
                            "description": "Hemoptysis. true or false as assigned by the caller. Criterion met when false.",
                            "type": "boolean"
                          },
                          "prior_vte": {
                            "description": "Prior PE or DVT. true or false as assigned by the caller. Criterion met when false.",
                            "type": "boolean"
                          },
                          "recent_surgery_or_trauma": {
                            "description": "Recent trauma or surgery. true or false as assigned by the caller. Criterion met when false.",
                            "type": "boolean"
                          },
                          "spo2_percent": {
                            "description": "Oxygen saturation percent (50-100). Criterion met when SaO2 ≥ 90; 89.9 does not meet. Madsen 2019 altitude adjustment, not sea-level PERC >94.",
                            "type": "number"
                          },
                          "unilateral_leg_swelling": {
                            "description": "Unilateral leg swelling. true or false as assigned by the caller. Criterion met when false.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "heart_rate_bpm",
                          "spo2_percent",
                          "unilateral_leg_swelling",
                          "hemoptysis",
                          "recent_surgery_or_trauma",
                          "prior_vte",
                          "estrogen_use"
                        ],
                        "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"
  }
}