{"uid":"cap_A3-XISSa2uAwOiEn5iew3","slug":"hartley-2021-nivo-score-calculator-ba69ff45","name":"Hartley 2021 NIVO Score Calculator","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.","url":"https://api.magentlab.com/api/calc/nivo","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["chest_radiograph_consolidation","gcs_le_14","atrial_fibrillation","ph_lt_7_25","time_to_acidaemia_gt_12h","emrcd"],"properties":{"emrcd":{"enum":["1_to_4","5a","5b"],"type":"string","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."},"gcs_le_14":{"type":"boolean","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."},"ph_lt_7_25":{"type":"boolean","description":"Arterial pH <7.25 as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not measure pH."},"atrial_fibrillation":{"type":"boolean","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."},"time_to_acidaemia_gt_12h":{"type":"boolean","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."},"chest_radiograph_consolidation":{"type":"boolean","description":"Chest radiograph consolidation as assigned by the caller (Hartley 2021). true or false. 1 point if true. magent does not interpret radiographs."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xw-q-ifBVnUiMnJjX5Zpu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Hartley 2021 NIVO score for predicting in-hospital mortality in patients receiving non-invasive ventilation, returning a 0–9 score with Table 4 mortality band.","exampleAgentPrompt":"Calculate the Hartley 2021 NIVO score for my patient: no chest radiograph consolidation, GCS is 14 or below (true), atrial fibrillation present (true), pH is 7.20 so below 7.25 (true), time to acidaemia was less than 12 hours (false), and eMRCD is 5b.","exampleUseCases":[{"title":"ICU triage of new NIV patient","prompt":"I have a COPD patient just starting NIV — no consolidation on CXR, GCS 13, new AF detected, pH 7.22, they arrived 8 hours before the index gas so time to acidaemia is under 12h, and eMRCD 5a. What's their Hartley NIVO score and mortality band?"},{"title":"Audit of high-risk NIV admissions","prompt":"Score this admission using the Hartley 2021 NIVO tool: consolidation present on CXR, GCS normal (above 14), no AF, pH 7.30 so not below 7.25, time to acidaemia was more than 12 hours, eMRCD 5b — give me the score and which mortality group they fall into."},{"title":"Teaching case illustration","prompt":"Show me the NIVO score for a textbook low-risk patient: no consolidation, GCS fine, no AF, pH above 7.25, acidaemia appeared within 12 hours of arrival, and eMRCD 1 to 4 — what score and band do they get?"}],"resultDescription":"Returns a total NIVO score from 0 to 9 and a Table 4 risk band (0-2, 3-4, 5-6, or 7-9) with the corresponding grouped in-hospital mortality rate: 5.0% / 16.8% / 41.2% / 71.4% respectively.","failureModes":["Missing required query parameter returns an error — all six fields (chest_radiograph_consolidation, gcs_le_14, atrial_fibrillation, ph_lt_7_25, time_to_acidaemia_gt_12h, emrcd) must be supplied","Invalid emrcd value (not one of '1_to_4', '5a', '5b') returns validation error","Non-boolean value for boolean parameters causes rejection","Payment failure or missing x402 payment header returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need the Hartley 2021 NIVO score specifically — it is not HACOR, DECAF, or APACHE II. Choose it when stratifying in-hospital mortality risk for patients beginning non-invasive ventilation, particularly in COPD exacerbation with acidaemia. It is the correct tool when caller-assigned eMRCD grade, pH, GCS, AF status, CXR findings, and time-to-acidaemia are all known.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:19:24.587Z","isFirstParty":false}