{
  "x402Version": 2,
  "id": 38961,
  "slug": "38961",
  "resource": "https://api.magentlab.com/api/calc/pews",
  "description": "Monaghan 2005 Brighton PEWS: behaviour, cardiovascular, and respiratory 0-3 each, plus +2 each for quarter-hourly nebulisers and persistent post-surgery vomiting (max 13). HR/RR use APLS 2005 age-group rest ranges as the paper's normal rate and mean. Returns score_ge_3. Not NEWS2; not MEWS; not Bedside PEWS.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "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
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_group": "infant",
                "behavior": "playing",
                "cardiovascular": "pink",
                "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"
                },
                "components": [
                  {
                    "factor": "behavior",
                    "points": 0,
                    "present": false,
                    "value": "playing"
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": "pink"
                  },
                  {
                    "factor": "respiratory",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "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.",
                "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",
                "heart_rate_bpm": 130,
                "max_score": 13,
                "oxygen": "none",
                "persistent_vomiting_after_surgery": false,
                "quarter_hourly_nebulisers": false,
                "respiratory_effort": "none",
                "respiratory_rate": 35,
                "score": 0,
                "score_ge_3": false
              },
              {
                "age_group": "infant",
                "behavior": "playing",
                "cardiovascular": "pink",
                "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"
                },
                "components": [
                  {
                    "factor": "behavior",
                    "points": 0,
                    "present": false,
                    "value": "playing"
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": "pink"
                  },
                  {
                    "factor": "respiratory",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "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.",
                "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",
                "heart_rate_bpm": 130,
                "max_score": 13,
                "oxygen": "none",
                "persistent_vomiting_after_surgery": false,
                "quarter_hourly_nebulisers": false,
                "respiratory_effort": "none",
                "respiratory_rate": 35,
                "score": 0,
                "score_ge_3": false
              }
            ],
            "path": "/api/calc/pews"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age_group": {
                          "description": "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.",
                          "enum": [
                            "infant",
                            "age_1_2",
                            "age_2_5",
                            "age_5_12",
                            "adolescent"
                          ],
                          "type": "string"
                        },
                        "behavior": {
                          "description": "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.",
                          "enum": [
                            "playing",
                            "sleeping",
                            "irritable",
                            "lethargic"
                          ],
                          "type": "string"
                        },
                        "cardiovascular": {
                          "description": "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.",
                          "enum": [
                            "pink",
                            "pale",
                            "grey",
                            "mottled"
                          ],
                          "type": "string"
                        },
                        "heart_rate_bpm": {
                          "description": "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.",
                          "type": "integer"
                        },
                        "oxygen": {
                          "description": "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.",
                          "enum": [
                            "none",
                            "fio2_30_or_4l",
                            "fio2_40_or_6l",
                            "fio2_50_or_8l"
                          ],
                          "type": "string"
                        },
                        "persistent_vomiting_after_surgery": {
                          "description": "Persistent vomiting following surgery as in Monaghan 2005. true → +2; false → 0. Independent of the behaviour 0-3 domain. magent does not observe vomiting.",
                          "type": "boolean"
                        },
                        "quarter_hourly_nebulisers": {
                          "description": "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.",
                          "type": "boolean"
                        },
                        "respiratory_effort": {
                          "description": "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.",
                          "enum": [
                            "none",
                            "accessory",
                            "recessing",
                            "sternal_or_grunting"
                          ],
                          "type": "string"
                        },
                        "respiratory_rate": {
                          "description": "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age_group",
                        "behavior",
                        "cardiovascular",
                        "heart_rate_bpm",
                        "respiratory_rate",
                        "respiratory_effort",
                        "oxygen",
                        "quarter_hourly_nebulisers",
                        "persistent_vomiting_after_surgery"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pews",
    "early-warning",
    "emergency",
    "paediatric",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:06:36.316Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:06:36.1Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "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
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_group": "infant",
                  "behavior": "playing",
                  "cardiovascular": "pink",
                  "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"
                  },
                  "components": [
                    {
                      "factor": "behavior",
                      "points": 0,
                      "present": false,
                      "value": "playing"
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": "pink"
                    },
                    {
                      "factor": "respiratory",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "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.",
                  "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",
                  "heart_rate_bpm": 130,
                  "max_score": 13,
                  "oxygen": "none",
                  "persistent_vomiting_after_surgery": false,
                  "quarter_hourly_nebulisers": false,
                  "respiratory_effort": "none",
                  "respiratory_rate": 35,
                  "score": 0,
                  "score_ge_3": false
                },
                {
                  "age_group": "infant",
                  "behavior": "playing",
                  "cardiovascular": "pink",
                  "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"
                  },
                  "components": [
                    {
                      "factor": "behavior",
                      "points": 0,
                      "present": false,
                      "value": "playing"
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": "pink"
                    },
                    {
                      "factor": "respiratory",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "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.",
                  "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",
                  "heart_rate_bpm": 130,
                  "max_score": 13,
                  "oxygen": "none",
                  "persistent_vomiting_after_surgery": false,
                  "quarter_hourly_nebulisers": false,
                  "respiratory_effort": "none",
                  "respiratory_rate": 35,
                  "score": 0,
                  "score_ge_3": false
                }
              ],
              "path": "/api/calc/pews"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age_group": {
                            "description": "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.",
                            "enum": [
                              "infant",
                              "age_1_2",
                              "age_2_5",
                              "age_5_12",
                              "adolescent"
                            ],
                            "type": "string"
                          },
                          "behavior": {
                            "description": "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.",
                            "enum": [
                              "playing",
                              "sleeping",
                              "irritable",
                              "lethargic"
                            ],
                            "type": "string"
                          },
                          "cardiovascular": {
                            "description": "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.",
                            "enum": [
                              "pink",
                              "pale",
                              "grey",
                              "mottled"
                            ],
                            "type": "string"
                          },
                          "heart_rate_bpm": {
                            "description": "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.",
                            "type": "integer"
                          },
                          "oxygen": {
                            "description": "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.",
                            "enum": [
                              "none",
                              "fio2_30_or_4l",
                              "fio2_40_or_6l",
                              "fio2_50_or_8l"
                            ],
                            "type": "string"
                          },
                          "persistent_vomiting_after_surgery": {
                            "description": "Persistent vomiting following surgery as in Monaghan 2005. true → +2; false → 0. Independent of the behaviour 0-3 domain. magent does not observe vomiting.",
                            "type": "boolean"
                          },
                          "quarter_hourly_nebulisers": {
                            "description": "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.",
                            "type": "boolean"
                          },
                          "respiratory_effort": {
                            "description": "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.",
                            "enum": [
                              "none",
                              "accessory",
                              "recessing",
                              "sternal_or_grunting"
                            ],
                            "type": "string"
                          },
                          "respiratory_rate": {
                            "description": "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age_group",
                          "behavior",
                          "cardiovascular",
                          "heart_rate_bpm",
                          "respiratory_rate",
                          "respiratory_effort",
                          "oxygen",
                          "quarter_hourly_nebulisers",
                          "persistent_vomiting_after_surgery"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}