{"uid":"cap_J2QuUu9uQt3GmN8ZSNjDc","slug":"pedocs-two-variable-overcrowding-score-weiss-2007-5c02e6bf","name":"PEDOCS Two-Variable Overcrowding Score (Weiss 2007)","description":"Weiss 2007 Pediatric Emergency Department Overcrowding Scale (PEDOCS) two-variable model: waiting-room patients and total registered patients. Returns the 1-decimal score on the paper's 0-200 scale without clamping or 20/60/100 named class bands. Caller supplies counts; magent does not count patients. Not a medical device and not a diversion or ambulance-bypass order.","url":"https://api.magentlab.com/api/calc/pedocs","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":["waiting_room_patients","total_registered_patients"],"properties":{"waiting_room_patients":{"type":"integer","description":"Patients in the waiting room (integer 0-200). Cannot exceed total_registered_patients. Weiss 2007 two-variable model. magent does not count waiting-room patients."},"total_registered_patients":{"type":"integer","description":"Total patients currently registered in the pediatric ED, including those in the waiting room (integer 0-400). Must be at least waiting_room_patients. Weiss 2007 two-variable model. magent does not count 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_dy9IOBMCReCmaSKdVkcJe","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 2007 PEDOCS two-variable pediatric ED overcrowding score from waiting-room patient count and total registered patient count, returning a 0–200 scale score to one decimal place.","exampleAgentPrompt":"Calculate the PEDOCS two-variable overcrowding score for our pediatric ED right now — we have 18 patients in the waiting room and 52 total registered patients.","exampleUseCases":[{"title":"Real-time ED crowding dashboard","prompt":"Our pediatric ED currently has 25 patients in the waiting room and 70 total registered — what's the Weiss 2007 PEDOCS score so I can update the crowding dashboard?"},{"title":"Shift handoff overcrowding report","prompt":"At the start of the night shift we have 10 waiting-room patients and 38 total registered in the pediatric ED — compute the PEDOCS score for the handoff report."},{"title":"Crowding trend logging over time","prompt":"Log the PEDOCS score for our pediatric ED at this moment: 5 patients waiting and 22 total registered, so I can track how crowding changes throughout the day."}],"resultDescription":"A single numeric PEDOCS score on the Weiss 2007 0–200 scale, expressed to one decimal place. The score reflects the two-variable model combining waiting-room patients and total registered patients. No named class bands (e.g. 20/60/100 thresholds) are applied; the raw continuous score is returned.","failureModes":["waiting_room_patients exceeds total_registered_patients — violates constraint, likely returns validation error","non-integer or negative values for either count — schema violation","waiting_room_patients > 200 or total_registered_patients > 400 — outside documented range, may return error or unexpected result","missing required query parameters — HTTP 400 or similar bad request response","network or payment failure — endpoint returns 402 if x402 payment not provided"],"whenToPreferThis":"Use this endpoint when you need the exact continuous Weiss 2007 PEDOCS two-variable score (0–200, one decimal, no clamping) from caller-supplied waiting-room and total registered patient counts. Prefer it over manual formula application or spreadsheet tools when building automated ED dashboards, crowding-trend logs, or handoff reports in a clinical operations pipeline. Not appropriate as a medical device, diversion order, or ambulance-bypass trigger.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:08:53.708Z","isFirstParty":false}