{
  "x402Version": 2,
  "id": 38941,
  "slug": "38941",
  "resource": "https://api.magentlab.com/api/calc/psi_port",
  "description": "Fine 1997 Pneumonia Severity Index (PSI/PORT): Class I if age ≤50 and no neoplastic, liver, CHF, cerebrovascular, or renal disease, no AMS, HR <125, RR <30, SBP >=90, and temperature 35 to <40 C. Otherwise Table 2 points (age, or age-10 if female, plus comorbidity, vital-sign, and laboratory weights) map to classes II-V. Always returns the Table 2 total. Not a medical device and not a site-of-care decision.",
  "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": 45,
                "altered_mental_status": false,
                "arterial_ph": 7.4,
                "bun_mg_dl": 14,
                "cerebrovascular": false,
                "chf": false,
                "glucose_mg_dl": 90,
                "heart_rate_bpm": 80,
                "hematocrit_percent": 42,
                "liver_disease": false,
                "neoplastic": false,
                "nursing_home": false,
                "pao2_mm_hg": 90,
                "pleural_effusion": false,
                "renal_disease": false,
                "respiratory_rate": 16,
                "sex": "male",
                "sodium_mmol_l": 140,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              },
              {
                "age": 45,
                "altered_mental_status": false,
                "arterial_ph": 7.4,
                "bun_mg_dl": 14,
                "cerebrovascular": false,
                "chf": false,
                "glucose_mg_dl": 90,
                "heart_rate_bpm": 80,
                "hematocrit_percent": 42,
                "liver_disease": false,
                "neoplastic": false,
                "nursing_home": false,
                "pao2_mm_hg": 90,
                "pleural_effusion": false,
                "renal_disease": false,
                "respiratory_rate": 16,
                "sex": "male",
                "sodium_mmol_l": 140,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 45,
                "citation": {
                  "authors": "Fine MJ, Auble TE, Yealy DM, et al.",
                  "doi": "10.1056/NEJM199701233360402",
                  "id": "fine-1997",
                  "pmid": "8995086",
                  "source": "N Engl J Med. 1997;336(4):243-250",
                  "title": "A prediction rule to identify low-risk patients with community-acquired pneumonia"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 45,
                    "present": true,
                    "value": 45
                  },
                  {
                    "factor": "nursing_home",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "neoplastic",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "liver_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "chf",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cerebrovascular",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "renal_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "altered_mental_status",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_ge_30",
                    "points": 0,
                    "present": false,
                    "value": 16
                  },
                  {
                    "factor": "systolic_mm_hg_lt_90",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "factor": "temperature_extreme",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "heart_rate_ge_125",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "arterial_ph_lt_7_35",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "bun_ge_30",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "sodium_lt_130",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "glucose_ge_250",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "hematocrit_lt_30",
                    "points": 0,
                    "present": false,
                    "value": 42
                  },
                  {
                    "factor": "pao2_lt_60",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "pleural_effusion",
                    "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": "psi_port",
                "formula_expression": "PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130",
                "risk_class": 1,
                "score": 45
              },
              {
                "age_years": 45,
                "citation": {
                  "authors": "Fine MJ, Auble TE, Yealy DM, et al.",
                  "doi": "10.1056/NEJM199701233360402",
                  "id": "fine-1997",
                  "pmid": "8995086",
                  "source": "N Engl J Med. 1997;336(4):243-250",
                  "title": "A prediction rule to identify low-risk patients with community-acquired pneumonia"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 45,
                    "present": true,
                    "value": 45
                  },
                  {
                    "factor": "nursing_home",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "neoplastic",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "liver_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "chf",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cerebrovascular",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "renal_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "altered_mental_status",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_ge_30",
                    "points": 0,
                    "present": false,
                    "value": 16
                  },
                  {
                    "factor": "systolic_mm_hg_lt_90",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "factor": "temperature_extreme",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "heart_rate_ge_125",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "arterial_ph_lt_7_35",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "bun_ge_30",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "sodium_lt_130",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "glucose_ge_250",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "hematocrit_lt_30",
                    "points": 0,
                    "present": false,
                    "value": 42
                  },
                  {
                    "factor": "pao2_lt_60",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "pleural_effusion",
                    "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": "psi_port",
                "formula_expression": "PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130",
                "risk_class": 1,
                "score": 45
              }
            ],
            "path": "/api/calc/psi_port"
          },
          "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). Table 2: men add the age integer; women add age − 10. Step 1 Class I requires age ≤50 (Fine: 50 years of age or younger).",
                          "type": "integer"
                        },
                        "altered_mental_status": {
                          "description": "Altered mental status as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true.",
                          "type": "boolean"
                        },
                        "arterial_ph": {
                          "description": "Arterial pH (6.80-7.80). Table 2 +30 when <7.35; 7.35 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "bun_mg_dl": {
                          "description": "Blood urea nitrogen in mg/dL (1-200). Table 2 +20 when ≥30; 29.9 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "cerebrovascular": {
                          "description": "Cerebrovascular disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                          "type": "boolean"
                        },
                        "chf": {
                          "description": "Congestive heart failure as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                          "type": "boolean"
                        },
                        "glucose_mg_dl": {
                          "description": "Serum glucose in mg/dL (50-1000). Fine Table 2 is mg/dL only. Table 2 +10 when ≥250; 249 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "heart_rate_bpm": {
                          "description": "Heart rate in beats per minute (integer 30-220). Step 1 Class I requires <125. Table 2 +10 when ≥125; 124 does not score.",
                          "type": "integer"
                        },
                        "hematocrit_percent": {
                          "description": "Hematocrit percent (10-70). Table 2 +10 when <30; 30 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "liver_disease": {
                          "description": "Liver disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true.",
                          "type": "boolean"
                        },
                        "neoplastic": {
                          "description": "Neoplastic disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +30 if true.",
                          "type": "boolean"
                        },
                        "nursing_home": {
                          "description": "Nursing home resident as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item.",
                          "type": "boolean"
                        },
                        "pao2_mm_hg": {
                          "description": "Arterial PaO2 in mm Hg (20-700). Table 2 +10 when <60; 60 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "pleural_effusion": {
                          "description": "Pleural effusion as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item.",
                          "type": "boolean"
                        },
                        "renal_disease": {
                          "description": "Renal disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                          "type": "boolean"
                        },
                        "respiratory_rate": {
                          "description": "Respiratory rate in breaths/min (integer 4-80). Step 1 Class I requires <30. Table 2 +20 when ≥30; 29 does not score.",
                          "type": "integer"
                        },
                        "sex": {
                          "description": "Sex (female or male). Women subtract 10 from the age points.",
                          "type": "string"
                        },
                        "sodium_mmol_l": {
                          "description": "Serum sodium in mmol/L (110-160). Table 2 +20 when <130; 130 does not score. Not a Step 1 Class I item.",
                          "type": "number"
                        },
                        "systolic_mm_hg": {
                          "description": "Systolic blood pressure in mm Hg (50-250). Step 1 Class I requires ≥90. Table 2 +20 when <90; 90 does not score.",
                          "type": "number"
                        },
                        "temperature_c": {
                          "description": "Temperature in °C (30-45). Step 1 Class I requires ≥35 and <40. Table 2 +15 when <35 or ≥40; 35.0 and 39.9 do not score.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "nursing_home",
                        "neoplastic",
                        "liver_disease",
                        "chf",
                        "cerebrovascular",
                        "renal_disease",
                        "altered_mental_status",
                        "heart_rate_bpm",
                        "respiratory_rate",
                        "systolic_mm_hg",
                        "temperature_c",
                        "arterial_ph",
                        "bun_mg_dl",
                        "sodium_mmol_l",
                        "glucose_mg_dl",
                        "hematocrit_percent",
                        "pao2_mm_hg",
                        "pleural_effusion"
                      ],
                      "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": [
    "psi-port",
    "pneumonia",
    "cap",
    "severity",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:42:07.065Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:42:06.815Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 45,
                  "altered_mental_status": false,
                  "arterial_ph": 7.4,
                  "bun_mg_dl": 14,
                  "cerebrovascular": false,
                  "chf": false,
                  "glucose_mg_dl": 90,
                  "heart_rate_bpm": 80,
                  "hematocrit_percent": 42,
                  "liver_disease": false,
                  "neoplastic": false,
                  "nursing_home": false,
                  "pao2_mm_hg": 90,
                  "pleural_effusion": false,
                  "renal_disease": false,
                  "respiratory_rate": 16,
                  "sex": "male",
                  "sodium_mmol_l": 140,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                },
                {
                  "age": 45,
                  "altered_mental_status": false,
                  "arterial_ph": 7.4,
                  "bun_mg_dl": 14,
                  "cerebrovascular": false,
                  "chf": false,
                  "glucose_mg_dl": 90,
                  "heart_rate_bpm": 80,
                  "hematocrit_percent": 42,
                  "liver_disease": false,
                  "neoplastic": false,
                  "nursing_home": false,
                  "pao2_mm_hg": 90,
                  "pleural_effusion": false,
                  "renal_disease": false,
                  "respiratory_rate": 16,
                  "sex": "male",
                  "sodium_mmol_l": 140,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 45,
                  "citation": {
                    "authors": "Fine MJ, Auble TE, Yealy DM, et al.",
                    "doi": "10.1056/NEJM199701233360402",
                    "id": "fine-1997",
                    "pmid": "8995086",
                    "source": "N Engl J Med. 1997;336(4):243-250",
                    "title": "A prediction rule to identify low-risk patients with community-acquired pneumonia"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 45,
                      "present": true,
                      "value": 45
                    },
                    {
                      "factor": "nursing_home",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "neoplastic",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "liver_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "chf",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cerebrovascular",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "renal_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "altered_mental_status",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_ge_30",
                      "points": 0,
                      "present": false,
                      "value": 16
                    },
                    {
                      "factor": "systolic_mm_hg_lt_90",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "factor": "temperature_extreme",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "heart_rate_ge_125",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "arterial_ph_lt_7_35",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "bun_ge_30",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "sodium_lt_130",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "glucose_ge_250",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "hematocrit_lt_30",
                      "points": 0,
                      "present": false,
                      "value": 42
                    },
                    {
                      "factor": "pao2_lt_60",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "pleural_effusion",
                      "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": "psi_port",
                  "formula_expression": "PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130",
                  "risk_class": 1,
                  "score": 45
                },
                {
                  "age_years": 45,
                  "citation": {
                    "authors": "Fine MJ, Auble TE, Yealy DM, et al.",
                    "doi": "10.1056/NEJM199701233360402",
                    "id": "fine-1997",
                    "pmid": "8995086",
                    "source": "N Engl J Med. 1997;336(4):243-250",
                    "title": "A prediction rule to identify low-risk patients with community-acquired pneumonia"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 45,
                      "present": true,
                      "value": 45
                    },
                    {
                      "factor": "nursing_home",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "neoplastic",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "liver_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "chf",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cerebrovascular",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "renal_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "altered_mental_status",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_ge_30",
                      "points": 0,
                      "present": false,
                      "value": 16
                    },
                    {
                      "factor": "systolic_mm_hg_lt_90",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "factor": "temperature_extreme",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "heart_rate_ge_125",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "arterial_ph_lt_7_35",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "bun_ge_30",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "sodium_lt_130",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "glucose_ge_250",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "hematocrit_lt_30",
                      "points": 0,
                      "present": false,
                      "value": 42
                    },
                    {
                      "factor": "pao2_lt_60",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "pleural_effusion",
                      "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": "psi_port",
                  "formula_expression": "PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130",
                  "risk_class": 1,
                  "score": 45
                }
              ],
              "path": "/api/calc/psi_port"
            },
            "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). Table 2: men add the age integer; women add age − 10. Step 1 Class I requires age ≤50 (Fine: 50 years of age or younger).",
                            "type": "integer"
                          },
                          "altered_mental_status": {
                            "description": "Altered mental status as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true.",
                            "type": "boolean"
                          },
                          "arterial_ph": {
                            "description": "Arterial pH (6.80-7.80). Table 2 +30 when <7.35; 7.35 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "bun_mg_dl": {
                            "description": "Blood urea nitrogen in mg/dL (1-200). Table 2 +20 when ≥30; 29.9 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "cerebrovascular": {
                            "description": "Cerebrovascular disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                            "type": "boolean"
                          },
                          "chf": {
                            "description": "Congestive heart failure as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                            "type": "boolean"
                          },
                          "glucose_mg_dl": {
                            "description": "Serum glucose in mg/dL (50-1000). Fine Table 2 is mg/dL only. Table 2 +10 when ≥250; 249 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "heart_rate_bpm": {
                            "description": "Heart rate in beats per minute (integer 30-220). Step 1 Class I requires <125. Table 2 +10 when ≥125; 124 does not score.",
                            "type": "integer"
                          },
                          "hematocrit_percent": {
                            "description": "Hematocrit percent (10-70). Table 2 +10 when <30; 30 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "liver_disease": {
                            "description": "Liver disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true.",
                            "type": "boolean"
                          },
                          "neoplastic": {
                            "description": "Neoplastic disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +30 if true.",
                            "type": "boolean"
                          },
                          "nursing_home": {
                            "description": "Nursing home resident as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item.",
                            "type": "boolean"
                          },
                          "pao2_mm_hg": {
                            "description": "Arterial PaO2 in mm Hg (20-700). Table 2 +10 when <60; 60 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "pleural_effusion": {
                            "description": "Pleural effusion as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item.",
                            "type": "boolean"
                          },
                          "renal_disease": {
                            "description": "Renal disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true.",
                            "type": "boolean"
                          },
                          "respiratory_rate": {
                            "description": "Respiratory rate in breaths/min (integer 4-80). Step 1 Class I requires <30. Table 2 +20 when ≥30; 29 does not score.",
                            "type": "integer"
                          },
                          "sex": {
                            "description": "Sex (female or male). Women subtract 10 from the age points.",
                            "type": "string"
                          },
                          "sodium_mmol_l": {
                            "description": "Serum sodium in mmol/L (110-160). Table 2 +20 when <130; 130 does not score. Not a Step 1 Class I item.",
                            "type": "number"
                          },
                          "systolic_mm_hg": {
                            "description": "Systolic blood pressure in mm Hg (50-250). Step 1 Class I requires ≥90. Table 2 +20 when <90; 90 does not score.",
                            "type": "number"
                          },
                          "temperature_c": {
                            "description": "Temperature in °C (30-45). Step 1 Class I requires ≥35 and <40. Table 2 +15 when <35 or ≥40; 35.0 and 39.9 do not score.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "nursing_home",
                          "neoplastic",
                          "liver_disease",
                          "chf",
                          "cerebrovascular",
                          "renal_disease",
                          "altered_mental_status",
                          "heart_rate_bpm",
                          "respiratory_rate",
                          "systolic_mm_hg",
                          "temperature_c",
                          "arterial_ph",
                          "bun_mg_dl",
                          "sodium_mmol_l",
                          "glucose_mg_dl",
                          "hematocrit_percent",
                          "pao2_mm_hg",
                          "pleural_effusion"
                        ],
                        "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"
  }
}