# Pediatric asthma score (Qureshi 1998)

Pediatric asthma score

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/pediatric_asthma_score`
HTML: https://magentlab.com/docs/pediatric-asthma-score
Markdown: https://magentlab.com/docs/pediatric-asthma-score.md

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

## What it computes

Sum five caller-assigned Qureshi 1998 Table 1 pediatric asthma-score domains (each integer 1-3) and return the published 5-15 total and mild/moderate/severe asthma_band.

## When to use

When an agent has already assigned Qureshi 1998 Table 1 1-3 points for respiratory rate, oxygen saturation, auscultation, retractions, and dyspnea and needs the 5-15 total and Table 1 asthma_band. magent does not count breaths, measure SpO2, auscultate, or diagnose asthma.

## When not to use

- Not a medical device and not an asthma diagnosis or a treatment or admission order.
- Each of the five domains is a caller-assigned integer 1-3 from Qureshi 1998 Table 1. Respiratory rate is that table's age-banded 1/2/3 column, not raw breaths/min and not age. magent does not count breaths, measure SpO2, auscultate, or grade work of breathing.
- Qureshi 1998 Table 1 asthma-score bands: mild 5-7, moderate 8-11, severe 12-15. Peak expiratory flow percent predicted in that table is a parallel severity path; magent does not take PEF.
- Not PRAM. Not Liu 2004. Not Westley croup. Not Pediatric Appendicitis Score.

## Formula

```
Qureshi 1998 = respiratory_rate + oxygen_saturation + auscultation + retractions + dyspnea; each caller-assigned Table 1 integer 1-3; max 15; asthma_band mild 5-7, moderate 8-11, severe 12-15
```

## Citation

[Effect of nebulized ipratropium on the hospitalization rates of children with asthma](https://doi.org/10.1056/NEJM199810083391503)
Qureshi F, Pestian J, Davis P, Zaritsky A
N Engl J Med. 1998;339(15):1030-1035
DOI: [10.1056/NEJM199810083391503](https://doi.org/10.1056/NEJM199810083391503)

## Worked example

### All domains 1

Given: `auscultation=1, dyspnea=1, oxygen_saturation=1, respiratory_rate=1, retractions=1`

1. respiratory_rate 1 + oxygen_saturation 1 + auscultation 1 + retractions 1 + dyspnea 1
2. Score = 5 (max 15); asthma_band mild


### All domains 3

Given: `auscultation=3, dyspnea=3, oxygen_saturation=3, respiratory_rate=3, retractions=3`

1. respiratory_rate 3 + oxygen_saturation 3 + auscultation 3 + retractions 3 + dyspnea 3
2. Score = 15 (max 15); asthma_band severe


## Also searched as

- Pediatric Asthma Score
- Qureshi asthma score
- Qureshi 1998 asthma score
- pediatric asthma score 5-15
- Qureshi Table 1 asthma
- childhood acute asthma score
- pediatric exacerbation score
- Qureshi ipratropium asthma score

## Parameters

- `respiratory_rate` (integer, required): Caller-assigned Qureshi 1998 Table 1 respiratory-rate points (integer 1-3), not raw breaths/min and not age. Table 1 age bands for 1/2/3: 2-3 yr ≤34 / 35-39 / ≥40; 4-5 yr ≤30 / 31-35 / ≥36; 6-12 yr ≤26 / 27-30 / ≥31; >12 yr ≤23 / 24-27 / ≥28. That paper enrolled ages 2-18 and has no <2 yr column. magent does not count breaths.
- `oxygen_saturation` (integer, required): Caller-assigned Qureshi 1998 Table 1 oxygen-saturation points (integer 1-3): 1 if >95% on room air; 2 if 90-95% on room air or >90% with supplemental oxygen; 3 if <90% on room air or supplemental oxygen as in Table 1. magent does not measure SpO2.
- `auscultation` (integer, required): Caller-assigned Qureshi 1998 Table 1 auscultation (integer 1-3): 1 normal breathing or end-expiratory wheeze; 2 expiratory wheezing; 3 inspiratory and expiratory wheezing, diminished breath sounds, or both. magent does not auscultate.
- `retractions` (integer, required): Caller-assigned Qureshi 1998 Table 1 retractions (integer 1-3): 1 none or intercostal; 2 intercostal and substernal; 3 intercostal, substernal, and supraclavicular. magent does not examine the patient.
- `dyspnea` (integer, required): Caller-assigned Qureshi 1998 Table 1 dyspnea (integer 1-3): 1 speaks in sentences or coos and babbles; 2 speaks in partial sentences or short cries; 3 speaks in single words, short phrases, or grunts. magent does not examine the patient.

## 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/pediatric_asthma_score`
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": [
    {
      "auscultation": "1",
      "dyspnea": "1",
      "oxygen_saturation": "1",
      "respiratory_rate": "1",
      "retractions": "1"
    },
    {
      "auscultation": "1",
      "dyspnea": "1",
      "oxygen_saturation": "1",
      "respiratory_rate": "1",
      "retractions": "1"
    }
  ]
}
```

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

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/pediatric_asthma_score",
  "items": [
    {
      "components": [
        {
          "value": 1,
          "factor": "respiratory_rate",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "oxygen_saturation",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "auscultation",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "retractions",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "dyspnea",
          "points": 1,
          "present": true
        }
      ],
      "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": "Qureshi F, Pestian J, Davis P, Zaritsky A",
        "doi": "10.1056/NEJM199810083391503",
        "id": "qureshi-1998",
        "source": "N Engl J Med. 1998;339(15):1030-1035",
        "title": "Effect of nebulized ipratropium on the hospitalization rates of children with asthma"
      },
      "formula": "pediatric_asthma_score",
      "formula_expression": "Qureshi 1998 = respiratory_rate + oxygen_saturation + auscultation + retractions + dyspnea; each caller-assigned Table 1 integer 1-3; max 15; asthma_band mild 5-7, moderate 8-11, severe 12-15",
      "max_score": 15,
      "score": 5,
      "respiratory_rate": 1,
      "auscultation": 1,
      "dyspnea": 1,
      "retractions": 1,
      "asthma_band": "mild",
      "oxygen_saturation": 1
    },
    {
      "components": [
        {
          "value": 1,
          "factor": "respiratory_rate",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "oxygen_saturation",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "auscultation",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "retractions",
          "points": 1,
          "present": true
        },
        {
          "value": 1,
          "factor": "dyspnea",
          "points": 1,
          "present": true
        }
      ],
      "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": "Qureshi F, Pestian J, Davis P, Zaritsky A",
        "doi": "10.1056/NEJM199810083391503",
        "id": "qureshi-1998",
        "source": "N Engl J Med. 1998;339(15):1030-1035",
        "title": "Effect of nebulized ipratropium on the hospitalization rates of children with asthma"
      },
      "formula": "pediatric_asthma_score",
      "formula_expression": "Qureshi 1998 = respiratory_rate + oxygen_saturation + auscultation + retractions + dyspnea; each caller-assigned Table 1 integer 1-3; max 15; asthma_band mild 5-7, moderate 8-11, severe 12-15",
      "max_score": 15,
      "score": 5,
      "respiratory_rate": 1,
      "auscultation": 1,
      "dyspnea": 1,
      "retractions": 1,
      "asthma_band": "mild",
      "oxygen_saturation": 1
    }
  ]
}
```

## Response fields

- `formula` (string): pediatric_asthma_score
- `formula_expression` (string): Exact expression used
- `score` (integer): Qureshi 1998 points 5-15
- `max_score` (integer): Always 15
- `asthma_band` (string): Qureshi 1998 Table 1 asthma-score band: mild (5-7), moderate (8-11), or severe (12-15). Not a treatment or admission order.
- `respiratory_rate` (integer): Caller-assigned Table 1 respiratory-rate points 1-3
- `oxygen_saturation` (integer): Caller-assigned Table 1 oxygen-saturation points 1-3
- `auscultation` (integer): Caller-assigned auscultation 1-3
- `retractions` (integer): Caller-assigned retractions 1-3
- `dyspnea` (integer): Caller-assigned dyspnea 1-3
- `components` (array): Per-domain caller-assigned points
- `citation` (object): Qureshi et al. N Engl J Med 1998 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 1,
      "factor": "respiratory_rate",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "oxygen_saturation",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "auscultation",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "retractions",
      "points": 1,
      "present": true
    },
    {
      "value": 1,
      "factor": "dyspnea",
      "points": 1,
      "present": true
    }
  ],
  "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": "Qureshi F, Pestian J, Davis P, Zaritsky A",
    "doi": "10.1056/NEJM199810083391503",
    "id": "qureshi-1998",
    "source": "N Engl J Med. 1998;339(15):1030-1035",
    "title": "Effect of nebulized ipratropium on the hospitalization rates of children with asthma"
  },
  "formula": "pediatric_asthma_score",
  "formula_expression": "Qureshi 1998 = respiratory_rate + oxygen_saturation + auscultation + retractions + dyspnea; each caller-assigned Table 1 integer 1-3; max 15; asthma_band mild 5-7, moderate 8-11, severe 12-15",
  "max_score": 15,
  "score": 5,
  "respiratory_rate": 1,
  "auscultation": 1,
  "dyspnea": 1,
  "retractions": 1,
  "asthma_band": "mild",
  "oxygen_saturation": 1
}
```

## Errors

- HTTP 400 `invalid_pediatric_asthma_component`: each Qureshi 1998 pediatric asthma-score domain must be an integer from 1 to 3. 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

- [PRAM](https://magentlab.com/docs/pram) — Sum five caller-assigned Chalut 2000 PRAM item points and return the published 0-12 total.
- [Liu respiratory](https://magentlab.com/docs/liu-respiratory) — Sum four caller-assigned Liu 2004 respiratory clinical-score domains (respiratory rate, retractions, dyspnea, auscultation; each 0-3) and return the published 0-12 total.

## 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.
