{"api":"v1","generated_at":"2026-10-01T05:40:50.886Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-magentlab-com-api-calc-cedocs-2a8c1f","pinned_page":"https://tollindex.com/e/api-magentlab-com-api-calc-cedocs-2a8c1f/at/2026-09-30T22-14Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-09-30T22:14:11.940Z","snapshot_stamp":"2026-09-30T22-14Z","endpoint":{"slug":"api-magentlab-com-api-calc-cedocs-2a8c1f","canonical_url":"https://api.magentlab.com/api/calc/cedocs","resource":"https://api.magentlab.com/api/calc/cedocs","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"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 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.","service_name":"magent","declared_category":null,"declared_tags":["cedocs","overcrowding","emergency","calculator"],"route_template":null,"registry_updated":"2026-09-28T14:38:16.950Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"calc cedocs","category":"inference","first_observed_by_toll":"2026-09-28T13:51:25.436Z","last_observed_by_toll":"2026-09-30T22:14:11.940Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-28T13:51:25.437Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.005 USDC","amount_units":0.005,"decimals_known":true,"pay_to":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact"}],"counters":{"observed_at":"2026-09-30T22:14:11.940Z","calls_30d":2,"unique_payers_30d":1,"last_called_at":"2026-09-28T14:38:16.821Z"},"validation":{"latest":{"observed_at":"2026-09-30T06:11:30.065Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-09-30"},"uptime":[{"days":7,"observed":4,"passed":4,"ratio":1},{"days":30,"observed":4,"passed":4,"ratio":1},{"days":90,"observed":4,"passed":4,"ratio":1}],"history_90d":[{"observed_at":"2026-09-30T06:11:30.065Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-30","state_changed":false},{"observed_at":"2026-09-29T18:32:16.971Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-29","state_changed":false},{"observed_at":"2026-09-28T16:53:50.985Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-28","state_changed":false},{"observed_at":"2026-09-28T16:39:46.539Z","state":"pass","failed_checks":[],"run_id":"new-after-daily-2026-09-28","state_changed":true}]},"seller":{"wallet":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","page":"https://tollindex.com/seller/0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","endpoints":844,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["cedocs","overcrowding","emergency","calculator"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/cedocs","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600}],"quality":{"lastCalledAt":"2026-09-28T14:38:16.821Z","l30DaysTotalCalls":2,"l30DaysUniquePayers":1},"resource":"https://api.magentlab.com/api/calc/cedocs","extensions":{"bazaar":{"info":{"input":{"body":{"items":[{"ed_beds":20,"ed_patients":0,"admit_time_hours":0,"ed_visits_per_year":46000,"waiting_room_patients":0,"critical_care_patients":0},{"ed_beds":20,"ed_patients":0,"admit_time_hours":0,"ed_visits_per_year":46000,"waiting_room_patients":0,"critical_care_patients":0}]},"type":"http","method":"POST"},"output":{"type":"json","example":{"path":"/api/calc/cedocs","count":2,"items":[{"ed_beds":20,"formula":"cedocs","citation":{"id":"weiss-2014","doi":"10.1016/j.ajem.2014.08.035","pmid":"25234796","title":"Evaluating community ED crowding: the Community ED Overcrowding Scale study","source":"Am J Emerg Med. 2014;32(11):1357-1363","authors":"Weiss SJ, Rogers DB, Maas F, Ernst AA, Nick TG"},"occupancy":0,"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.","ed_patients":0,"cedocs_score":5.5,"admit_time_hours":0,"ed_visits_per_year":46000,"formula_expression":"cedocs_score = -30.39 + 3.00 * critical_care_patients + 0.53 * admit_time_hours + 1.16 * waiting_room_patients + 20.66 * (ed_patients / ed_beds) + 0.00126 * ed_visits_per_year - 1.11e-12 * pmax(ed_visits_per_year - 18811, 0)^3 + 8.23e-12 * pmax(ed_visits_per_year - 43012, 0)^3 - 8.20e-12 * pmax(ed_visits_per_year - 49466, 0)^3 + 1.08e-12 * pmax(ed_visits_per_year - 67273, 0)^3","waiting_room_patients":0,"critical_care_patients":0},{"ed_beds":20,"formula":"cedocs","citation":{"id":"weiss-2014","doi":"10.1016/j.ajem.2014.08.035","pmid":"25234796","title":"Evaluating community ED crowding: the Community ED Overcrowding Scale study","source":"Am J Emerg Med. 2014;32(11):1357-1363","authors":"Weiss SJ, Rogers DB, Maas F, Ernst AA, Nick TG"},"occupancy":0,"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.","ed_patients":0,"cedocs_score":5.5,"admit_time_hours":0,"ed_visits_per_year":46000,"formula_expression":"cedocs_score = -30.39 + 3.00 * critical_care_patients + 0.53 * admit_time_hours + 1.16 * waiting_room_patients + 20.66 * (ed_patients / ed_beds) + 0.00126 * ed_visits_per_year - 1.11e-12 * pmax(ed_visits_per_year - 18811, 0)^3 + 8.23e-12 * pmax(ed_visits_per_year - 43012, 0)^3 - 8.20e-12 * pmax(ed_visits_per_year - 49466, 0)^3 + 1.08e-12 * pmax(ed_visits_per_year - 67273, 0)^3","waiting_room_patients":0,"critical_care_patients":0}]}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["critical_care_patients","admit_time_hours","waiting_room_patients","ed_patients","ed_beds","ed_visits_per_year"],"properties":{"ed_beds":{"type":"integer","description":"Number of ED beds (integer 1-300). Weiss 2014 occupancy denominator. magent does not count beds."},"ed_patients":{"type":"integer","description":"Total patients in the ED (integer 0-200). Weiss 2014 occupancy numerator (beds plus doubled-up or hallway). magent does not count patients."},"admit_time_hours":{"type":"number","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."},"ed_visits_per_year":{"type":"integer","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."},"waiting_room_patients":{"type":"integer","description":"Patients in the waiting room (integer 0-200). Weiss 2014 reduced-model C. magent does not count waiting-room patients."},"critical_care_patients":{"type":"integer","description":"Critical-care patients in the ED (integer 0-20). Weiss 2014 reduced-model A. magent does not count patients."}}},"maxItems":25,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"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 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.","lastUpdated":"2026-09-28T14:38:16.95Z","serviceName":"magent","x402Version":2}]}}