{"slug":"api-magentlab-com-api-calc-cedocs-09dffc","title":"Weiss 2014 Community ED Overcrowding Scale (CEDOCS) reduced model","host":"api.magentlab.com","method":"POST","resource":"https://api.magentlab.com/api/calc/cedocs","category":"other","description":"Weiss 2014 Community ED Overcrowding Scale (CEDOCS) reduced model: critical-care patients, longest admitted-patient hours since admission, waiting-room count, ED patients indexed to ED beds, and annual ED visits with a restricted cubic spline. Returns the 1-decimal score on the paper's 0-100 scale w","price_listed":0.005,"price_asked":0.007,"state":"overcharges","state_label":"Asked 1.4x its listed price for its own example","checks_7d":1,"answered_7d":1,"latency_ms_median":282,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"items":[{"admit_time_hours":0,"critical_care_patients":0,"ed_beds":20,"ed_patients":0,"ed_visits_per_year":46000,"waiting_room_patients":0},{"admit_time_hours":0,"critical_care_patients":0,"ed_beds":20,"ed_patients":0,"ed_visits_per_year":46000,"waiting_room_patients":0}]},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"items":{"items":{"properties":{"admit_time_hours":{"description":"Hours the longest-waiting admitted patient has been in the ED since admission (0-120). Weiss 2014 reduced-model B. Not time since registration. magent does not measure wait times.","type":"number"},"critical_care_patients":{"description":"Critical-care patients in the ED (integer 0-20). Weiss 2014 reduced-model A. magent does not count patients.","type":"integer"},"ed_beds":{"description":"Number of ED beds (integer 1-300). Weiss 2014 occupancy denominator. magent does not count beds.","type":"integer"},"ed_patients":{"description":"Total patients in the ED (integer 0-200). Weiss 2014 occupancy numerator (beds plus doubled-up or hallway). magent does not count patients.","type":"integer"},"ed_visits_per_year":{"description":"ED visits per year (integer 1000-200000). Weiss 2014 reduced-model E with restricted cubic spline knots at 18811, 43012, 49466, and 67273. The paper's spline worked example uses 46000. magent does not count visits.","type":"integer"},"waiting_room_patients":{"description":"Patients in the waiting room (integer 0-200). Weiss 2014 reduced-model C. magent does not count waiting-room patients.","type":"integer"}},"required":["critical_care_patients","admit_time_hours","waiting_room_patients","ed_patients","ed_beds","ed_visits_per_year"],"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"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.007,"price_match":false,"latency_ms":282,"error":null}],"description_full":"Weiss 2014 Community ED Overcrowding Scale (CEDOCS) reduced model: critical-care patients, longest admitted-patient hours since admission, waiting-room count, ED patients indexed to ED beds, and annual ED visits with a restricted cubic spline. Returns the 1-decimal score on the paper's 0-100 scale without clamping or named class bands. Caller supplies counts and hours; magent does not count patients or wait times. Not a medical device and not a diversion or ambulance-bypass order.","last_updated":"2026-09-28T14:38:16.95Z","schemes":["exact"]}