{"uid":"cap_A4zDM_4Rh7hHFSCsve_Ra","slug":"nedocs-national-ed-overcrowding-study-score-calculator-3242a98e","name":"NEDOCS (National ED Overcrowding Study) Score Calculator","description":"Weiss 2004 National ED Overcrowding Study (NEDOCS) reduced five-variable model: ED patients indexed to ED beds, boarding indexed to hospital beds, respirators, longest admitted-patient hours since registration, and last-called registration-to-bed hours. Returns the linear score (1 decimal) and the published ≥100 overcrowding cutoff. Caller supplies counts and hours; magent does not count beds or wait times. Not a medical device and not a diversion or ambulance-bypass order.","url":"https://api.magentlab.com/api/calc/nedocs","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":["ed_patients","ed_beds","boarding_patients","hospital_beds","respirators","admit_time_hours","reg_time_hours"],"properties":{"ed_beds":{"type":"integer","description":"Number of ED beds (integer 1-300). Weiss 2004 patindex denominator. The paper's average academic ED was 50 ED beds. magent does not count beds."},"ed_patients":{"type":"integer","description":"Total patients in the ED (integer 0-200). Weiss 2004 patindex numerator (full rooms + hallways + doubled-up). magent does not count patients."},"respirators":{"type":"integer","description":"Patients on respirators in the ED (integer 0-20). Weiss 2004 reduced-model respirators term. magent does not count ventilators."},"hospital_beds":{"type":"integer","description":"Number of hospital beds (integer 1-3000). Weiss 2004 admit-index denominator. The paper's average academic hospital was 500 beds. magent does not count beds."},"reg_time_hours":{"type":"number","description":"Hours from registration until the last patient called from the waiting room was called to a bed (0-48). Weiss 2004 reduced-model reg time. magent does not measure wait times."},"admit_time_hours":{"type":"number","description":"Hours the longest-waiting admitted patient has been in the ED since registration (0-120). Weiss 2004 reduced-model admit time. Not time since the admission order (that bed-time variable was omitted). magent does not measure wait times."},"boarding_patients":{"type":"integer","description":"Patients in the ED awaiting inpatient beds (integer 0-200). Weiss 2004 admit-index numerator. magent does not count boarding patients."}}}},"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_wQjtCBrEhT70u_82TXAIg","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 Weiss 2004 NEDOCS five-variable reduced model score to quantify emergency department overcrowding, returning the linear score and the ≥100 overcrowding threshold flag.","exampleAgentPrompt":"Can you calculate the NEDOCS score for our ED right now? We have 72 patients in 50 ED beds, 18 boarding patients waiting for inpatient beds out of 420 hospital beds total, 3 patients on respirators, our longest admitted patient has been here 14.5 hours, and the last patient called from the waiting room waited 2.3 hours.","exampleUseCases":[{"title":"Real-time ED overcrowding dashboard","prompt":"Run a NEDOCS score for our current shift: 85 patients, 50 ED beds, 22 boarding patients, 500 hospital beds, 4 on respirators, longest admitted patient has been here 18 hours, and the last waiting-room call was 3 hours ago — is it over the 100 overcrowding threshold?"},{"title":"Quality improvement retrospective audit","prompt":"I'm reviewing last Tuesday night's 11pm snapshot for our QI report. We had 60 patients in 45 ED beds, 15 boarding in a 350-bed hospital, 2 respirators, the longest boarding patient had been there 10 hours, and registration-to-bed for the last called patient was 1.5 hours — what was our NEDOCS score?"},{"title":"Staffing escalation trigger check","prompt":"Our charge nurse says it feels slammed — help me calculate the NEDOCS score: 95 ED patients, 55 ED beds, 28 boarding patients, 600 hospital beds, 5 respirators, the longest admitted patient registered 22 hours ago, and the last waiting-room call was 4 hours ago. Does it hit the ≥100 overcrowding cutoff?"}],"resultDescription":"Returns the NEDOCS linear score to one decimal place computed from the Weiss 2004 reduced five-variable model, along with a flag indicating whether the score meets or exceeds the published ≥100 overcrowding threshold. Does not issue diversion or ambulance-bypass orders.","failureModes":["Missing required query parameters (ed_patients, ed_beds, boarding_patients, hospital_beds, respirators, admit_time_hours, reg_time_hours) returns a validation error","Values outside allowed ranges (e.g. ed_patients >200, hospital_beds >3000, admit_time_hours >120) may return a 400 or out-of-range error","Non-integer values for integer fields cause schema validation failure","Payment not processed (x402 protocol) results in a 402 response before calculation occurs","Network timeout or upstream error returns a 5xx response"],"whenToPreferThis":"Use this endpoint when you need a rapid, standardized Weiss 2004 NEDOCS score from already-collected census data and have all five inputs available (ED patients, ED beds, boarding patients, hospital beds, respirators, admit time, reg time). It is preferable over manual calculation when building automated ED dashboards, QI audit pipelines, or staffing escalation triggers. Not appropriate if you need real-time bed or patient counting (the caller must supply those figures), or if you need a different crowding tool such as EDOCS or EDWIN.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:06:07.034Z","isFirstParty":false}