{
  "x402Version": 2,
  "id": 39341,
  "slug": "39341",
  "resource": "https://api.magentlab.com/api/calc/4peps",
  "description": "Roy 2021 4PEPS Table 3: age <50 −2, 50–64 −1, ≥65 0; chronic respiratory disease −1; HR <80 −1; chest pain and acute dyspnea +1; male +2; estrogen treatment +2; prior VTE +2; syncope +2; 4-week immobility +2; SpO2 <95% +3; calf pain or unilateral edema +3; PE most likely +5. Max 22. Bands: very_low <0, low 0–5, moderate 6–12, high ≥13. Not imaging or D-dimer. magent does not examine the patient or decide PE most likely.",
  "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,
                "calf_pain_or_unilateral_edema": false,
                "chest_pain_and_acute_dyspnea": false,
                "chronic_respiratory_disease": false,
                "heart_rate_bpm": 90,
                "hormonal_estrogenic_treatment": false,
                "immobility_4w": false,
                "pe_most_likely": false,
                "personal_history_vte": false,
                "sex": "female",
                "spo2_percent": 98,
                "syncope": false
              },
              {
                "age": 40,
                "calf_pain_or_unilateral_edema": false,
                "chest_pain_and_acute_dyspnea": false,
                "chronic_respiratory_disease": false,
                "heart_rate_bpm": 90,
                "hormonal_estrogenic_treatment": false,
                "immobility_4w": false,
                "pe_most_likely": false,
                "personal_history_vte": false,
                "sex": "female",
                "spo2_percent": 98,
                "syncope": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Roy PM, Friou E, Germeau B, et al.",
                  "doi": "10.1001/jamacardio.2021.0064",
                  "id": "roy-2021",
                  "pmid": "33656522",
                  "source": "JAMA Cardiol. 2021;6(6):669-677",
                  "title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": -2,
                    "present": true,
                    "value": 40
                  },
                  {
                    "factor": "chronic_respiratory_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "chest_pain_and_acute_dyspnea",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "hormonal_estrogenic_treatment",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_history_vte",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "syncope",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobility_4w",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spo2_percent",
                    "points": 0,
                    "present": false,
                    "value": 98
                  },
                  {
                    "factor": "calf_pain_or_unilateral_edema",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pe_most_likely",
                    "points": 0,
                    "present": false
                  }
                ],
                "cpp": "very_low",
                "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": "4peps",
                "formula_expression": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)",
                "max_score": 22,
                "score": -2
              },
              {
                "citation": {
                  "authors": "Roy PM, Friou E, Germeau B, et al.",
                  "doi": "10.1001/jamacardio.2021.0064",
                  "id": "roy-2021",
                  "pmid": "33656522",
                  "source": "JAMA Cardiol. 2021;6(6):669-677",
                  "title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": -2,
                    "present": true,
                    "value": 40
                  },
                  {
                    "factor": "chronic_respiratory_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "chest_pain_and_acute_dyspnea",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "hormonal_estrogenic_treatment",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_history_vte",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "syncope",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobility_4w",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spo2_percent",
                    "points": 0,
                    "present": false,
                    "value": 98
                  },
                  {
                    "factor": "calf_pain_or_unilateral_edema",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pe_most_likely",
                    "points": 0,
                    "present": false
                  }
                ],
                "cpp": "very_low",
                "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": "4peps",
                "formula_expression": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)",
                "max_score": 22,
                "score": -2
              }
            ],
            "path": "/api/calc/4peps"
          },
          "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 (integer 18-120). Roy 2021 Table 3: <50 scores −2; 50-64 scores −1; ≥65 scores 0 (65-80 and >80 were not independently associated).",
                          "type": "integer"
                        },
                        "calf_pain_or_unilateral_edema": {
                          "description": "Calf pain and/or unilateral lower-limb edema as assigned by the caller (Roy 2021 Table 3). true scores +3. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "chest_pain_and_acute_dyspnea": {
                          "description": "Both chest pain and acute dyspnea present as assigned by the caller (Roy 2021 Table 3). true scores +1. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "chronic_respiratory_disease": {
                          "description": "Chronic respiratory disease (Roy 2021 Table 3). true scores −1. Assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "heart_rate_bpm": {
                          "description": "Heart rate in beats per minute (integer 30-220). Table 3: <80 scores −1. 80-100 was not independently associated; this tool does not add tachycardia points.",
                          "type": "integer"
                        },
                        "hormonal_estrogenic_treatment": {
                          "description": "Hormonal estrogenic treatment as assigned by the caller (Roy 2021 Table 3). true scores +2.",
                          "type": "boolean"
                        },
                        "immobility_4w": {
                          "description": "Immobility within 4 weeks (Roy 2021 Table 3 footnote a): surgery, lower limb plaster cast, or bedridden more than 3 days for an acute medical condition. true scores +2. Assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "pe_most_likely": {
                          "description": "PE is the most likely diagnosis as assigned by the caller (Roy 2021 Table 3). true scores +5. magent does not examine the patient or decide PE most likely.",
                          "type": "boolean"
                        },
                        "personal_history_vte": {
                          "description": "Personal history of VTE as assigned by the caller (Roy 2021 Table 3). true scores +2.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male (Roy 2021 Table 3). Male scores +2. Female scores 0. Assigned by the caller.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "spo2_percent": {
                          "description": "Oxygen saturation percent (50-100). Roy 2021 Table 3: <95 scores +3; 95 and above score 0.",
                          "type": "number"
                        },
                        "syncope": {
                          "description": "Syncope as assigned by the caller (Roy 2021 Table 3). true scores +2. magent does not examine the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "chronic_respiratory_disease",
                        "heart_rate_bpm",
                        "chest_pain_and_acute_dyspnea",
                        "sex",
                        "hormonal_estrogenic_treatment",
                        "personal_history_vte",
                        "syncope",
                        "immobility_4w",
                        "spo2_percent",
                        "calf_pain_or_unilateral_edema",
                        "pe_most_likely"
                      ],
                      "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": [
    "4peps",
    "pe",
    "vte",
    "pretest",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T22:51:10.571Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T22:51:10.4Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "calf_pain_or_unilateral_edema": false,
                  "chest_pain_and_acute_dyspnea": false,
                  "chronic_respiratory_disease": false,
                  "heart_rate_bpm": 90,
                  "hormonal_estrogenic_treatment": false,
                  "immobility_4w": false,
                  "pe_most_likely": false,
                  "personal_history_vte": false,
                  "sex": "female",
                  "spo2_percent": 98,
                  "syncope": false
                },
                {
                  "age": 40,
                  "calf_pain_or_unilateral_edema": false,
                  "chest_pain_and_acute_dyspnea": false,
                  "chronic_respiratory_disease": false,
                  "heart_rate_bpm": 90,
                  "hormonal_estrogenic_treatment": false,
                  "immobility_4w": false,
                  "pe_most_likely": false,
                  "personal_history_vte": false,
                  "sex": "female",
                  "spo2_percent": 98,
                  "syncope": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Roy PM, Friou E, Germeau B, et al.",
                    "doi": "10.1001/jamacardio.2021.0064",
                    "id": "roy-2021",
                    "pmid": "33656522",
                    "source": "JAMA Cardiol. 2021;6(6):669-677",
                    "title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": -2,
                      "present": true,
                      "value": 40
                    },
                    {
                      "factor": "chronic_respiratory_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "chest_pain_and_acute_dyspnea",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "hormonal_estrogenic_treatment",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_history_vte",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "syncope",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobility_4w",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spo2_percent",
                      "points": 0,
                      "present": false,
                      "value": 98
                    },
                    {
                      "factor": "calf_pain_or_unilateral_edema",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pe_most_likely",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "cpp": "very_low",
                  "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": "4peps",
                  "formula_expression": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)",
                  "max_score": 22,
                  "score": -2
                },
                {
                  "citation": {
                    "authors": "Roy PM, Friou E, Germeau B, et al.",
                    "doi": "10.1001/jamacardio.2021.0064",
                    "id": "roy-2021",
                    "pmid": "33656522",
                    "source": "JAMA Cardiol. 2021;6(6):669-677",
                    "title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": -2,
                      "present": true,
                      "value": 40
                    },
                    {
                      "factor": "chronic_respiratory_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "chest_pain_and_acute_dyspnea",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "hormonal_estrogenic_treatment",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_history_vte",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "syncope",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobility_4w",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spo2_percent",
                      "points": 0,
                      "present": false,
                      "value": 98
                    },
                    {
                      "factor": "calf_pain_or_unilateral_edema",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pe_most_likely",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "cpp": "very_low",
                  "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": "4peps",
                  "formula_expression": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)",
                  "max_score": 22,
                  "score": -2
                }
              ],
              "path": "/api/calc/4peps"
            },
            "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 (integer 18-120). Roy 2021 Table 3: <50 scores −2; 50-64 scores −1; ≥65 scores 0 (65-80 and >80 were not independently associated).",
                            "type": "integer"
                          },
                          "calf_pain_or_unilateral_edema": {
                            "description": "Calf pain and/or unilateral lower-limb edema as assigned by the caller (Roy 2021 Table 3). true scores +3. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "chest_pain_and_acute_dyspnea": {
                            "description": "Both chest pain and acute dyspnea present as assigned by the caller (Roy 2021 Table 3). true scores +1. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "chronic_respiratory_disease": {
                            "description": "Chronic respiratory disease (Roy 2021 Table 3). true scores −1. Assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "heart_rate_bpm": {
                            "description": "Heart rate in beats per minute (integer 30-220). Table 3: <80 scores −1. 80-100 was not independently associated; this tool does not add tachycardia points.",
                            "type": "integer"
                          },
                          "hormonal_estrogenic_treatment": {
                            "description": "Hormonal estrogenic treatment as assigned by the caller (Roy 2021 Table 3). true scores +2.",
                            "type": "boolean"
                          },
                          "immobility_4w": {
                            "description": "Immobility within 4 weeks (Roy 2021 Table 3 footnote a): surgery, lower limb plaster cast, or bedridden more than 3 days for an acute medical condition. true scores +2. Assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "pe_most_likely": {
                            "description": "PE is the most likely diagnosis as assigned by the caller (Roy 2021 Table 3). true scores +5. magent does not examine the patient or decide PE most likely.",
                            "type": "boolean"
                          },
                          "personal_history_vte": {
                            "description": "Personal history of VTE as assigned by the caller (Roy 2021 Table 3). true scores +2.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male (Roy 2021 Table 3). Male scores +2. Female scores 0. Assigned by the caller.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "spo2_percent": {
                            "description": "Oxygen saturation percent (50-100). Roy 2021 Table 3: <95 scores +3; 95 and above score 0.",
                            "type": "number"
                          },
                          "syncope": {
                            "description": "Syncope as assigned by the caller (Roy 2021 Table 3). true scores +2. magent does not examine the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "chronic_respiratory_disease",
                          "heart_rate_bpm",
                          "chest_pain_and_acute_dyspnea",
                          "sex",
                          "hormonal_estrogenic_treatment",
                          "personal_history_vte",
                          "syncope",
                          "immobility_4w",
                          "spo2_percent",
                          "calf_pain_or_unilateral_edema",
                          "pe_most_likely"
                        ],
                        "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"
  }
}