{
  "x402Version": 2,
  "id": 39034,
  "slug": "39034",
  "resource": "https://api.magentlab.com/api/calc/mews",
  "description": "MEWS from Subbe 2001 Table 1: systolic BP, heart rate, respiratory rate, temperature (°C), and caller-assigned AVPU (alert/voice/pain/unresponsive) summed to a 0–14 total. Returns score_ge_5 because scores ≥5 were associated with increased risk of death or ICU/HDU. Deterministic published arithmetic with citation; not NEWS2; not an ICU-admission order.",
  "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": [
              {
                "avpu": "alert",
                "heart_rate_bpm": 80,
                "respiratory_rate": 12,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              },
              {
                "avpu": "alert",
                "heart_rate_bpm": 80,
                "respiratory_rate": 12,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "avpu": "alert",
                "citation": {
                  "authors": "Subbe CP, Kruger M, Rutherford P, Gemmel L",
                  "doi": "10.1093/qjmed/94.10.521",
                  "id": "subbe-2001",
                  "pmid": "11588210",
                  "source": "QJM. 2001;94(10):521-526",
                  "title": "Validation of a modified Early Warning Score in medical admissions"
                },
                "components": [
                  {
                    "factor": "systolic_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "avpu",
                    "points": 0,
                    "present": false,
                    "value": "alert"
                  }
                ],
                "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": "mews",
                "formula_expression": "MEWS = sbp_points + hr_points + rr_points + temp_points + avpu_points; Subbe 2001 Table 1; max 14",
                "heart_rate_bpm": 80,
                "max_score": 14,
                "respiratory_rate": 12,
                "score": 0,
                "score_ge_5": false,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              },
              {
                "avpu": "alert",
                "citation": {
                  "authors": "Subbe CP, Kruger M, Rutherford P, Gemmel L",
                  "doi": "10.1093/qjmed/94.10.521",
                  "id": "subbe-2001",
                  "pmid": "11588210",
                  "source": "QJM. 2001;94(10):521-526",
                  "title": "Validation of a modified Early Warning Score in medical admissions"
                },
                "components": [
                  {
                    "factor": "systolic_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "avpu",
                    "points": 0,
                    "present": false,
                    "value": "alert"
                  }
                ],
                "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": "mews",
                "formula_expression": "MEWS = sbp_points + hr_points + rr_points + temp_points + avpu_points; Subbe 2001 Table 1; max 14",
                "heart_rate_bpm": 80,
                "max_score": 14,
                "respiratory_rate": 12,
                "score": 0,
                "score_ge_5": false,
                "systolic_mm_hg": 120,
                "temperature_c": 37
              }
            ],
            "path": "/api/calc/mews"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "avpu": {
                          "description": "Caller-assigned AVPU (alert, voice, pain, or unresponsive). Subbe 2001: alert → 0, voice → 1, pain → 2, unresponsive → 3. magent does not compute GCS here.",
                          "enum": [
                            "alert",
                            "voice",
                            "pain",
                            "unresponsive"
                          ],
                          "type": "string"
                        },
                        "heart_rate_bpm": {
                          "description": "Heart rate in beats/min (integer 30-220). Subbe 2001: ≤40 → 2, 41-50 → 1, 51-100 → 0, 101-110 → 1, 111-129 → 2, ≥130 → 3.",
                          "type": "integer"
                        },
                        "respiratory_rate": {
                          "description": "Respiratory rate in breaths/min (integer 0-80). Subbe 2001: <9 → 2, 9-14 → 0, 15-20 → 1, 21-29 → 2, ≥30 → 3.",
                          "type": "integer"
                        },
                        "systolic_mm_hg": {
                          "description": "Systolic blood pressure in mm Hg (integer 0-300). Subbe 2001: ≤70 → 3, 71-80 → 2, 81-100 → 1, 101-199 → 0, ≥200 → 2.",
                          "type": "integer"
                        },
                        "temperature_c": {
                          "description": "Temperature in °C (30.0-45.0). Subbe 2001: <35 → 2, 35-38.4 → 0, ≥38.5 → 2. magent does not convert Fahrenheit.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "systolic_mm_hg",
                        "heart_rate_bpm",
                        "respiratory_rate",
                        "temperature_c",
                        "avpu"
                      ],
                      "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": [
    "mews",
    "early-warning",
    "emergency",
    "avpu",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:36:11.634Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:36:11.5Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "avpu": "alert",
                  "heart_rate_bpm": 80,
                  "respiratory_rate": 12,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                },
                {
                  "avpu": "alert",
                  "heart_rate_bpm": 80,
                  "respiratory_rate": 12,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "avpu": "alert",
                  "citation": {
                    "authors": "Subbe CP, Kruger M, Rutherford P, Gemmel L",
                    "doi": "10.1093/qjmed/94.10.521",
                    "id": "subbe-2001",
                    "pmid": "11588210",
                    "source": "QJM. 2001;94(10):521-526",
                    "title": "Validation of a modified Early Warning Score in medical admissions"
                  },
                  "components": [
                    {
                      "factor": "systolic_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "avpu",
                      "points": 0,
                      "present": false,
                      "value": "alert"
                    }
                  ],
                  "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": "mews",
                  "formula_expression": "MEWS = sbp_points + hr_points + rr_points + temp_points + avpu_points; Subbe 2001 Table 1; max 14",
                  "heart_rate_bpm": 80,
                  "max_score": 14,
                  "respiratory_rate": 12,
                  "score": 0,
                  "score_ge_5": false,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                },
                {
                  "avpu": "alert",
                  "citation": {
                    "authors": "Subbe CP, Kruger M, Rutherford P, Gemmel L",
                    "doi": "10.1093/qjmed/94.10.521",
                    "id": "subbe-2001",
                    "pmid": "11588210",
                    "source": "QJM. 2001;94(10):521-526",
                    "title": "Validation of a modified Early Warning Score in medical admissions"
                  },
                  "components": [
                    {
                      "factor": "systolic_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "avpu",
                      "points": 0,
                      "present": false,
                      "value": "alert"
                    }
                  ],
                  "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": "mews",
                  "formula_expression": "MEWS = sbp_points + hr_points + rr_points + temp_points + avpu_points; Subbe 2001 Table 1; max 14",
                  "heart_rate_bpm": 80,
                  "max_score": 14,
                  "respiratory_rate": 12,
                  "score": 0,
                  "score_ge_5": false,
                  "systolic_mm_hg": 120,
                  "temperature_c": 37
                }
              ],
              "path": "/api/calc/mews"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "avpu": {
                            "description": "Caller-assigned AVPU (alert, voice, pain, or unresponsive). Subbe 2001: alert → 0, voice → 1, pain → 2, unresponsive → 3. magent does not compute GCS here.",
                            "enum": [
                              "alert",
                              "voice",
                              "pain",
                              "unresponsive"
                            ],
                            "type": "string"
                          },
                          "heart_rate_bpm": {
                            "description": "Heart rate in beats/min (integer 30-220). Subbe 2001: ≤40 → 2, 41-50 → 1, 51-100 → 0, 101-110 → 1, 111-129 → 2, ≥130 → 3.",
                            "type": "integer"
                          },
                          "respiratory_rate": {
                            "description": "Respiratory rate in breaths/min (integer 0-80). Subbe 2001: <9 → 2, 9-14 → 0, 15-20 → 1, 21-29 → 2, ≥30 → 3.",
                            "type": "integer"
                          },
                          "systolic_mm_hg": {
                            "description": "Systolic blood pressure in mm Hg (integer 0-300). Subbe 2001: ≤70 → 3, 71-80 → 2, 81-100 → 1, 101-199 → 0, ≥200 → 2.",
                            "type": "integer"
                          },
                          "temperature_c": {
                            "description": "Temperature in °C (30.0-45.0). Subbe 2001: <35 → 2, 35-38.4 → 0, ≥38.5 → 2. magent does not convert Fahrenheit.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "systolic_mm_hg",
                          "heart_rate_bpm",
                          "respiratory_rate",
                          "temperature_c",
                          "avpu"
                        ],
                        "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"
  }
}