# SIRS

SIRS

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

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

## What it computes

Compute the Bone 1992 ACCP/SCCM SIRS criteria from temperature, heart rate, respiratory rate, and WBC, with optional PaCO2 and band percent.

## When to use

When an agent needs the published 1992 SIRS definition and must not substitute Sepsis-3, qSOFA, or SOFA, or treat the result as a diagnosis of sepsis.

## When not to use

- Not a diagnosis of sepsis, severe sepsis, or septic shock. magent does not require a suspected-infection flag.
- This is Bone 1992 ACCP/SCCM SIRS only. It is not Sepsis-3, not qSOFA, and not SOFA.
- Thresholds are strict inequalities as published: temperature >38 or <36 °C, heart rate >90, respiratory rate >20 or PaCO2 <32 mm Hg, WBC >12000 or <4000/µL or bands >10%.
- PaCO2 and band percent are optional. Omitted PaCO2 uses respiratory rate only; omitted bands uses WBC only.

## Formula

```
SIRS present iff >=2 of 4: (temperature_c >38 or <36) + (heart_rate_bpm >90) + (respiratory_rate >20 or paco2_mm_hg <32) + (wbc_per_ul >12000 or <4000 or band_percent >10); each 1; max 4
```

## Citation

[Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis](https://doi.org/10.1378/chest.101.6.1644)
Bone RC, Balk RA, Cerra FB, et al.
Chest. 1992;101(6):1644-1655
DOI: [10.1378/chest.101.6.1644](https://doi.org/10.1378/chest.101.6.1644)

## Worked example

### No criteria met

Given: `heart_rate_bpm=80, respiratory_rate=16, temperature_c=37.0, wbc_ul=8000`

1. Temperature 37.0 is not >38 or <36; HR 80 is not >90; RR 16 is not >20; WBC 8000 is not >12000 or <4000
2. sirs_criteria_met = 0; sirs_present = false (need ≥2 of 4)


### Two criteria met

Given: `heart_rate_bpm=91, respiratory_rate=21, temperature_c=37.0, wbc_ul=8000`

1. HR 91 > 90 → 1; RR 21 > 20 → 1; temperature and WBC do not meet
2. sirs_criteria_met = 2; sirs_present = true


## Also searched as

- SIRS criteria
- systemic inflammatory response syndrome
- Bone 1992 SIRS
- ACCP SCCM SIRS
- SIRS score
- SIRS definition

## Parameters

- `temperature_c` (number, required): Temperature in °C (30.0-45.0). >38 or <36 scores 1 (38.0 and 36.0 do not).
- `heart_rate_bpm` (integer, required): Heart rate in beats/min (integer 30-220). >90 scores 1 (90 does not).
- `respiratory_rate` (integer, required): Respiratory rate in breaths/min (integer 4-80). >20 scores 1 for the respiratory criterion (20 does not). Optional paco2_mm_hg <32 also meets this criterion.
- `paco2_mm_hg` (number, optional): Arterial PaCO2 in mm Hg (8-80) when provided. Omitted uses respiratory rate only. <32 scores the respiratory criterion (32 does not).
- `wbc_k_ul` (number, optional): WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500. >12000 or <4000 per µL scores 1.
- `wbc_ul` (number, optional): WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000. >12000 or <4000 scores 1 (12000 and 4000 do not).
- `band_percent` (number, optional): Immature bands as a percent of WBC (0-100) when provided. Omitted does not use bands. >10 scores the WBC criterion (10 does not).

## Bulk (POST)

POST the same path with a JSON items array. Price is n times the GET unit. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/sirs`
Max items: 25
Price: unit_amount * n (unit 5000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- 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": [
    {
      "heart_rate_bpm": "80",
      "respiratory_rate": "16",
      "temperature_c": "37.0",
      "wbc_ul": "8000"
    },
    {
      "heart_rate_bpm": "80",
      "respiratory_rate": "16",
      "temperature_c": "37.0",
      "wbc_ul": "8000"
    }
  ]
}
```

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

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/sirs",
  "items": [
    {
      "components": [
        {
          "value": 37.0,
          "factor": "temperature",
          "points": 0,
          "present": false
        },
        {
          "value": 80,
          "factor": "heart_rate_gt_90",
          "points": 0,
          "present": false
        },
        {
          "value": 16,
          "factor": "respiratory",
          "points": 0,
          "present": false
        },
        {
          "value": 8.0e3,
          "factor": "wbc",
          "points": 0,
          "present": false
        }
      ],
      "wbc_per_ul": 8.0e3,
      "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": "Bone RC, Balk RA, Cerra FB, et al.",
        "doi": "10.1378/chest.101.6.1644",
        "id": "bone-1992",
        "source": "Chest. 1992;101(6):1644-1655",
        "title": "Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis"
      },
      "formula": "sirs",
      "formula_expression": "SIRS present iff >=2 of 4: (temperature_c >38 or <36) + (heart_rate_bpm >90) + (respiratory_rate >20 or paco2_mm_hg <32) + (wbc_per_ul >12000 or <4000 or band_percent >10); each 1; max 4",
      "max_score": 4,
      "temperature_c": 37.0,
      "heart_rate_bpm": 80,
      "respiratory_rate": 16,
      "sirs_criteria_met": 0,
      "sirs_present": false
    },
    {
      "components": [
        {
          "value": 37.0,
          "factor": "temperature",
          "points": 0,
          "present": false
        },
        {
          "value": 80,
          "factor": "heart_rate_gt_90",
          "points": 0,
          "present": false
        },
        {
          "value": 16,
          "factor": "respiratory",
          "points": 0,
          "present": false
        },
        {
          "value": 8.0e3,
          "factor": "wbc",
          "points": 0,
          "present": false
        }
      ],
      "wbc_per_ul": 8.0e3,
      "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": "Bone RC, Balk RA, Cerra FB, et al.",
        "doi": "10.1378/chest.101.6.1644",
        "id": "bone-1992",
        "source": "Chest. 1992;101(6):1644-1655",
        "title": "Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis"
      },
      "formula": "sirs",
      "formula_expression": "SIRS present iff >=2 of 4: (temperature_c >38 or <36) + (heart_rate_bpm >90) + (respiratory_rate >20 or paco2_mm_hg <32) + (wbc_per_ul >12000 or <4000 or band_percent >10); each 1; max 4",
      "max_score": 4,
      "temperature_c": 37.0,
      "heart_rate_bpm": 80,
      "respiratory_rate": 16,
      "sirs_criteria_met": 0,
      "sirs_present": false
    }
  ]
}
```

## Response fields

- `formula` (string): sirs
- `formula_expression` (string): Exact expression used
- `sirs_present` (boolean): true when sirs_criteria_met is ≥2. Not a diagnosis of sepsis.
- `sirs_criteria_met` (integer): Count of Bone 1992 criteria met (0-4)
- `max_score` (integer): Always 4
- `temperature_c` (number): Temperature in °C used
- `heart_rate_bpm` (integer): Heart rate used, bpm
- `respiratory_rate` (integer): Respiratory rate used, breaths/min
- `wbc_per_ul` (number): Normalized WBC in cells/µL used for scoring
- `components` (array): Per-criterion points
- `citation` (object): Bone 1992 Chest citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 37.0,
      "factor": "temperature",
      "points": 0,
      "present": false
    },
    {
      "value": 80,
      "factor": "heart_rate_gt_90",
      "points": 0,
      "present": false
    },
    {
      "value": 16,
      "factor": "respiratory",
      "points": 0,
      "present": false
    },
    {
      "value": 8.0e3,
      "factor": "wbc",
      "points": 0,
      "present": false
    }
  ],
  "wbc_per_ul": 8.0e3,
  "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": "Bone RC, Balk RA, Cerra FB, et al.",
    "doi": "10.1378/chest.101.6.1644",
    "id": "bone-1992",
    "source": "Chest. 1992;101(6):1644-1655",
    "title": "Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis"
  },
  "formula": "sirs",
  "formula_expression": "SIRS present iff >=2 of 4: (temperature_c >38 or <36) + (heart_rate_bpm >90) + (respiratory_rate >20 or paco2_mm_hg <32) + (wbc_per_ul >12000 or <4000 or band_percent >10); each 1; max 4",
  "max_score": 4,
  "temperature_c": 37.0,
  "heart_rate_bpm": 80,
  "respiratory_rate": 16,
  "sirs_criteria_met": 0,
  "sirs_present": false
}
```

## Errors

- HTTP 400 `invalid_temperature`: temperature_c must be a number from 30.0 to 45.0. Returned before settlement; you are not charged.
- HTTP 400 `invalid_heart_rate`: heart_rate_bpm must be an integer from 30 to 220 Returned before settlement; you are not charged.
- HTTP 400 `invalid_respiratory_rate`: respiratory_rate must be an integer from 4 to 80. Returned before settlement; you are not charged.
- HTTP 400 `invalid_wbc`: wbc_k_ul (0.01-500) or wbc_ul (10-500000) is required Returned before settlement; you are not charged.
- HTTP 400 `invalid_paco2`: paco2_mm_hg must be a number from 8 to 80. Returned before settlement; you are not charged.
- HTTP 400 `invalid_band_percent`: band_percent must be a number from 0 to 100 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.

## Payment

Required query parameters must be present and valid. 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 EIP-3009 (scheme exact, assetTransferMethod eip3009) with validBefore = now + accepts[0].maxTimeoutSeconds (600 seconds). That window starts when you sign and must cover wallet confirmation plus CDP verify and settle. Magent retries transient facilitator 429/5xx before answering. Do not send upto or batch-settlement payloads; magent does not offer those schemes.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON echoing accepted, payload, and extensions when present).
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. Settlement happens before the tool runs. HTTP 503 settlement_uncertain or settle_failed: retry the same PAYMENT-SIGNATURE. Mint a new 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.

- 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.
- not offered `batch-settlement`: Not offered. Payment-channel vouchers claimed later in batches. Not the same as POST {items} bulk (that is still exact).

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for n times the GET unit. 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

- Invalid query parameters return HTTP 400 before settlement. You are not charged.
- Settlement finishes before the tool executes (paymentFlow upfront). 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.
