{
  "x402Version": 2,
  "id": 39112,
  "slug": "39112",
  "resource": "https://api.magentlab.com/api/calc/nivo",
  "description": "Hartley 2021 NIVO: consolidation, GCS ≤14, AF, and pH <7.25 score 1 each; time to acidaemia >12 h scores 2; eMRCD 1_to_4 → 0, 5a → 2, 5b → 3 (cannot score both). Returns 0–9 and Table 4 bands 0-2 / 3-4 / 5-6 / 7-9 with grouped in-hospital mortality 5.0 / 16.8 / 41.2 / 71.4%. Not HACOR, DECAF, APACHE II, or a weaning predictor. Not a medical device.",
  "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": [
              {
                "atrial_fibrillation": false,
                "chest_radiograph_consolidation": false,
                "emrcd": "1_to_4",
                "gcs_le_14": false,
                "ph_lt_7_25": false,
                "time_to_acidaemia_gt_12h": false
              },
              {
                "atrial_fibrillation": false,
                "chest_radiograph_consolidation": false,
                "emrcd": "1_to_4",
                "gcs_le_14": false,
                "ph_lt_7_25": false,
                "time_to_acidaemia_gt_12h": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "atrial_fibrillation": false,
                "chest_radiograph_consolidation": false,
                "citation": {
                  "authors": "Hartley T, Lane ND, Steer J, et al.",
                  "doi": "10.1183/13993003.04042-2020",
                  "id": "hartley-2021",
                  "pmid": "33479109",
                  "source": "Eur Respir J. 2021;58(2):2004042",
                  "title": "The Noninvasive Ventilation Outcomes (NIVO) score: prediction of in-hospital mortality in exacerbations of COPD requiring assisted ventilation"
                },
                "components": [
                  {
                    "factor": "chest_radiograph_consolidation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "gcs_le_14",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "atrial_fibrillation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ph_lt_7_25",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "time_to_acidaemia_gt_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "emrcd",
                    "points": 0,
                    "present": false,
                    "value": "1_to_4"
                  }
                ],
                "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.",
                "emrcd": "1_to_4",
                "formula": "nivo",
                "formula_expression": "NIVO = chest_radiograph_consolidation + gcs_le_14 + atrial_fibrillation + ph_lt_7_25 + time_to_acidaemia_gt_12h + emrcd; consolidation true -> 1; GCS <=14 prior to ventilation -> 1; AF (persistent, new, or paroxysmal even if sinus at NIV start) true -> 1; pH <7.25 -> 1; time from hospital arrival to index acidaemia >12 h -> 2; eMRCD 1_to_4 -> 0, 5a -> 2, 5b -> 3; cannot score both 5a and 5b; Hartley 2021 validation Table 4 bands 0-2 / 3-4 / 5-6 / 7-9; max 9",
                "gcs_le_14": false,
                "in_hospital_mortality_percent": 5,
                "max_score": 9,
                "nivo_band": "0_to_2",
                "ph_lt_7_25": false,
                "score": 0,
                "time_to_acidaemia_gt_12h": false
              },
              {
                "atrial_fibrillation": false,
                "chest_radiograph_consolidation": false,
                "citation": {
                  "authors": "Hartley T, Lane ND, Steer J, et al.",
                  "doi": "10.1183/13993003.04042-2020",
                  "id": "hartley-2021",
                  "pmid": "33479109",
                  "source": "Eur Respir J. 2021;58(2):2004042",
                  "title": "The Noninvasive Ventilation Outcomes (NIVO) score: prediction of in-hospital mortality in exacerbations of COPD requiring assisted ventilation"
                },
                "components": [
                  {
                    "factor": "chest_radiograph_consolidation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "gcs_le_14",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "atrial_fibrillation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ph_lt_7_25",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "time_to_acidaemia_gt_12h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "emrcd",
                    "points": 0,
                    "present": false,
                    "value": "1_to_4"
                  }
                ],
                "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.",
                "emrcd": "1_to_4",
                "formula": "nivo",
                "formula_expression": "NIVO = chest_radiograph_consolidation + gcs_le_14 + atrial_fibrillation + ph_lt_7_25 + time_to_acidaemia_gt_12h + emrcd; consolidation true -> 1; GCS <=14 prior to ventilation -> 1; AF (persistent, new, or paroxysmal even if sinus at NIV start) true -> 1; pH <7.25 -> 1; time from hospital arrival to index acidaemia >12 h -> 2; eMRCD 1_to_4 -> 0, 5a -> 2, 5b -> 3; cannot score both 5a and 5b; Hartley 2021 validation Table 4 bands 0-2 / 3-4 / 5-6 / 7-9; max 9",
                "gcs_le_14": false,
                "in_hospital_mortality_percent": 5,
                "max_score": 9,
                "nivo_band": "0_to_2",
                "ph_lt_7_25": false,
                "score": 0,
                "time_to_acidaemia_gt_12h": false
              }
            ],
            "path": "/api/calc/nivo"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "atrial_fibrillation": {
                          "description": "Persistent AF, new AF, or paroxysmal AF even if in sinus rhythm at NIV start (Hartley 2021). true or false. 1 point if true. magent does not interpret the ECG.",
                          "type": "boolean"
                        },
                        "chest_radiograph_consolidation": {
                          "description": "Chest radiograph consolidation as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not interpret radiographs.",
                          "type": "boolean"
                        },
                        "emrcd": {
                          "description": "Hartley 2021 extended MRC dyspnoea as assigned by the caller. 1_to_4 scores 0; 5a scores 2; 5b scores 3. 5a and 5b are mutually exclusive. magent does not interview the patient.",
                          "enum": [
                            "1_to_4",
                            "5a",
                            "5b"
                          ],
                          "type": "string"
                        },
                        "gcs_le_14": {
                          "description": "GCS ≤14 prior to ventilation as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not measure GCS.",
                          "type": "boolean"
                        },
                        "ph_lt_7_25": {
                          "description": "Arterial pH <7.25 as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not measure pH.",
                          "type": "boolean"
                        },
                        "time_to_acidaemia_gt_12h": {
                          "description": ">12 h from hospital arrival to index acidaemia as assigned by the caller (Hartley 2021). true or false. 2 points if true. magent does not clock admission time.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "chest_radiograph_consolidation",
                        "gcs_le_14",
                        "atrial_fibrillation",
                        "ph_lt_7_25",
                        "time_to_acidaemia_gt_12h",
                        "emrcd"
                      ],
                      "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": [
    "nivo",
    "copd",
    "niv",
    "respiratory",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:57:07.333Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:57:07.173Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "atrial_fibrillation": false,
                  "chest_radiograph_consolidation": false,
                  "emrcd": "1_to_4",
                  "gcs_le_14": false,
                  "ph_lt_7_25": false,
                  "time_to_acidaemia_gt_12h": false
                },
                {
                  "atrial_fibrillation": false,
                  "chest_radiograph_consolidation": false,
                  "emrcd": "1_to_4",
                  "gcs_le_14": false,
                  "ph_lt_7_25": false,
                  "time_to_acidaemia_gt_12h": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "atrial_fibrillation": false,
                  "chest_radiograph_consolidation": false,
                  "citation": {
                    "authors": "Hartley T, Lane ND, Steer J, et al.",
                    "doi": "10.1183/13993003.04042-2020",
                    "id": "hartley-2021",
                    "pmid": "33479109",
                    "source": "Eur Respir J. 2021;58(2):2004042",
                    "title": "The Noninvasive Ventilation Outcomes (NIVO) score: prediction of in-hospital mortality in exacerbations of COPD requiring assisted ventilation"
                  },
                  "components": [
                    {
                      "factor": "chest_radiograph_consolidation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "gcs_le_14",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "atrial_fibrillation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ph_lt_7_25",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "time_to_acidaemia_gt_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "emrcd",
                      "points": 0,
                      "present": false,
                      "value": "1_to_4"
                    }
                  ],
                  "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.",
                  "emrcd": "1_to_4",
                  "formula": "nivo",
                  "formula_expression": "NIVO = chest_radiograph_consolidation + gcs_le_14 + atrial_fibrillation + ph_lt_7_25 + time_to_acidaemia_gt_12h + emrcd; consolidation true -> 1; GCS <=14 prior to ventilation -> 1; AF (persistent, new, or paroxysmal even if sinus at NIV start) true -> 1; pH <7.25 -> 1; time from hospital arrival to index acidaemia >12 h -> 2; eMRCD 1_to_4 -> 0, 5a -> 2, 5b -> 3; cannot score both 5a and 5b; Hartley 2021 validation Table 4 bands 0-2 / 3-4 / 5-6 / 7-9; max 9",
                  "gcs_le_14": false,
                  "in_hospital_mortality_percent": 5,
                  "max_score": 9,
                  "nivo_band": "0_to_2",
                  "ph_lt_7_25": false,
                  "score": 0,
                  "time_to_acidaemia_gt_12h": false
                },
                {
                  "atrial_fibrillation": false,
                  "chest_radiograph_consolidation": false,
                  "citation": {
                    "authors": "Hartley T, Lane ND, Steer J, et al.",
                    "doi": "10.1183/13993003.04042-2020",
                    "id": "hartley-2021",
                    "pmid": "33479109",
                    "source": "Eur Respir J. 2021;58(2):2004042",
                    "title": "The Noninvasive Ventilation Outcomes (NIVO) score: prediction of in-hospital mortality in exacerbations of COPD requiring assisted ventilation"
                  },
                  "components": [
                    {
                      "factor": "chest_radiograph_consolidation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "gcs_le_14",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "atrial_fibrillation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ph_lt_7_25",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "time_to_acidaemia_gt_12h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "emrcd",
                      "points": 0,
                      "present": false,
                      "value": "1_to_4"
                    }
                  ],
                  "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.",
                  "emrcd": "1_to_4",
                  "formula": "nivo",
                  "formula_expression": "NIVO = chest_radiograph_consolidation + gcs_le_14 + atrial_fibrillation + ph_lt_7_25 + time_to_acidaemia_gt_12h + emrcd; consolidation true -> 1; GCS <=14 prior to ventilation -> 1; AF (persistent, new, or paroxysmal even if sinus at NIV start) true -> 1; pH <7.25 -> 1; time from hospital arrival to index acidaemia >12 h -> 2; eMRCD 1_to_4 -> 0, 5a -> 2, 5b -> 3; cannot score both 5a and 5b; Hartley 2021 validation Table 4 bands 0-2 / 3-4 / 5-6 / 7-9; max 9",
                  "gcs_le_14": false,
                  "in_hospital_mortality_percent": 5,
                  "max_score": 9,
                  "nivo_band": "0_to_2",
                  "ph_lt_7_25": false,
                  "score": 0,
                  "time_to_acidaemia_gt_12h": false
                }
              ],
              "path": "/api/calc/nivo"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "atrial_fibrillation": {
                            "description": "Persistent AF, new AF, or paroxysmal AF even if in sinus rhythm at NIV start (Hartley 2021). true or false. 1 point if true. magent does not interpret the ECG.",
                            "type": "boolean"
                          },
                          "chest_radiograph_consolidation": {
                            "description": "Chest radiograph consolidation as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not interpret radiographs.",
                            "type": "boolean"
                          },
                          "emrcd": {
                            "description": "Hartley 2021 extended MRC dyspnoea as assigned by the caller. 1_to_4 scores 0; 5a scores 2; 5b scores 3. 5a and 5b are mutually exclusive. magent does not interview the patient.",
                            "enum": [
                              "1_to_4",
                              "5a",
                              "5b"
                            ],
                            "type": "string"
                          },
                          "gcs_le_14": {
                            "description": "GCS ≤14 prior to ventilation as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not measure GCS.",
                            "type": "boolean"
                          },
                          "ph_lt_7_25": {
                            "description": "Arterial pH <7.25 as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not measure pH.",
                            "type": "boolean"
                          },
                          "time_to_acidaemia_gt_12h": {
                            "description": ">12 h from hospital arrival to index acidaemia as assigned by the caller (Hartley 2021). true or false. 2 points if true. magent does not clock admission time.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "chest_radiograph_consolidation",
                          "gcs_le_14",
                          "atrial_fibrillation",
                          "ph_lt_7_25",
                          "time_to_acidaemia_gt_12h",
                          "emrcd"
                        ],
                        "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"
  }
}