# Phoenix Sepsis Score

Phoenix Sepsis Score

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/phoenix_sepsis`
HTML: https://magentlab.com/docs/phoenix-sepsis
Markdown: https://magentlab.com/docs/phoenix-sepsis.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Sum four caller-assigned Schlapbach 2024 Phoenix Sepsis Score organ integers and return sepsis (suspected infection and score ≥2) and septic shock (sepsis with cardiovascular ≥1).

## When to use

When an agent has already assigned Schlapbach 2024 Phoenix table organ integers (not raw labs, P/F, MAP-for-age, or GCS) and needs the published four-organ total with sepsis and septic-shock flags, not adult SOFA and not 2005 Goldstein SIRS sepsis.

## When not to use

- Not a medical device. Not a diagnosis of sepsis or septic shock and not an antimicrobial or ICU-admission order.
- Schlapbach 2024 Phoenix Sepsis Score (four organs) only. Not Phoenix-8 (endocrine, immunologic, renal, hepatic). Not adult SOFA. Not 2005 Goldstein IPSCC SIRS sepsis. The former term severe sepsis is not used.
- Criteria apply to children <18 years with suspected infection. They do not apply to birth hospitalizations, children with post-conceptional age <37 weeks, or age ≥18 years. magent does not take age.
- magent does not interpret raw labs, P/F, S/F, MAP-for-age, vasoactive counts, or GCS; the caller assigns the four published organ integers. Unmeasured variables contribute 0 in the paper; this tool still requires all four integers.

## Formula

```
Phoenix Sepsis Score = respiratory (0-3) + cardiovascular (0-6) + coagulation (0-2) + neurologic (0-2); caller-assigned Schlapbach 2024 table integers; max 13; sepsis iff suspected_infection and score >= 2; septic_shock iff sepsis and cardiovascular >= 1
```

## Citation

[International Consensus Criteria for Pediatric Sepsis and Septic Shock](https://doi.org/10.1001/jama.2024.0179)
Schlapbach LJ, Watson RS, Sorce LR, et al.
JAMA. 2024;331(8):665-674
DOI: [10.1001/jama.2024.0179](https://doi.org/10.1001/jama.2024.0179)

## Worked example

### All organs 0 with suspected infection

Given: `cardiovascular=0, coagulation=0, neurologic=0, respiratory=0, suspected_infection=true`

1. respiratory 0 + cardiovascular 0 + coagulation 0 + neurologic 0
2. Score = 0 (max 13); suspected_infection true; sepsis false (score < 2); category not_sepsis


### Respiratory 2, other organs 0, suspected infection

Given: `cardiovascular=0, coagulation=0, neurologic=0, respiratory=2, suspected_infection=true`

1. Score = 2; cardiovascular 0; suspected_infection true
2. sepsis true (infection and score ≥2); septic_shock false; category sepsis


### Cardiovascular 2, other organs 0, suspected infection

Given: `cardiovascular=2, coagulation=0, neurologic=0, respiratory=0, suspected_infection=true`

1. Score = 2; cardiovascular 2; suspected_infection true
2. sepsis true; septic_shock true (sepsis and cardiovascular ≥1); category septic_shock


## Also searched as

- Phoenix Sepsis Score
- pediatric sepsis criteria
- SCCM Phoenix sepsis
- Phoenix septic shock
- Schlapbach 2024 Phoenix
- Phoenix-4 organ score
- pediatric Sepsis-3 Phoenix

## Parameters

- `respiratory` (integer, required): Caller-assigned Schlapbach 2024 Phoenix table respiratory integer 0-3. 0: PaO2/FiO2 ≥400 or SpO2/FiO2 ≥292. 1: PaO2/FiO2 <400 or SpO2/FiO2 <292 on any respiratory support. 2: PaO2/FiO2 100-200 and IMV, or SpO2/FiO2 148-220 and IMV. 3: PaO2/FiO2 <100 and IMV, or SpO2/FiO2 <148 and IMV. magent does not take PaO2, SpO2, FiO2, or ventilation.
- `cardiovascular` (integer, required): Caller-assigned Schlapbach 2024 Phoenix table cardiovascular integer 0-6: sum of vasoactives 0-2 (none / 1 / ≥2 of epinephrine, norepinephrine, dopamine, dobutamine, milrinone, vasopressin) + lactate 0-2 (<5 / 5-10.9 / ≥11 mmol/L) + age-adjusted MAP 0-2. magent does not take vasoactive counts, lactate, MAP, or age.
- `coagulation` (integer, required): Caller-assigned Schlapbach 2024 Phoenix table coagulation integer 0-2. 1 each for platelets <100 K/μL, INR >1.3, D-dimer >2 mg/L FEU, fibrinogen <100 mg/dL, capped at 2. magent does not take those labs.
- `neurologic` (integer, required): Caller-assigned Schlapbach 2024 Phoenix table neurologic integer 0-2. GCS ≤10 scores 1; bilaterally fixed pupils scores 2. magent does not take GCS or pupil exam.
- `suspected_infection` (boolean, required): Suspected or confirmed infection as assigned by the caller (Schlapbach 2024). Sepsis requires this true and Phoenix Sepsis Score ≥2. true or false.

## Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/phoenix_sepsis`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request:

```json
{
  "items": [
    {
      "cardiovascular": "0",
      "coagulation": "0",
      "neurologic": "0",
      "respiratory": "0",
      "suspected_infection": "true"
    },
    {
      "cardiovascular": "0",
      "coagulation": "0",
      "neurologic": "0",
      "respiratory": "0",
      "suspected_infection": "true"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/phoenix-sepsis

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/phoenix_sepsis",
  "items": [
    {
      "components": [
        {
          "value": 0,
          "factor": "respiratory",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "cardiovascular",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "coagulation",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "neurologic",
          "points": 0,
          "present": false
        }
      ],
      "category": "not_sepsis",
      "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.",
      "citation": {
        "authors": "Schlapbach LJ, Watson RS, Sorce LR, et al.",
        "doi": "10.1001/jama.2024.0179",
        "id": "schlapbach-2024",
        "pmid": "38245889",
        "source": "JAMA. 2024;331(8):665-674",
        "title": "International Consensus Criteria for Pediatric Sepsis and Septic Shock"
      },
      "formula": "phoenix_sepsis",
      "formula_expression": "Phoenix Sepsis Score = respiratory (0-3) + cardiovascular (0-6) + coagulation (0-2) + neurologic (0-2); caller-assigned Schlapbach 2024 table integers; max 13; sepsis iff suspected_infection and score >= 2; septic_shock iff sepsis and cardiovascular >= 1",
      "respiratory": 0,
      "max_score": 13,
      "score": 0,
      "cardiovascular": 0,
      "coagulation": 0,
      "neurologic": 0,
      "phoenix_sepsis_score": 0,
      "sepsis": false,
      "septic_shock": false,
      "suspected_infection": true
    },
    {
      "components": [
        {
          "value": 0,
          "factor": "respiratory",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "cardiovascular",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "coagulation",
          "points": 0,
          "present": false
        },
        {
          "value": 0,
          "factor": "neurologic",
          "points": 0,
          "present": false
        }
      ],
      "category": "not_sepsis",
      "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.",
      "citation": {
        "authors": "Schlapbach LJ, Watson RS, Sorce LR, et al.",
        "doi": "10.1001/jama.2024.0179",
        "id": "schlapbach-2024",
        "pmid": "38245889",
        "source": "JAMA. 2024;331(8):665-674",
        "title": "International Consensus Criteria for Pediatric Sepsis and Septic Shock"
      },
      "formula": "phoenix_sepsis",
      "formula_expression": "Phoenix Sepsis Score = respiratory (0-3) + cardiovascular (0-6) + coagulation (0-2) + neurologic (0-2); caller-assigned Schlapbach 2024 table integers; max 13; sepsis iff suspected_infection and score >= 2; septic_shock iff sepsis and cardiovascular >= 1",
      "respiratory": 0,
      "max_score": 13,
      "score": 0,
      "cardiovascular": 0,
      "coagulation": 0,
      "neurologic": 0,
      "phoenix_sepsis_score": 0,
      "sepsis": false,
      "septic_shock": false,
      "suspected_infection": true
    }
  ]
}
```

## Response fields

- `formula` (string): phoenix_sepsis
- `formula_expression` (string): Exact expression used
- `score` (integer): Phoenix Sepsis Score 0-13
- `max_score` (integer): 13
- `phoenix_sepsis_score` (integer): Same integer as score (Schlapbach 2024 four-organ total, max 13)
- `sepsis` (boolean): true iff suspected_infection and score ≥2 (Schlapbach 2024 Phoenix Pediatric Sepsis Criteria). Not a diagnosis.
- `septic_shock` (boolean): true iff sepsis and cardiovascular ≥1 (Schlapbach 2024). Not a diagnosis.
- `category` (string): not_sepsis, sepsis (sepsis true and cardiovascular 0), or septic_shock
- `suspected_infection` (boolean): Caller-assigned suspected or confirmed infection
- `respiratory` (integer): Caller-assigned respiratory 0-3
- `cardiovascular` (integer): Caller-assigned cardiovascular 0-6
- `coagulation` (integer): Caller-assigned coagulation 0-2
- `neurologic` (integer): Caller-assigned neurologic 0-2
- `components` (array): Per-organ Phoenix table points
- `citation` (object): Schlapbach et al. JAMA 2024 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 0,
      "factor": "respiratory",
      "points": 0,
      "present": false
    },
    {
      "value": 0,
      "factor": "cardiovascular",
      "points": 0,
      "present": false
    },
    {
      "value": 0,
      "factor": "coagulation",
      "points": 0,
      "present": false
    },
    {
      "value": 0,
      "factor": "neurologic",
      "points": 0,
      "present": false
    }
  ],
  "category": "not_sepsis",
  "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.",
  "citation": {
    "authors": "Schlapbach LJ, Watson RS, Sorce LR, et al.",
    "doi": "10.1001/jama.2024.0179",
    "id": "schlapbach-2024",
    "pmid": "38245889",
    "source": "JAMA. 2024;331(8):665-674",
    "title": "International Consensus Criteria for Pediatric Sepsis and Septic Shock"
  },
  "formula": "phoenix_sepsis",
  "formula_expression": "Phoenix Sepsis Score = respiratory (0-3) + cardiovascular (0-6) + coagulation (0-2) + neurologic (0-2); caller-assigned Schlapbach 2024 table integers; max 13; sepsis iff suspected_infection and score >= 2; septic_shock iff sepsis and cardiovascular >= 1",
  "respiratory": 0,
  "max_score": 13,
  "score": 0,
  "cardiovascular": 0,
  "coagulation": 0,
  "neurologic": 0,
  "phoenix_sepsis_score": 0,
  "sepsis": false,
  "septic_shock": false,
  "suspected_infection": true
}
```

## Errors

- HTTP 400 `invalid_phoenix_organ`: respiratory must be 0-3, cardiovascular 0-6, coagulation 0-2, and neurologic 0-2 (Schlapbach 2024 Phoenix table). Returned before settlement; you are not charged.
- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [SOFA](https://magentlab.com/docs/sofa) — Compute the Vincent 1996 SOFA score from PaO2/FiO2, platelets, bilirubin, MAP and adrenergic agents, GCS, and creatinine or urine output.
- [qSOFA](https://magentlab.com/docs/qsofa) — Compute the Sepsis-3 qSOFA score from respiratory rate, caller-assigned altered mentation, and systolic blood pressure.
- [SIRS](https://magentlab.com/docs/sirs) — Compute the Bone 1992 ACCP/SCCM SIRS criteria from temperature, heart rate, respiratory rate, and WBC, with optional PaCO2 and band percent.
- [NEWS2](https://magentlab.com/docs/news2) — Compute the RCP 2017 National Early Warning Score 2 from respiratory rate, SpO2 (Scale 1 or Scale 2), supplemental oxygen, temperature, systolic BP, heart rate, and caller-assigned ACVPU.

## Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/docs/mcp

## Guarantees

- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.
