Emergency · LIVE
Paediatric Early Warning Score (Monaghan)
PEWS
Compute the Monaghan 2005 Brighton Paediatric Early Warning Score from caller-assigned behaviour, colour/CRT, respiratory effort, oxygen, quarter-hourly nebulisers, and persistent post-surgery vomiting, plus heart rate and respiratory rate against APLS 2005 age-group rest ranges used as that paper's normal rate and mean.
Markdown: /docs/pews.md · Canonical: https://magentlab.com/docs/pews
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Compute the Monaghan 2005 Brighton Paediatric Early Warning Score from caller-assigned behaviour, colour/CRT, respiratory effort, oxygen, quarter-hourly nebulisers, and persistent post-surgery vomiting, plus heart rate and respiratory rate against APLS 2005 age-group rest ranges used as that paper's normal rate and mean.
When to use
When an agent needs the published Monaghan 2005 Brighton PEWS total (max 13) and the ≥3 review trigger, and must not substitute NEWS2, MEWS, Bedside PEWS, or later NHS England PEWS.
When not to use
- Not a medical device and not an ICU-admission, HDU, or monitoring order. magent does not measure vitals or examine the child.
- This is Monaghan 2005 Brighton PEWS only (behaviour, cardiovascular, and respiratory 0-3, plus +2 each for quarter-hourly nebulisers and persistent vomiting following surgery). It is not NEWS2, not MEWS, not Bedside PEWS (Parshuram), not PEWS-RL, and not later NHS England PEWS.
- Monaghan 2005 scores HR as tachycardia of 20 or 30 above the age-group normal rate or bradycardia, and RR as >10 / >20 / >30 above or 5 below the mean. magent applies those offsets to APLS 2005 rest ranges (the contemporaneous UK paediatric table). It does not use Akre 2010 or later NHS PEWS charts. magent does not map chronological age onto the age_group token.
- Behaviour, colour/CRT, respiratory effort, and oxygen are caller-assigned from the published table. magent does not observe the child or measure FiO2 or capillary refill.
- score_ge_3 follows the paper's score of 3 or more as a review trigger. magent does not add later action ladders (hourly observations, MET activation, or PICU transfer bands).
Formula
PEWS = behavior_points + cardiovascular_points + respiratory_points + nebuliser_points + vomiting_points; Monaghan 2005 Brighton table (each domain 0-3; extra +2 each for quarter-hourly nebulisers and persistent vomiting following surgery); max 13
Citation
- Authors
- Monaghan A
- Source
- Paediatr Nurs. 2005;17(1):32-35
Worked example
Infant, all components 0
Given:
age_group=infantbehavior=playingcardiovascular=pinkheart_rate_bpm=130oxygen=nonepersistent_vomiting_after_surgery=falsequarter_hourly_nebulisers=falserespiratory_effort=nonerespiratory_rate=35
- Behaviour playing → 0; colour/CRT pink → 0; HR 130 (infant normal 110-160) → 0; RR 35 (infant mean 35, range 30-40) → 0; effort none → 0; oxygen none → 0; extras false → 0
- Score = 0 (max 13); score_ge_3 = false
Lethargic (score 3 review trigger)
Given:
age_group=infantbehavior=lethargiccardiovascular=pinkheart_rate_bpm=130oxygen=nonepersistent_vomiting_after_surgery=falsequarter_hourly_nebulisers=falserespiratory_effort=nonerespiratory_rate=35
- Behaviour lethargic/confused or reduced response to pain → 3; remaining domains → 0
- Score = 3 (max 13); score_ge_3 = true
Also searched as
- paediatric early warning score
- pediatric early warning score
- Brighton PEWS
- Monaghan PEWS
- PEWS
- paediatric EWS
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/pews?age_group=infant&behavior=playing&cardiovascular=pink&heart_rate_bpm=130&respiratory_rate=35&respiratory_effort=none&oxygen=none&quarter_hourly_nebulisers=false&persistent_vomiting_after_surgery=false
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/pews?age_group=infant&behavior=playing&cardiovascular=pink&heart_rate_bpm=130&respiratory_rate=35&respiratory_effort=none&oxygen=none&quarter_hourly_nebulisers=false&persistent_vomiting_after_surgery=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
age_group |
string | required · infant, age_1_2, age_2_5, age_5_12, adolescent | Caller-assigned APLS 2005 rest-range age group used as Monaghan 2005 'normal rate' (HR) and 'mean'/'normal parameters' (RR). infant (<1 year; HR 110-160, RR 30-40, RR mean 35); age_1_2 (1-2 years; HR 100-150, RR 25-35, mean 30); age_2_5 (2-5 years; HR 95-140, RR 25-30, mean 27); age_5_12 (5-12 years; HR 80-120, RR 20-25, mean 22); adolescent (>12 years; HR 60-100, RR 15-20, mean 17). Monaghan 2005 does not print a numeric vital table. magent does not map chronological age. Not Akre 2010. Not later NHS England PEWS charts. |
behavior |
string | required · playing, sleeping, irritable, lethargic | Caller-assigned Monaghan 2005 behaviour. playing (playing/appropriate) → 0; sleeping → 1; irritable (irritable or parents concerned) → 2; lethargic (lethargic/confused or reduced response to pain) → 3. magent does not observe the child. |
cardiovascular |
string | required · pink, pale, grey, mottled | Caller-assigned Monaghan 2005 colour or capillary refill. pink (pink or CRT 1-2 s) → 0; pale (pale or CRT 3 s) → 1; grey (grey or CRT 4 s) → 2; mottled (grey and mottled or CRT ≥5 s) → 3. The cardiovascular domain is the higher of this band and the HR band. magent does not measure CRT. |
heart_rate_bpm |
integer | required | Heart rate in beats/min (integer 40-300). Monaghan 2005: tachycardia of 20 above the age-group normal rate (APLS 2005 upper rest limit) → 2; tachycardia of 30 above that rate or bradycardia (below the APLS lower rest limit) → 3. The cardiovascular domain is the higher of colour/CRT and HR. magent does not measure heart rate. |
respiratory_rate |
integer | required | Respiratory rate in breaths/min (integer 5-120). Monaghan 2005 vs the age-group RR mean (midpoint of the APLS 2005 rest range): >10 above mean → 1; >20 above mean → 2; >30 above mean or 5 below mean → 3. The respiratory domain is the higher of RR, effort, and oxygen. magent does not measure respiratory rate. |
respiratory_effort |
string | required · none, accessory, recessing, sternal_or_grunting | Caller-assigned Monaghan 2005 respiratory effort. none (no recession or tracheal tug) → 0; accessory (using accessory muscles) → 1; recessing (recessing, tracheal tug) → 2; sternal_or_grunting (sternal recession, tracheal tug, or grunting) → 3. The respiratory domain is the higher of RR, effort, and oxygen. magent does not examine the chest. |
oxygen |
string | required · none, fio2_30_or_4l, fio2_40_or_6l, fio2_50_or_8l | Caller-assigned Monaghan 2005 oxygen. none → 0; fio2_30_or_4l (30+% FiO2 or 4+ L/min) → 1; fio2_40_or_6l (40+% FiO2 or 6+ L/min) → 2; fio2_50_or_8l (50% FiO2 or 8+ L/min) → 3. The respiratory domain is the higher of RR, effort, and oxygen. magent does not measure FiO2. |
quarter_hourly_nebulisers |
boolean | required | Quarter-hourly (¼ hourly) nebulisers as in Monaghan 2005. true → +2; false → 0. Independent of the respiratory 0-3 domain. magent does not record medication times. |
persistent_vomiting_after_surgery |
boolean | required | Persistent vomiting following surgery as in Monaghan 2005. true → +2; false → 0. Independent of the behaviour 0-3 domain. magent does not observe vomiting. |
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": [
{
"age_group": "infant",
"behavior": "playing",
"cardiovascular": "pink",
"heart_rate_bpm": "130",
"oxygen": "none",
"persistent_vomiting_after_surgery": "false",
"quarter_hourly_nebulisers": "false",
"respiratory_effort": "none",
"respiratory_rate": "35"
},
{
"age_group": "infant",
"behavior": "playing",
"cardiovascular": "pink",
"heart_rate_bpm": "130",
"oxygen": "none",
"persistent_vomiting_after_surgery": "false",
"quarter_hourly_nebulisers": "false",
"respiratory_effort": "none",
"respiratory_rate": "35"
}
]
}
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/pews",
"items": [
{
"behavior": "playing",
"components": [
{
"value": "playing",
"factor": "behavior",
"points": 0,
"present": false
},
{
"value": "pink",
"factor": "cardiovascular",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "respiratory",
"points": 0,
"present": false
},
{
"factor": "quarter_hourly_nebulisers",
"points": 0,
"present": false
},
{
"factor": "persistent_vomiting_after_surgery",
"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.",
"citation": {
"authors": "Monaghan A",
"doi": "10.7748/paed2005.02.17.1.32.c964",
"id": "monaghan-2005",
"pmid": "15751446",
"source": "Paediatr Nurs. 2005;17(1):32-35",
"title": "Detecting and managing deterioration in children"
},
"formula": "pews",
"formula_expression": "PEWS = behavior_points + cardiovascular_points + respiratory_points + nebuliser_points + vomiting_points; Monaghan 2005 Brighton table (each domain 0-3; extra +2 each for quarter-hourly nebulisers and persistent vomiting following surgery); max 13",
"max_score": 13,
"score": 0,
"heart_rate_bpm": 130,
"respiratory_rate": 35,
"score_ge_3": false,
"age_group": "infant",
"cardiovascular": "pink",
"oxygen": "none",
"persistent_vomiting_after_surgery": false,
"quarter_hourly_nebulisers": false,
"respiratory_effort": "none"
},
{
"behavior": "playing",
"components": [
{
"value": "playing",
"factor": "behavior",
"points": 0,
"present": false
},
{
"value": "pink",
"factor": "cardiovascular",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "respiratory",
"points": 0,
"present": false
},
{
"factor": "quarter_hourly_nebulisers",
"points": 0,
"present": false
},
{
"factor": "persistent_vomiting_after_surgery",
"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.",
"citation": {
"authors": "Monaghan A",
"doi": "10.7748/paed2005.02.17.1.32.c964",
"id": "monaghan-2005",
"pmid": "15751446",
"source": "Paediatr Nurs. 2005;17(1):32-35",
"title": "Detecting and managing deterioration in children"
},
"formula": "pews",
"formula_expression": "PEWS = behavior_points + cardiovascular_points + respiratory_points + nebuliser_points + vomiting_points; Monaghan 2005 Brighton table (each domain 0-3; extra +2 each for quarter-hourly nebulisers and persistent vomiting following surgery); max 13",
"max_score": 13,
"score": 0,
"heart_rate_bpm": 130,
"respiratory_rate": 35,
"score_ge_3": false,
"age_group": "infant",
"cardiovascular": "pink",
"oxygen": "none",
"persistent_vomiting_after_surgery": false,
"quarter_hourly_nebulisers": false,
"respiratory_effort": "none"
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | pews |
formula_expression |
string | Exact expression used |
score |
integer | PEWS points 0-13 |
max_score |
integer | Always 13 |
score_ge_3 |
boolean | true when score is ≥3. Monaghan 2005 Brighton PEWS uses a score of 3 or more as the review trigger. Not a NEWS2 band and not an ICU-admission order. |
age_group |
string | Caller-assigned APLS 2005 age group used |
behavior |
string | Caller-assigned behaviour used |
cardiovascular |
string | Caller-assigned colour or CRT category used |
heart_rate_bpm |
integer | Heart rate used, bpm |
respiratory_rate |
integer | Respiratory rate used, breaths/min |
respiratory_effort |
string | Caller-assigned respiratory effort used |
oxygen |
string | Caller-assigned oxygen band used |
quarter_hourly_nebulisers |
boolean | Quarter-hourly nebulisers flag used |
persistent_vomiting_after_surgery |
boolean | Persistent post-surgery vomiting flag used |
components |
array | Per-domain points |
citation |
object | Monaghan 2005 Paediatr Nurs citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"behavior": "playing",
"components": [
{
"value": "playing",
"factor": "behavior",
"points": 0,
"present": false
},
{
"value": "pink",
"factor": "cardiovascular",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "respiratory",
"points": 0,
"present": false
},
{
"factor": "quarter_hourly_nebulisers",
"points": 0,
"present": false
},
{
"factor": "persistent_vomiting_after_surgery",
"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.",
"citation": {
"authors": "Monaghan A",
"doi": "10.7748/paed2005.02.17.1.32.c964",
"id": "monaghan-2005",
"pmid": "15751446",
"source": "Paediatr Nurs. 2005;17(1):32-35",
"title": "Detecting and managing deterioration in children"
},
"formula": "pews",
"formula_expression": "PEWS = behavior_points + cardiovascular_points + respiratory_points + nebuliser_points + vomiting_points; Monaghan 2005 Brighton table (each domain 0-3; extra +2 each for quarter-hourly nebulisers and persistent vomiting following surgery); max 13",
"max_score": 13,
"score": 0,
"heart_rate_bpm": 130,
"respiratory_rate": 35,
"score_ge_3": false,
"age_group": "infant",
"cardiovascular": "pink",
"oxygen": "none",
"persistent_vomiting_after_surgery": false,
"quarter_hourly_nebulisers": false,
"respiratory_effort": "none"
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_pews |
PEWS inputs must match Monaghan 2005 Brighton age-group vital-sign and behavior categories from that paper. 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
- 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.
- MEWS — Compute the Subbe 2001 modified Early Warning Score from systolic BP, heart rate, respiratory rate, temperature, and caller-assigned AVPU.
- REMS — Compute the Olsson 2004 Rapid Emergency Medicine Score from mean arterial pressure, heart rate, respiratory rate, SpO2, GCS, and age.
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.