{
  "x402Version": 2,
  "id": 38900,
  "slug": "38900",
  "resource": "https://api.magentlab.com/api/calc/scap",
  "description": "España 2006 SCAP. Eight caller-assigned flags: two major (arterial pH <7.30, SBP <90 mm Hg) and six minor (RR >30, altered mental status, BUN >30 mg/dL, hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250, age ≥80, multilobar or bilateral). Severe if 1 major or ≥2 minor. One point per true predictor (max 8). Not a diagnosis, not an ICU-admission order, not CURB-65, not PSI/PORT, not SMART-COP.",
  "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_ge_80": false,
                "altered_mental_status": false,
                "bun_gt_30_mg_dl": false,
                "hypoxemia": false,
                "multilobar_or_bilateral": false,
                "ph_lt_7_30": false,
                "respiratory_rate_gt_30": false,
                "sbp_lt_90": false
              },
              {
                "age_ge_80": false,
                "altered_mental_status": false,
                "bun_gt_30_mg_dl": false,
                "hypoxemia": false,
                "multilobar_or_bilateral": false,
                "ph_lt_7_30": false,
                "respiratory_rate_gt_30": false,
                "sbp_lt_90": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "España PP, Capelastegui A, Gorordo I, Esteban C, Oribe M, Ortega M, Bilbao A, Quintana JM",
                  "doi": "10.1164/rccm.200602-177OC",
                  "id": "espana-2006",
                  "pmid": "16973986",
                  "source": "Am J Respir Crit Care Med. 2006;174(11):1249-1256",
                  "title": "Development and validation of a clinical prediction rule for severe community-acquired pneumonia"
                },
                "components": [
                  {
                    "factor": "ph_lt_7_30",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sbp_lt_90",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_gt_30",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "altered_mental_status",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bun_gt_30_mg_dl",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypoxemia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_80",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "multilobar_or_bilateral",
                    "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": "scap",
                "formula_expression": "SCAP severe iff 1 major (ph_lt_7_30 or sbp_lt_90) OR >=2 minor (respiratory_rate_gt_30, altered_mental_status, bun_gt_30_mg_dl, hypoxemia, age_ge_80, multilobar_or_bilateral); 1 point per true predictor (España 2006 major/minor rule; not beta-derived integer cards); max 8",
                "major_count": 0,
                "max_score": 8,
                "minor_count": 0,
                "scap_severe": false,
                "score": 0
              },
              {
                "citation": {
                  "authors": "España PP, Capelastegui A, Gorordo I, Esteban C, Oribe M, Ortega M, Bilbao A, Quintana JM",
                  "doi": "10.1164/rccm.200602-177OC",
                  "id": "espana-2006",
                  "pmid": "16973986",
                  "source": "Am J Respir Crit Care Med. 2006;174(11):1249-1256",
                  "title": "Development and validation of a clinical prediction rule for severe community-acquired pneumonia"
                },
                "components": [
                  {
                    "factor": "ph_lt_7_30",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sbp_lt_90",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_gt_30",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "altered_mental_status",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bun_gt_30_mg_dl",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypoxemia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_80",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "multilobar_or_bilateral",
                    "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": "scap",
                "formula_expression": "SCAP severe iff 1 major (ph_lt_7_30 or sbp_lt_90) OR >=2 minor (respiratory_rate_gt_30, altered_mental_status, bun_gt_30_mg_dl, hypoxemia, age_ge_80, multilobar_or_bilateral); 1 point per true predictor (España 2006 major/minor rule; not beta-derived integer cards); max 8",
                "major_count": 0,
                "max_score": 8,
                "minor_count": 0,
                "scap_severe": false,
                "score": 0
              }
            ],
            "path": "/api/calc/scap"
          },
          "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_ge_80": {
                          "description": "Age ≥80 years (España 2006 minor). true or false as assigned by the caller. magent does not compute age.",
                          "type": "boolean"
                        },
                        "altered_mental_status": {
                          "description": "Altered mental status (España 2006 minor). true or false as assigned by the caller. magent does not assess mental status.",
                          "type": "boolean"
                        },
                        "bun_gt_30_mg_dl": {
                          "description": "Blood urea nitrogen >30 mg/dL (España 2006 minor). true or false as assigned by the caller. magent does not convert urea or measure BUN.",
                          "type": "boolean"
                        },
                        "hypoxemia": {
                          "description": "Hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250 (España 2006 minor), as assigned by the caller. true or false. magent does not measure PaO2 or FiO2.",
                          "type": "boolean"
                        },
                        "multilobar_or_bilateral": {
                          "description": "Multilobar or bilateral lung involvement (España 2006 minor). true or false as assigned by the caller. magent does not interpret radiographs.",
                          "type": "boolean"
                        },
                        "ph_lt_7_30": {
                          "description": "Arterial pH <7.30 (España 2006 major). true or false as assigned by the caller. magent does not measure pH.",
                          "type": "boolean"
                        },
                        "respiratory_rate_gt_30": {
                          "description": "Respiratory rate >30 breaths/min (España 2006 minor; strict greater-than, not ≥30). true or false as assigned by the caller. magent does not measure respiratory rate.",
                          "type": "boolean"
                        },
                        "sbp_lt_90": {
                          "description": "Systolic blood pressure <90 mm Hg (España 2006 major). true or false as assigned by the caller. magent does not measure blood pressure.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ph_lt_7_30",
                        "sbp_lt_90",
                        "respiratory_rate_gt_30",
                        "altered_mental_status",
                        "bun_gt_30_mg_dl",
                        "hypoxemia",
                        "age_ge_80",
                        "multilobar_or_bilateral"
                      ],
                      "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": [
    "scap",
    "pneumonia",
    "cap",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:17:02.877Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-12T14:17:02.745Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_ge_80": false,
                  "altered_mental_status": false,
                  "bun_gt_30_mg_dl": false,
                  "hypoxemia": false,
                  "multilobar_or_bilateral": false,
                  "ph_lt_7_30": false,
                  "respiratory_rate_gt_30": false,
                  "sbp_lt_90": false
                },
                {
                  "age_ge_80": false,
                  "altered_mental_status": false,
                  "bun_gt_30_mg_dl": false,
                  "hypoxemia": false,
                  "multilobar_or_bilateral": false,
                  "ph_lt_7_30": false,
                  "respiratory_rate_gt_30": false,
                  "sbp_lt_90": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "España PP, Capelastegui A, Gorordo I, Esteban C, Oribe M, Ortega M, Bilbao A, Quintana JM",
                    "doi": "10.1164/rccm.200602-177OC",
                    "id": "espana-2006",
                    "pmid": "16973986",
                    "source": "Am J Respir Crit Care Med. 2006;174(11):1249-1256",
                    "title": "Development and validation of a clinical prediction rule for severe community-acquired pneumonia"
                  },
                  "components": [
                    {
                      "factor": "ph_lt_7_30",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sbp_lt_90",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_gt_30",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "altered_mental_status",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bun_gt_30_mg_dl",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypoxemia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_80",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "multilobar_or_bilateral",
                      "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": "scap",
                  "formula_expression": "SCAP severe iff 1 major (ph_lt_7_30 or sbp_lt_90) OR >=2 minor (respiratory_rate_gt_30, altered_mental_status, bun_gt_30_mg_dl, hypoxemia, age_ge_80, multilobar_or_bilateral); 1 point per true predictor (España 2006 major/minor rule; not beta-derived integer cards); max 8",
                  "major_count": 0,
                  "max_score": 8,
                  "minor_count": 0,
                  "scap_severe": false,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "España PP, Capelastegui A, Gorordo I, Esteban C, Oribe M, Ortega M, Bilbao A, Quintana JM",
                    "doi": "10.1164/rccm.200602-177OC",
                    "id": "espana-2006",
                    "pmid": "16973986",
                    "source": "Am J Respir Crit Care Med. 2006;174(11):1249-1256",
                    "title": "Development and validation of a clinical prediction rule for severe community-acquired pneumonia"
                  },
                  "components": [
                    {
                      "factor": "ph_lt_7_30",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sbp_lt_90",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_gt_30",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "altered_mental_status",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bun_gt_30_mg_dl",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypoxemia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_80",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "multilobar_or_bilateral",
                      "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": "scap",
                  "formula_expression": "SCAP severe iff 1 major (ph_lt_7_30 or sbp_lt_90) OR >=2 minor (respiratory_rate_gt_30, altered_mental_status, bun_gt_30_mg_dl, hypoxemia, age_ge_80, multilobar_or_bilateral); 1 point per true predictor (España 2006 major/minor rule; not beta-derived integer cards); max 8",
                  "major_count": 0,
                  "max_score": 8,
                  "minor_count": 0,
                  "scap_severe": false,
                  "score": 0
                }
              ],
              "path": "/api/calc/scap"
            },
            "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_ge_80": {
                            "description": "Age ≥80 years (España 2006 minor). true or false as assigned by the caller. magent does not compute age.",
                            "type": "boolean"
                          },
                          "altered_mental_status": {
                            "description": "Altered mental status (España 2006 minor). true or false as assigned by the caller. magent does not assess mental status.",
                            "type": "boolean"
                          },
                          "bun_gt_30_mg_dl": {
                            "description": "Blood urea nitrogen >30 mg/dL (España 2006 minor). true or false as assigned by the caller. magent does not convert urea or measure BUN.",
                            "type": "boolean"
                          },
                          "hypoxemia": {
                            "description": "Hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250 (España 2006 minor), as assigned by the caller. true or false. magent does not measure PaO2 or FiO2.",
                            "type": "boolean"
                          },
                          "multilobar_or_bilateral": {
                            "description": "Multilobar or bilateral lung involvement (España 2006 minor). true or false as assigned by the caller. magent does not interpret radiographs.",
                            "type": "boolean"
                          },
                          "ph_lt_7_30": {
                            "description": "Arterial pH <7.30 (España 2006 major). true or false as assigned by the caller. magent does not measure pH.",
                            "type": "boolean"
                          },
                          "respiratory_rate_gt_30": {
                            "description": "Respiratory rate >30 breaths/min (España 2006 minor; strict greater-than, not ≥30). true or false as assigned by the caller. magent does not measure respiratory rate.",
                            "type": "boolean"
                          },
                          "sbp_lt_90": {
                            "description": "Systolic blood pressure <90 mm Hg (España 2006 major). true or false as assigned by the caller. magent does not measure blood pressure.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ph_lt_7_30",
                          "sbp_lt_90",
                          "respiratory_rate_gt_30",
                          "altered_mental_status",
                          "bun_gt_30_mg_dl",
                          "hypoxemia",
                          "age_ge_80",
                          "multilobar_or_bilateral"
                        ],
                        "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"
  }
}