Respiratory · LIVE
Pediatric asthma score (Qureshi 1998)
Pediatric asthma score
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.
Markdown: /docs/pediatric-asthma-score.md · Canonical: https://magentlab.com/docs/pediatric-asthma-score
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
- Authors
- Qureshi F, Pestian J, Davis P, Zaritsky A
- Source
- N Engl J Med. 1998;339(15):1030-1035
Worked example
All domains 1
Given:
auscultation=1dyspnea=1oxygen_saturation=1respiratory_rate=1retractions=1
- respiratory_rate 1 + oxygen_saturation 1 + auscultation 1 + retractions 1 + dyspnea 1
- Score = 5 (max 15); asthma_band mild
All domains 3
Given:
auscultation=3dyspnea=3oxygen_saturation=3respiratory_rate=3retractions=3
- respiratory_rate 3 + oxygen_saturation 3 + auscultation 3 + retractions 3 + dyspnea 3
- 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
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
Full URL: https://api.magentlab.com/api/calc/pediatric_asthma_score?respiratory_rate=1&oxygen_saturation=1&auscultation=1&retractions=1&dyspnea=1
Call
Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params
return HTTP 400 before any quote or charge.
curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/pediatric_asthma_score?respiratory_rate=1&oxygen_saturation=1&auscultation=1&retractions=1&dyspnea=1"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
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.
- 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 (fixture)
{
"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"
}
]
}
Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.
Example 200 (fixture)
{
"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
| Field | Type | Description |
|---|---|---|
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
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"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
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 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. |
| 400 | invalid_items |
POST body must be a JSON object with only an items array Returned before settlement; you are not charged. |
| 400 | invalid_item_count |
items must be an array of 1 to 25 objects Returned before settlement; you are not charged. |
| 400 | invalid_item |
each items entry must be a JSON object Returned before settlement; you are not charged. |
Related tools
- PRAM — Sum five caller-assigned Chalut 2000 PRAM item points and return the published 0-12 total.
- 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. Unpaid valid requests return HTTP 402 with a base64
PAYMENT-REQUIRED
header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake
and shared payment errors: Payments.
Stdio MCP: /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.